Regenerate from configure.in 1.218
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.218 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="src/main/radiusd.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE HOSTINFO LIBLTDL INCLTDL 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   --disable-largefile     omit support for large files
1024   --enable-shared[=PKGS]
1025                           build shared libraries [default=yes]
1026   --enable-static[=PKGS]
1027                           build static libraries [default=yes]
1028   --enable-fast-install[=PKGS]
1029                           optimize for fast installation [default=yes]
1030   --disable-libtool-lock  avoid locking (might break parallel builds)
1031   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1032   --enable-developer               Enables features of interest to developers.
1033
1034 Optional Packages:
1035   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1036   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1037   --with-system-libtool              try to use libtool installed in your system default=use our own
1038   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1039   --with-pic              try to use only PIC/non-PIC objects [default=use
1040                           both]
1041   --with-tags[=TAGS]
1042                           include additional configurations [automatic]
1043   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1044   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
1045   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1046   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1047   --with-threads          Use threads, if available.  (default=yes)
1048   --with-snmp             Compile in SNMP support. (default=yes)
1049   --with-large-files      Compile in large (2G+) file support. (default=no)
1050   --with-static-modules=QUOTED-MODULE-LIST
1051   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1052   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1053   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1054   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1055   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1056   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1057
1058 Some influential environment variables:
1059   CC          C compiler command
1060   CFLAGS      C compiler flags
1061   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1062               nonstandard directory <lib dir>
1063   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064               headers in a nonstandard directory <include dir>
1065   CPP         C preprocessor
1066   CXX         C++ compiler command
1067   CXXFLAGS    C++ compiler flags
1068   CXXCPP      C++ preprocessor
1069   F77         Fortran 77 compiler command
1070   FFLAGS      Fortran 77 compiler flags
1071
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1074
1075 _ACEOF
1076 fi
1077
1078 if test "$ac_init_help" = "recursive"; then
1079   # If there are subdirs, report their specific --help.
1080   ac_popdir=`pwd`
1081   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082     test -d $ac_dir || continue
1083     ac_builddir=.
1084
1085 if test "$ac_dir" != .; then
1086   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087   # A "../" for each directory in $ac_dir_suffix.
1088   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 else
1090   ac_dir_suffix= ac_top_builddir=
1091 fi
1092
1093 case $srcdir in
1094   .)  # No --srcdir option.  We are building in place.
1095     ac_srcdir=.
1096     if test -z "$ac_top_builddir"; then
1097        ac_top_srcdir=.
1098     else
1099        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100     fi ;;
1101   [\\/]* | ?:[\\/]* )  # Absolute path.
1102     ac_srcdir=$srcdir$ac_dir_suffix;
1103     ac_top_srcdir=$srcdir ;;
1104   *) # Relative path.
1105     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 esac
1108
1109 # Do not use `cd foo && pwd` to compute absolute paths, because
1110 # the directories may not exist.
1111 case `pwd` in
1112 .) ac_abs_builddir="$ac_dir";;
1113 *)
1114   case "$ac_dir" in
1115   .) ac_abs_builddir=`pwd`;;
1116   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118   esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *)
1123   case ${ac_top_builddir}. in
1124   .) ac_abs_top_builddir=$ac_abs_builddir;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_srcdir=$ac_srcdir;;
1131 *)
1132   case $ac_srcdir in
1133   .) ac_abs_srcdir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *)
1141   case $ac_top_srcdir in
1142   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145   esac;;
1146 esac
1147
1148     cd $ac_dir
1149     # Check for guested configure; otherwise get Cygnus style configure.
1150     if test -f $ac_srcdir/configure.gnu; then
1151       echo
1152       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1153     elif test -f $ac_srcdir/configure; then
1154       echo
1155       $SHELL $ac_srcdir/configure  --help=recursive
1156     elif test -f $ac_srcdir/configure.ac ||
1157            test -f $ac_srcdir/configure.in; then
1158       echo
1159       $ac_configure --help
1160     else
1161       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162     fi
1163     cd "$ac_popdir"
1164   done
1165 fi
1166
1167 test -n "$ac_init_help" && exit 0
1168 if $ac_init_version; then
1169   cat <<\_ACEOF
1170
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1181
1182 It was created by $as_me, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185   $ $0 $@
1186
1187 _ACEOF
1188 {
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1193
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211 _ASUNAME
1212
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1220
1221 } >&5
1222
1223 cat >&5 <<_ACEOF
1224
1225
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1229
1230 _ACEOF
1231
1232
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1301 {
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1314 }
1315     echo
1316
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1329
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1344
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1367
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1372
1373 # Predefined preprocessor variables.
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1398
1399
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1417
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1434
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1511
1512
1513 RADIUSD_MAJOR_VERSION=1
1514 RADIUSD_MINOR_VERSION=1.0-pre0
1515 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1516
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   if test -n "$CC"; then
1532   ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537   IFS=$as_save_IFS
1538   test -z "$as_dir" && as_dir=.
1539   for ac_exec_ext in '' $ac_executable_extensions; do
1540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543     break 2
1544   fi
1545 done
1546 done
1547
1548 fi
1549 fi
1550 CC=$ac_cv_prog_CC
1551 if test -n "$CC"; then
1552   echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1554 else
1555   echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 fi
1558
1559 fi
1560 if test -z "$ac_cv_prog_CC"; then
1561   ac_ct_CC=$CC
1562   # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567   echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569   if test -n "$ac_ct_CC"; then
1570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     ac_cv_prog_ac_ct_CC="gcc"
1580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581     break 2
1582   fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1592 else
1593   echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597   CC=$ac_ct_CC
1598 else
1599   CC="$ac_cv_prog_CC"
1600 fi
1601
1602 if test -z "$CC"; then
1603   if test -n "$ac_tool_prefix"; then
1604   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$CC"; then
1612   ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   for ac_exec_ext in '' $ac_executable_extensions; do
1620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621     ac_cv_prog_CC="${ac_tool_prefix}cc"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632   echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635   echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641   ac_ct_CC=$CC
1642   # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$ac_ct_CC"; then
1650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_ac_ct_CC="cc"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677   CC=$ac_ct_CC
1678 else
1679   CC="$ac_cv_prog_CC"
1680 fi
1681
1682 fi
1683 if test -z "$CC"; then
1684   # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694   ac_prog_rejected=no
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698   IFS=$as_save_IFS
1699   test -z "$as_dir" && as_dir=.
1700   for ac_exec_ext in '' $ac_executable_extensions; do
1701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703        ac_prog_rejected=yes
1704        continue
1705      fi
1706     ac_cv_prog_CC="cc"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 if test $ac_prog_rejected = yes; then
1714   # We found a bogon in the path, so make sure we never use it.
1715   set dummy $ac_cv_prog_CC
1716   shift
1717   if test $# != 0; then
1718     # We chose a different compiler from the bogus one.
1719     # However, it has the same basename, so the bogon will be chosen
1720     # first if we set CC to just the basename; use the full file name.
1721     shift
1722     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1723   fi
1724 fi
1725 fi
1726 fi
1727 CC=$ac_cv_prog_CC
1728 if test -n "$CC"; then
1729   echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1731 else
1732   echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736 fi
1737 if test -z "$CC"; then
1738   if test -n "$ac_tool_prefix"; then
1739   for ac_prog in cl
1740   do
1741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$CC"; then
1749   ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769   echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776     test -n "$CC" && break
1777   done
1778 fi
1779 if test -z "$CC"; then
1780   ac_ct_CC=$CC
1781   for ac_prog in cl
1782 do
1783   # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   if test -n "$ac_ct_CC"; then
1791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_ac_ct_CC="$ac_prog"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818   test -n "$ac_ct_CC" && break
1819 done
1820
1821   CC=$ac_ct_CC
1822 fi
1823
1824 fi
1825
1826
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831    { (exit 1); exit 1; }; }
1832
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835      "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838   (eval $ac_compiler --version </dev/null >&5) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843   (eval $ac_compiler -v </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848   (eval $ac_compiler -V </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852
1853 cat >conftest.$ac_ext <<_ACEOF
1854 /* confdefs.h.  */
1855 _ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h.  */
1859
1860 int
1861 main ()
1862 {
1863
1864   ;
1865   return 0;
1866 }
1867 _ACEOF
1868 ac_clean_files_save=$ac_clean_files
1869 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1870 # Try to create an executable without -o first, disregard a.out.
1871 # It will help us diagnose broken compilers, and finding out an intuition
1872 # of exeext.
1873 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1874 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1875 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1877   (eval $ac_link_default) 2>&5
1878   ac_status=$?
1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880   (exit $ac_status); }; then
1881   # Find the output, starting from the most likely.  This scheme is
1882 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1883 # resort.
1884
1885 # Be careful to initialize this variable, since it used to be cached.
1886 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1887 ac_cv_exeext=
1888 # b.out is created by i960 compilers.
1889 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1890 do
1891   test -f "$ac_file" || continue
1892   case $ac_file in
1893     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1894         ;;
1895     conftest.$ac_ext )
1896         # This is the source file.
1897         ;;
1898     [ab].out )
1899         # We found the default executable, but exeext='' is most
1900         # certainly right.
1901         break;;
1902     *.* )
1903         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1904         # FIXME: I believe we export ac_cv_exeext for Libtool,
1905         # but it would be cool to find out if it's true.  Does anybody
1906         # maintain Libtool? --akim.
1907         export ac_cv_exeext
1908         break;;
1909     * )
1910         break;;
1911   esac
1912 done
1913 else
1914   echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1918 See \`config.log' for more details." >&5
1919 echo "$as_me: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&2;}
1921    { (exit 77); exit 77; }; }
1922 fi
1923
1924 ac_exeext=$ac_cv_exeext
1925 echo "$as_me:$LINENO: result: $ac_file" >&5
1926 echo "${ECHO_T}$ac_file" >&6
1927
1928 # Check the compiler produces executables we can run.  If not, either
1929 # the compiler is broken, or we cross compile.
1930 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1931 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1932 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1933 # If not cross compiling, check that we can run a simple program.
1934 if test "$cross_compiling" != yes; then
1935   if { ac_try='./$ac_file'
1936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937   (eval $ac_try) 2>&5
1938   ac_status=$?
1939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940   (exit $ac_status); }; }; then
1941     cross_compiling=no
1942   else
1943     if test "$cross_compiling" = maybe; then
1944         cross_compiling=yes
1945     else
1946         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&2;}
1952    { (exit 1); exit 1; }; }
1953     fi
1954   fi
1955 fi
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
1958
1959 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1960 ac_clean_files=$ac_clean_files_save
1961 # Check the compiler produces executables we can run.  If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1964 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1965 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1966 echo "${ECHO_T}$cross_compiling" >&6
1967
1968 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1969 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1971   (eval $ac_link) 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); }; then
1975   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1976 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1977 # work properly (i.e., refer to `conftest.exe'), while it won't with
1978 # `rm'.
1979 for ac_file in conftest.exe conftest conftest.*; do
1980   test -f "$ac_file" || continue
1981   case $ac_file in
1982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1983     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1984           export ac_cv_exeext
1985           break;;
1986     * ) break;;
1987   esac
1988 done
1989 else
1990   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997 rm -f conftest$ac_cv_exeext
1998 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2000
2001 rm -f conftest.$ac_ext
2002 EXEEXT=$ac_cv_exeext
2003 ac_exeext=$EXEEXT
2004 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2005 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   cat >conftest.$ac_ext <<_ACEOF
2010 /* confdefs.h.  */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h.  */
2015
2016 int
2017 main ()
2018 {
2019
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026   (eval $ac_compile) 2>&5
2027   ac_status=$?
2028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029   (exit $ac_status); }; then
2030   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2031   case $ac_file in
2032     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2033     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2034        break;;
2035   esac
2036 done
2037 else
2038   echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&2;}
2045    { (exit 1); exit 1; }; }
2046 fi
2047
2048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2051 echo "${ECHO_T}$ac_cv_objext" >&6
2052 OBJEXT=$ac_cv_objext
2053 ac_objext=$OBJEXT
2054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   cat >conftest.$ac_ext <<_ACEOF
2060 /* confdefs.h.  */
2061 _ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h.  */
2065
2066 int
2067 main ()
2068 {
2069 #ifndef __GNUC__
2070        choke me
2071 #endif
2072
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079   (eval $ac_compile) 2>conftest.er1
2080   ac_status=$?
2081   grep -v '^ *+' conftest.er1 >conftest.err
2082   rm -f conftest.er1
2083   cat conftest.err >&5
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; } &&
2092          { ac_try='test -s conftest.$ac_objext'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; }; then
2098   ac_compiler_gnu=yes
2099 else
2100   echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_compiler_gnu=no
2104 fi
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2107
2108 fi
2109 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111 GCC=`test $ac_compiler_gnu = yes && echo yes`
2112 ac_test_CFLAGS=${CFLAGS+set}
2113 ac_save_CFLAGS=$CFLAGS
2114 CFLAGS="-g"
2115 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_g+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>conftest.er1
2138   ac_status=$?
2139   grep -v '^ *+' conftest.er1 >conftest.err
2140   rm -f conftest.er1
2141   cat conftest.err >&5
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); } &&
2144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146   (eval $ac_try) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }; } &&
2150          { ac_try='test -s conftest.$ac_objext'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; }; then
2156   ac_cv_prog_cc_g=yes
2157 else
2158   echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 ac_cv_prog_cc_g=no
2162 fi
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164 fi
2165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2166 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2167 if test "$ac_test_CFLAGS" = set; then
2168   CFLAGS=$ac_save_CFLAGS
2169 elif test $ac_cv_prog_cc_g = yes; then
2170   if test "$GCC" = yes; then
2171     CFLAGS="-g -O2"
2172   else
2173     CFLAGS="-g"
2174   fi
2175 else
2176   if test "$GCC" = yes; then
2177     CFLAGS="-O2"
2178   else
2179     CFLAGS=
2180   fi
2181 fi
2182 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2183 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   ac_cv_prog_cc_stdc=no
2188 ac_save_CC=$CC
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h.  */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h.  */
2195 #include <stdarg.h>
2196 #include <stdio.h>
2197 #include <sys/types.h>
2198 #include <sys/stat.h>
2199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2200 struct buf { int x; };
2201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2202 static char *e (p, i)
2203      char **p;
2204      int i;
2205 {
2206   return p[i];
2207 }
2208 static char *f (char * (*g) (char **, int), char **p, ...)
2209 {
2210   char *s;
2211   va_list v;
2212   va_start (v,p);
2213   s = g (p, va_arg (v,int));
2214   va_end (v);
2215   return s;
2216 }
2217
2218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2219    function prototypes and stuff, but not '\xHH' hex character constants.
2220    These don't provoke an error unfortunately, instead are silently treated
2221    as 'x'.  The following induces an error, until -std1 is added to get
2222    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2223    array size at least.  It's necessary to write '\x00'==0 to get something
2224    that's true only with -std1.  */
2225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2226
2227 int test (int i, double x);
2228 struct s1 {int (*f) (int a);};
2229 struct s2 {int (*f) (double a);};
2230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2231 int argc;
2232 char **argv;
2233 int
2234 main ()
2235 {
2236 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 # Don't try gcc -ansi; that turns off useful extensions and
2242 # breaks some systems' header files.
2243 # AIX                   -qlanglvl=ansi
2244 # Ultrix and OSF/1      -std1
2245 # HP-UX 10.20 and later -Ae
2246 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2247 # SVR4                  -Xc -D__EXTENSIONS__
2248 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2249 do
2250   CC="$ac_save_CC $ac_arg"
2251   rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253   (eval $ac_compile) 2>conftest.er1
2254   ac_status=$?
2255   grep -v '^ *+' conftest.er1 >conftest.err
2256   rm -f conftest.er1
2257   cat conftest.err >&5
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); } &&
2260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262   (eval $ac_try) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   ac_cv_prog_cc_stdc=$ac_arg
2273 break
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext
2280 done
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2282 CC=$ac_save_CC
2283
2284 fi
2285
2286 case "x$ac_cv_prog_cc_stdc" in
2287   x|xno)
2288     echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2290   *)
2291     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293     CC="$CC $ac_cv_prog_cc_stdc" ;;
2294 esac
2295
2296 # Some people use a C++ compiler to compile C.  Since we use `exit',
2297 # in C++ we need to declare it.  In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #ifndef __cplusplus
2302   choke me
2303 #endif
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   for ac_declaration in \
2327    '' \
2328    'extern "C" void std::exit (int) throw (); using std::exit;' \
2329    'extern "C" void std::exit (int); using std::exit;' \
2330    'extern "C" void exit (int) throw ();' \
2331    'extern "C" void exit (int);' \
2332    'void exit (int);'
2333 do
2334   cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 $ac_declaration
2341 #include <stdlib.h>
2342 int
2343 main ()
2344 {
2345 exit (42);
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352   (eval $ac_compile) 2>conftest.er1
2353   ac_status=$?
2354   grep -v '^ *+' conftest.er1 >conftest.err
2355   rm -f conftest.er1
2356   cat conftest.err >&5
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); } &&
2359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361   (eval $ac_try) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }; } &&
2365          { ac_try='test -s conftest.$ac_objext'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; }; then
2371   :
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 continue
2377 fi
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379   cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385 $ac_declaration
2386 int
2387 main ()
2388 {
2389 exit (42);
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 2>conftest.er1
2397   ac_status=$?
2398   grep -v '^ *+' conftest.er1 >conftest.err
2399   rm -f conftest.er1
2400   cat conftest.err >&5
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; } &&
2409          { ac_try='test -s conftest.$ac_objext'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   break
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 fi
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422 done
2423 rm -f conftest*
2424 if test -n "$ac_declaration"; then
2425   echo '#ifdef __cplusplus' >>confdefs.h
2426   echo $ac_declaration      >>confdefs.h
2427   echo '#endif'             >>confdefs.h
2428 fi
2429
2430 else
2431   echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 fi
2435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441
2442
2443
2444 ac_ext=c
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2450 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2451 # On Suns, sometimes $CPP names a directory.
2452 if test -n "$CPP" && test -d "$CPP"; then
2453   CPP=
2454 fi
2455 if test -z "$CPP"; then
2456   if test "${ac_cv_prog_CPP+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459       # Double quotes because CPP needs to be expanded
2460     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2461     do
2462       ac_preproc_ok=false
2463 for ac_c_preproc_warn_flag in '' yes
2464 do
2465   # Use a header file that comes with gcc, so configuring glibc
2466   # with a fresh cross-compiler works.
2467   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2468   # <limits.h> exists even on freestanding compilers.
2469   # On the NeXT, cc -E runs the code through the compiler's parser,
2470   # not just through cpp. "Syntax error" is here to catch this case.
2471   cat >conftest.$ac_ext <<_ACEOF
2472 /* confdefs.h.  */
2473 _ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h.  */
2477 #ifdef __STDC__
2478 # include <limits.h>
2479 #else
2480 # include <assert.h>
2481 #endif
2482                      Syntax error
2483 _ACEOF
2484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2486   ac_status=$?
2487   grep -v '^ *+' conftest.er1 >conftest.err
2488   rm -f conftest.er1
2489   cat conftest.err >&5
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); } >/dev/null; then
2492   if test -s conftest.err; then
2493     ac_cpp_err=$ac_c_preproc_warn_flag
2494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2495   else
2496     ac_cpp_err=
2497   fi
2498 else
2499   ac_cpp_err=yes
2500 fi
2501 if test -z "$ac_cpp_err"; then
2502   :
2503 else
2504   echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507   # Broken: fails on valid input.
2508 continue
2509 fi
2510 rm -f conftest.err conftest.$ac_ext
2511
2512   # OK, works on sane cases.  Now check whether non-existent headers
2513   # can be detected and how.
2514   cat >conftest.$ac_ext <<_ACEOF
2515 /* confdefs.h.  */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h.  */
2520 #include <ac_nonexistent.h>
2521 _ACEOF
2522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2524   ac_status=$?
2525   grep -v '^ *+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } >/dev/null; then
2530   if test -s conftest.err; then
2531     ac_cpp_err=$ac_c_preproc_warn_flag
2532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2533   else
2534     ac_cpp_err=
2535   fi
2536 else
2537   ac_cpp_err=yes
2538 fi
2539 if test -z "$ac_cpp_err"; then
2540   # Broken: success on invalid input.
2541 continue
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546   # Passes both tests.
2547 ac_preproc_ok=:
2548 break
2549 fi
2550 rm -f conftest.err conftest.$ac_ext
2551
2552 done
2553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2554 rm -f conftest.err conftest.$ac_ext
2555 if $ac_preproc_ok; then
2556   break
2557 fi
2558
2559     done
2560     ac_cv_prog_CPP=$CPP
2561
2562 fi
2563   CPP=$ac_cv_prog_CPP
2564 else
2565   ac_cv_prog_CPP=$CPP
2566 fi
2567 echo "$as_me:$LINENO: result: $CPP" >&5
2568 echo "${ECHO_T}$CPP" >&6
2569 ac_preproc_ok=false
2570 for ac_c_preproc_warn_flag in '' yes
2571 do
2572   # Use a header file that comes with gcc, so configuring glibc
2573   # with a fresh cross-compiler works.
2574   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2575   # <limits.h> exists even on freestanding compilers.
2576   # On the NeXT, cc -E runs the code through the compiler's parser,
2577   # not just through cpp. "Syntax error" is here to catch this case.
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584 #ifdef __STDC__
2585 # include <limits.h>
2586 #else
2587 # include <assert.h>
2588 #endif
2589                      Syntax error
2590 _ACEOF
2591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2593   ac_status=$?
2594   grep -v '^ *+' conftest.er1 >conftest.err
2595   rm -f conftest.er1
2596   cat conftest.err >&5
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); } >/dev/null; then
2599   if test -s conftest.err; then
2600     ac_cpp_err=$ac_c_preproc_warn_flag
2601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2602   else
2603     ac_cpp_err=
2604   fi
2605 else
2606   ac_cpp_err=yes
2607 fi
2608 if test -z "$ac_cpp_err"; then
2609   :
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614   # Broken: fails on valid input.
2615 continue
2616 fi
2617 rm -f conftest.err conftest.$ac_ext
2618
2619   # OK, works on sane cases.  Now check whether non-existent headers
2620   # can be detected and how.
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627 #include <ac_nonexistent.h>
2628 _ACEOF
2629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2631   ac_status=$?
2632   grep -v '^ *+' conftest.er1 >conftest.err
2633   rm -f conftest.er1
2634   cat conftest.err >&5
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } >/dev/null; then
2637   if test -s conftest.err; then
2638     ac_cpp_err=$ac_c_preproc_warn_flag
2639     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2640   else
2641     ac_cpp_err=
2642   fi
2643 else
2644   ac_cpp_err=yes
2645 fi
2646 if test -z "$ac_cpp_err"; then
2647   # Broken: success on invalid input.
2648 continue
2649 else
2650   echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2652
2653   # Passes both tests.
2654 ac_preproc_ok=:
2655 break
2656 fi
2657 rm -f conftest.err conftest.$ac_ext
2658
2659 done
2660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2661 rm -f conftest.err conftest.$ac_ext
2662 if $ac_preproc_ok; then
2663   :
2664 else
2665   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2666 See \`config.log' for more details." >&5
2667 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2668 See \`config.log' for more details." >&2;}
2669    { (exit 1); exit 1; }; }
2670 fi
2671
2672 ac_ext=c
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677
2678
2679 echo "$as_me:$LINENO: checking for egrep" >&5
2680 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2681 if test "${ac_cv_prog_egrep+set}" = set; then
2682   echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2685     then ac_cv_prog_egrep='grep -E'
2686     else ac_cv_prog_egrep='egrep'
2687     fi
2688 fi
2689 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2690 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2691  EGREP=$ac_cv_prog_egrep
2692
2693
2694
2695 echo "$as_me:$LINENO: checking for AIX" >&5
2696 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703 #ifdef _AIX
2704   yes
2705 #endif
2706
2707 _ACEOF
2708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2709   $EGREP "yes" >/dev/null 2>&1; then
2710   echo "$as_me:$LINENO: result: yes" >&5
2711 echo "${ECHO_T}yes" >&6
2712 cat >>confdefs.h <<\_ACEOF
2713 #define _ALL_SOURCE 1
2714 _ACEOF
2715
2716 else
2717   echo "$as_me:$LINENO: result: no" >&5
2718 echo "${ECHO_T}no" >&6
2719 fi
2720 rm -f conftest*
2721
2722
2723
2724 if test $ac_cv_c_compiler_gnu = yes; then
2725     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2726 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2727 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730     ac_pattern="Autoconf.*'x'"
2731   cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h.  */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h.  */
2737 #include <sgtty.h>
2738 Autoconf TIOCGETP
2739 _ACEOF
2740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2741   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2742   ac_cv_prog_gcc_traditional=yes
2743 else
2744   ac_cv_prog_gcc_traditional=no
2745 fi
2746 rm -f conftest*
2747
2748
2749   if test $ac_cv_prog_gcc_traditional = no; then
2750     cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756 #include <termio.h>
2757 Autoconf TCGETA
2758 _ACEOF
2759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2760   $EGREP "$ac_pattern" >/dev/null 2>&1; then
2761   ac_cv_prog_gcc_traditional=yes
2762 fi
2763 rm -f conftest*
2764
2765   fi
2766 fi
2767 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2768 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2769   if test $ac_cv_prog_gcc_traditional = yes; then
2770     CC="$CC -traditional"
2771   fi
2772 fi
2773
2774 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2775 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2776 if test "${ac_cv_prog_suncc+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   cat > conftest.c <<EOF
2780 #ifdef __SUNPRO_C
2781   yes;
2782 #endif
2783 EOF
2784 if { ac_try='${CC-cc} -E conftest.c'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2790   ac_cv_prog_suncc=yes
2791 else
2792   ac_cv_prog_suncc=no
2793 fi
2794 fi
2795 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2796 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2797 if test -n "$ac_tool_prefix"; then
2798   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2800 echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802 if test "${ac_cv_prog_RANLIB+set}" = set; then
2803   echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805   if test -n "$RANLIB"; then
2806   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813   for ac_exec_ext in '' $ac_executable_extensions; do
2814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820 done
2821
2822 fi
2823 fi
2824 RANLIB=$ac_cv_prog_RANLIB
2825 if test -n "$RANLIB"; then
2826   echo "$as_me:$LINENO: result: $RANLIB" >&5
2827 echo "${ECHO_T}$RANLIB" >&6
2828 else
2829   echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2831 fi
2832
2833 fi
2834 if test -z "$ac_cv_prog_RANLIB"; then
2835   ac_ct_RANLIB=$RANLIB
2836   # Extract the first word of "ranlib", so it can be a program name with args.
2837 set dummy ranlib; ac_word=$2
2838 echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$ac_ct_RANLIB"; then
2844   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853     ac_cv_prog_ac_ct_RANLIB="ranlib"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859
2860   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2861 fi
2862 fi
2863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2864 if test -n "$ac_ct_RANLIB"; then
2865   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2866 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2867 else
2868   echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870 fi
2871
2872   RANLIB=$ac_ct_RANLIB
2873 else
2874   RANLIB="$ac_cv_prog_RANLIB"
2875 fi
2876
2877
2878 abs_top_builddir=`pwd`
2879
2880
2881 # Check whether --enable-largefile or --disable-largefile was given.
2882 if test "${enable_largefile+set}" = set; then
2883   enableval="$enable_largefile"
2884
2885 fi;
2886 if test "$enable_largefile" != no; then
2887
2888   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2889 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2890 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   ac_cv_sys_largefile_CC=no
2894      if test "$GCC" != yes; then
2895        ac_save_CC=$CC
2896        while :; do
2897          # IRIX 6.2 and later do not support large files by default,
2898          # so use the C compiler's -n32 option if that helps.
2899          cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h.  */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h.  */
2905 #include <sys/types.h>
2906  /* Check that off_t can represent 2**63 - 1 correctly.
2907     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2908     since some C++ compilers masquerading as C compilers
2909     incorrectly reject 9223372036854775807.  */
2910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2911   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2912                        && LARGE_OFF_T % 2147483647 == 1)
2913                       ? 1 : -1];
2914 int
2915 main ()
2916 {
2917
2918   ;
2919   return 0;
2920 }
2921 _ACEOF
2922          rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924   (eval $ac_compile) 2>conftest.er1
2925   ac_status=$?
2926   grep -v '^ *+' conftest.er1 >conftest.err
2927   rm -f conftest.er1
2928   cat conftest.err >&5
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } &&
2931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; } &&
2937          { ac_try='test -s conftest.$ac_objext'
2938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939   (eval $ac_try) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; }; then
2943   break
2944 else
2945   echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 fi
2949 rm -f conftest.err conftest.$ac_objext
2950          CC="$CC -n32"
2951          rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953   (eval $ac_compile) 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962   (eval $ac_try) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; } &&
2966          { ac_try='test -s conftest.$ac_objext'
2967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968   (eval $ac_try) 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; }; then
2972   ac_cv_sys_largefile_CC=' -n32'; break
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 fi
2978 rm -f conftest.err conftest.$ac_objext
2979          break
2980        done
2981        CC=$ac_save_CC
2982        rm -f conftest.$ac_ext
2983     fi
2984 fi
2985 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2986 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2987   if test "$ac_cv_sys_largefile_CC" != no; then
2988     CC=$CC$ac_cv_sys_largefile_CC
2989   fi
2990
2991   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2992 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2993 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2994   echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996   while :; do
2997   ac_cv_sys_file_offset_bits=no
2998   cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3004 #include <sys/types.h>
3005  /* Check that off_t can represent 2**63 - 1 correctly.
3006     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3007     since some C++ compilers masquerading as C compilers
3008     incorrectly reject 9223372036854775807.  */
3009 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3010   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3011                        && LARGE_OFF_T % 2147483647 == 1)
3012                       ? 1 : -1];
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023   (eval $ac_compile) 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } &&
3030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032   (eval $ac_try) 2>&5
3033   ac_status=$?
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; } &&
3036          { ac_try='test -s conftest.$ac_objext'
3037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038   (eval $ac_try) 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; }; then
3042   break
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 fi
3048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3049   cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #define _FILE_OFFSET_BITS 64
3056 #include <sys/types.h>
3057  /* Check that off_t can represent 2**63 - 1 correctly.
3058     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3059     since some C++ compilers masquerading as C compilers
3060     incorrectly reject 9223372036854775807.  */
3061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3062   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3063                        && LARGE_OFF_T % 2147483647 == 1)
3064                       ? 1 : -1];
3065 int
3066 main ()
3067 {
3068
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075   (eval $ac_compile) 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; } &&
3088          { ac_try='test -s conftest.$ac_objext'
3089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090   (eval $ac_try) 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; }; then
3094   ac_cv_sys_file_offset_bits=64; break
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 fi
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3101   break
3102 done
3103 fi
3104 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3105 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3106 if test "$ac_cv_sys_file_offset_bits" != no; then
3107
3108 cat >>confdefs.h <<_ACEOF
3109 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3110 _ACEOF
3111
3112 fi
3113 rm -f conftest*
3114   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3115 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3116 if test "${ac_cv_sys_large_files+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   while :; do
3120   ac_cv_sys_large_files=no
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 #include <sys/types.h>
3128  /* Check that off_t can represent 2**63 - 1 correctly.
3129     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3130     since some C++ compilers masquerading as C compilers
3131     incorrectly reject 9223372036854775807.  */
3132 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3133   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3134                        && LARGE_OFF_T % 2147483647 == 1)
3135                       ? 1 : -1];
3136 int
3137 main ()
3138 {
3139
3140   ;
3141   return 0;
3142 }
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3146   (eval $ac_compile) 2>conftest.er1
3147   ac_status=$?
3148   grep -v '^ *+' conftest.er1 >conftest.err
3149   rm -f conftest.er1
3150   cat conftest.err >&5
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); } &&
3153          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155   (eval $ac_try) 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161   (eval $ac_try) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   break
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 fi
3171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #define _LARGE_FILES 1
3179 #include <sys/types.h>
3180  /* Check that off_t can represent 2**63 - 1 correctly.
3181     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3182     since some C++ compilers masquerading as C compilers
3183     incorrectly reject 9223372036854775807.  */
3184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3185   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3186                        && LARGE_OFF_T % 2147483647 == 1)
3187                       ? 1 : -1];
3188 int
3189 main ()
3190 {
3191
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 rm -f conftest.$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198   (eval $ac_compile) 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } &&
3205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207   (eval $ac_try) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; } &&
3211          { ac_try='test -s conftest.$ac_objext'
3212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213   (eval $ac_try) 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }; }; then
3217   ac_cv_sys_large_files=1; break
3218 else
3219   echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 fi
3223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3224   break
3225 done
3226 fi
3227 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3228 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3229 if test "$ac_cv_sys_large_files" != no; then
3230
3231 cat >>confdefs.h <<_ACEOF
3232 #define _LARGE_FILES $ac_cv_sys_large_files
3233 _ACEOF
3234
3235 fi
3236 rm -f conftest*
3237 fi
3238
3239
3240 PACKAGE=freeradius
3241
3242 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3243 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3244 if test "${ac_cv_c_bigendian+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   # See if sys/param.h defines the BYTE_ORDER macro.
3248 cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h.  */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h.  */
3254 #include <sys/types.h>
3255 #include <sys/param.h>
3256
3257 int
3258 main ()
3259 {
3260 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3261  bogus endian macros
3262 #endif
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270   (eval $ac_compile) 2>conftest.er1
3271   ac_status=$?
3272   grep -v '^ *+' conftest.er1 >conftest.err
3273   rm -f conftest.er1
3274   cat conftest.err >&5
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); } &&
3277          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279   (eval $ac_try) 2>&5
3280   ac_status=$?
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); }; } &&
3283          { ac_try='test -s conftest.$ac_objext'
3284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285   (eval $ac_try) 2>&5
3286   ac_status=$?
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); }; }; then
3289   # It does; now see whether it defined to BIG_ENDIAN or not.
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h.  */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h.  */
3296 #include <sys/types.h>
3297 #include <sys/param.h>
3298
3299 int
3300 main ()
3301 {
3302 #if BYTE_ORDER != BIG_ENDIAN
3303  not big endian
3304 #endif
3305
3306   ;
3307   return 0;
3308 }
3309 _ACEOF
3310 rm -f conftest.$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312   (eval $ac_compile) 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } &&
3319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321   (eval $ac_try) 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; } &&
3325          { ac_try='test -s conftest.$ac_objext'
3326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327   (eval $ac_try) 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331   ac_cv_c_bigendian=yes
3332 else
3333   echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 ac_cv_c_bigendian=no
3337 fi
3338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 # It does not; compile a test program.
3344 if test "$cross_compiling" = yes; then
3345   # try to guess the endianness by grepping values into an object file
3346   ac_cv_c_bigendian=unknown
3347   cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3354 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3355 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3356 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3357 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3358 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3359 int
3360 main ()
3361 {
3362  _ascii (); _ebcdic ();
3363   ;
3364   return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369   (eval $ac_compile) 2>conftest.er1
3370   ac_status=$?
3371   grep -v '^ *+' conftest.er1 >conftest.err
3372   rm -f conftest.er1
3373   cat conftest.err >&5
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } &&
3376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378   (eval $ac_try) 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }; } &&
3382          { ac_try='test -s conftest.$ac_objext'
3383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384   (eval $ac_try) 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }; }; then
3388   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3389   ac_cv_c_bigendian=yes
3390 fi
3391 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3392   if test "$ac_cv_c_bigendian" = unknown; then
3393     ac_cv_c_bigendian=no
3394   else
3395     # finding both strings is unlikely to happen, but who knows?
3396     ac_cv_c_bigendian=unknown
3397   fi
3398 fi
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 fi
3404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3405 else
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 int
3413 main ()
3414 {
3415   /* Are we little or big endian?  From Harbison&Steele.  */
3416   union
3417   {
3418     long l;
3419     char c[sizeof (long)];
3420   } u;
3421   u.l = 1;
3422   exit (u.c[sizeof (long) - 1] == 1);
3423 }
3424 _ACEOF
3425 rm -f conftest$ac_exeext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3427   (eval $ac_link) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432   (eval $ac_try) 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }; }; then
3436   ac_cv_c_bigendian=no
3437 else
3438   echo "$as_me: program exited with status $ac_status" >&5
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 ( exit $ac_status )
3443 ac_cv_c_bigendian=yes
3444 fi
3445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3446 fi
3447 fi
3448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3449 fi
3450 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3451 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3452 case $ac_cv_c_bigendian in
3453   yes)
3454
3455 cat >>confdefs.h <<\_ACEOF
3456 #define WORDS_BIGENDIAN 1
3457 _ACEOF
3458  ;;
3459   no)
3460      ;;
3461   *)
3462     { { echo "$as_me:$LINENO: error: unknown endianness
3463 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3464 echo "$as_me: error: unknown endianness
3465 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3466    { (exit 1); exit 1; }; } ;;
3467 esac
3468
3469
3470 # Extract the first word of "gmake", so it can be a program name with args.
3471 set dummy gmake; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_GMAKE+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   if test -n "$GMAKE"; then
3478   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485   for ac_exec_ext in '' $ac_executable_extensions; do
3486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     ac_cv_prog_GMAKE="yes"
3488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492 done
3493
3494   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3495 fi
3496 fi
3497 GMAKE=$ac_cv_prog_GMAKE
3498 if test -n "$GMAKE"; then
3499   echo "$as_me:$LINENO: result: $GMAKE" >&5
3500 echo "${ECHO_T}$GMAKE" >&6
3501 else
3502   echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6
3504 fi
3505
3506 if test $GMAKE = no; then
3507   # Extract the first word of "make", so it can be a program name with args.
3508 set dummy make; ac_word=$2
3509 echo "$as_me:$LINENO: checking for $ac_word" >&5
3510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511 if test "${ac_cv_path_MAKE+set}" = set; then
3512   echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514   case $MAKE in
3515   [\\/]* | ?:[\\/]*)
3516   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3517   ;;
3518   *)
3519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522   IFS=$as_save_IFS
3523   test -z "$as_dir" && as_dir=.
3524   for ac_exec_ext in '' $ac_executable_extensions; do
3525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528     break 2
3529   fi
3530 done
3531 done
3532
3533   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3534   ;;
3535 esac
3536 fi
3537 MAKE=$ac_cv_path_MAKE
3538
3539 if test -n "$MAKE"; then
3540   echo "$as_me:$LINENO: result: $MAKE" >&5
3541 echo "${ECHO_T}$MAKE" >&6
3542 else
3543   echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3545 fi
3546
3547 else
3548   # Extract the first word of "gmake", so it can be a program name with args.
3549 set dummy gmake; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_MAKE+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   case $MAKE in
3556   [\\/]* | ?:[\\/]*)
3557   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3558   ;;
3559   *)
3560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569     break 2
3570   fi
3571 done
3572 done
3573
3574   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3575   ;;
3576 esac
3577 fi
3578 MAKE=$ac_cv_path_MAKE
3579
3580 if test -n "$MAKE"; then
3581   echo "$as_me:$LINENO: result: $MAKE" >&5
3582 echo "${ECHO_T}$MAKE" >&6
3583 else
3584   echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586 fi
3587
3588 fi
3589 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3590 if test -z "$makever"; then
3591   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3592                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3593 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3594                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3595    { (exit 1); exit 1; }; }
3596 fi
3597
3598   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3599 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3600 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   ac_check_lib_save_LIBS=$LIBS
3604 LIBS="-lltdl  $LIBS"
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611
3612 /* Override any gcc2 internal prototype to avoid an error.  */
3613 #ifdef __cplusplus
3614 extern "C"
3615 #endif
3616 /* We use char because int might match the return type of a gcc2
3617    builtin and then its argument prototype would still apply.  */
3618 char lt_dlinit ();
3619 int
3620 main ()
3621 {
3622 lt_dlinit ();
3623   ;
3624   return 0;
3625 }
3626 _ACEOF
3627 rm -f conftest.$ac_objext conftest$ac_exeext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629   (eval $ac_link) 2>conftest.er1
3630   ac_status=$?
3631   grep -v '^ *+' conftest.er1 >conftest.err
3632   rm -f conftest.er1
3633   cat conftest.err >&5
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); } &&
3636          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638   (eval $ac_try) 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); }; } &&
3642          { ac_try='test -s conftest$ac_exeext'
3643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644   (eval $ac_try) 2>&5
3645   ac_status=$?
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); }; }; then
3648   ac_cv_lib_ltdl_lt_dlinit=yes
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653 ac_cv_lib_ltdl_lt_dlinit=no
3654 fi
3655 rm -f conftest.err conftest.$ac_objext \
3656       conftest$ac_exeext conftest.$ac_ext
3657 LIBS=$ac_check_lib_save_LIBS
3658 fi
3659 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3660 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3661 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3662   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3663 else
3664   if test x"$enable_ltdl_install" = xno; then
3665      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3666 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3667    else
3668      enable_ltdl_install=yes
3669    fi
3670
3671 fi
3672
3673   if test x"$enable_ltdl_install" = x"yes"; then
3674     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3675     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3676     LTDLINCL='-I${top_srcdir}/''libltdl'
3677     LIBLTDLPATH=libltdl
3678   else
3679     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3680     LIBLTDL="-lltdl"
3681     LTDLINCL=
3682     LIBLTDLPATH=
3683   fi
3684
3685   # For backwards non-gettext consistent compatibility...
3686   INCLTDL="$LTDLINCL"
3687
3688
3689 # Check whether --enable-shared or --disable-shared was given.
3690 if test "${enable_shared+set}" = set; then
3691   enableval="$enable_shared"
3692   p=${PACKAGE-default}
3693     case $enableval in
3694     yes) enable_shared=yes ;;
3695     no) enable_shared=no ;;
3696     *)
3697       enable_shared=no
3698       # Look at the argument we got.  We use all the common list separators.
3699       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3700       for pkg in $enableval; do
3701         IFS="$lt_save_ifs"
3702         if test "X$pkg" = "X$p"; then
3703           enable_shared=yes
3704         fi
3705       done
3706       IFS="$lt_save_ifs"
3707       ;;
3708     esac
3709 else
3710   enable_shared=yes
3711 fi;
3712
3713 # Check whether --enable-static or --disable-static was given.
3714 if test "${enable_static+set}" = set; then
3715   enableval="$enable_static"
3716   p=${PACKAGE-default}
3717     case $enableval in
3718     yes) enable_static=yes ;;
3719     no) enable_static=no ;;
3720     *)
3721      enable_static=no
3722       # Look at the argument we got.  We use all the common list separators.
3723       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3724       for pkg in $enableval; do
3725         IFS="$lt_save_ifs"
3726         if test "X$pkg" = "X$p"; then
3727           enable_static=yes
3728         fi
3729       done
3730       IFS="$lt_save_ifs"
3731       ;;
3732     esac
3733 else
3734   enable_static=yes
3735 fi;
3736
3737 # Check whether --enable-fast-install or --disable-fast-install was given.
3738 if test "${enable_fast_install+set}" = set; then
3739   enableval="$enable_fast_install"
3740   p=${PACKAGE-default}
3741     case $enableval in
3742     yes) enable_fast_install=yes ;;
3743     no) enable_fast_install=no ;;
3744     *)
3745       enable_fast_install=no
3746       # Look at the argument we got.  We use all the common list separators.
3747       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3748       for pkg in $enableval; do
3749         IFS="$lt_save_ifs"
3750         if test "X$pkg" = "X$p"; then
3751           enable_fast_install=yes
3752         fi
3753       done
3754       IFS="$lt_save_ifs"
3755       ;;
3756     esac
3757 else
3758   enable_fast_install=yes
3759 fi;
3760
3761 ac_aux_dir=
3762 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3763   if test -f $ac_dir/install-sh; then
3764     ac_aux_dir=$ac_dir
3765     ac_install_sh="$ac_aux_dir/install-sh -c"
3766     break
3767   elif test -f $ac_dir/install.sh; then
3768     ac_aux_dir=$ac_dir
3769     ac_install_sh="$ac_aux_dir/install.sh -c"
3770     break
3771   elif test -f $ac_dir/shtool; then
3772     ac_aux_dir=$ac_dir
3773     ac_install_sh="$ac_aux_dir/shtool install -c"
3774     break
3775   fi
3776 done
3777 if test -z "$ac_aux_dir"; then
3778   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3779 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3780    { (exit 1); exit 1; }; }
3781 fi
3782 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3783 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3784 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3785
3786 # Make sure we can run config.sub.
3787 $ac_config_sub sun4 >/dev/null 2>&1 ||
3788   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3789 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3790    { (exit 1); exit 1; }; }
3791
3792 echo "$as_me:$LINENO: checking build system type" >&5
3793 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3794 if test "${ac_cv_build+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   ac_cv_build_alias=$build_alias
3798 test -z "$ac_cv_build_alias" &&
3799   ac_cv_build_alias=`$ac_config_guess`
3800 test -z "$ac_cv_build_alias" &&
3801   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3802 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3803    { (exit 1); exit 1; }; }
3804 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3805   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3806 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3807    { (exit 1); exit 1; }; }
3808
3809 fi
3810 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3811 echo "${ECHO_T}$ac_cv_build" >&6
3812 build=$ac_cv_build
3813 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3814 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3815 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3816
3817
3818 echo "$as_me:$LINENO: checking host system type" >&5
3819 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3820 if test "${ac_cv_host+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   ac_cv_host_alias=$host_alias
3824 test -z "$ac_cv_host_alias" &&
3825   ac_cv_host_alias=$ac_cv_build_alias
3826 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3827   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3828 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3829    { (exit 1); exit 1; }; }
3830
3831 fi
3832 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3833 echo "${ECHO_T}$ac_cv_host" >&6
3834 host=$ac_cv_host
3835 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3836 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3837 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3838
3839
3840 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3841 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3842 if test "${lt_cv_path_SED+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   # Loop through the user's path and test for sed and gsed.
3846 # Then use that list of sed's as ones to test for truncation.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850   IFS=$as_save_IFS
3851   test -z "$as_dir" && as_dir=.
3852   for lt_ac_prog in sed gsed; do
3853     for ac_exec_ext in '' $ac_executable_extensions; do
3854       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3855         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3856       fi
3857     done
3858   done
3859 done
3860 lt_ac_max=0
3861 lt_ac_count=0
3862 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3863 # along with /bin/sed that truncates output.
3864 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3865   test ! -f $lt_ac_sed && break
3866   cat /dev/null > conftest.in
3867   lt_ac_count=0
3868   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3869   # Check for GNU sed and select it if it is found.
3870   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3871     lt_cv_path_SED=$lt_ac_sed
3872     break
3873   fi
3874   while true; do
3875     cat conftest.in conftest.in >conftest.tmp
3876     mv conftest.tmp conftest.in
3877     cp conftest.in conftest.nl
3878     echo >>conftest.nl
3879     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3880     cmp -s conftest.out conftest.nl || break
3881     # 10000 chars as input seems more than enough
3882     test $lt_ac_count -gt 10 && break
3883     lt_ac_count=`expr $lt_ac_count + 1`
3884     if test $lt_ac_count -gt $lt_ac_max; then
3885       lt_ac_max=$lt_ac_count
3886       lt_cv_path_SED=$lt_ac_sed
3887     fi
3888   done
3889 done
3890 SED=$lt_cv_path_SED
3891
3892 fi
3893
3894 echo "$as_me:$LINENO: result: $SED" >&5
3895 echo "${ECHO_T}$SED" >&6
3896
3897
3898 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3899 if test "${with_gnu_ld+set}" = set; then
3900   withval="$with_gnu_ld"
3901   test "$withval" = no || with_gnu_ld=yes
3902 else
3903   with_gnu_ld=no
3904 fi;
3905 ac_prog=ld
3906 if test "$GCC" = yes; then
3907   # Check if gcc -print-prog-name=ld gives a path.
3908   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3909 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3910   case $host in
3911   *-*-mingw*)
3912     # gcc leaves a trailing carriage return which upsets mingw
3913     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3914   *)
3915     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3916   esac
3917   case $ac_prog in
3918     # Accept absolute paths.
3919     [\\/]* | ?:[\\/]*)
3920       re_direlt='/[^/][^/]*/\.\./'
3921       # Canonicalize the pathname of ld
3922       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3923       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3924         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3925       done
3926       test -z "$LD" && LD="$ac_prog"
3927       ;;
3928   "")
3929     # If it fails, then pretend we aren't using GCC.
3930     ac_prog=ld
3931     ;;
3932   *)
3933     # If it is relative, then search for the first ld in PATH.
3934     with_gnu_ld=unknown
3935     ;;
3936   esac
3937 elif test "$with_gnu_ld" = yes; then
3938   echo "$as_me:$LINENO: checking for GNU ld" >&5
3939 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3940 else
3941   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3942 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3943 fi
3944 if test "${lt_cv_path_LD+set}" = set; then
3945   echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947   if test -z "$LD"; then
3948   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3949   for ac_dir in $PATH; do
3950     IFS="$lt_save_ifs"
3951     test -z "$ac_dir" && ac_dir=.
3952     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3953       lt_cv_path_LD="$ac_dir/$ac_prog"
3954       # Check to see if the program is GNU ld.  I'd rather use --version,
3955       # but apparently some GNU ld's only accept -v.
3956       # Break only if it was the GNU/non-GNU ld that we prefer.
3957       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3958       *GNU* | *'with BFD'*)
3959         test "$with_gnu_ld" != no && break
3960         ;;
3961       *)
3962         test "$with_gnu_ld" != yes && break
3963         ;;
3964       esac
3965     fi
3966   done
3967   IFS="$lt_save_ifs"
3968 else
3969   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3970 fi
3971 fi
3972
3973 LD="$lt_cv_path_LD"
3974 if test -n "$LD"; then
3975   echo "$as_me:$LINENO: result: $LD" >&5
3976 echo "${ECHO_T}$LD" >&6
3977 else
3978   echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3980 fi
3981 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3982 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3983    { (exit 1); exit 1; }; }
3984 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3985 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3986 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3990 case `$LD -v 2>&1 </dev/null` in
3991 *GNU* | *'with BFD'*)
3992   lt_cv_prog_gnu_ld=yes
3993   ;;
3994 *)
3995   lt_cv_prog_gnu_ld=no
3996   ;;
3997 esac
3998 fi
3999 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4000 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4001 with_gnu_ld=$lt_cv_prog_gnu_ld
4002
4003
4004 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4005 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4006 if test "${lt_cv_ld_reload_flag+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   lt_cv_ld_reload_flag='-r'
4010 fi
4011 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4012 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4013 reload_flag=$lt_cv_ld_reload_flag
4014 case $reload_flag in
4015 "" | " "*) ;;
4016 *) reload_flag=" $reload_flag" ;;
4017 esac
4018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4019
4020 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4021 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4022 if test "${lt_cv_path_NM+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -n "$NM"; then
4026   # Let the user override the test.
4027   lt_cv_path_NM="$NM"
4028 else
4029   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4030   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4031     IFS="$lt_save_ifs"
4032     test -z "$ac_dir" && ac_dir=.
4033     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4034     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4035       # Check to see if the nm accepts a BSD-compat flag.
4036       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4037       #   nm: unknown option "B" ignored
4038       # Tru64's nm complains that /dev/null is an invalid object file
4039       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4040       */dev/null* | *'Invalid file or object type'*)
4041         lt_cv_path_NM="$tmp_nm -B"
4042         break
4043         ;;
4044       *)
4045         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4046         */dev/null*)
4047           lt_cv_path_NM="$tmp_nm -p"
4048           break
4049           ;;
4050         *)
4051           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4052           continue # so that we can try to find one that supports BSD flags
4053           ;;
4054         esac
4055       esac
4056     fi
4057   done
4058   IFS="$lt_save_ifs"
4059   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4060 fi
4061 fi
4062 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4063 echo "${ECHO_T}$lt_cv_path_NM" >&6
4064 NM="$lt_cv_path_NM"
4065
4066 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4067 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4068 LN_S=$as_ln_s
4069 if test "$LN_S" = "ln -s"; then
4070   echo "$as_me:$LINENO: result: yes" >&5
4071 echo "${ECHO_T}yes" >&6
4072 else
4073   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4074 echo "${ECHO_T}no, using $LN_S" >&6
4075 fi
4076
4077 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4078 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4079 if test "${lt_cv_deplibs_check_method+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   lt_cv_file_magic_cmd='$MAGIC_CMD'
4083 lt_cv_file_magic_test_file=
4084 lt_cv_deplibs_check_method='unknown'
4085 # Need to set the preceding variable on all platforms that support
4086 # interlibrary dependencies.
4087 # 'none' -- dependencies not supported.
4088 # `unknown' -- same as none, but documents that we really don't know.
4089 # 'pass_all' -- all dependencies passed with no checks.
4090 # 'test_compile' -- check by making test program.
4091 # 'file_magic [[regex]]' -- check by looking for files in library path
4092 # which responds to the $file_magic_cmd with a given extended regex.
4093 # If you have `file' or equivalent on your system and you're not sure
4094 # whether `pass_all' will *always* work, you probably want this one.
4095
4096 case $host_os in
4097 aix4* | aix5*)
4098   lt_cv_deplibs_check_method=pass_all
4099   ;;
4100
4101 beos*)
4102   lt_cv_deplibs_check_method=pass_all
4103   ;;
4104
4105 bsdi4*)
4106   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4107   lt_cv_file_magic_cmd='/usr/bin/file -L'
4108   lt_cv_file_magic_test_file=/shlib/libc.so
4109   ;;
4110
4111 cygwin*)
4112   # func_win32_libid is a shell function defined in ltmain.sh
4113   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4114   lt_cv_file_magic_cmd='func_win32_libid'
4115   ;;
4116
4117 mingw* | pw32*)
4118   # Base MSYS/MinGW do not provide the 'file' command needed by
4119   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4120   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4121   lt_cv_file_magic_cmd='$OBJDUMP -f'
4122   ;;
4123
4124 darwin* | rhapsody*)
4125   lt_cv_deplibs_check_method=pass_all
4126   ;;
4127
4128 freebsd* | kfreebsd*-gnu)
4129   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4130     case $host_cpu in
4131     i*86 )
4132       # Not sure whether the presence of OpenBSD here was a mistake.
4133       # Let's accept both of them until this is cleared up.
4134       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4135       lt_cv_file_magic_cmd=/usr/bin/file
4136       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4137       ;;
4138     esac
4139   else
4140     lt_cv_deplibs_check_method=pass_all
4141   fi
4142   ;;
4143
4144 gnu*)
4145   lt_cv_deplibs_check_method=pass_all
4146   ;;
4147
4148 hpux10.20* | hpux11*)
4149   lt_cv_file_magic_cmd=/usr/bin/file
4150   case "$host_cpu" in
4151   ia64*)
4152     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4153     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4154     ;;
4155   hppa*64*)
4156     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]'
4157     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4158     ;;
4159   *)
4160     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4161     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4162     ;;
4163   esac
4164   ;;
4165
4166 irix5* | irix6* | nonstopux*)
4167   case $LD in
4168   *-32|*"-32 ") libmagic=32-bit;;
4169   *-n32|*"-n32 ") libmagic=N32;;
4170   *-64|*"-64 ") libmagic=64-bit;;
4171   *) libmagic=never-match;;
4172   esac
4173   lt_cv_deplibs_check_method=pass_all
4174   ;;
4175
4176 # This must be Linux ELF.
4177 linux*)
4178   lt_cv_deplibs_check_method=pass_all
4179   ;;
4180
4181 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4182   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4183     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4184   else
4185     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4186   fi
4187   ;;
4188
4189 newos6*)
4190   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4191   lt_cv_file_magic_cmd=/usr/bin/file
4192   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4193   ;;
4194
4195 nto-qnx*)
4196   lt_cv_deplibs_check_method=unknown
4197   ;;
4198
4199 openbsd*)
4200   lt_cv_file_magic_cmd=/usr/bin/file
4201   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4202   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4203     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4204   else
4205     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4206   fi
4207   ;;
4208
4209 osf3* | osf4* | osf5*)
4210   lt_cv_deplibs_check_method=pass_all
4211   ;;
4212
4213 sco3.2v5*)
4214   lt_cv_deplibs_check_method=pass_all
4215   ;;
4216
4217 solaris*)
4218   lt_cv_deplibs_check_method=pass_all
4219   ;;
4220
4221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4222   case $host_vendor in
4223   motorola)
4224     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]'
4225     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4226     ;;
4227   ncr)
4228     lt_cv_deplibs_check_method=pass_all
4229     ;;
4230   sequent)
4231     lt_cv_file_magic_cmd='/bin/file'
4232     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4233     ;;
4234   sni)
4235     lt_cv_file_magic_cmd='/bin/file'
4236     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4237     lt_cv_file_magic_test_file=/lib/libc.so
4238     ;;
4239   siemens)
4240     lt_cv_deplibs_check_method=pass_all
4241     ;;
4242   esac
4243   ;;
4244
4245 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4246   lt_cv_deplibs_check_method=pass_all
4247   ;;
4248 esac
4249
4250 fi
4251 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4252 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4253 file_magic_cmd=$lt_cv_file_magic_cmd
4254 deplibs_check_method=$lt_cv_deplibs_check_method
4255 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4256
4257
4258
4259
4260 # If no C compiler was specified, use CC.
4261 LTCC=${LTCC-"$CC"}
4262
4263 # Allow CC to be a program name with arguments.
4264 compiler=$CC
4265
4266 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4267 if test "${enable_libtool_lock+set}" = set; then
4268   enableval="$enable_libtool_lock"
4269
4270 fi;
4271 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4272
4273 # Some flags need to be propagated to the compiler or linker for good
4274 # libtool support.
4275 case $host in
4276 ia64-*-hpux*)
4277   # Find out which ABI we are using.
4278   echo 'int i;' > conftest.$ac_ext
4279   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280   (eval $ac_compile) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; then
4284     case `/usr/bin/file conftest.$ac_objext` in
4285     *ELF-32*)
4286       HPUX_IA64_MODE="32"
4287       ;;
4288     *ELF-64*)
4289       HPUX_IA64_MODE="64"
4290       ;;
4291     esac
4292   fi
4293   rm -rf conftest*
4294   ;;
4295 *-*-irix6*)
4296   # Find out which ABI we are using.
4297   echo '#line 4297 "configure"' > conftest.$ac_ext
4298   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4299   (eval $ac_compile) 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); }; then
4303    if test "$lt_cv_prog_gnu_ld" = yes; then
4304     case `/usr/bin/file conftest.$ac_objext` in
4305     *32-bit*)
4306       LD="${LD-ld} -melf32bsmip"
4307       ;;
4308     *N32*)
4309       LD="${LD-ld} -melf32bmipn32"
4310       ;;
4311     *64-bit*)
4312       LD="${LD-ld} -melf64bmip"
4313       ;;
4314     esac
4315    else
4316     case `/usr/bin/file conftest.$ac_objext` in
4317     *32-bit*)
4318       LD="${LD-ld} -32"
4319       ;;
4320     *N32*)
4321       LD="${LD-ld} -n32"
4322       ;;
4323     *64-bit*)
4324       LD="${LD-ld} -64"
4325       ;;
4326     esac
4327    fi
4328   fi
4329   rm -rf conftest*
4330   ;;
4331
4332 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4333   # Find out which ABI we are using.
4334   echo 'int i;' > conftest.$ac_ext
4335   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336   (eval $ac_compile) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; then
4340     case "`/usr/bin/file conftest.o`" in
4341     *32-bit*)
4342       case $host in
4343         x86_64-*linux*)
4344           LD="${LD-ld} -m elf_i386"
4345           ;;
4346         ppc64-*linux*|powerpc64-*linux*)
4347           LD="${LD-ld} -m elf32ppclinux"
4348           ;;
4349         s390x-*linux*)
4350           LD="${LD-ld} -m elf_s390"
4351           ;;
4352         sparc64-*linux*)
4353           LD="${LD-ld} -m elf32_sparc"
4354           ;;
4355       esac
4356       ;;
4357     *64-bit*)
4358       case $host in
4359         x86_64-*linux*)
4360           LD="${LD-ld} -m elf_x86_64"
4361           ;;
4362         ppc*-*linux*|powerpc*-*linux*)
4363           LD="${LD-ld} -m elf64ppc"
4364           ;;
4365         s390*-*linux*)
4366           LD="${LD-ld} -m elf64_s390"
4367           ;;
4368         sparc*-*linux*)
4369           LD="${LD-ld} -m elf64_sparc"
4370           ;;
4371       esac
4372       ;;
4373     esac
4374   fi
4375   rm -rf conftest*
4376   ;;
4377
4378 *-*-sco3.2v5*)
4379   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4380   SAVE_CFLAGS="$CFLAGS"
4381   CFLAGS="$CFLAGS -belf"
4382   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4383 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4384 if test "${lt_cv_cc_needs_belf+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392
4393      cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h.  */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h.  */
4399
4400 int
4401 main ()
4402 {
4403
4404   ;
4405   return 0;
4406 }
4407 _ACEOF
4408 rm -f conftest.$ac_objext conftest$ac_exeext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4410   (eval $ac_link) 2>conftest.er1
4411   ac_status=$?
4412   grep -v '^ *+' conftest.er1 >conftest.err
4413   rm -f conftest.er1
4414   cat conftest.err >&5
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); } &&
4417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419   (eval $ac_try) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; } &&
4423          { ac_try='test -s conftest$ac_exeext'
4424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425   (eval $ac_try) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); }; }; then
4429   lt_cv_cc_needs_belf=yes
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434 lt_cv_cc_needs_belf=no
4435 fi
4436 rm -f conftest.err conftest.$ac_objext \
4437       conftest$ac_exeext conftest.$ac_ext
4438      ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443
4444 fi
4445 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4446 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4447   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4448     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4449     CFLAGS="$SAVE_CFLAGS"
4450   fi
4451   ;;
4452
4453 esac
4454
4455 need_locks="$enable_libtool_lock"
4456
4457
4458 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4459 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4460 if test "${ac_cv_header_stdc+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h.  */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h.  */
4469 #include <stdlib.h>
4470 #include <stdarg.h>
4471 #include <string.h>
4472 #include <float.h>
4473
4474 int
4475 main ()
4476 {
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484   (eval $ac_compile) 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } &&
4491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493   (eval $ac_try) 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); }; } &&
4497          { ac_try='test -s conftest.$ac_objext'
4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499   (eval $ac_try) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; }; then
4503   ac_cv_header_stdc=yes
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_cv_header_stdc=no
4509 fi
4510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4511
4512 if test $ac_cv_header_stdc = yes; then
4513   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514   cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h.  */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h.  */
4520 #include <string.h>
4521
4522 _ACEOF
4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524   $EGREP "memchr" >/dev/null 2>&1; then
4525   :
4526 else
4527   ac_cv_header_stdc=no
4528 fi
4529 rm -f conftest*
4530
4531 fi
4532
4533 if test $ac_cv_header_stdc = yes; then
4534   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535   cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h.  */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h.  */
4541 #include <stdlib.h>
4542
4543 _ACEOF
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545   $EGREP "free" >/dev/null 2>&1; then
4546   :
4547 else
4548   ac_cv_header_stdc=no
4549 fi
4550 rm -f conftest*
4551
4552 fi
4553
4554 if test $ac_cv_header_stdc = yes; then
4555   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556   if test "$cross_compiling" = yes; then
4557   :
4558 else
4559   cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565 #include <ctype.h>
4566 #if ((' ' & 0x0FF) == 0x020)
4567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569 #else
4570 # define ISLOWER(c) \
4571                    (('a' <= (c) && (c) <= 'i') \
4572                      || ('j' <= (c) && (c) <= 'r') \
4573                      || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575 #endif
4576
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578 int
4579 main ()
4580 {
4581   int i;
4582   for (i = 0; i < 256; i++)
4583     if (XOR (islower (i), ISLOWER (i))
4584         || toupper (i) != TOUPPER (i))
4585       exit(2);
4586   exit (0);
4587 }
4588 _ACEOF
4589 rm -f conftest$ac_exeext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591   (eval $ac_link) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596   (eval $ac_try) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; }; then
4600   :
4601 else
4602   echo "$as_me: program exited with status $ac_status" >&5
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ( exit $ac_status )
4607 ac_cv_header_stdc=no
4608 fi
4609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 fi
4612 fi
4613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615 if test $ac_cv_header_stdc = yes; then
4616
4617 cat >>confdefs.h <<\_ACEOF
4618 #define STDC_HEADERS 1
4619 _ACEOF
4620
4621 fi
4622
4623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634                   inttypes.h stdint.h unistd.h
4635 do
4636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648 $ac_includes_default
4649
4650 #include <$ac_header>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654   (eval $ac_compile) 2>conftest.er1
4655   ac_status=$?
4656   grep -v '^ *+' conftest.er1 >conftest.err
4657   rm -f conftest.er1
4658   cat conftest.err >&5
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } &&
4661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; } &&
4667          { ac_try='test -s conftest.$ac_objext'
4668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669   (eval $ac_try) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; }; then
4673   eval "$as_ac_Header=yes"
4674 else
4675   echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 eval "$as_ac_Header=no"
4679 fi
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 fi
4682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685   cat >>confdefs.h <<_ACEOF
4686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687 _ACEOF
4688
4689 fi
4690
4691 done
4692
4693
4694
4695 for ac_header in dlfcn.h
4696 do
4697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699   echo "$as_me:$LINENO: checking for $ac_header" >&5
4700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 fi
4704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4706 else
4707   # Is the header compilable?
4708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
4717 #include <$ac_header>
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721   (eval $ac_compile) 2>conftest.er1
4722   ac_status=$?
4723   grep -v '^ *+' conftest.er1 >conftest.err
4724   rm -f conftest.er1
4725   cat conftest.err >&5
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); } &&
4728          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730   (eval $ac_try) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; } &&
4734          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4740   ac_header_compiler=yes
4741 else
4742   echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745 ac_header_compiler=no
4746 fi
4747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4749 echo "${ECHO_T}$ac_header_compiler" >&6
4750
4751 # Is the header present?
4752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760 #include <$ac_header>
4761 _ACEOF
4762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4764   ac_status=$?
4765   grep -v '^ *+' conftest.er1 >conftest.err
4766   rm -f conftest.er1
4767   cat conftest.err >&5
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); } >/dev/null; then
4770   if test -s conftest.err; then
4771     ac_cpp_err=$ac_c_preproc_warn_flag
4772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4773   else
4774     ac_cpp_err=
4775   fi
4776 else
4777   ac_cpp_err=yes
4778 fi
4779 if test -z "$ac_cpp_err"; then
4780   ac_header_preproc=yes
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785   ac_header_preproc=no
4786 fi
4787 rm -f conftest.err conftest.$ac_ext
4788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4789 echo "${ECHO_T}$ac_header_preproc" >&6
4790
4791 # So?  What about this header?
4792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4793   yes:no: )
4794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4798     ac_header_preproc=yes
4799     ;;
4800   no:yes:* )
4801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4813     (
4814       cat <<\_ASBOX
4815 ## ------------------------------------------ ##
4816 ## Report this to the AC_PACKAGE_NAME lists.  ##
4817 ## ------------------------------------------ ##
4818 _ASBOX
4819     ) |
4820       sed "s/^/$as_me: WARNING:     /" >&2
4821     ;;
4822 esac
4823 echo "$as_me:$LINENO: checking for $ac_header" >&5
4824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   eval "$as_ac_Header=\$ac_header_preproc"
4829 fi
4830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4832
4833 fi
4834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4835   cat >>confdefs.h <<_ACEOF
4836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4837 _ACEOF
4838
4839 fi
4840
4841 done
4842
4843 ac_ext=cc
4844 ac_cpp='$CXXCPP $CPPFLAGS'
4845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4848 if test -n "$ac_tool_prefix"; then
4849   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4850   do
4851     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853 echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4855 if test "${ac_cv_prog_CXX+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   if test -n "$CXX"; then
4859   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874
4875 fi
4876 fi
4877 CXX=$ac_cv_prog_CXX
4878 if test -n "$CXX"; then
4879   echo "$as_me:$LINENO: result: $CXX" >&5
4880 echo "${ECHO_T}$CXX" >&6
4881 else
4882   echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6
4884 fi
4885
4886     test -n "$CXX" && break
4887   done
4888 fi
4889 if test -z "$CXX"; then
4890   ac_ct_CXX=$CXX
4891   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4892 do
4893   # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -n "$ac_ct_CXX"; then
4901   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_exec_ext in '' $ac_executable_extensions; do
4909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910     ac_cv_prog_ac_ct_CXX="$ac_prog"
4911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915 done
4916
4917 fi
4918 fi
4919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4920 if test -n "$ac_ct_CXX"; then
4921   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4922 echo "${ECHO_T}$ac_ct_CXX" >&6
4923 else
4924   echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6
4926 fi
4927
4928   test -n "$ac_ct_CXX" && break
4929 done
4930 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4931
4932   CXX=$ac_ct_CXX
4933 fi
4934
4935
4936 # Provide some information about the compiler.
4937 echo "$as_me:$LINENO:" \
4938      "checking for C++ compiler version" >&5
4939 ac_compiler=`set X $ac_compile; echo $2`
4940 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4941   (eval $ac_compiler --version </dev/null >&5) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }
4945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4946   (eval $ac_compiler -v </dev/null >&5) 2>&5
4947   ac_status=$?
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); }
4950 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4951   (eval $ac_compiler -V </dev/null >&5) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }
4955
4956 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967
4968 int
4969 main ()
4970 {
4971 #ifndef __GNUC__
4972        choke me
4973 #endif
4974
4975   ;
4976   return 0;
4977 }
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981   (eval $ac_compile) 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } &&
4988          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; } &&
4994          { ac_try='test -s conftest.$ac_objext'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; }; then
5000   ac_compiler_gnu=yes
5001 else
5002   echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 ac_compiler_gnu=no
5006 fi
5007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5008 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5009
5010 fi
5011 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5012 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5013 GXX=`test $ac_compiler_gnu = yes && echo yes`
5014 ac_test_CXXFLAGS=${CXXFLAGS+set}
5015 ac_save_CXXFLAGS=$CXXFLAGS
5016 CXXFLAGS="-g"
5017 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5018 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5019 if test "${ac_cv_prog_cxx_g+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h.  */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h.  */
5028
5029 int
5030 main ()
5031 {
5032
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039   (eval $ac_compile) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } &&
5046          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048   (eval $ac_try) 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; } &&
5052          { ac_try='test -s conftest.$ac_objext'
5053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054   (eval $ac_try) 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); }; }; then
5058   ac_cv_prog_cxx_g=yes
5059 else
5060   echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_cv_prog_cxx_g=no
5064 fi
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 fi
5067 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5068 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5069 if test "$ac_test_CXXFLAGS" = set; then
5070   CXXFLAGS=$ac_save_CXXFLAGS
5071 elif test $ac_cv_prog_cxx_g = yes; then
5072   if test "$GXX" = yes; then
5073     CXXFLAGS="-g -O2"
5074   else
5075     CXXFLAGS="-g"
5076   fi
5077 else
5078   if test "$GXX" = yes; then
5079     CXXFLAGS="-O2"
5080   else
5081     CXXFLAGS=
5082   fi
5083 fi
5084 for ac_declaration in \
5085    '' \
5086    'extern "C" void std::exit (int) throw (); using std::exit;' \
5087    'extern "C" void std::exit (int); using std::exit;' \
5088    'extern "C" void exit (int) throw ();' \
5089    'extern "C" void exit (int);' \
5090    'void exit (int);'
5091 do
5092   cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h.  */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h.  */
5098 $ac_declaration
5099 #include <stdlib.h>
5100 int
5101 main ()
5102 {
5103 exit (42);
5104   ;
5105   return 0;
5106 }
5107 _ACEOF
5108 rm -f conftest.$ac_objext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110   (eval $ac_compile) 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } &&
5117          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; } &&
5123          { ac_try='test -s conftest.$ac_objext'
5124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125   (eval $ac_try) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; }; then
5129   :
5130 else
5131   echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5133
5134 continue
5135 fi
5136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 $ac_declaration
5144 int
5145 main ()
5146 {
5147 exit (42);
5148   ;
5149   return 0;
5150 }
5151 _ACEOF
5152 rm -f conftest.$ac_objext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5154   (eval $ac_compile) 2>conftest.er1
5155   ac_status=$?
5156   grep -v '^ *+' conftest.er1 >conftest.err
5157   rm -f conftest.er1
5158   cat conftest.err >&5
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); } &&
5161          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163   (eval $ac_try) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }; } &&
5167          { ac_try='test -s conftest.$ac_objext'
5168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169   (eval $ac_try) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); }; }; then
5173   break
5174 else
5175   echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178 fi
5179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180 done
5181 rm -f conftest*
5182 if test -n "$ac_declaration"; then
5183   echo '#ifdef __cplusplus' >>confdefs.h
5184   echo $ac_declaration      >>confdefs.h
5185   echo '#endif'             >>confdefs.h
5186 fi
5187
5188 ac_ext=cc
5189 ac_cpp='$CXXCPP $CPPFLAGS'
5190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5193
5194 ac_ext=cc
5195 ac_cpp='$CXXCPP $CPPFLAGS'
5196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5199 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5200 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5201 if test -z "$CXXCPP"; then
5202   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205       # Double quotes because CXXCPP needs to be expanded
5206     for CXXCPP in "$CXX -E" "/lib/cpp"
5207     do
5208       ac_preproc_ok=false
5209 for ac_cxx_preproc_warn_flag in '' yes
5210 do
5211   # Use a header file that comes with gcc, so configuring glibc
5212   # with a fresh cross-compiler works.
5213   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214   # <limits.h> exists even on freestanding compilers.
5215   # On the NeXT, cc -E runs the code through the compiler's parser,
5216   # not just through cpp. "Syntax error" is here to catch this case.
5217   cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223 #ifdef __STDC__
5224 # include <limits.h>
5225 #else
5226 # include <assert.h>
5227 #endif
5228                      Syntax error
5229 _ACEOF
5230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } >/dev/null; then
5238   if test -s conftest.err; then
5239     ac_cpp_err=$ac_cxx_preproc_warn_flag
5240     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5241   else
5242     ac_cpp_err=
5243   fi
5244 else
5245   ac_cpp_err=yes
5246 fi
5247 if test -z "$ac_cpp_err"; then
5248   :
5249 else
5250   echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253   # Broken: fails on valid input.
5254 continue
5255 fi
5256 rm -f conftest.err conftest.$ac_ext
5257
5258   # OK, works on sane cases.  Now check whether non-existent headers
5259   # can be detected and how.
5260   cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h.  */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h.  */
5266 #include <ac_nonexistent.h>
5267 _ACEOF
5268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } >/dev/null; then
5276   if test -s conftest.err; then
5277     ac_cpp_err=$ac_cxx_preproc_warn_flag
5278     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5279   else
5280     ac_cpp_err=
5281   fi
5282 else
5283   ac_cpp_err=yes
5284 fi
5285 if test -z "$ac_cpp_err"; then
5286   # Broken: success on invalid input.
5287 continue
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292   # Passes both tests.
5293 ac_preproc_ok=:
5294 break
5295 fi
5296 rm -f conftest.err conftest.$ac_ext
5297
5298 done
5299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5300 rm -f conftest.err conftest.$ac_ext
5301 if $ac_preproc_ok; then
5302   break
5303 fi
5304
5305     done
5306     ac_cv_prog_CXXCPP=$CXXCPP
5307
5308 fi
5309   CXXCPP=$ac_cv_prog_CXXCPP
5310 else
5311   ac_cv_prog_CXXCPP=$CXXCPP
5312 fi
5313 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5314 echo "${ECHO_T}$CXXCPP" >&6
5315 ac_preproc_ok=false
5316 for ac_cxx_preproc_warn_flag in '' yes
5317 do
5318   # Use a header file that comes with gcc, so configuring glibc
5319   # with a fresh cross-compiler works.
5320   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5321   # <limits.h> exists even on freestanding compilers.
5322   # On the NeXT, cc -E runs the code through the compiler's parser,
5323   # not just through cpp. "Syntax error" is here to catch this case.
5324   cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h.  */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h.  */
5330 #ifdef __STDC__
5331 # include <limits.h>
5332 #else
5333 # include <assert.h>
5334 #endif
5335                      Syntax error
5336 _ACEOF
5337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5339   ac_status=$?
5340   grep -v '^ *+' conftest.er1 >conftest.err
5341   rm -f conftest.er1
5342   cat conftest.err >&5
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); } >/dev/null; then
5345   if test -s conftest.err; then
5346     ac_cpp_err=$ac_cxx_preproc_warn_flag
5347     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5348   else
5349     ac_cpp_err=
5350   fi
5351 else
5352   ac_cpp_err=yes
5353 fi
5354 if test -z "$ac_cpp_err"; then
5355   :
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360   # Broken: fails on valid input.
5361 continue
5362 fi
5363 rm -f conftest.err conftest.$ac_ext
5364
5365   # OK, works on sane cases.  Now check whether non-existent headers
5366   # can be detected and how.
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 #include <ac_nonexistent.h>
5374 _ACEOF
5375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5377   ac_status=$?
5378   grep -v '^ *+' conftest.er1 >conftest.err
5379   rm -f conftest.er1
5380   cat conftest.err >&5
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } >/dev/null; then
5383   if test -s conftest.err; then
5384     ac_cpp_err=$ac_cxx_preproc_warn_flag
5385     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5386   else
5387     ac_cpp_err=
5388   fi
5389 else
5390   ac_cpp_err=yes
5391 fi
5392 if test -z "$ac_cpp_err"; then
5393   # Broken: success on invalid input.
5394 continue
5395 else
5396   echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399   # Passes both tests.
5400 ac_preproc_ok=:
5401 break
5402 fi
5403 rm -f conftest.err conftest.$ac_ext
5404
5405 done
5406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407 rm -f conftest.err conftest.$ac_ext
5408 if $ac_preproc_ok; then
5409   :
5410 else
5411   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5412 See \`config.log' for more details." >&5
5413 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5414 See \`config.log' for more details." >&2;}
5415    { (exit 1); exit 1; }; }
5416 fi
5417
5418 ac_ext=cc
5419 ac_cpp='$CXXCPP $CPPFLAGS'
5420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5423
5424
5425 ac_ext=f
5426 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5427 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5429 if test -n "$ac_tool_prefix"; then
5430   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5431   do
5432     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_prog_F77+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   if test -n "$F77"; then
5440   ac_cv_prog_F77="$F77" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447   for ac_exec_ext in '' $ac_executable_extensions; do
5448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454 done
5455
5456 fi
5457 fi
5458 F77=$ac_cv_prog_F77
5459 if test -n "$F77"; then
5460   echo "$as_me:$LINENO: result: $F77" >&5
5461 echo "${ECHO_T}$F77" >&6
5462 else
5463   echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6
5465 fi
5466
5467     test -n "$F77" && break
5468   done
5469 fi
5470 if test -z "$F77"; then
5471   ac_ct_F77=$F77
5472   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5473 do
5474   # Extract the first word of "$ac_prog", so it can be a program name with args.
5475 set dummy $ac_prog; ac_word=$2
5476 echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5479   echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481   if test -n "$ac_ct_F77"; then
5482   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489   for ac_exec_ext in '' $ac_executable_extensions; do
5490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491     ac_cv_prog_ac_ct_F77="$ac_prog"
5492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493     break 2
5494   fi
5495 done
5496 done
5497
5498 fi
5499 fi
5500 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5501 if test -n "$ac_ct_F77"; then
5502   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5503 echo "${ECHO_T}$ac_ct_F77" >&6
5504 else
5505   echo "$as_me:$LINENO: result: no" >&5
5506 echo "${ECHO_T}no" >&6
5507 fi
5508
5509   test -n "$ac_ct_F77" && break
5510 done
5511
5512   F77=$ac_ct_F77
5513 fi
5514
5515
5516 # Provide some information about the compiler.
5517 echo "$as_me:5517:" \
5518      "checking for Fortran 77 compiler version" >&5
5519 ac_compiler=`set X $ac_compile; echo $2`
5520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5521   (eval $ac_compiler --version </dev/null >&5) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }
5525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5526   (eval $ac_compiler -v </dev/null >&5) 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }
5530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5531   (eval $ac_compiler -V </dev/null >&5) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }
5535 rm -f a.out
5536
5537 # If we don't use `.F' as extension, the preprocessor is not run on the
5538 # input file.  (Note that this only needs to work for GNU compilers.)
5539 ac_save_ext=$ac_ext
5540 ac_ext=F
5541 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5542 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5543 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   cat >conftest.$ac_ext <<_ACEOF
5547       program main
5548 #ifndef __GNUC__
5549        choke me
5550 #endif
5551
5552       end
5553 _ACEOF
5554 rm -f conftest.$ac_objext
5555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556   (eval $ac_compile) 2>conftest.er1
5557   ac_status=$?
5558   grep -v '^ *+' conftest.er1 >conftest.err
5559   rm -f conftest.er1
5560   cat conftest.err >&5
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); } &&
5563          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565   (eval $ac_try) 2>&5
5566   ac_status=$?
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); }; } &&
5569          { ac_try='test -s conftest.$ac_objext'
5570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571   (eval $ac_try) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }; }; then
5575   ac_compiler_gnu=yes
5576 else
5577   echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5579
5580 ac_compiler_gnu=no
5581 fi
5582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5583 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5584
5585 fi
5586 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5587 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5588 ac_ext=$ac_save_ext
5589 ac_test_FFLAGS=${FFLAGS+set}
5590 ac_save_FFLAGS=$FFLAGS
5591 FFLAGS=
5592 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5593 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5594 if test "${ac_cv_prog_f77_g+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   FFLAGS=-g
5598 cat >conftest.$ac_ext <<_ACEOF
5599       program main
5600
5601       end
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605   (eval $ac_compile) 2>conftest.er1
5606   ac_status=$?
5607   grep -v '^ *+' conftest.er1 >conftest.err
5608   rm -f conftest.er1
5609   cat conftest.err >&5
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } &&
5612          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614   (eval $ac_try) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }; } &&
5618          { ac_try='test -s conftest.$ac_objext'
5619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620   (eval $ac_try) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); }; }; then
5624   ac_cv_prog_f77_g=yes
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 ac_cv_prog_f77_g=no
5630 fi
5631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5632
5633 fi
5634 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5635 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5636 if test "$ac_test_FFLAGS" = set; then
5637   FFLAGS=$ac_save_FFLAGS
5638 elif test $ac_cv_prog_f77_g = yes; then
5639   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5640     FFLAGS="-g -O2"
5641   else
5642     FFLAGS="-g"
5643   fi
5644 else
5645   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5646     FFLAGS="-O2"
5647   else
5648     FFLAGS=
5649   fi
5650 fi
5651
5652 G77=`test $ac_compiler_gnu = yes && echo yes`
5653 ac_ext=c
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658
5659
5660
5661 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5662
5663 # find the maximum length of command line arguments
5664 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5665 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5666 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669     i=0
5670   teststring="ABCD"
5671
5672   case $build_os in
5673   msdosdjgpp*)
5674     # On DJGPP, this test can blow up pretty badly due to problems in libc
5675     # (any single argument exceeding 2000 bytes causes a buffer overrun
5676     # during glob expansion).  Even if it were fixed, the result of this
5677     # check would be larger than it should be.
5678     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5679     ;;
5680
5681   gnu*)
5682     # Under GNU Hurd, this test is not required because there is
5683     # no limit to the length of command line arguments.
5684     # Libtool will interpret -1 as no limit whatsoever
5685     lt_cv_sys_max_cmd_len=-1;
5686     ;;
5687
5688   cygwin* | mingw*)
5689     # On Win9x/ME, this test blows up -- it succeeds, but takes
5690     # about 5 minutes as the teststring grows exponentially.
5691     # Worse, since 9x/ME are not pre-emptively multitasking,
5692     # you end up with a "frozen" computer, even though with patience
5693     # the test eventually succeeds (with a max line length of 256k).
5694     # Instead, let's just punt: use the minimum linelength reported by
5695     # all of the supported platforms: 8192 (on NT/2K/XP).
5696     lt_cv_sys_max_cmd_len=8192;
5697     ;;
5698
5699   amigaos*)
5700     # On AmigaOS with pdksh, this test takes hours, literally.
5701     # So we just punt and use a minimum line length of 8192.
5702     lt_cv_sys_max_cmd_len=8192;
5703     ;;
5704
5705  *)
5706     # If test is not a shell built-in, we'll probably end up computing a
5707     # maximum length that is only half of the actual maximum length, but
5708     # we can't tell.
5709     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5710                = "XX$teststring") >/dev/null 2>&1 &&
5711             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5712             lt_cv_sys_max_cmd_len=$new_result &&
5713             test $i != 17 # 1/2 MB should be enough
5714     do
5715       i=`expr $i + 1`
5716       teststring=$teststring$teststring
5717     done
5718     teststring=
5719     # Add a significant safety factor because C++ compilers can tack on massive
5720     # amounts of additional arguments before passing them to the linker.
5721     # It appears as though 1/2 is a usable value.
5722     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5723     ;;
5724   esac
5725
5726 fi
5727
5728 if test -n $lt_cv_sys_max_cmd_len ; then
5729   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5730 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5731 else
5732   echo "$as_me:$LINENO: result: none" >&5
5733 echo "${ECHO_T}none" >&6
5734 fi
5735
5736
5737
5738
5739 # Check for command to grab the raw symbol name followed by C symbol from nm.
5740 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5741 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5742 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745
5746 # These are sane defaults that work on at least a few old systems.
5747 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5748
5749 # Character class describing NM global symbol codes.
5750 symcode='[BCDEGRST]'
5751
5752 # Regexp to match symbols that can be accessed directly from C.
5753 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5754
5755 # Transform the above into a raw symbol and a C symbol.
5756 symxfrm='\1 \2\3 \3'
5757
5758 # Transform an extracted symbol line into a proper C declaration
5759 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5760
5761 # Transform an extracted symbol line into symbol name and symbol address
5762 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'"
5763
5764 # Define system-specific variables.
5765 case $host_os in
5766 aix*)
5767   symcode='[BCDT]'
5768   ;;
5769 cygwin* | mingw* | pw32*)
5770   symcode='[ABCDGISTW]'
5771   ;;
5772 hpux*) # Its linker distinguishes data from code symbols
5773   if test "$host_cpu" = ia64; then
5774     symcode='[ABCDEGRST]'
5775   fi
5776   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5777   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'"
5778   ;;
5779 irix* | nonstopux*)
5780   symcode='[BCDEGRST]'
5781   ;;
5782 osf*)
5783   symcode='[BCDEGQRST]'
5784   ;;
5785 solaris* | sysv5*)
5786   symcode='[BDRT]'
5787   ;;
5788 sysv4)
5789   symcode='[DFNSTU]'
5790   ;;
5791 esac
5792
5793 # Handle CRLF in mingw tool chain
5794 opt_cr=
5795 case $build_os in
5796 mingw*)
5797   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5798   ;;
5799 esac
5800
5801 # If we're using GNU nm, then use its standard symbol codes.
5802 case `$NM -V 2>&1` in
5803 *GNU* | *'with BFD'*)
5804   symcode='[ABCDGIRSTW]' ;;
5805 esac
5806
5807 # Try without a prefix undercore, then with it.
5808 for ac_symprfx in "" "_"; do
5809
5810   # Write the raw and C identifiers.
5811   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5812
5813   # Check to see that the pipe works correctly.
5814   pipe_works=no
5815
5816   rm -f conftest*
5817   cat > conftest.$ac_ext <<EOF
5818 #ifdef __cplusplus
5819 extern "C" {
5820 #endif
5821 char nm_test_var;
5822 void nm_test_func(){}
5823 #ifdef __cplusplus
5824 }
5825 #endif
5826 int main(){nm_test_var='a';nm_test_func();return(0);}
5827 EOF
5828
5829   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830   (eval $ac_compile) 2>&5
5831   ac_status=$?
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); }; then
5834     # Now try to grab the symbols.
5835     nlist=conftest.nm
5836     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5837   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } && test -s "$nlist"; then
5841       # Try sorting and uniquifying the output.
5842       if sort "$nlist" | uniq > "$nlist"T; then
5843         mv -f "$nlist"T "$nlist"
5844       else
5845         rm -f "$nlist"T
5846       fi
5847
5848       # Make sure that we snagged all the symbols we need.
5849       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5850         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5851           cat <<EOF > conftest.$ac_ext
5852 #ifdef __cplusplus
5853 extern "C" {
5854 #endif
5855
5856 EOF
5857           # Now generate the symbol file.
5858           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5859
5860           cat <<EOF >> conftest.$ac_ext
5861 #if defined (__STDC__) && __STDC__
5862 # define lt_ptr_t void *
5863 #else
5864 # define lt_ptr_t char *
5865 # define const
5866 #endif
5867
5868 /* The mapping between symbol names and symbols. */
5869 const struct {
5870   const char *name;
5871   lt_ptr_t address;
5872 }
5873 lt_preloaded_symbols[] =
5874 {
5875 EOF
5876           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5877           cat <<\EOF >> conftest.$ac_ext
5878   {0, (lt_ptr_t) 0}
5879 };
5880
5881 #ifdef __cplusplus
5882 }
5883 #endif
5884 EOF
5885           # Now try linking the two files.
5886           mv conftest.$ac_objext conftstm.$ac_objext
5887           lt_save_LIBS="$LIBS"
5888           lt_save_CFLAGS="$CFLAGS"
5889           LIBS="conftstm.$ac_objext"
5890           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5891           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892   (eval $ac_link) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5896             pipe_works=yes
5897           fi
5898           LIBS="$lt_save_LIBS"
5899           CFLAGS="$lt_save_CFLAGS"
5900         else
5901           echo "cannot find nm_test_func in $nlist" >&5
5902         fi
5903       else
5904         echo "cannot find nm_test_var in $nlist" >&5
5905       fi
5906     else
5907       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5908     fi
5909   else
5910     echo "$progname: failed program was:" >&5
5911     cat conftest.$ac_ext >&5
5912   fi
5913   rm -f conftest* conftst*
5914
5915   # Do not use the global_symbol_pipe unless it works.
5916   if test "$pipe_works" = yes; then
5917     break
5918   else
5919     lt_cv_sys_global_symbol_pipe=
5920   fi
5921 done
5922
5923 fi
5924
5925 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5926   lt_cv_sys_global_symbol_to_cdecl=
5927 fi
5928 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5929   echo "$as_me:$LINENO: result: failed" >&5
5930 echo "${ECHO_T}failed" >&6
5931 else
5932   echo "$as_me:$LINENO: result: ok" >&5
5933 echo "${ECHO_T}ok" >&6
5934 fi
5935
5936 echo "$as_me:$LINENO: checking for objdir" >&5
5937 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5938 if test "${lt_cv_objdir+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   rm -f .libs 2>/dev/null
5942 mkdir .libs 2>/dev/null
5943 if test -d .libs; then
5944   lt_cv_objdir=.libs
5945 else
5946   # MS-DOS does not allow filenames that begin with a dot.
5947   lt_cv_objdir=_libs
5948 fi
5949 rmdir .libs 2>/dev/null
5950 fi
5951 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5952 echo "${ECHO_T}$lt_cv_objdir" >&6
5953 objdir=$lt_cv_objdir
5954
5955
5956
5957
5958
5959 case $host_os in
5960 aix3*)
5961   # AIX sometimes has problems with the GCC collect2 program.  For some
5962   # reason, if we set the COLLECT_NAMES environment variable, the problems
5963   # vanish in a puff of smoke.
5964   if test "X${COLLECT_NAMES+set}" != Xset; then
5965     COLLECT_NAMES=
5966     export COLLECT_NAMES
5967   fi
5968   ;;
5969 esac
5970
5971 # Sed substitution that helps us do robust quoting.  It backslashifies
5972 # metacharacters that are still active within double-quoted strings.
5973 Xsed='sed -e s/^X//'
5974 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5975
5976 # Same as above, but do not quote variable references.
5977 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5978
5979 # Sed substitution to delay expansion of an escaped shell variable in a
5980 # double_quote_subst'ed string.
5981 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5982
5983 # Sed substitution to avoid accidental globbing in evaled expressions
5984 no_glob_subst='s/\*/\\\*/g'
5985
5986 # Constants:
5987 rm="rm -f"
5988
5989 # Global variables:
5990 default_ofile=libtool
5991 can_build_shared=yes
5992
5993 # All known linkers require a `.a' archive for static linking (except M$VC,
5994 # which needs '.lib').
5995 libext=a
5996 ltmain="$ac_aux_dir/ltmain.sh"
5997 ofile="$default_ofile"
5998 with_gnu_ld="$lt_cv_prog_gnu_ld"
5999
6000 if test -n "$ac_tool_prefix"; then
6001   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6002 set dummy ${ac_tool_prefix}ar; ac_word=$2
6003 echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6005 if test "${ac_cv_prog_AR+set}" = set; then
6006   echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008   if test -n "$AR"; then
6009   ac_cv_prog_AR="$AR" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016   for ac_exec_ext in '' $ac_executable_extensions; do
6017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018     ac_cv_prog_AR="${ac_tool_prefix}ar"
6019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023 done
6024
6025 fi
6026 fi
6027 AR=$ac_cv_prog_AR
6028 if test -n "$AR"; then
6029   echo "$as_me:$LINENO: result: $AR" >&5
6030 echo "${ECHO_T}$AR" >&6
6031 else
6032   echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6
6034 fi
6035
6036 fi
6037 if test -z "$ac_cv_prog_AR"; then
6038   ac_ct_AR=$AR
6039   # Extract the first word of "ar", so it can be a program name with args.
6040 set dummy ar; ac_word=$2
6041 echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6043 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   if test -n "$ac_ct_AR"; then
6047   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054   for ac_exec_ext in '' $ac_executable_extensions; do
6055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056     ac_cv_prog_ac_ct_AR="ar"
6057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058     break 2
6059   fi
6060 done
6061 done
6062
6063   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6064 fi
6065 fi
6066 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6067 if test -n "$ac_ct_AR"; then
6068   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6069 echo "${ECHO_T}$ac_ct_AR" >&6
6070 else
6071   echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6
6073 fi
6074
6075   AR=$ac_ct_AR
6076 else
6077   AR="$ac_cv_prog_AR"
6078 fi
6079
6080 if test -n "$ac_tool_prefix"; then
6081   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6083 echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085 if test "${ac_cv_prog_RANLIB+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   if test -n "$RANLIB"; then
6089   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096   for ac_exec_ext in '' $ac_executable_extensions; do
6097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103 done
6104
6105 fi
6106 fi
6107 RANLIB=$ac_cv_prog_RANLIB
6108 if test -n "$RANLIB"; then
6109   echo "$as_me:$LINENO: result: $RANLIB" >&5
6110 echo "${ECHO_T}$RANLIB" >&6
6111 else
6112   echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6114 fi
6115
6116 fi
6117 if test -z "$ac_cv_prog_RANLIB"; then
6118   ac_ct_RANLIB=$RANLIB
6119   # Extract the first word of "ranlib", so it can be a program name with args.
6120 set dummy ranlib; ac_word=$2
6121 echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   if test -n "$ac_ct_RANLIB"; then
6127   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134   for ac_exec_ext in '' $ac_executable_extensions; do
6135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136     ac_cv_prog_ac_ct_RANLIB="ranlib"
6137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138     break 2
6139   fi
6140 done
6141 done
6142
6143   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6144 fi
6145 fi
6146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6147 if test -n "$ac_ct_RANLIB"; then
6148   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6149 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6150 else
6151   echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6
6153 fi
6154
6155   RANLIB=$ac_ct_RANLIB
6156 else
6157   RANLIB="$ac_cv_prog_RANLIB"
6158 fi
6159
6160 if test -n "$ac_tool_prefix"; then
6161   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}strip; ac_word=$2
6163 echo "$as_me:$LINENO: checking for $ac_word" >&5
6164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6165 if test "${ac_cv_prog_STRIP+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   if test -n "$STRIP"; then
6169   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174   IFS=$as_save_IFS
6175   test -z "$as_dir" && as_dir=.
6176   for ac_exec_ext in '' $ac_executable_extensions; do
6177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180     break 2
6181   fi
6182 done
6183 done
6184
6185 fi
6186 fi
6187 STRIP=$ac_cv_prog_STRIP
6188 if test -n "$STRIP"; then
6189   echo "$as_me:$LINENO: result: $STRIP" >&5
6190 echo "${ECHO_T}$STRIP" >&6
6191 else
6192   echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6
6194 fi
6195
6196 fi
6197 if test -z "$ac_cv_prog_STRIP"; then
6198   ac_ct_STRIP=$STRIP
6199   # Extract the first word of "strip", so it can be a program name with args.
6200 set dummy strip; ac_word=$2
6201 echo "$as_me:$LINENO: checking for $ac_word" >&5
6202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6203 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   if test -n "$ac_ct_STRIP"; then
6207   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214   for ac_exec_ext in '' $ac_executable_extensions; do
6215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216     ac_cv_prog_ac_ct_STRIP="strip"
6217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218     break 2
6219   fi
6220 done
6221 done
6222
6223   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6224 fi
6225 fi
6226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6227 if test -n "$ac_ct_STRIP"; then
6228   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6229 echo "${ECHO_T}$ac_ct_STRIP" >&6
6230 else
6231   echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6
6233 fi
6234
6235   STRIP=$ac_ct_STRIP
6236 else
6237   STRIP="$ac_cv_prog_STRIP"
6238 fi
6239
6240
6241 old_CC="$CC"
6242 old_CFLAGS="$CFLAGS"
6243
6244 # Set sane defaults for various variables
6245 test -z "$AR" && AR=ar
6246 test -z "$AR_FLAGS" && AR_FLAGS=cru
6247 test -z "$AS" && AS=as
6248 test -z "$CC" && CC=cc
6249 test -z "$LTCC" && LTCC=$CC
6250 test -z "$DLLTOOL" && DLLTOOL=dlltool
6251 test -z "$LD" && LD=ld
6252 test -z "$LN_S" && LN_S="ln -s"
6253 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6254 test -z "$NM" && NM=nm
6255 test -z "$SED" && SED=sed
6256 test -z "$OBJDUMP" && OBJDUMP=objdump
6257 test -z "$RANLIB" && RANLIB=:
6258 test -z "$STRIP" && STRIP=:
6259 test -z "$ac_objext" && ac_objext=o
6260
6261 # Determine commands to create old-style static archives.
6262 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6263 old_postinstall_cmds='chmod 644 $oldlib'
6264 old_postuninstall_cmds=
6265
6266 if test -n "$RANLIB"; then
6267   case $host_os in
6268   openbsd*)
6269     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6270     ;;
6271   *)
6272     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6273     ;;
6274   esac
6275   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6276 fi
6277
6278 # Only perform the check for file, if the check method requires it
6279 case $deplibs_check_method in
6280 file_magic*)
6281   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6282     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6283 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   case $MAGIC_CMD in
6288 [\\/*] |  ?:[\\/]*)
6289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6290   ;;
6291 *)
6292   lt_save_MAGIC_CMD="$MAGIC_CMD"
6293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6294   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6295   for ac_dir in $ac_dummy; do
6296     IFS="$lt_save_ifs"
6297     test -z "$ac_dir" && ac_dir=.
6298     if test -f $ac_dir/${ac_tool_prefix}file; then
6299       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6300       if test -n "$file_magic_test_file"; then
6301         case $deplibs_check_method in
6302         "file_magic "*)
6303           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6306             $EGREP "$file_magic_regex" > /dev/null; then
6307             :
6308           else
6309             cat <<EOF 1>&2
6310
6311 *** Warning: the command libtool uses to detect shared libraries,
6312 *** $file_magic_cmd, produces output that libtool cannot recognize.
6313 *** The result is that libtool may fail to recognize shared libraries
6314 *** as such.  This will affect the creation of libtool libraries that
6315 *** depend on shared libraries, but programs linked with such libtool
6316 *** libraries will work regardless of this problem.  Nevertheless, you
6317 *** may want to report the problem to your system manager and/or to
6318 *** bug-libtool@gnu.org
6319
6320 EOF
6321           fi ;;
6322         esac
6323       fi
6324       break
6325     fi
6326   done
6327   IFS="$lt_save_ifs"
6328   MAGIC_CMD="$lt_save_MAGIC_CMD"
6329   ;;
6330 esac
6331 fi
6332
6333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6334 if test -n "$MAGIC_CMD"; then
6335   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6336 echo "${ECHO_T}$MAGIC_CMD" >&6
6337 else
6338   echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6
6340 fi
6341
6342 if test -z "$lt_cv_path_MAGIC_CMD"; then
6343   if test -n "$ac_tool_prefix"; then
6344     echo "$as_me:$LINENO: checking for file" >&5
6345 echo $ECHO_N "checking for file... $ECHO_C" >&6
6346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   case $MAGIC_CMD in
6350 [\\/*] |  ?:[\\/]*)
6351   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6352   ;;
6353 *)
6354   lt_save_MAGIC_CMD="$MAGIC_CMD"
6355   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6356   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6357   for ac_dir in $ac_dummy; do
6358     IFS="$lt_save_ifs"
6359     test -z "$ac_dir" && ac_dir=.
6360     if test -f $ac_dir/file; then
6361       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6362       if test -n "$file_magic_test_file"; then
6363         case $deplibs_check_method in
6364         "file_magic "*)
6365           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6366           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6367           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6368             $EGREP "$file_magic_regex" > /dev/null; then
6369             :
6370           else
6371             cat <<EOF 1>&2
6372
6373 *** Warning: the command libtool uses to detect shared libraries,
6374 *** $file_magic_cmd, produces output that libtool cannot recognize.
6375 *** The result is that libtool may fail to recognize shared libraries
6376 *** as such.  This will affect the creation of libtool libraries that
6377 *** depend on shared libraries, but programs linked with such libtool
6378 *** libraries will work regardless of this problem.  Nevertheless, you
6379 *** may want to report the problem to your system manager and/or to
6380 *** bug-libtool@gnu.org
6381
6382 EOF
6383           fi ;;
6384         esac
6385       fi
6386       break
6387     fi
6388   done
6389   IFS="$lt_save_ifs"
6390   MAGIC_CMD="$lt_save_MAGIC_CMD"
6391   ;;
6392 esac
6393 fi
6394
6395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6396 if test -n "$MAGIC_CMD"; then
6397   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6398 echo "${ECHO_T}$MAGIC_CMD" >&6
6399 else
6400   echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6
6402 fi
6403
6404   else
6405     MAGIC_CMD=:
6406   fi
6407 fi
6408
6409   fi
6410   ;;
6411 esac
6412
6413 enable_dlopen=yes
6414 enable_win32_dll=no
6415
6416 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6417 if test "${enable_libtool_lock+set}" = set; then
6418   enableval="$enable_libtool_lock"
6419
6420 fi;
6421 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6422
6423
6424 # Check whether --with-pic or --without-pic was given.
6425 if test "${with_pic+set}" = set; then
6426   withval="$with_pic"
6427   pic_mode="$withval"
6428 else
6429   pic_mode=default
6430 fi;
6431 test -z "$pic_mode" && pic_mode=default
6432
6433 # Use C for the default configuration in the libtool script
6434 tagname=
6435 lt_save_CC="$CC"
6436 ac_ext=c
6437 ac_cpp='$CPP $CPPFLAGS'
6438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441
6442
6443 # Source file extension for C test sources.
6444 ac_ext=c
6445
6446 # Object file extension for compiled C test sources.
6447 objext=o
6448 objext=$objext
6449
6450 # Code to be used in simple compile tests
6451 lt_simple_compile_test_code="int some_variable = 0;\n"
6452
6453 # Code to be used in simple link tests
6454 lt_simple_link_test_code='int main(){return(0);}\n'
6455
6456
6457 # If no C compiler was specified, use CC.
6458 LTCC=${LTCC-"$CC"}
6459
6460 # Allow CC to be a program name with arguments.
6461 compiler=$CC
6462
6463
6464 #
6465 # Check for any special shared library compilation flags.
6466 #
6467 lt_prog_cc_shlib=
6468 if test "$GCC" = no; then
6469   case $host_os in
6470   sco3.2v5*)
6471     lt_prog_cc_shlib='-belf'
6472     ;;
6473   esac
6474 fi
6475 if test -n "$lt_prog_cc_shlib"; then
6476   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6477 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6478   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6479   else
6480     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6481 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6482     lt_cv_prog_cc_can_build_shared=no
6483   fi
6484 fi
6485
6486
6487 #
6488 # Check to make sure the static flag actually works.
6489 #
6490 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6491 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6492 if test "${lt_prog_compiler_static_works+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   lt_prog_compiler_static_works=no
6496    save_LDFLAGS="$LDFLAGS"
6497    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6498    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6499    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6500      # The compiler can only warn and ignore the option if not recognized
6501      # So say no if there are warnings
6502      if test -s conftest.err; then
6503        # Append any errors to the config.log.
6504        cat conftest.err 1>&5
6505      else
6506        lt_prog_compiler_static_works=yes
6507      fi
6508    fi
6509    $rm conftest*
6510    LDFLAGS="$save_LDFLAGS"
6511
6512 fi
6513 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6514 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6515
6516 if test x"$lt_prog_compiler_static_works" = xyes; then
6517     :
6518 else
6519     lt_prog_compiler_static=
6520 fi
6521
6522
6523
6524
6525 lt_prog_compiler_no_builtin_flag=
6526
6527 if test "$GCC" = yes; then
6528   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6529
6530
6531 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6532 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6533 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   lt_cv_prog_compiler_rtti_exceptions=no
6537   ac_outfile=conftest.$ac_objext
6538    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6539    lt_compiler_flag="-fno-rtti -fno-exceptions"
6540    # Insert the option either (1) after the last *FLAGS variable, or
6541    # (2) before a word containing "conftest.", or (3) at the end.
6542    # Note that $ac_compile itself does not contain backslashes and begins
6543    # with a dollar sign (not a hyphen), so the echo should work correctly.
6544    # The option is referenced via a variable to avoid confusing sed.
6545    lt_compile=`echo "$ac_compile" | $SED \
6546    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6547    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6548    -e 's:$: $lt_compiler_flag:'`
6549    (eval echo "\"\$as_me:6549: $lt_compile\"" >&5)
6550    (eval "$lt_compile" 2>conftest.err)
6551    ac_status=$?
6552    cat conftest.err >&5
6553    echo "$as_me:6553: \$? = $ac_status" >&5
6554    if (exit $ac_status) && test -s "$ac_outfile"; then
6555      # The compiler can only warn and ignore the option if not recognized
6556      # So say no if there are warnings
6557      if test ! -s conftest.err; then
6558        lt_cv_prog_compiler_rtti_exceptions=yes
6559      fi
6560    fi
6561    $rm conftest*
6562
6563 fi
6564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6566
6567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6568     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6569 else
6570     :
6571 fi
6572
6573 fi
6574
6575 lt_prog_compiler_wl=
6576 lt_prog_compiler_pic=
6577 lt_prog_compiler_static=
6578
6579 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6581
6582   if test "$GCC" = yes; then
6583     lt_prog_compiler_wl='-Wl,'
6584     lt_prog_compiler_static='-static'
6585
6586     case $host_os in
6587       aix*)
6588       # All AIX code is PIC.
6589       if test "$host_cpu" = ia64; then
6590         # AIX 5 now supports IA64 processor
6591         lt_prog_compiler_static='-Bstatic'
6592       fi
6593       ;;
6594
6595     amigaos*)
6596       # FIXME: we need at least 68020 code to build shared libraries, but
6597       # adding the `-m68020' flag to GCC prevents building anything better,
6598       # like `-m68040'.
6599       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6600       ;;
6601
6602     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6603       # PIC is the default for these OSes.
6604       ;;
6605
6606     mingw* | pw32* | os2*)
6607       # This hack is so that the source file can tell whether it is being
6608       # built for inclusion in a dll (and should export symbols for example).
6609       lt_prog_compiler_pic='-DDLL_EXPORT'
6610       ;;
6611
6612     darwin* | rhapsody*)
6613       # PIC is the default on this platform
6614       # Common symbols not allowed in MH_DYLIB files
6615       lt_prog_compiler_pic='-fno-common'
6616       ;;
6617
6618     msdosdjgpp*)
6619       # Just because we use GCC doesn't mean we suddenly get shared libraries
6620       # on systems that don't support them.
6621       lt_prog_compiler_can_build_shared=no
6622       enable_shared=no
6623       ;;
6624
6625     sysv4*MP*)
6626       if test -d /usr/nec; then
6627         lt_prog_compiler_pic=-Kconform_pic
6628       fi
6629       ;;
6630
6631     hpux*)
6632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6633       # not for PA HP-UX.
6634       case "$host_cpu" in
6635       hppa*64*|ia64*)
6636         # +Z the default
6637         ;;
6638       *)
6639         lt_prog_compiler_pic='-fPIC'
6640         ;;
6641       esac
6642       ;;
6643
6644     *)
6645       lt_prog_compiler_pic='-fPIC'
6646       ;;
6647     esac
6648   else
6649     # PORTME Check for flag to pass linker flags through the system compiler.
6650     case $host_os in
6651     aix*)
6652       lt_prog_compiler_wl='-Wl,'
6653       if test "$host_cpu" = ia64; then
6654         # AIX 5 now supports IA64 processor
6655         lt_prog_compiler_static='-Bstatic'
6656       else
6657         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6658       fi
6659       ;;
6660
6661     mingw* | pw32* | os2*)
6662       # This hack is so that the source file can tell whether it is being
6663       # built for inclusion in a dll (and should export symbols for example).
6664       lt_prog_compiler_pic='-DDLL_EXPORT'
6665       ;;
6666
6667     hpux9* | hpux10* | hpux11*)
6668       lt_prog_compiler_wl='-Wl,'
6669       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6670       # not for PA HP-UX.
6671       case "$host_cpu" in
6672       hppa*64*|ia64*)
6673         # +Z the default
6674         ;;
6675       *)
6676         lt_prog_compiler_pic='+Z'
6677         ;;
6678       esac
6679       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6680       lt_prog_compiler_static='${wl}-a ${wl}archive'
6681       ;;
6682
6683     irix5* | irix6* | nonstopux*)
6684       lt_prog_compiler_wl='-Wl,'
6685       # PIC (with -KPIC) is the default.
6686       lt_prog_compiler_static='-non_shared'
6687       ;;
6688
6689     newsos6)
6690       lt_prog_compiler_pic='-KPIC'
6691       lt_prog_compiler_static='-Bstatic'
6692       ;;
6693
6694     linux*)
6695       case $CC in
6696       icc* | ecc*)
6697         lt_prog_compiler_wl='-Wl,'
6698         lt_prog_compiler_pic='-KPIC'
6699         lt_prog_compiler_static='-static'
6700         ;;
6701       ccc*)
6702         lt_prog_compiler_wl='-Wl,'
6703         # All Alpha code is PIC.
6704         lt_prog_compiler_static='-non_shared'
6705         ;;
6706       esac
6707       ;;
6708
6709     osf3* | osf4* | osf5*)
6710       lt_prog_compiler_wl='-Wl,'
6711       # All OSF/1 code is PIC.
6712       lt_prog_compiler_static='-non_shared'
6713       ;;
6714
6715     sco3.2v5*)
6716       lt_prog_compiler_pic='-Kpic'
6717       lt_prog_compiler_static='-dn'
6718       ;;
6719
6720     solaris*)
6721       lt_prog_compiler_wl='-Wl,'
6722       lt_prog_compiler_pic='-KPIC'
6723       lt_prog_compiler_static='-Bstatic'
6724       ;;
6725
6726     sunos4*)
6727       lt_prog_compiler_wl='-Qoption ld '
6728       lt_prog_compiler_pic='-PIC'
6729       lt_prog_compiler_static='-Bstatic'
6730       ;;
6731
6732     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6733       lt_prog_compiler_wl='-Wl,'
6734       lt_prog_compiler_pic='-KPIC'
6735       lt_prog_compiler_static='-Bstatic'
6736       ;;
6737
6738     sysv4*MP*)
6739       if test -d /usr/nec ;then
6740         lt_prog_compiler_pic='-Kconform_pic'
6741         lt_prog_compiler_static='-Bstatic'
6742       fi
6743       ;;
6744
6745     uts4*)
6746       lt_prog_compiler_pic='-pic'
6747       lt_prog_compiler_static='-Bstatic'
6748       ;;
6749
6750     *)
6751       lt_prog_compiler_can_build_shared=no
6752       ;;
6753     esac
6754   fi
6755
6756 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6757 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6758
6759 #
6760 # Check to make sure the PIC flag actually works.
6761 #
6762 if test -n "$lt_prog_compiler_pic"; then
6763
6764 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6766 if test "${lt_prog_compiler_pic_works+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   lt_prog_compiler_pic_works=no
6770   ac_outfile=conftest.$ac_objext
6771    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6772    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6773    # Insert the option either (1) after the last *FLAGS variable, or
6774    # (2) before a word containing "conftest.", or (3) at the end.
6775    # Note that $ac_compile itself does not contain backslashes and begins
6776    # with a dollar sign (not a hyphen), so the echo should work correctly.
6777    # The option is referenced via a variable to avoid confusing sed.
6778    lt_compile=`echo "$ac_compile" | $SED \
6779    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6781    -e 's:$: $lt_compiler_flag:'`
6782    (eval echo "\"\$as_me:6782: $lt_compile\"" >&5)
6783    (eval "$lt_compile" 2>conftest.err)
6784    ac_status=$?
6785    cat conftest.err >&5
6786    echo "$as_me:6786: \$? = $ac_status" >&5
6787    if (exit $ac_status) && test -s "$ac_outfile"; then
6788      # The compiler can only warn and ignore the option if not recognized
6789      # So say no if there are warnings
6790      if test ! -s conftest.err; then
6791        lt_prog_compiler_pic_works=yes
6792      fi
6793    fi
6794    $rm conftest*
6795
6796 fi
6797 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6798 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6799
6800 if test x"$lt_prog_compiler_pic_works" = xyes; then
6801     case $lt_prog_compiler_pic in
6802      "" | " "*) ;;
6803      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6804      esac
6805 else
6806     lt_prog_compiler_pic=
6807      lt_prog_compiler_can_build_shared=no
6808 fi
6809
6810 fi
6811 case "$host_os" in
6812   # For platforms which do not support PIC, -DPIC is meaningless:
6813   *djgpp*)
6814     lt_prog_compiler_pic=
6815     ;;
6816   *)
6817     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6818     ;;
6819 esac
6820
6821 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6823 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   lt_cv_prog_compiler_c_o=no
6827    $rm -r conftest 2>/dev/null
6828    mkdir conftest
6829    cd conftest
6830    mkdir out
6831    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6832
6833    lt_compiler_flag="-o out/conftest2.$ac_objext"
6834    # Insert the option either (1) after the last *FLAGS variable, or
6835    # (2) before a word containing "conftest.", or (3) at the end.
6836    # Note that $ac_compile itself does not contain backslashes and begins
6837    # with a dollar sign (not a hyphen), so the echo should work correctly.
6838    lt_compile=`echo "$ac_compile" | $SED \
6839    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6841    -e 's:$: $lt_compiler_flag:'`
6842    (eval echo "\"\$as_me:6842: $lt_compile\"" >&5)
6843    (eval "$lt_compile" 2>out/conftest.err)
6844    ac_status=$?
6845    cat out/conftest.err >&5
6846    echo "$as_me:6846: \$? = $ac_status" >&5
6847    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6848    then
6849      # The compiler can only warn and ignore the option if not recognized
6850      # So say no if there are warnings
6851      if test ! -s out/conftest.err; then
6852        lt_cv_prog_compiler_c_o=yes
6853      fi
6854    fi
6855    chmod u+w .
6856    $rm conftest*
6857    # SGI C++ compiler will create directory out/ii_files/ for
6858    # template instantiation
6859    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6860    $rm out/* && rmdir out
6861    cd ..
6862    rmdir conftest
6863    $rm conftest*
6864
6865 fi
6866 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6868
6869
6870 hard_links="nottested"
6871 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6872   # do not overwrite the value of need_locks provided by the user
6873   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6875   hard_links=yes
6876   $rm conftest*
6877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6878   touch conftest.a
6879   ln conftest.a conftest.b 2>&5 || hard_links=no
6880   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6881   echo "$as_me:$LINENO: result: $hard_links" >&5
6882 echo "${ECHO_T}$hard_links" >&6
6883   if test "$hard_links" = no; then
6884     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6886     need_locks=warn
6887   fi
6888 else
6889   need_locks=no
6890 fi
6891
6892 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6894
6895   runpath_var=
6896   allow_undefined_flag=
6897   enable_shared_with_static_runtimes=no
6898   archive_cmds=
6899   archive_expsym_cmds=
6900   old_archive_From_new_cmds=
6901   old_archive_from_expsyms_cmds=
6902   export_dynamic_flag_spec=
6903   whole_archive_flag_spec=
6904   thread_safe_flag_spec=
6905   hardcode_libdir_flag_spec=
6906   hardcode_libdir_flag_spec_ld=
6907   hardcode_libdir_separator=
6908   hardcode_direct=no
6909   hardcode_minus_L=no
6910   hardcode_shlibpath_var=unsupported
6911   link_all_deplibs=unknown
6912   hardcode_automatic=no
6913   module_cmds=
6914   module_expsym_cmds=
6915   always_export_symbols=no
6916   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6917   # include_expsyms should be a list of space-separated symbols to be *always*
6918   # included in the symbol list
6919   include_expsyms=
6920   # exclude_expsyms can be an extended regexp of symbols to exclude
6921   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6922   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6923   # as well as any symbol that contains `d'.
6924   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6925   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6926   # platforms (ab)use it in PIC code, but their linkers get confused if
6927   # the symbol is explicitly referenced.  Since portable code cannot
6928   # rely on this symbol name, it's probably fine to never include it in
6929   # preloaded symbol tables.
6930   extract_expsyms_cmds=
6931
6932   case $host_os in
6933   cygwin* | mingw* | pw32*)
6934     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6935     # When not using gcc, we currently assume that we are using
6936     # Microsoft Visual C++.
6937     if test "$GCC" != yes; then
6938       with_gnu_ld=no
6939     fi
6940     ;;
6941   openbsd*)
6942     with_gnu_ld=no
6943     ;;
6944   esac
6945
6946   ld_shlibs=yes
6947   if test "$with_gnu_ld" = yes; then
6948     # If archive_cmds runs LD, not CC, wlarc should be empty
6949     wlarc='${wl}'
6950
6951     # See if GNU ld supports shared libraries.
6952     case $host_os in
6953     aix3* | aix4* | aix5*)
6954       # On AIX/PPC, the GNU linker is very broken
6955       if test "$host_cpu" != ia64; then
6956         ld_shlibs=no
6957         cat <<EOF 1>&2
6958
6959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6960 *** to be unable to reliably create shared libraries on AIX.
6961 *** Therefore, libtool is disabling shared libraries support.  If you
6962 *** really care for shared libraries, you may want to modify your PATH
6963 *** so that a non-GNU linker is found, and then restart.
6964
6965 EOF
6966       fi
6967       ;;
6968
6969     amigaos*)
6970       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)'
6971       hardcode_libdir_flag_spec='-L$libdir'
6972       hardcode_minus_L=yes
6973
6974       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6975       # that the semantics of dynamic libraries on AmigaOS, at least up
6976       # to version 4, is to share data among multiple programs linked
6977       # with the same dynamic library.  Since this doesn't match the
6978       # behavior of shared libraries on other platforms, we can't use
6979       # them.
6980       ld_shlibs=no
6981       ;;
6982
6983     beos*)
6984       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6985         allow_undefined_flag=unsupported
6986         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6987         # support --undefined.  This deserves some investigation.  FIXME
6988         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6989       else
6990         ld_shlibs=no
6991       fi
6992       ;;
6993
6994     cygwin* | mingw* | pw32*)
6995       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6996       # as there is no search path for DLLs.
6997       hardcode_libdir_flag_spec='-L$libdir'
6998       allow_undefined_flag=unsupported
6999       always_export_symbols=no
7000       enable_shared_with_static_runtimes=yes
7001       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7002
7003       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7004         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7005         # If the export-symbols file already is a .def file (1st line
7006         # is EXPORTS), use it as is; otherwise, prepend...
7007         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7008           cp $export_symbols $output_objdir/$soname.def;
7009         else
7010           echo EXPORTS > $output_objdir/$soname.def;
7011           cat $export_symbols >> $output_objdir/$soname.def;
7012         fi~
7013         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7014       else
7015         ld_shlibs=no
7016       fi
7017       ;;
7018
7019     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7020       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7021         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7022         wlarc=
7023       else
7024         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7025         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7026       fi
7027       ;;
7028
7029     solaris* | sysv5*)
7030       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7031         ld_shlibs=no
7032         cat <<EOF 1>&2
7033
7034 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7035 *** create shared libraries on Solaris systems.  Therefore, libtool
7036 *** is disabling shared libraries support.  We urge you to upgrade GNU
7037 *** binutils to release 2.9.1 or newer.  Another option is to modify
7038 *** your PATH or compiler configuration so that the native linker is
7039 *** used, and then restart.
7040
7041 EOF
7042       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7045       else
7046         ld_shlibs=no
7047       fi
7048       ;;
7049
7050     sunos4*)
7051       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7052       wlarc=
7053       hardcode_direct=yes
7054       hardcode_shlibpath_var=no
7055       ;;
7056
7057   linux*)
7058     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7059         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7060         archive_cmds="$tmp_archive_cmds"
7061       supports_anon_versioning=no
7062       case `$LD -v 2>/dev/null` in
7063         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7064         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7065         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7066         *\ 2.11.*) ;; # other 2.11 versions
7067         *) supports_anon_versioning=yes ;;
7068       esac
7069       if test $supports_anon_versioning = yes; then
7070         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7072 $echo "local: *; };" >> $output_objdir/$libname.ver~
7073         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7074       else
7075         archive_expsym_cmds="$tmp_archive_cmds"
7076       fi
7077       link_all_deplibs=no
7078     else
7079       ld_shlibs=no
7080     fi
7081     ;;
7082
7083     *)
7084       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7085         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7086         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7087       else
7088         ld_shlibs=no
7089       fi
7090       ;;
7091     esac
7092
7093     if test "$ld_shlibs" = yes; then
7094       runpath_var=LD_RUN_PATH
7095       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7096       export_dynamic_flag_spec='${wl}--export-dynamic'
7097       # ancient GNU ld didn't support --whole-archive et. al.
7098       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7099         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7100       else
7101         whole_archive_flag_spec=
7102       fi
7103     fi
7104   else
7105     # PORTME fill in a description of your system's linker (not GNU ld)
7106     case $host_os in
7107     aix3*)
7108       allow_undefined_flag=unsupported
7109       always_export_symbols=yes
7110       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'
7111       # Note: this linker hardcodes the directories in LIBPATH if there
7112       # are no directories specified by -L.
7113       hardcode_minus_L=yes
7114       if test "$GCC" = yes && test -z "$link_static_flag"; then
7115         # Neither direct hardcoding nor static linking is supported with a
7116         # broken collect2.
7117         hardcode_direct=unsupported
7118       fi
7119       ;;
7120
7121     aix4* | aix5*)
7122       if test "$host_cpu" = ia64; then
7123         # On IA64, the linker does run time linking by default, so we don't
7124         # have to do anything special.
7125         aix_use_runtimelinking=no
7126         exp_sym_flag='-Bexport'
7127         no_entry_flag=""
7128       else
7129         # If we're using GNU nm, then we don't want the "-C" option.
7130         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7131         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7132           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'
7133         else
7134           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'
7135         fi
7136         aix_use_runtimelinking=no
7137
7138         # Test if we are trying to use run time linking or normal
7139         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7140         # need to do runtime linking.
7141         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7142           for ld_flag in $LDFLAGS; do
7143           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7144             aix_use_runtimelinking=yes
7145             break
7146           fi
7147           done
7148         esac
7149
7150         exp_sym_flag='-bexport'
7151         no_entry_flag='-bnoentry'
7152       fi
7153
7154       # When large executables or shared objects are built, AIX ld can
7155       # have problems creating the table of contents.  If linking a library
7156       # or program results in "error TOC overflow" add -mminimal-toc to
7157       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7158       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7159
7160       archive_cmds=''
7161       hardcode_direct=yes
7162       hardcode_libdir_separator=':'
7163       link_all_deplibs=yes
7164
7165       if test "$GCC" = yes; then
7166         case $host_os in aix4.012|aix4.012.*)
7167         # We only want to do this on AIX 4.2 and lower, the check
7168         # below for broken collect2 doesn't work under 4.3+
7169           collect2name=`${CC} -print-prog-name=collect2`
7170           if test -f "$collect2name" && \
7171            strings "$collect2name" | grep resolve_lib_name >/dev/null
7172           then
7173           # We have reworked collect2
7174           hardcode_direct=yes
7175           else
7176           # We have old collect2
7177           hardcode_direct=unsupported
7178           # It fails to find uninstalled libraries when the uninstalled
7179           # path is not listed in the libpath.  Setting hardcode_minus_L
7180           # to unsupported forces relinking
7181           hardcode_minus_L=yes
7182           hardcode_libdir_flag_spec='-L$libdir'
7183           hardcode_libdir_separator=
7184           fi
7185         esac
7186         shared_flag='-shared'
7187       else
7188         # not using gcc
7189         if test "$host_cpu" = ia64; then
7190         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7191         # chokes on -Wl,-G. The following line is correct:
7192           shared_flag='-G'
7193         else
7194         if test "$aix_use_runtimelinking" = yes; then
7195             shared_flag='${wl}-G'
7196           else
7197             shared_flag='${wl}-bM:SRE'
7198         fi
7199         fi
7200       fi
7201
7202       # It seems that -bexpall does not export symbols beginning with
7203       # underscore (_), so it is better to generate a list of symbols to export.
7204       always_export_symbols=yes
7205       if test "$aix_use_runtimelinking" = yes; then
7206         # Warning - without using the other runtime loading flags (-brtl),
7207         # -berok will link without error, but may produce a broken library.
7208         allow_undefined_flag='-berok'
7209        # Determine the default libpath from the value encoded in an empty executable.
7210        cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h.  */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h.  */
7216
7217 int
7218 main ()
7219 {
7220
7221   ;
7222   return 0;
7223 }
7224 _ACEOF
7225 rm -f conftest.$ac_objext conftest$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227   (eval $ac_link) 2>conftest.er1
7228   ac_status=$?
7229   grep -v '^ *+' conftest.er1 >conftest.err
7230   rm -f conftest.er1
7231   cat conftest.err >&5
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); } &&
7234          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236   (eval $ac_try) 2>&5
7237   ac_status=$?
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); }; } &&
7240          { ac_try='test -s conftest$ac_exeext'
7241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242   (eval $ac_try) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); }; }; then
7246
7247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7248 }'`
7249 # Check for a 64-bit object if we didn't find anything.
7250 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; }
7251 }'`; fi
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256 fi
7257 rm -f conftest.err conftest.$ac_objext \
7258       conftest$ac_exeext conftest.$ac_ext
7259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7260
7261        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7262         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7263        else
7264         if test "$host_cpu" = ia64; then
7265           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7266           allow_undefined_flag="-z nodefs"
7267           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7268         else
7269          # Determine the default libpath from the value encoded in an empty executable.
7270          cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h.  */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h.  */
7276
7277 int
7278 main ()
7279 {
7280
7281   ;
7282   return 0;
7283 }
7284 _ACEOF
7285 rm -f conftest.$ac_objext conftest$ac_exeext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7287   (eval $ac_link) 2>conftest.er1
7288   ac_status=$?
7289   grep -v '^ *+' conftest.er1 >conftest.err
7290   rm -f conftest.er1
7291   cat conftest.err >&5
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); } &&
7294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296   (eval $ac_try) 2>&5
7297   ac_status=$?
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); }; } &&
7300          { ac_try='test -s conftest$ac_exeext'
7301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302   (eval $ac_try) 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); }; }; then
7306
7307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7308 }'`
7309 # Check for a 64-bit object if we didn't find anything.
7310 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; }
7311 }'`; fi
7312 else
7313   echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 fi
7317 rm -f conftest.err conftest.$ac_objext \
7318       conftest$ac_exeext conftest.$ac_ext
7319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7320
7321          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7322           # Warning - without using the other run time loading flags,
7323           # -berok will link without error, but may produce a broken library.
7324           no_undefined_flag=' ${wl}-bernotok'
7325           allow_undefined_flag=' ${wl}-berok'
7326           # -bexpall does not export symbols beginning with underscore (_)
7327           always_export_symbols=yes
7328           # Exported symbols can be pulled into shared objects from archives
7329           whole_archive_flag_spec=' '
7330           archive_cmds_need_lc=yes
7331           # This is similar to how AIX traditionally builds it's shared libraries.
7332           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7333         fi
7334       fi
7335       ;;
7336
7337     amigaos*)
7338       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)'
7339       hardcode_libdir_flag_spec='-L$libdir'
7340       hardcode_minus_L=yes
7341       # see comment about different semantics on the GNU ld section
7342       ld_shlibs=no
7343       ;;
7344
7345     bsdi4*)
7346       export_dynamic_flag_spec=-rdynamic
7347       ;;
7348
7349     cygwin* | mingw* | pw32*)
7350       # When not using gcc, we currently assume that we are using
7351       # Microsoft Visual C++.
7352       # hardcode_libdir_flag_spec is actually meaningless, as there is
7353       # no search path for DLLs.
7354       hardcode_libdir_flag_spec=' '
7355       allow_undefined_flag=unsupported
7356       # Tell ltmain to make .lib files, not .a files.
7357       libext=lib
7358       # Tell ltmain to make .dll files, not .so files.
7359       shrext_cmds=".dll"
7360       # FIXME: Setting linknames here is a bad hack.
7361       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7362       # The linker will automatically build a .lib file if we build a DLL.
7363       old_archive_From_new_cmds='true'
7364       # FIXME: Should let the user specify the lib program.
7365       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7366       fix_srcfile_path='`cygpath -w "$srcfile"`'
7367       enable_shared_with_static_runtimes=yes
7368       ;;
7369
7370     darwin* | rhapsody*)
7371     if test "$GXX" = yes ; then
7372       archive_cmds_need_lc=no
7373       case "$host_os" in
7374       rhapsody* | darwin1.[012])
7375         allow_undefined_flag='-undefined suppress'
7376         ;;
7377       *) # Darwin 1.3 on
7378       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7379         allow_undefined_flag='-flat_namespace -undefined suppress'
7380       else
7381         case ${MACOSX_DEPLOYMENT_TARGET} in
7382           10.[012])
7383             allow_undefined_flag='-flat_namespace -undefined suppress'
7384             ;;
7385           10.*)
7386             allow_undefined_flag='-undefined dynamic_lookup'
7387             ;;
7388         esac
7389       fi
7390         ;;
7391       esac
7392         lt_int_apple_cc_single_mod=no
7393         output_verbose_link_cmd='echo'
7394         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7395           lt_int_apple_cc_single_mod=yes
7396         fi
7397         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7398           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7399         else
7400         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7401       fi
7402       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7403       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7404         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7405           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7406         else
7407           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7408         fi
7409           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}'
7410       hardcode_direct=no
7411       hardcode_automatic=yes
7412       hardcode_shlibpath_var=unsupported
7413       whole_archive_flag_spec='-all_load $convenience'
7414       link_all_deplibs=yes
7415     else
7416       ld_shlibs=no
7417     fi
7418       ;;
7419
7420     dgux*)
7421       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422       hardcode_libdir_flag_spec='-L$libdir'
7423       hardcode_shlibpath_var=no
7424       ;;
7425
7426     freebsd1*)
7427       ld_shlibs=no
7428       ;;
7429
7430     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7431     # support.  Future versions do this automatically, but an explicit c++rt0.o
7432     # does not break anything, and helps significantly (at the cost of a little
7433     # extra space).
7434     freebsd2.2*)
7435       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7436       hardcode_libdir_flag_spec='-R$libdir'
7437       hardcode_direct=yes
7438       hardcode_shlibpath_var=no
7439       ;;
7440
7441     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7442     freebsd2*)
7443       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7444       hardcode_direct=yes
7445       hardcode_minus_L=yes
7446       hardcode_shlibpath_var=no
7447       ;;
7448
7449     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7450     freebsd* | kfreebsd*-gnu)
7451       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7452       hardcode_libdir_flag_spec='-R$libdir'
7453       hardcode_direct=yes
7454       hardcode_shlibpath_var=no
7455       ;;
7456
7457     hpux9*)
7458       if test "$GCC" = yes; then
7459         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'
7460       else
7461         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'
7462       fi
7463       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7464       hardcode_libdir_separator=:
7465       hardcode_direct=yes
7466
7467       # hardcode_minus_L: Not really in the search PATH,
7468       # but as the default location of the library.
7469       hardcode_minus_L=yes
7470       export_dynamic_flag_spec='${wl}-E'
7471       ;;
7472
7473     hpux10* | hpux11*)
7474       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7475         case "$host_cpu" in
7476         hppa*64*|ia64*)
7477           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7478           ;;
7479         *)
7480           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7481           ;;
7482         esac
7483       else
7484         case "$host_cpu" in
7485         hppa*64*|ia64*)
7486           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7487           ;;
7488         *)
7489           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7490           ;;
7491         esac
7492       fi
7493       if test "$with_gnu_ld" = no; then
7494         case "$host_cpu" in
7495         hppa*64*)
7496           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7497           hardcode_libdir_flag_spec_ld='+b $libdir'
7498           hardcode_libdir_separator=:
7499           hardcode_direct=no
7500           hardcode_shlibpath_var=no
7501           ;;
7502         ia64*)
7503           hardcode_libdir_flag_spec='-L$libdir'
7504           hardcode_direct=no
7505           hardcode_shlibpath_var=no
7506
7507           # hardcode_minus_L: Not really in the search PATH,
7508           # but as the default location of the library.
7509           hardcode_minus_L=yes
7510           ;;
7511         *)
7512           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7513           hardcode_libdir_separator=:
7514           hardcode_direct=yes
7515           export_dynamic_flag_spec='${wl}-E'
7516
7517           # hardcode_minus_L: Not really in the search PATH,
7518           # but as the default location of the library.
7519           hardcode_minus_L=yes
7520           ;;
7521         esac
7522       fi
7523       ;;
7524
7525     irix5* | irix6* | nonstopux*)
7526       if test "$GCC" = yes; then
7527         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'
7528       else
7529         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'
7530         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7531       fi
7532       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7533       hardcode_libdir_separator=:
7534       link_all_deplibs=yes
7535       ;;
7536
7537     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7538       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7539         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7540       else
7541         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7542       fi
7543       hardcode_libdir_flag_spec='-R$libdir'
7544       hardcode_direct=yes
7545       hardcode_shlibpath_var=no
7546       ;;
7547
7548     newsos6)
7549       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7550       hardcode_direct=yes
7551       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7552       hardcode_libdir_separator=:
7553       hardcode_shlibpath_var=no
7554       ;;
7555
7556     openbsd*)
7557       hardcode_direct=yes
7558       hardcode_shlibpath_var=no
7559       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7560         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7561         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7562         export_dynamic_flag_spec='${wl}-E'
7563       else
7564        case $host_os in
7565          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7566            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7567            hardcode_libdir_flag_spec='-R$libdir'
7568            ;;
7569          *)
7570            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7571            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7572            ;;
7573        esac
7574       fi
7575       ;;
7576
7577     os2*)
7578       hardcode_libdir_flag_spec='-L$libdir'
7579       hardcode_minus_L=yes
7580       allow_undefined_flag=unsupported
7581       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'
7582       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7583       ;;
7584
7585     osf3*)
7586       if test "$GCC" = yes; then
7587         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7588         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'
7589       else
7590         allow_undefined_flag=' -expect_unresolved \*'
7591         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'
7592       fi
7593       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7594       hardcode_libdir_separator=:
7595       ;;
7596
7597     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7598       if test "$GCC" = yes; then
7599         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7600         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'
7601         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7602       else
7603         allow_undefined_flag=' -expect_unresolved \*'
7604         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'
7605         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7606         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7607
7608         # Both c and cxx compiler support -rpath directly
7609         hardcode_libdir_flag_spec='-rpath $libdir'
7610       fi
7611       hardcode_libdir_separator=:
7612       ;;
7613
7614     sco3.2v5*)
7615       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7616       hardcode_shlibpath_var=no
7617       export_dynamic_flag_spec='${wl}-Bexport'
7618       runpath_var=LD_RUN_PATH
7619       hardcode_runpath_var=yes
7620       ;;
7621
7622     solaris*)
7623       no_undefined_flag=' -z text'
7624       if test "$GCC" = yes; then
7625         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7626         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7627           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7628       else
7629         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7631         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7632       fi
7633       hardcode_libdir_flag_spec='-R$libdir'
7634       hardcode_shlibpath_var=no
7635       case $host_os in
7636       solaris2.[0-5] | solaris2.[0-5].*) ;;
7637       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7638         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7639       esac
7640       link_all_deplibs=yes
7641       ;;
7642
7643     sunos4*)
7644       if test "x$host_vendor" = xsequent; then
7645         # Use $CC to link under sequent, because it throws in some extra .o
7646         # files that make .init and .fini sections work.
7647         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7648       else
7649         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7650       fi
7651       hardcode_libdir_flag_spec='-L$libdir'
7652       hardcode_direct=yes
7653       hardcode_minus_L=yes
7654       hardcode_shlibpath_var=no
7655       ;;
7656
7657     sysv4)
7658       case $host_vendor in
7659         sni)
7660           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7661           hardcode_direct=yes # is this really true???
7662         ;;
7663         siemens)
7664           ## LD is ld it makes a PLAMLIB
7665           ## CC just makes a GrossModule.
7666           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7667           reload_cmds='$CC -r -o $output$reload_objs'
7668           hardcode_direct=no
7669         ;;
7670         motorola)
7671           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7672           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7673         ;;
7674       esac
7675       runpath_var='LD_RUN_PATH'
7676       hardcode_shlibpath_var=no
7677       ;;
7678
7679     sysv4.3*)
7680       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681       hardcode_shlibpath_var=no
7682       export_dynamic_flag_spec='-Bexport'
7683       ;;
7684
7685     sysv4*MP*)
7686       if test -d /usr/nec; then
7687         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7688         hardcode_shlibpath_var=no
7689         runpath_var=LD_RUN_PATH
7690         hardcode_runpath_var=yes
7691         ld_shlibs=yes
7692       fi
7693       ;;
7694
7695     sysv4.2uw2*)
7696       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7697       hardcode_direct=yes
7698       hardcode_minus_L=no
7699       hardcode_shlibpath_var=no
7700       hardcode_runpath_var=yes
7701       runpath_var=LD_RUN_PATH
7702       ;;
7703
7704    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7705       no_undefined_flag='${wl}-z ${wl}text'
7706       if test "$GCC" = yes; then
7707         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7708       else
7709         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7710       fi
7711       runpath_var='LD_RUN_PATH'
7712       hardcode_shlibpath_var=no
7713       ;;
7714
7715     sysv5*)
7716       no_undefined_flag=' -z text'
7717       # $CC -shared without GNU ld will not create a library from C++
7718       # object files and a static libstdc++, better avoid it by now
7719       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7720       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7721                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7722       hardcode_libdir_flag_spec=
7723       hardcode_shlibpath_var=no
7724       runpath_var='LD_RUN_PATH'
7725       ;;
7726
7727     uts4*)
7728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7729       hardcode_libdir_flag_spec='-L$libdir'
7730       hardcode_shlibpath_var=no
7731       ;;
7732
7733     *)
7734       ld_shlibs=no
7735       ;;
7736     esac
7737   fi
7738
7739 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7740 echo "${ECHO_T}$ld_shlibs" >&6
7741 test "$ld_shlibs" = no && can_build_shared=no
7742
7743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7744 if test "$GCC" = yes; then
7745   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7746 fi
7747
7748 #
7749 # Do we need to explicitly link libc?
7750 #
7751 case "x$archive_cmds_need_lc" in
7752 x|xyes)
7753   # Assume -lc should be added
7754   archive_cmds_need_lc=yes
7755
7756   if test "$enable_shared" = yes && test "$GCC" = yes; then
7757     case $archive_cmds in
7758     *'~'*)
7759       # FIXME: we may have to deal with multi-command sequences.
7760       ;;
7761     '$CC '*)
7762       # Test whether the compiler implicitly links with -lc since on some
7763       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7764       # to ld, don't add -lc before -lgcc.
7765       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7766 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7767       $rm conftest*
7768       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7769
7770       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771   (eval $ac_compile) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } 2>conftest.err; then
7775         soname=conftest
7776         lib=conftest
7777         libobjs=conftest.$ac_objext
7778         deplibs=
7779         wl=$lt_prog_compiler_wl
7780         compiler_flags=-v
7781         linker_flags=-v
7782         verstring=
7783         output_objdir=.
7784         libname=conftest
7785         lt_save_allow_undefined_flag=$allow_undefined_flag
7786         allow_undefined_flag=
7787         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7788   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }
7792         then
7793           archive_cmds_need_lc=no
7794         else
7795           archive_cmds_need_lc=yes
7796         fi
7797         allow_undefined_flag=$lt_save_allow_undefined_flag
7798       else
7799         cat conftest.err 1>&5
7800       fi
7801       $rm conftest*
7802       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7803 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7804       ;;
7805     esac
7806   fi
7807   ;;
7808 esac
7809
7810 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7811 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7812 library_names_spec=
7813 libname_spec='lib$name'
7814 soname_spec=
7815 shrext_cmds=".so"
7816 postinstall_cmds=
7817 postuninstall_cmds=
7818 finish_cmds=
7819 finish_eval=
7820 shlibpath_var=
7821 shlibpath_overrides_runpath=unknown
7822 version_type=none
7823 dynamic_linker="$host_os ld.so"
7824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7825 if test "$GCC" = yes; then
7826   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7827   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7828     # if the path contains ";" then we assume it to be the separator
7829     # otherwise default to the standard path separator (i.e. ":") - it is
7830     # assumed that no part of a normal pathname contains ";" but that should
7831     # okay in the real world where ";" in dirpaths is itself problematic.
7832     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7833   else
7834     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7835   fi
7836 else
7837   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7838 fi
7839 need_lib_prefix=unknown
7840 hardcode_into_libs=no
7841
7842 # when you set need_version to no, make sure it does not cause -set_version
7843 # flags to be left without arguments
7844 need_version=unknown
7845
7846 case $host_os in
7847 aix3*)
7848   version_type=linux
7849   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7850   shlibpath_var=LIBPATH
7851
7852   # AIX 3 has no versioning support, so we append a major version to the name.
7853   soname_spec='${libname}${release}${shared_ext}$major'
7854   ;;
7855
7856 aix4* | aix5*)
7857   version_type=linux
7858   need_lib_prefix=no
7859   need_version=no
7860   hardcode_into_libs=yes
7861   if test "$host_cpu" = ia64; then
7862     # AIX 5 supports IA64
7863     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7864     shlibpath_var=LD_LIBRARY_PATH
7865   else
7866     # With GCC up to 2.95.x, collect2 would create an import file
7867     # for dependence libraries.  The import file would start with
7868     # the line `#! .'.  This would cause the generated library to
7869     # depend on `.', always an invalid library.  This was fixed in
7870     # development snapshots of GCC prior to 3.0.
7871     case $host_os in
7872       aix4 | aix4.[01] | aix4.[01].*)
7873       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7874            echo ' yes '
7875            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7876         :
7877       else
7878         can_build_shared=no
7879       fi
7880       ;;
7881     esac
7882     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7883     # soname into executable. Probably we can add versioning support to
7884     # collect2, so additional links can be useful in future.
7885     if test "$aix_use_runtimelinking" = yes; then
7886       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7887       # instead of lib<name>.a to let people know that these are not
7888       # typical AIX shared libraries.
7889       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7890     else
7891       # We preserve .a as extension for shared libraries through AIX4.2
7892       # and later when we are not doing run time linking.
7893       library_names_spec='${libname}${release}.a $libname.a'
7894       soname_spec='${libname}${release}${shared_ext}$major'
7895     fi
7896     shlibpath_var=LIBPATH
7897   fi
7898   ;;
7899
7900 amigaos*)
7901   library_names_spec='$libname.ixlibrary $libname.a'
7902   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7903   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'
7904   ;;
7905
7906 beos*)
7907   library_names_spec='${libname}${shared_ext}'
7908   dynamic_linker="$host_os ld.so"
7909   shlibpath_var=LIBRARY_PATH
7910   ;;
7911
7912 bsdi4*)
7913   version_type=linux
7914   need_version=no
7915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7916   soname_spec='${libname}${release}${shared_ext}$major'
7917   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7918   shlibpath_var=LD_LIBRARY_PATH
7919   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7920   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7921   # the default ld.so.conf also contains /usr/contrib/lib and
7922   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7923   # libtool to hard-code these into programs
7924   ;;
7925
7926 cygwin* | mingw* | pw32*)
7927   version_type=windows
7928   shrext_cmds=".dll"
7929   need_version=no
7930   need_lib_prefix=no
7931
7932   case $GCC,$host_os in
7933   yes,cygwin* | yes,mingw* | yes,pw32*)
7934     library_names_spec='$libname.dll.a'
7935     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7936     postinstall_cmds='base_file=`basename \${file}`~
7937       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7938       dldir=$destdir/`dirname \$dlpath`~
7939       test -d \$dldir || mkdir -p \$dldir~
7940       $install_prog $dir/$dlname \$dldir/$dlname'
7941     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7942       dlpath=$dir/\$dldll~
7943        $rm \$dlpath'
7944     shlibpath_overrides_runpath=yes
7945
7946     case $host_os in
7947     cygwin*)
7948       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7949       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7950       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7951       ;;
7952     mingw*)
7953       # MinGW DLLs use traditional 'lib' prefix
7954       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7955       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7956       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7957         # It is most probably a Windows format PATH printed by
7958         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7959         # path with ; separators, and with drive letters. We can handle the
7960         # drive letters (cygwin fileutils understands them), so leave them,
7961         # especially as we might pass files found there to a mingw objdump,
7962         # which wouldn't understand a cygwinified path. Ahh.
7963         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7964       else
7965         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7966       fi
7967       ;;
7968     pw32*)
7969       # pw32 DLLs use 'pw' prefix rather than 'lib'
7970       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7971       ;;
7972     esac
7973     ;;
7974
7975   *)
7976     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7977     ;;
7978   esac
7979   dynamic_linker='Win32 ld.exe'
7980   # FIXME: first we should search . and the directory the executable is in
7981   shlibpath_var=PATH
7982   ;;
7983
7984 darwin* | rhapsody*)
7985   dynamic_linker="$host_os dyld"
7986   version_type=darwin
7987   need_lib_prefix=no
7988   need_version=no
7989   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7990   soname_spec='${libname}${release}${major}$shared_ext'
7991   shlibpath_overrides_runpath=yes
7992   shlibpath_var=DYLD_LIBRARY_PATH
7993   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7994   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7995   if test "$GCC" = yes; then
7996     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"`
7997   else
7998     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7999   fi
8000   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8001   ;;
8002
8003 dgux*)
8004   version_type=linux
8005   need_lib_prefix=no
8006   need_version=no
8007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8008   soname_spec='${libname}${release}${shared_ext}$major'
8009   shlibpath_var=LD_LIBRARY_PATH
8010   ;;
8011
8012 freebsd1*)
8013   dynamic_linker=no
8014   ;;
8015
8016 kfreebsd*-gnu)
8017   version_type=linux
8018   need_lib_prefix=no
8019   need_version=no
8020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8021   soname_spec='${libname}${release}${shared_ext}$major'
8022   shlibpath_var=LD_LIBRARY_PATH
8023   shlibpath_overrides_runpath=no
8024   hardcode_into_libs=yes
8025   dynamic_linker='GNU ld.so'
8026   ;;
8027
8028 freebsd*)
8029   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8030   version_type=freebsd-$objformat
8031   case $version_type in
8032     freebsd-elf*)
8033       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8034       need_version=no
8035       need_lib_prefix=no
8036       ;;
8037     freebsd-*)
8038       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8039       need_version=yes
8040       ;;
8041   esac
8042   shlibpath_var=LD_LIBRARY_PATH
8043   case $host_os in
8044   freebsd2*)
8045     shlibpath_overrides_runpath=yes
8046     ;;
8047   freebsd3.01* | freebsdelf3.01*)
8048     shlibpath_overrides_runpath=yes
8049     hardcode_into_libs=yes
8050     ;;
8051   *) # from 3.2 on
8052     shlibpath_overrides_runpath=no
8053     hardcode_into_libs=yes
8054     ;;
8055   esac
8056   ;;
8057
8058 gnu*)
8059   version_type=linux
8060   need_lib_prefix=no
8061   need_version=no
8062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8063   soname_spec='${libname}${release}${shared_ext}$major'
8064   shlibpath_var=LD_LIBRARY_PATH
8065   hardcode_into_libs=yes
8066   ;;
8067
8068 hpux9* | hpux10* | hpux11*)
8069   # Give a soname corresponding to the major version so that dld.sl refuses to
8070   # link against other versions.
8071   version_type=sunos
8072   need_lib_prefix=no
8073   need_version=no
8074   case "$host_cpu" in
8075   ia64*)
8076     shrext_cmds='.so'
8077     hardcode_into_libs=yes
8078     dynamic_linker="$host_os dld.so"
8079     shlibpath_var=LD_LIBRARY_PATH
8080     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8082     soname_spec='${libname}${release}${shared_ext}$major'
8083     if test "X$HPUX_IA64_MODE" = X32; then
8084       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8085     else
8086       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8087     fi
8088     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8089     ;;
8090    hppa*64*)
8091      shrext_cmds='.sl'
8092      hardcode_into_libs=yes
8093      dynamic_linker="$host_os dld.sl"
8094      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8095      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8096      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8097      soname_spec='${libname}${release}${shared_ext}$major'
8098      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8099      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8100      ;;
8101    *)
8102     shrext_cmds='.sl'
8103     dynamic_linker="$host_os dld.sl"
8104     shlibpath_var=SHLIB_PATH
8105     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8107     soname_spec='${libname}${release}${shared_ext}$major'
8108     ;;
8109   esac
8110   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8111   postinstall_cmds='chmod 555 $lib'
8112   ;;
8113
8114 irix5* | irix6* | nonstopux*)
8115   case $host_os in
8116     nonstopux*) version_type=nonstopux ;;
8117     *)
8118         if test "$lt_cv_prog_gnu_ld" = yes; then
8119                 version_type=linux
8120         else
8121                 version_type=irix
8122         fi ;;
8123   esac
8124   need_lib_prefix=no
8125   need_version=no
8126   soname_spec='${libname}${release}${shared_ext}$major'
8127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8128   case $host_os in
8129   irix5* | nonstopux*)
8130     libsuff= shlibsuff=
8131     ;;
8132   *)
8133     case $LD in # libtool.m4 will add one of these switches to LD
8134     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8135       libsuff= shlibsuff= libmagic=32-bit;;
8136     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8137       libsuff=32 shlibsuff=N32 libmagic=N32;;
8138     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8139       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8140     *) libsuff= shlibsuff= libmagic=never-match;;
8141     esac
8142     ;;
8143   esac
8144   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8145   shlibpath_overrides_runpath=no
8146   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8147   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8148   hardcode_into_libs=yes
8149   ;;
8150
8151 # No shared lib support for Linux oldld, aout, or coff.
8152 linux*oldld* | linux*aout* | linux*coff*)
8153   dynamic_linker=no
8154   ;;
8155
8156 # This must be Linux ELF.
8157 linux*)
8158   version_type=linux
8159   need_lib_prefix=no
8160   need_version=no
8161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8162   soname_spec='${libname}${release}${shared_ext}$major'
8163   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8164   shlibpath_var=LD_LIBRARY_PATH
8165   shlibpath_overrides_runpath=no
8166   # This implies no fast_install, which is unacceptable.
8167   # Some rework will be needed to allow for fast_install
8168   # before this can be enabled.
8169   hardcode_into_libs=yes
8170
8171   # Append ld.so.conf contents to the search path
8172   if test -f /etc/ld.so.conf; then
8173     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8174     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8175   fi
8176
8177   # We used to test for /lib/ld.so.1 and disable shared libraries on
8178   # powerpc, because MkLinux only supported shared libraries with the
8179   # GNU dynamic linker.  Since this was broken with cross compilers,
8180   # most powerpc-linux boxes support dynamic linking these days and
8181   # people can always --disable-shared, the test was removed, and we
8182   # assume the GNU/Linux dynamic linker is in use.
8183   dynamic_linker='GNU/Linux ld.so'
8184   ;;
8185
8186 netbsdelf*-gnu)
8187   version_type=linux
8188   need_lib_prefix=no
8189   need_version=no
8190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8191   soname_spec='${libname}${release}${shared_ext}$major'
8192   shlibpath_var=LD_LIBRARY_PATH
8193   shlibpath_overrides_runpath=no
8194   hardcode_into_libs=yes
8195   dynamic_linker='NetBSD ld.elf_so'
8196   ;;
8197
8198 knetbsd*-gnu)
8199   version_type=linux
8200   need_lib_prefix=no
8201   need_version=no
8202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8203   soname_spec='${libname}${release}${shared_ext}$major'
8204   shlibpath_var=LD_LIBRARY_PATH
8205   shlibpath_overrides_runpath=no
8206   hardcode_into_libs=yes
8207   dynamic_linker='GNU ld.so'
8208   ;;
8209
8210 netbsd*)
8211   version_type=sunos
8212   need_lib_prefix=no
8213   need_version=no
8214   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8216     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8217     dynamic_linker='NetBSD (a.out) ld.so'
8218   else
8219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8220     soname_spec='${libname}${release}${shared_ext}$major'
8221     dynamic_linker='NetBSD ld.elf_so'
8222   fi
8223   shlibpath_var=LD_LIBRARY_PATH
8224   shlibpath_overrides_runpath=yes
8225   hardcode_into_libs=yes
8226   ;;
8227
8228 newsos6)
8229   version_type=linux
8230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8231   shlibpath_var=LD_LIBRARY_PATH
8232   shlibpath_overrides_runpath=yes
8233   ;;
8234
8235 nto-qnx*)
8236   version_type=linux
8237   need_lib_prefix=no
8238   need_version=no
8239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240   soname_spec='${libname}${release}${shared_ext}$major'
8241   shlibpath_var=LD_LIBRARY_PATH
8242   shlibpath_overrides_runpath=yes
8243   ;;
8244
8245 openbsd*)
8246   version_type=sunos
8247   need_lib_prefix=no
8248   need_version=yes
8249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8251   shlibpath_var=LD_LIBRARY_PATH
8252   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8253     case $host_os in
8254       openbsd2.[89] | openbsd2.[89].*)
8255         shlibpath_overrides_runpath=no
8256         ;;
8257       *)
8258         shlibpath_overrides_runpath=yes
8259         ;;
8260       esac
8261   else
8262     shlibpath_overrides_runpath=yes
8263   fi
8264   ;;
8265
8266 os2*)
8267   libname_spec='$name'
8268   shrext_cmds=".dll"
8269   need_lib_prefix=no
8270   library_names_spec='$libname${shared_ext} $libname.a'
8271   dynamic_linker='OS/2 ld.exe'
8272   shlibpath_var=LIBPATH
8273   ;;
8274
8275 osf3* | osf4* | osf5*)
8276   version_type=osf
8277   need_lib_prefix=no
8278   need_version=no
8279   soname_spec='${libname}${release}${shared_ext}$major'
8280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281   shlibpath_var=LD_LIBRARY_PATH
8282   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8283   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8284   ;;
8285
8286 sco3.2v5*)
8287   version_type=osf
8288   soname_spec='${libname}${release}${shared_ext}$major'
8289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290   shlibpath_var=LD_LIBRARY_PATH
8291   ;;
8292
8293 solaris*)
8294   version_type=linux
8295   need_lib_prefix=no
8296   need_version=no
8297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298   soname_spec='${libname}${release}${shared_ext}$major'
8299   shlibpath_var=LD_LIBRARY_PATH
8300   shlibpath_overrides_runpath=yes
8301   hardcode_into_libs=yes
8302   # ldd complains unless libraries are executable
8303   postinstall_cmds='chmod +x $lib'
8304   ;;
8305
8306 sunos4*)
8307   version_type=sunos
8308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8309   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8310   shlibpath_var=LD_LIBRARY_PATH
8311   shlibpath_overrides_runpath=yes
8312   if test "$with_gnu_ld" = yes; then
8313     need_lib_prefix=no
8314   fi
8315   need_version=yes
8316   ;;
8317
8318 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8319   version_type=linux
8320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321   soname_spec='${libname}${release}${shared_ext}$major'
8322   shlibpath_var=LD_LIBRARY_PATH
8323   case $host_vendor in
8324     sni)
8325       shlibpath_overrides_runpath=no
8326       need_lib_prefix=no
8327       export_dynamic_flag_spec='${wl}-Blargedynsym'
8328       runpath_var=LD_RUN_PATH
8329       ;;
8330     siemens)
8331       need_lib_prefix=no
8332       ;;
8333     motorola)
8334       need_lib_prefix=no
8335       need_version=no
8336       shlibpath_overrides_runpath=no
8337       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8338       ;;
8339   esac
8340   ;;
8341
8342 sysv4*MP*)
8343   if test -d /usr/nec ;then
8344     version_type=linux
8345     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8346     soname_spec='$libname${shared_ext}.$major'
8347     shlibpath_var=LD_LIBRARY_PATH
8348   fi
8349   ;;
8350
8351 uts4*)
8352   version_type=linux
8353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8354   soname_spec='${libname}${release}${shared_ext}$major'
8355   shlibpath_var=LD_LIBRARY_PATH
8356   ;;
8357
8358 *)
8359   dynamic_linker=no
8360   ;;
8361 esac
8362 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8363 echo "${ECHO_T}$dynamic_linker" >&6
8364 test "$dynamic_linker" = no && can_build_shared=no
8365
8366 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8368 hardcode_action=
8369 if test -n "$hardcode_libdir_flag_spec" || \
8370    test -n "$runpath_var " || \
8371    test "X$hardcode_automatic"="Xyes" ; then
8372
8373   # We can hardcode non-existant directories.
8374   if test "$hardcode_direct" != no &&
8375      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8376      # have to relink, otherwise we might link with an installed library
8377      # when we should be linking with a yet-to-be-installed one
8378      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8379      test "$hardcode_minus_L" != no; then
8380     # Linking always hardcodes the temporary library directory.
8381     hardcode_action=relink
8382   else
8383     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8384     hardcode_action=immediate
8385   fi
8386 else
8387   # We cannot hardcode anything, or else we can only hardcode existing
8388   # directories.
8389   hardcode_action=unsupported
8390 fi
8391 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8392 echo "${ECHO_T}$hardcode_action" >&6
8393
8394 if test "$hardcode_action" = relink; then
8395   # Fast installation is not supported
8396   enable_fast_install=no
8397 elif test "$shlibpath_overrides_runpath" = yes ||
8398      test "$enable_shared" = no; then
8399   # Fast installation is not necessary
8400   enable_fast_install=needless
8401 fi
8402
8403 striplib=
8404 old_striplib=
8405 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8406 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8407 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8408   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8409   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8410   echo "$as_me:$LINENO: result: yes" >&5
8411 echo "${ECHO_T}yes" >&6
8412 else
8413 # FIXME - insert some real tests, host_os isn't really good enough
8414   case $host_os in
8415    darwin*)
8416        if test -n "$STRIP" ; then
8417          striplib="$STRIP -x"
8418          echo "$as_me:$LINENO: result: yes" >&5
8419 echo "${ECHO_T}yes" >&6
8420        else
8421   echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6
8423 fi
8424        ;;
8425    *)
8426   echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6
8428     ;;
8429   esac
8430 fi
8431
8432 if test "x$enable_dlopen" != xyes; then
8433   enable_dlopen=unknown
8434   enable_dlopen_self=unknown
8435   enable_dlopen_self_static=unknown
8436 else
8437   lt_cv_dlopen=no
8438   lt_cv_dlopen_libs=
8439
8440   case $host_os in
8441   beos*)
8442     lt_cv_dlopen="load_add_on"
8443     lt_cv_dlopen_libs=
8444     lt_cv_dlopen_self=yes
8445     ;;
8446
8447   mingw* | pw32*)
8448     lt_cv_dlopen="LoadLibrary"
8449     lt_cv_dlopen_libs=
8450    ;;
8451
8452   cygwin*)
8453     lt_cv_dlopen="dlopen"
8454     lt_cv_dlopen_libs=
8455    ;;
8456
8457   darwin*)
8458   # if libdl is installed we need to link against it
8459     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464   ac_check_lib_save_LIBS=$LIBS
8465 LIBS="-ldl  $LIBS"
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472
8473 /* Override any gcc2 internal prototype to avoid an error.  */
8474 #ifdef __cplusplus
8475 extern "C"
8476 #endif
8477 /* We use char because int might match the return type of a gcc2
8478    builtin and then its argument prototype would still apply.  */
8479 char dlopen ();
8480 int
8481 main ()
8482 {
8483 dlopen ();
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490   (eval $ac_link) 2>conftest.er1
8491   ac_status=$?
8492   grep -v '^ *+' conftest.er1 >conftest.err
8493   rm -f conftest.er1
8494   cat conftest.err >&5
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } &&
8497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499   (eval $ac_try) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; } &&
8503          { ac_try='test -s conftest$ac_exeext'
8504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505   (eval $ac_try) 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; }; then
8509   ac_cv_lib_dl_dlopen=yes
8510 else
8511   echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 ac_cv_lib_dl_dlopen=no
8515 fi
8516 rm -f conftest.err conftest.$ac_objext \
8517       conftest$ac_exeext conftest.$ac_ext
8518 LIBS=$ac_check_lib_save_LIBS
8519 fi
8520 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8522 if test $ac_cv_lib_dl_dlopen = yes; then
8523   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8524 else
8525
8526     lt_cv_dlopen="dyld"
8527     lt_cv_dlopen_libs=
8528     lt_cv_dlopen_self=yes
8529
8530 fi
8531
8532    ;;
8533
8534   *)
8535     echo "$as_me:$LINENO: checking for shl_load" >&5
8536 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8537 if test "${ac_cv_func_shl_load+set}" = set; then
8538   echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540   cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8548 #define shl_load innocuous_shl_load
8549
8550 /* System header to define __stub macros and hopefully few prototypes,
8551     which can conflict with char shl_load (); below.
8552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553     <limits.h> exists even on freestanding compilers.  */
8554
8555 #ifdef __STDC__
8556 # include <limits.h>
8557 #else
8558 # include <assert.h>
8559 #endif
8560
8561 #undef shl_load
8562
8563 /* Override any gcc2 internal prototype to avoid an error.  */
8564 #ifdef __cplusplus
8565 extern "C"
8566 {
8567 #endif
8568 /* We use char because int might match the return type of a gcc2
8569    builtin and then its argument prototype would still apply.  */
8570 char shl_load ();
8571 /* The GNU C library defines this for functions which it implements
8572     to always fail with ENOSYS.  Some functions are actually named
8573     something starting with __ and the normal name is an alias.  */
8574 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8575 choke me
8576 #else
8577 char (*f) () = shl_load;
8578 #endif
8579 #ifdef __cplusplus
8580 }
8581 #endif
8582
8583 int
8584 main ()
8585 {
8586 return f != shl_load;
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593   (eval $ac_link) 2>conftest.er1
8594   ac_status=$?
8595   grep -v '^ *+' conftest.er1 >conftest.err
8596   rm -f conftest.er1
8597   cat conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } &&
8600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; } &&
8606          { ac_try='test -s conftest$ac_exeext'
8607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612   ac_cv_func_shl_load=yes
8613 else
8614   echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8616
8617 ac_cv_func_shl_load=no
8618 fi
8619 rm -f conftest.err conftest.$ac_objext \
8620       conftest$ac_exeext conftest.$ac_ext
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8623 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8624 if test $ac_cv_func_shl_load = yes; then
8625   lt_cv_dlopen="shl_load"
8626 else
8627   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8628 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8629 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8630   echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632   ac_check_lib_save_LIBS=$LIBS
8633 LIBS="-ldld  $LIBS"
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640
8641 /* Override any gcc2 internal prototype to avoid an error.  */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 /* We use char because int might match the return type of a gcc2
8646    builtin and then its argument prototype would still apply.  */
8647 char shl_load ();
8648 int
8649 main ()
8650 {
8651 shl_load ();
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658   (eval $ac_link) 2>conftest.er1
8659   ac_status=$?
8660   grep -v '^ *+' conftest.er1 >conftest.err
8661   rm -f conftest.er1
8662   cat conftest.err >&5
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } &&
8665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; } &&
8671          { ac_try='test -s conftest$ac_exeext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_cv_lib_dld_shl_load=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 ac_cv_lib_dld_shl_load=no
8683 fi
8684 rm -f conftest.err conftest.$ac_objext \
8685       conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS
8687 fi
8688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8689 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8690 if test $ac_cv_lib_dld_shl_load = yes; then
8691   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8692 else
8693   echo "$as_me:$LINENO: checking for dlopen" >&5
8694 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8695 if test "${ac_cv_func_dlopen+set}" = set; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h.  */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h.  */
8704 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8706 #define dlopen innocuous_dlopen
8707
8708 /* System header to define __stub macros and hopefully few prototypes,
8709     which can conflict with char dlopen (); below.
8710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8711     <limits.h> exists even on freestanding compilers.  */
8712
8713 #ifdef __STDC__
8714 # include <limits.h>
8715 #else
8716 # include <assert.h>
8717 #endif
8718
8719 #undef dlopen
8720
8721 /* Override any gcc2 internal prototype to avoid an error.  */
8722 #ifdef __cplusplus
8723 extern "C"
8724 {
8725 #endif
8726 /* We use char because int might match the return type of a gcc2
8727    builtin and then its argument prototype would still apply.  */
8728 char dlopen ();
8729 /* The GNU C library defines this for functions which it implements
8730     to always fail with ENOSYS.  Some functions are actually named
8731     something starting with __ and the normal name is an alias.  */
8732 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8733 choke me
8734 #else
8735 char (*f) () = dlopen;
8736 #endif
8737 #ifdef __cplusplus
8738 }
8739 #endif
8740
8741 int
8742 main ()
8743 {
8744 return f != dlopen;
8745   ;
8746   return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751   (eval $ac_link) 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; } &&
8764          { ac_try='test -s conftest$ac_exeext'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   ac_cv_func_dlopen=yes
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 ac_cv_func_dlopen=no
8776 fi
8777 rm -f conftest.err conftest.$ac_objext \
8778       conftest$ac_exeext conftest.$ac_ext
8779 fi
8780 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8781 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8782 if test $ac_cv_func_dlopen = yes; then
8783   lt_cv_dlopen="dlopen"
8784 else
8785   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8786 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8787 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   ac_check_lib_save_LIBS=$LIBS
8791 LIBS="-ldl  $LIBS"
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798
8799 /* Override any gcc2 internal prototype to avoid an error.  */
8800 #ifdef __cplusplus
8801 extern "C"
8802 #endif
8803 /* We use char because int might match the return type of a gcc2
8804    builtin and then its argument prototype would still apply.  */
8805 char dlopen ();
8806 int
8807 main ()
8808 {
8809 dlopen ();
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816   (eval $ac_link) 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } &&
8823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825   (eval $ac_try) 2>&5
8826   ac_status=$?
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); }; } &&
8829          { ac_try='test -s conftest$ac_exeext'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; }; then
8835   ac_cv_lib_dl_dlopen=yes
8836 else
8837   echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8839
8840 ac_cv_lib_dl_dlopen=no
8841 fi
8842 rm -f conftest.err conftest.$ac_objext \
8843       conftest$ac_exeext conftest.$ac_ext
8844 LIBS=$ac_check_lib_save_LIBS
8845 fi
8846 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8847 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8848 if test $ac_cv_lib_dl_dlopen = yes; then
8849   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8850 else
8851   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8852 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8853 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8854   echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856   ac_check_lib_save_LIBS=$LIBS
8857 LIBS="-lsvld  $LIBS"
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864
8865 /* Override any gcc2 internal prototype to avoid an error.  */
8866 #ifdef __cplusplus
8867 extern "C"
8868 #endif
8869 /* We use char because int might match the return type of a gcc2
8870    builtin and then its argument prototype would still apply.  */
8871 char dlopen ();
8872 int
8873 main ()
8874 {
8875 dlopen ();
8876   ;
8877   return 0;
8878 }
8879 _ACEOF
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882   (eval $ac_link) 2>conftest.er1
8883   ac_status=$?
8884   grep -v '^ *+' conftest.er1 >conftest.err
8885   rm -f conftest.er1
8886   cat conftest.err >&5
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } &&
8889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891   (eval $ac_try) 2>&5
8892   ac_status=$?
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   (exit $ac_status); }; } &&
8895          { ac_try='test -s conftest$ac_exeext'
8896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897   (eval $ac_try) 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); }; }; then
8901   ac_cv_lib_svld_dlopen=yes
8902 else
8903   echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906 ac_cv_lib_svld_dlopen=no
8907 fi
8908 rm -f conftest.err conftest.$ac_objext \
8909       conftest$ac_exeext conftest.$ac_ext
8910 LIBS=$ac_check_lib_save_LIBS
8911 fi
8912 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8913 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8914 if test $ac_cv_lib_svld_dlopen = yes; then
8915   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8916 else
8917   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8918 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8919 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8920   echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922   ac_check_lib_save_LIBS=$LIBS
8923 LIBS="-ldld  $LIBS"
8924 cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h.  */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h.  */
8930
8931 /* Override any gcc2 internal prototype to avoid an error.  */
8932 #ifdef __cplusplus
8933 extern "C"
8934 #endif
8935 /* We use char because int might match the return type of a gcc2
8936    builtin and then its argument prototype would still apply.  */
8937 char dld_link ();
8938 int
8939 main ()
8940 {
8941 dld_link ();
8942   ;
8943   return 0;
8944 }
8945 _ACEOF
8946 rm -f conftest.$ac_objext conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948   (eval $ac_link) 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } &&
8955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957   (eval $ac_try) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; } &&
8961          { ac_try='test -s conftest$ac_exeext'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; }; then
8967   ac_cv_lib_dld_dld_link=yes
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_cv_lib_dld_dld_link=no
8973 fi
8974 rm -f conftest.err conftest.$ac_objext \
8975       conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8977 fi
8978 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8979 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8980 if test $ac_cv_lib_dld_dld_link = yes; then
8981   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8982 fi
8983
8984
8985 fi
8986
8987
8988 fi
8989
8990
8991 fi
8992
8993
8994 fi
8995
8996
8997 fi
8998
8999     ;;
9000   esac
9001
9002   if test "x$lt_cv_dlopen" != xno; then
9003     enable_dlopen=yes
9004   else
9005     enable_dlopen=no
9006   fi
9007
9008   case $lt_cv_dlopen in
9009   dlopen)
9010     save_CPPFLAGS="$CPPFLAGS"
9011     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9012
9013     save_LDFLAGS="$LDFLAGS"
9014     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9015
9016     save_LIBS="$LIBS"
9017     LIBS="$lt_cv_dlopen_libs $LIBS"
9018
9019     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9020 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9021 if test "${lt_cv_dlopen_self+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024           if test "$cross_compiling" = yes; then :
9025   lt_cv_dlopen_self=cross
9026 else
9027   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9028   lt_status=$lt_dlunknown
9029   cat > conftest.$ac_ext <<EOF
9030 #line 9030 "configure"
9031 #include "confdefs.h"
9032
9033 #if HAVE_DLFCN_H
9034 #include <dlfcn.h>
9035 #endif
9036
9037 #include <stdio.h>
9038
9039 #ifdef RTLD_GLOBAL
9040 #  define LT_DLGLOBAL           RTLD_GLOBAL
9041 #else
9042 #  ifdef DL_GLOBAL
9043 #    define LT_DLGLOBAL         DL_GLOBAL
9044 #  else
9045 #    define LT_DLGLOBAL         0
9046 #  endif
9047 #endif
9048
9049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9050    find out it does not work in some platform. */
9051 #ifndef LT_DLLAZY_OR_NOW
9052 #  ifdef RTLD_LAZY
9053 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9054 #  else
9055 #    ifdef DL_LAZY
9056 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9057 #    else
9058 #      ifdef RTLD_NOW
9059 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9060 #      else
9061 #        ifdef DL_NOW
9062 #          define LT_DLLAZY_OR_NOW      DL_NOW
9063 #        else
9064 #          define LT_DLLAZY_OR_NOW      0
9065 #        endif
9066 #      endif
9067 #    endif
9068 #  endif
9069 #endif
9070
9071 #ifdef __cplusplus
9072 extern "C" void exit (int);
9073 #endif
9074
9075 void fnord() { int i=42;}
9076 int main ()
9077 {
9078   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9079   int status = $lt_dlunknown;
9080
9081   if (self)
9082     {
9083       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9084       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9085       /* dlclose (self); */
9086     }
9087
9088     exit (status);
9089 }
9090 EOF
9091   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092   (eval $ac_link) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9096     (./conftest; exit; ) 2>/dev/null
9097     lt_status=$?
9098     case x$lt_status in
9099       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9100       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9101       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9102     esac
9103   else :
9104     # compilation failed
9105     lt_cv_dlopen_self=no
9106   fi
9107 fi
9108 rm -fr conftest*
9109
9110
9111 fi
9112 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9113 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9114
9115     if test "x$lt_cv_dlopen_self" = xyes; then
9116       LDFLAGS="$LDFLAGS $link_static_flag"
9117       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9118 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9119 if test "${lt_cv_dlopen_self_static+set}" = set; then
9120   echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122           if test "$cross_compiling" = yes; then :
9123   lt_cv_dlopen_self_static=cross
9124 else
9125   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9126   lt_status=$lt_dlunknown
9127   cat > conftest.$ac_ext <<EOF
9128 #line 9128 "configure"
9129 #include "confdefs.h"
9130
9131 #if HAVE_DLFCN_H
9132 #include <dlfcn.h>
9133 #endif
9134
9135 #include <stdio.h>
9136
9137 #ifdef RTLD_GLOBAL
9138 #  define LT_DLGLOBAL           RTLD_GLOBAL
9139 #else
9140 #  ifdef DL_GLOBAL
9141 #    define LT_DLGLOBAL         DL_GLOBAL
9142 #  else
9143 #    define LT_DLGLOBAL         0
9144 #  endif
9145 #endif
9146
9147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9148    find out it does not work in some platform. */
9149 #ifndef LT_DLLAZY_OR_NOW
9150 #  ifdef RTLD_LAZY
9151 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9152 #  else
9153 #    ifdef DL_LAZY
9154 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9155 #    else
9156 #      ifdef RTLD_NOW
9157 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9158 #      else
9159 #        ifdef DL_NOW
9160 #          define LT_DLLAZY_OR_NOW      DL_NOW
9161 #        else
9162 #          define LT_DLLAZY_OR_NOW      0
9163 #        endif
9164 #      endif
9165 #    endif
9166 #  endif
9167 #endif
9168
9169 #ifdef __cplusplus
9170 extern "C" void exit (int);
9171 #endif
9172
9173 void fnord() { int i=42;}
9174 int main ()
9175 {
9176   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9177   int status = $lt_dlunknown;
9178
9179   if (self)
9180     {
9181       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9182       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9183       /* dlclose (self); */
9184     }
9185
9186     exit (status);
9187 }
9188 EOF
9189   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190   (eval $ac_link) 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9194     (./conftest; exit; ) 2>/dev/null
9195     lt_status=$?
9196     case x$lt_status in
9197       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9198       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9199       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9200     esac
9201   else :
9202     # compilation failed
9203     lt_cv_dlopen_self_static=no
9204   fi
9205 fi
9206 rm -fr conftest*
9207
9208
9209 fi
9210 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9211 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9212     fi
9213
9214     CPPFLAGS="$save_CPPFLAGS"
9215     LDFLAGS="$save_LDFLAGS"
9216     LIBS="$save_LIBS"
9217     ;;
9218   esac
9219
9220   case $lt_cv_dlopen_self in
9221   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9222   *) enable_dlopen_self=unknown ;;
9223   esac
9224
9225   case $lt_cv_dlopen_self_static in
9226   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9227   *) enable_dlopen_self_static=unknown ;;
9228   esac
9229 fi
9230
9231
9232 # Report which librarie types wil actually be built
9233 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9234 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9235 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9236 echo "${ECHO_T}$can_build_shared" >&6
9237
9238 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9239 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9240 test "$can_build_shared" = "no" && enable_shared=no
9241
9242 # On AIX, shared libraries and static libraries use the same namespace, and
9243 # are all built from PIC.
9244 case "$host_os" in
9245 aix3*)
9246   test "$enable_shared" = yes && enable_static=no
9247   if test -n "$RANLIB"; then
9248     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9249     postinstall_cmds='$RANLIB $lib'
9250   fi
9251   ;;
9252
9253 aix4* | aix5*)
9254   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9255     test "$enable_shared" = yes && enable_static=no
9256   fi
9257   ;;
9258   darwin* | rhapsody*)
9259   if test "$GCC" = yes; then
9260     archive_cmds_need_lc=no
9261     case "$host_os" in
9262     rhapsody* | darwin1.[012])
9263       allow_undefined_flag='-undefined suppress'
9264       ;;
9265     *) # Darwin 1.3 on
9266       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9267         allow_undefined_flag='-flat_namespace -undefined suppress'
9268       else
9269         case ${MACOSX_DEPLOYMENT_TARGET} in
9270           10.[012])
9271             allow_undefined_flag='-flat_namespace -undefined suppress'
9272             ;;
9273           10.*)
9274             allow_undefined_flag='-undefined dynamic_lookup'
9275             ;;
9276         esac
9277       fi
9278       ;;
9279     esac
9280     output_verbose_link_cmd='echo'
9281     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9282     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9283     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9284     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}'
9285     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}'
9286     hardcode_direct=no
9287     hardcode_automatic=yes
9288     hardcode_shlibpath_var=unsupported
9289     whole_archive_flag_spec='-all_load $convenience'
9290     link_all_deplibs=yes
9291   else
9292     ld_shlibs=no
9293   fi
9294     ;;
9295 esac
9296 echo "$as_me:$LINENO: result: $enable_shared" >&5
9297 echo "${ECHO_T}$enable_shared" >&6
9298
9299 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9300 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9301 # Make sure either enable_shared or enable_static is yes.
9302 test "$enable_shared" = yes || enable_static=yes
9303 echo "$as_me:$LINENO: result: $enable_static" >&5
9304 echo "${ECHO_T}$enable_static" >&6
9305
9306 # The else clause should only fire when bootstrapping the
9307 # libtool distribution, otherwise you forgot to ship ltmain.sh
9308 # with your package, and you will get complaints that there are
9309 # no rules to generate ltmain.sh.
9310 if test -f "$ltmain"; then
9311   # See if we are running on zsh, and set the options which allow our commands through
9312   # without removal of \ escapes.
9313   if test -n "${ZSH_VERSION+set}" ; then
9314     setopt NO_GLOB_SUBST
9315   fi
9316   # Now quote all the things that may contain metacharacters while being
9317   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9318   # variables and quote the copies for generation of the libtool script.
9319   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9320     SED SHELL STRIP \
9321     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9322     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9323     deplibs_check_method reload_flag reload_cmds need_locks \
9324     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9325     lt_cv_sys_global_symbol_to_c_name_address \
9326     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9327     old_postinstall_cmds old_postuninstall_cmds \
9328     compiler \
9329     CC \
9330     LD \
9331     lt_prog_compiler_wl \
9332     lt_prog_compiler_pic \
9333     lt_prog_compiler_static \
9334     lt_prog_compiler_no_builtin_flag \
9335     export_dynamic_flag_spec \
9336     thread_safe_flag_spec \
9337     whole_archive_flag_spec \
9338     enable_shared_with_static_runtimes \
9339     old_archive_cmds \
9340     old_archive_from_new_cmds \
9341     predep_objects \
9342     postdep_objects \
9343     predeps \
9344     postdeps \
9345     compiler_lib_search_path \
9346     archive_cmds \
9347     archive_expsym_cmds \
9348     postinstall_cmds \
9349     postuninstall_cmds \
9350     old_archive_from_expsyms_cmds \
9351     allow_undefined_flag \
9352     no_undefined_flag \
9353     export_symbols_cmds \
9354     hardcode_libdir_flag_spec \
9355     hardcode_libdir_flag_spec_ld \
9356     hardcode_libdir_separator \
9357     hardcode_automatic \
9358     module_cmds \
9359     module_expsym_cmds \
9360     lt_cv_prog_compiler_c_o \
9361     exclude_expsyms \
9362     include_expsyms; do
9363
9364     case $var in
9365     old_archive_cmds | \
9366     old_archive_from_new_cmds | \
9367     archive_cmds | \
9368     archive_expsym_cmds | \
9369     module_cmds | \
9370     module_expsym_cmds | \
9371     old_archive_from_expsyms_cmds | \
9372     export_symbols_cmds | \
9373     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9374     postinstall_cmds | postuninstall_cmds | \
9375     old_postinstall_cmds | old_postuninstall_cmds | \
9376     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9377       # Double-quote double-evaled strings.
9378       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9379       ;;
9380     *)
9381       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9382       ;;
9383     esac
9384   done
9385
9386   case $lt_echo in
9387   *'\$0 --fallback-echo"')
9388     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9389     ;;
9390   esac
9391
9392 cfgfile="${ofile}T"
9393   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9394   $rm -f "$cfgfile"
9395   { echo "$as_me:$LINENO: creating $ofile" >&5
9396 echo "$as_me: creating $ofile" >&6;}
9397
9398   cat <<__EOF__ >> "$cfgfile"
9399 #! $SHELL
9400
9401 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9402 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9403 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9404 #
9405 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9406 # Free Software Foundation, Inc.
9407 #
9408 # This file is part of GNU Libtool:
9409 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9410 #
9411 # This program is free software; you can redistribute it and/or modify
9412 # it under the terms of the GNU General Public License as published by
9413 # the Free Software Foundation; either version 2 of the License, or
9414 # (at your option) any later version.
9415 #
9416 # This program is distributed in the hope that it will be useful, but
9417 # WITHOUT ANY WARRANTY; without even the implied warranty of
9418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9419 # General Public License for more details.
9420 #
9421 # You should have received a copy of the GNU General Public License
9422 # along with this program; if not, write to the Free Software
9423 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9424 #
9425 # As a special exception to the GNU General Public License, if you
9426 # distribute this file as part of a program that contains a
9427 # configuration script generated by Autoconf, you may include it under
9428 # the same distribution terms that you use for the rest of that program.
9429
9430 # A sed program that does not truncate output.
9431 SED=$lt_SED
9432
9433 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9434 Xsed="$SED -e s/^X//"
9435
9436 # The HP-UX ksh and POSIX shell print the target directory to stdout
9437 # if CDPATH is set.
9438 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9439
9440 # The names of the tagged configurations supported by this script.
9441 available_tags=
9442
9443 # ### BEGIN LIBTOOL CONFIG
9444
9445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9446
9447 # Shell to use when invoking shell scripts.
9448 SHELL=$lt_SHELL
9449
9450 # Whether or not to build shared libraries.
9451 build_libtool_libs=$enable_shared
9452
9453 # Whether or not to build static libraries.
9454 build_old_libs=$enable_static
9455
9456 # Whether or not to add -lc for building shared libraries.
9457 build_libtool_need_lc=$archive_cmds_need_lc
9458
9459 # Whether or not to disallow shared libs when runtime libs are static
9460 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9461
9462 # Whether or not to optimize for fast installation.
9463 fast_install=$enable_fast_install
9464
9465 # The host system.
9466 host_alias=$host_alias
9467 host=$host
9468
9469 # An echo program that does not interpret backslashes.
9470 echo=$lt_echo
9471
9472 # The archiver.
9473 AR=$lt_AR
9474 AR_FLAGS=$lt_AR_FLAGS
9475
9476 # A C compiler.
9477 LTCC=$lt_LTCC
9478
9479 # A language-specific compiler.
9480 CC=$lt_compiler
9481
9482 # Is the compiler the GNU C compiler?
9483 with_gcc=$GCC
9484
9485 # An ERE matcher.
9486 EGREP=$lt_EGREP
9487
9488 # The linker used to build libraries.
9489 LD=$lt_LD
9490
9491 # Whether we need hard or soft links.
9492 LN_S=$lt_LN_S
9493
9494 # A BSD-compatible nm program.
9495 NM=$lt_NM
9496
9497 # A symbol stripping program
9498 STRIP=$lt_STRIP
9499
9500 # Used to examine libraries when file_magic_cmd begins "file"
9501 MAGIC_CMD=$MAGIC_CMD
9502
9503 # Used on cygwin: DLL creation program.
9504 DLLTOOL="$DLLTOOL"
9505
9506 # Used on cygwin: object dumper.
9507 OBJDUMP="$OBJDUMP"
9508
9509 # Used on cygwin: assembler.
9510 AS="$AS"
9511
9512 # The name of the directory that contains temporary libtool files.
9513 objdir=$objdir
9514
9515 # How to create reloadable object files.
9516 reload_flag=$lt_reload_flag
9517 reload_cmds=$lt_reload_cmds
9518
9519 # How to pass a linker flag through the compiler.
9520 wl=$lt_lt_prog_compiler_wl
9521
9522 # Object file suffix (normally "o").
9523 objext="$ac_objext"
9524
9525 # Old archive suffix (normally "a").
9526 libext="$libext"
9527
9528 # Shared library suffix (normally ".so").
9529 shrext_cmds='$shrext_cmds'
9530
9531 # Executable file suffix (normally "").
9532 exeext="$exeext"
9533
9534 # Additional compiler flags for building library objects.
9535 pic_flag=$lt_lt_prog_compiler_pic
9536 pic_mode=$pic_mode
9537
9538 # What is the maximum length of a command?
9539 max_cmd_len=$lt_cv_sys_max_cmd_len
9540
9541 # Does compiler simultaneously support -c and -o options?
9542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9543
9544 # Must we lock files when doing compilation ?
9545 need_locks=$lt_need_locks
9546
9547 # Do we need the lib prefix for modules?
9548 need_lib_prefix=$need_lib_prefix
9549
9550 # Do we need a version for libraries?
9551 need_version=$need_version
9552
9553 # Whether dlopen is supported.
9554 dlopen_support=$enable_dlopen
9555
9556 # Whether dlopen of programs is supported.
9557 dlopen_self=$enable_dlopen_self
9558
9559 # Whether dlopen of statically linked programs is supported.
9560 dlopen_self_static=$enable_dlopen_self_static
9561
9562 # Compiler flag to prevent dynamic linking.
9563 link_static_flag=$lt_lt_prog_compiler_static
9564
9565 # Compiler flag to turn off builtin functions.
9566 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9567
9568 # Compiler flag to allow reflexive dlopens.
9569 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9570
9571 # Compiler flag to generate shared objects directly from archives.
9572 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9573
9574 # Compiler flag to generate thread-safe objects.
9575 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9576
9577 # Library versioning type.
9578 version_type=$version_type
9579
9580 # Format of library name prefix.
9581 libname_spec=$lt_libname_spec
9582
9583 # List of archive names.  First name is the real one, the rest are links.
9584 # The last name is the one that the linker finds with -lNAME.
9585 library_names_spec=$lt_library_names_spec
9586
9587 # The coded name of the library, if different from the real name.
9588 soname_spec=$lt_soname_spec
9589
9590 # Commands used to build and install an old-style archive.
9591 RANLIB=$lt_RANLIB
9592 old_archive_cmds=$lt_old_archive_cmds
9593 old_postinstall_cmds=$lt_old_postinstall_cmds
9594 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9595
9596 # Create an old-style archive from a shared archive.
9597 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9598
9599 # Create a temporary old-style archive to link instead of a shared archive.
9600 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9601
9602 # Commands used to build and install a shared archive.
9603 archive_cmds=$lt_archive_cmds
9604 archive_expsym_cmds=$lt_archive_expsym_cmds
9605 postinstall_cmds=$lt_postinstall_cmds
9606 postuninstall_cmds=$lt_postuninstall_cmds
9607
9608 # Commands used to build a loadable module (assumed same as above if empty)
9609 module_cmds=$lt_module_cmds
9610 module_expsym_cmds=$lt_module_expsym_cmds
9611
9612 # Commands to strip libraries.
9613 old_striplib=$lt_old_striplib
9614 striplib=$lt_striplib
9615
9616 # Dependencies to place before the objects being linked to create a
9617 # shared library.
9618 predep_objects=$lt_predep_objects
9619
9620 # Dependencies to place after the objects being linked to create a
9621 # shared library.
9622 postdep_objects=$lt_postdep_objects
9623
9624 # Dependencies to place before the objects being linked to create a
9625 # shared library.
9626 predeps=$lt_predeps
9627
9628 # Dependencies to place after the objects being linked to create a
9629 # shared library.
9630 postdeps=$lt_postdeps
9631
9632 # The library search path used internally by the compiler when linking
9633 # a shared library.
9634 compiler_lib_search_path=$lt_compiler_lib_search_path
9635
9636 # Method to check whether dependent libraries are shared objects.
9637 deplibs_check_method=$lt_deplibs_check_method
9638
9639 # Command to use when deplibs_check_method == file_magic.
9640 file_magic_cmd=$lt_file_magic_cmd
9641
9642 # Flag that allows shared libraries with undefined symbols to be built.
9643 allow_undefined_flag=$lt_allow_undefined_flag
9644
9645 # Flag that forces no undefined symbols.
9646 no_undefined_flag=$lt_no_undefined_flag
9647
9648 # Commands used to finish a libtool library installation in a directory.
9649 finish_cmds=$lt_finish_cmds
9650
9651 # Same as above, but a single script fragment to be evaled but not shown.
9652 finish_eval=$lt_finish_eval
9653
9654 # Take the output of nm and produce a listing of raw symbols and C names.
9655 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9656
9657 # Transform the output of nm in a proper C declaration
9658 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9659
9660 # Transform the output of nm in a C name address pair
9661 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9662
9663 # This is the shared library runtime path variable.
9664 runpath_var=$runpath_var
9665
9666 # This is the shared library path variable.
9667 shlibpath_var=$shlibpath_var
9668
9669 # Is shlibpath searched before the hard-coded library search path?
9670 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9671
9672 # How to hardcode a shared library path into an executable.
9673 hardcode_action=$hardcode_action
9674
9675 # Whether we should hardcode library paths into libraries.
9676 hardcode_into_libs=$hardcode_into_libs
9677
9678 # Flag to hardcode \$libdir into a binary during linking.
9679 # This must work even if \$libdir does not exist.
9680 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9681
9682 # If ld is used when linking, flag to hardcode \$libdir into
9683 # a binary during linking. This must work even if \$libdir does
9684 # not exist.
9685 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9686
9687 # Whether we need a single -rpath flag with a separated argument.
9688 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9689
9690 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9691 # resulting binary.
9692 hardcode_direct=$hardcode_direct
9693
9694 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9695 # resulting binary.
9696 hardcode_minus_L=$hardcode_minus_L
9697
9698 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9699 # the resulting binary.
9700 hardcode_shlibpath_var=$hardcode_shlibpath_var
9701
9702 # Set to yes if building a shared library automatically hardcodes DIR into the library
9703 # and all subsequent libraries and executables linked against it.
9704 hardcode_automatic=$hardcode_automatic
9705
9706 # Variables whose values should be saved in libtool wrapper scripts and
9707 # restored at relink time.
9708 variables_saved_for_relink="$variables_saved_for_relink"
9709
9710 # Whether libtool must link a program against all its dependency libraries.
9711 link_all_deplibs=$link_all_deplibs
9712
9713 # Compile-time system search path for libraries
9714 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9715
9716 # Run-time system search path for libraries
9717 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9718
9719 # Fix the shell variable \$srcfile for the compiler.
9720 fix_srcfile_path="$fix_srcfile_path"
9721
9722 # Set to yes if exported symbols are required.
9723 always_export_symbols=$always_export_symbols
9724
9725 # The commands to list exported symbols.
9726 export_symbols_cmds=$lt_export_symbols_cmds
9727
9728 # The commands to extract the exported symbol list from a shared archive.
9729 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9730
9731 # Symbols that should not be listed in the preloaded symbols.
9732 exclude_expsyms=$lt_exclude_expsyms
9733
9734 # Symbols that must always be exported.
9735 include_expsyms=$lt_include_expsyms
9736
9737 # ### END LIBTOOL CONFIG
9738
9739 __EOF__
9740
9741
9742   case $host_os in
9743   aix3*)
9744     cat <<\EOF >> "$cfgfile"
9745
9746 # AIX sometimes has problems with the GCC collect2 program.  For some
9747 # reason, if we set the COLLECT_NAMES environment variable, the problems
9748 # vanish in a puff of smoke.
9749 if test "X${COLLECT_NAMES+set}" != Xset; then
9750   COLLECT_NAMES=
9751   export COLLECT_NAMES
9752 fi
9753 EOF
9754     ;;
9755   esac
9756
9757   # We use sed instead of cat because bash on DJGPP gets confused if
9758   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9759   # text mode, it properly converts lines to CR/LF.  This bash problem
9760   # is reportedly fixed, but why not run on old versions too?
9761   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9762
9763   mv -f "$cfgfile" "$ofile" || \
9764     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9765   chmod +x "$ofile"
9766
9767 else
9768   # If there is no Makefile yet, we rely on a make rule to execute
9769   # `config.status --recheck' to rerun these tests and create the
9770   # libtool script then.
9771   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9772   if test -f "$ltmain_in"; then
9773     test -f Makefile && make "$ltmain"
9774   fi
9775 fi
9776
9777
9778 ac_ext=c
9779 ac_cpp='$CPP $CPPFLAGS'
9780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9783
9784 CC="$lt_save_CC"
9785
9786
9787 # Check whether --with-tags or --without-tags was given.
9788 if test "${with_tags+set}" = set; then
9789   withval="$with_tags"
9790   tagnames="$withval"
9791 fi;
9792
9793 if test -f "$ltmain" && test -n "$tagnames"; then
9794   if test ! -f "${ofile}"; then
9795     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9796 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9797   fi
9798
9799   if test -z "$LTCC"; then
9800     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9801     if test -z "$LTCC"; then
9802       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9803 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9804     else
9805       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9806 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9807     fi
9808   fi
9809
9810   # Extract list of available tagged configurations in $ofile.
9811   # Note that this assumes the entire list is on one line.
9812   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9813
9814   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9815   for tagname in $tagnames; do
9816     IFS="$lt_save_ifs"
9817     # Check whether tagname contains only valid characters
9818     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9819     "") ;;
9820     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9821 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9822    { (exit 1); exit 1; }; }
9823         ;;
9824     esac
9825
9826     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9827     then
9828       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9829 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9830    { (exit 1); exit 1; }; }
9831     fi
9832
9833     # Update the list of available tags.
9834     if test -n "$tagname"; then
9835       echo appending configuration tag \"$tagname\" to $ofile
9836
9837       case $tagname in
9838       CXX)
9839         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9840           ac_ext=cc
9841 ac_cpp='$CXXCPP $CPPFLAGS'
9842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9845
9846
9847
9848
9849 archive_cmds_need_lc_CXX=no
9850 allow_undefined_flag_CXX=
9851 always_export_symbols_CXX=no
9852 archive_expsym_cmds_CXX=
9853 export_dynamic_flag_spec_CXX=
9854 hardcode_direct_CXX=no
9855 hardcode_libdir_flag_spec_CXX=
9856 hardcode_libdir_flag_spec_ld_CXX=
9857 hardcode_libdir_separator_CXX=
9858 hardcode_minus_L_CXX=no
9859 hardcode_automatic_CXX=no
9860 module_cmds_CXX=
9861 module_expsym_cmds_CXX=
9862 link_all_deplibs_CXX=unknown
9863 old_archive_cmds_CXX=$old_archive_cmds
9864 no_undefined_flag_CXX=
9865 whole_archive_flag_spec_CXX=
9866 enable_shared_with_static_runtimes_CXX=no
9867
9868 # Dependencies to place before and after the object being linked:
9869 predep_objects_CXX=
9870 postdep_objects_CXX=
9871 predeps_CXX=
9872 postdeps_CXX=
9873 compiler_lib_search_path_CXX=
9874
9875 # Source file extension for C++ test sources.
9876 ac_ext=cc
9877
9878 # Object file extension for compiled C++ test sources.
9879 objext=o
9880 objext_CXX=$objext
9881
9882 # Code to be used in simple compile tests
9883 lt_simple_compile_test_code="int some_variable = 0;\n"
9884
9885 # Code to be used in simple link tests
9886 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9887
9888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9889
9890 # If no C compiler was specified, use CC.
9891 LTCC=${LTCC-"$CC"}
9892
9893 # Allow CC to be a program name with arguments.
9894 compiler=$CC
9895
9896
9897 # Allow CC to be a program name with arguments.
9898 lt_save_CC=$CC
9899 lt_save_LD=$LD
9900 lt_save_GCC=$GCC
9901 GCC=$GXX
9902 lt_save_with_gnu_ld=$with_gnu_ld
9903 lt_save_path_LD=$lt_cv_path_LD
9904 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9905   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9906 else
9907   unset lt_cv_prog_gnu_ld
9908 fi
9909 if test -n "${lt_cv_path_LDCXX+set}"; then
9910   lt_cv_path_LD=$lt_cv_path_LDCXX
9911 else
9912   unset lt_cv_path_LD
9913 fi
9914 test -z "${LDCXX+set}" || LD=$LDCXX
9915 CC=${CXX-"c++"}
9916 compiler=$CC
9917 compiler_CXX=$CC
9918 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9919
9920 # We don't want -fno-exception wen compiling C++ code, so set the
9921 # no_builtin_flag separately
9922 if test "$GXX" = yes; then
9923   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9924 else
9925   lt_prog_compiler_no_builtin_flag_CXX=
9926 fi
9927
9928 if test "$GXX" = yes; then
9929   # Set up default GNU C++ configuration
9930
9931
9932 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9933 if test "${with_gnu_ld+set}" = set; then
9934   withval="$with_gnu_ld"
9935   test "$withval" = no || with_gnu_ld=yes
9936 else
9937   with_gnu_ld=no
9938 fi;
9939 ac_prog=ld
9940 if test "$GCC" = yes; then
9941   # Check if gcc -print-prog-name=ld gives a path.
9942   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9943 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9944   case $host in
9945   *-*-mingw*)
9946     # gcc leaves a trailing carriage return which upsets mingw
9947     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9948   *)
9949     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9950   esac
9951   case $ac_prog in
9952     # Accept absolute paths.
9953     [\\/]* | ?:[\\/]*)
9954       re_direlt='/[^/][^/]*/\.\./'
9955       # Canonicalize the pathname of ld
9956       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9957       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9958         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9959       done
9960       test -z "$LD" && LD="$ac_prog"
9961       ;;
9962   "")
9963     # If it fails, then pretend we aren't using GCC.
9964     ac_prog=ld
9965     ;;
9966   *)
9967     # If it is relative, then search for the first ld in PATH.
9968     with_gnu_ld=unknown
9969     ;;
9970   esac
9971 elif test "$with_gnu_ld" = yes; then
9972   echo "$as_me:$LINENO: checking for GNU ld" >&5
9973 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9974 else
9975   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9976 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9977 fi
9978 if test "${lt_cv_path_LD+set}" = set; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981   if test -z "$LD"; then
9982   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9983   for ac_dir in $PATH; do
9984     IFS="$lt_save_ifs"
9985     test -z "$ac_dir" && ac_dir=.
9986     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9987       lt_cv_path_LD="$ac_dir/$ac_prog"
9988       # Check to see if the program is GNU ld.  I'd rather use --version,
9989       # but apparently some GNU ld's only accept -v.
9990       # Break only if it was the GNU/non-GNU ld that we prefer.
9991       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9992       *GNU* | *'with BFD'*)
9993         test "$with_gnu_ld" != no && break
9994         ;;
9995       *)
9996         test "$with_gnu_ld" != yes && break
9997         ;;
9998       esac
9999     fi
10000   done
10001   IFS="$lt_save_ifs"
10002 else
10003   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10004 fi
10005 fi
10006
10007 LD="$lt_cv_path_LD"
10008 if test -n "$LD"; then
10009   echo "$as_me:$LINENO: result: $LD" >&5
10010 echo "${ECHO_T}$LD" >&6
10011 else
10012   echo "$as_me:$LINENO: result: no" >&5
10013 echo "${ECHO_T}no" >&6
10014 fi
10015 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10016 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10017    { (exit 1); exit 1; }; }
10018 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10019 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10020 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10024 case `$LD -v 2>&1 </dev/null` in
10025 *GNU* | *'with BFD'*)
10026   lt_cv_prog_gnu_ld=yes
10027   ;;
10028 *)
10029   lt_cv_prog_gnu_ld=no
10030   ;;
10031 esac
10032 fi
10033 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10034 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10035 with_gnu_ld=$lt_cv_prog_gnu_ld
10036
10037
10038
10039   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10040   # archiving commands below assume that GNU ld is being used.
10041   if test "$with_gnu_ld" = yes; then
10042     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10043     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'
10044
10045     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10046     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10047
10048     # If archive_cmds runs LD, not CC, wlarc should be empty
10049     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10050     #     investigate it a little bit more. (MM)
10051     wlarc='${wl}'
10052
10053     # ancient GNU ld didn't support --whole-archive et. al.
10054     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10055         grep 'no-whole-archive' > /dev/null; then
10056       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10057     else
10058       whole_archive_flag_spec_CXX=
10059     fi
10060   else
10061     with_gnu_ld=no
10062     wlarc=
10063
10064     # A generic and very simple default shared library creation
10065     # command for GNU C++ for the case where it uses the native
10066     # linker, instead of GNU ld.  If possible, this setting should
10067     # overridden to take advantage of the native linker features on
10068     # the platform it is being used on.
10069     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10070   fi
10071
10072   # Commands to make compiler produce verbose output that lists
10073   # what "hidden" libraries, object files and flags are used when
10074   # linking a shared library.
10075   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10076
10077 else
10078   GXX=no
10079   with_gnu_ld=no
10080   wlarc=
10081 fi
10082
10083 # PORTME: fill in a description of your system's C++ link characteristics
10084 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10085 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10086 ld_shlibs_CXX=yes
10087 case $host_os in
10088   aix3*)
10089     # FIXME: insert proper C++ library support
10090     ld_shlibs_CXX=no
10091     ;;
10092   aix4* | aix5*)
10093     if test "$host_cpu" = ia64; then
10094       # On IA64, the linker does run time linking by default, so we don't
10095       # have to do anything special.
10096       aix_use_runtimelinking=no
10097       exp_sym_flag='-Bexport'
10098       no_entry_flag=""
10099     else
10100       aix_use_runtimelinking=no
10101
10102       # Test if we are trying to use run time linking or normal
10103       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10104       # need to do runtime linking.
10105       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10106         for ld_flag in $LDFLAGS; do
10107           case $ld_flag in
10108           *-brtl*)
10109             aix_use_runtimelinking=yes
10110             break
10111             ;;
10112           esac
10113         done
10114       esac
10115
10116       exp_sym_flag='-bexport'
10117       no_entry_flag='-bnoentry'
10118     fi
10119
10120     # When large executables or shared objects are built, AIX ld can
10121     # have problems creating the table of contents.  If linking a library
10122     # or program results in "error TOC overflow" add -mminimal-toc to
10123     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10124     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10125
10126     archive_cmds_CXX=''
10127     hardcode_direct_CXX=yes
10128     hardcode_libdir_separator_CXX=':'
10129     link_all_deplibs_CXX=yes
10130
10131     if test "$GXX" = yes; then
10132       case $host_os in aix4.012|aix4.012.*)
10133       # We only want to do this on AIX 4.2 and lower, the check
10134       # below for broken collect2 doesn't work under 4.3+
10135         collect2name=`${CC} -print-prog-name=collect2`
10136         if test -f "$collect2name" && \
10137            strings "$collect2name" | grep resolve_lib_name >/dev/null
10138         then
10139           # We have reworked collect2
10140           hardcode_direct_CXX=yes
10141         else
10142           # We have old collect2
10143           hardcode_direct_CXX=unsupported
10144           # It fails to find uninstalled libraries when the uninstalled
10145           # path is not listed in the libpath.  Setting hardcode_minus_L
10146           # to unsupported forces relinking
10147           hardcode_minus_L_CXX=yes
10148           hardcode_libdir_flag_spec_CXX='-L$libdir'
10149           hardcode_libdir_separator_CXX=
10150         fi
10151       esac
10152       shared_flag='-shared'
10153     else
10154       # not using gcc
10155       if test "$host_cpu" = ia64; then
10156         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10157         # chokes on -Wl,-G. The following line is correct:
10158         shared_flag='-G'
10159       else
10160         if test "$aix_use_runtimelinking" = yes; then
10161           shared_flag='${wl}-G'
10162         else
10163           shared_flag='${wl}-bM:SRE'
10164         fi
10165       fi
10166     fi
10167
10168     # It seems that -bexpall does not export symbols beginning with
10169     # underscore (_), so it is better to generate a list of symbols to export.
10170     always_export_symbols_CXX=yes
10171     if test "$aix_use_runtimelinking" = yes; then
10172       # Warning - without using the other runtime loading flags (-brtl),
10173       # -berok will link without error, but may produce a broken library.
10174       allow_undefined_flag_CXX='-berok'
10175       # Determine the default libpath from the value encoded in an empty executable.
10176       cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h.  */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h.  */
10182
10183 int
10184 main ()
10185 {
10186
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193   (eval $ac_link) 2>conftest.er1
10194   ac_status=$?
10195   grep -v '^ *+' conftest.er1 >conftest.err
10196   rm -f conftest.er1
10197   cat conftest.err >&5
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } &&
10200          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; } &&
10206          { ac_try='test -s conftest$ac_exeext'
10207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208   (eval $ac_try) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; }; then
10212
10213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10214 }'`
10215 # Check for a 64-bit object if we didn't find anything.
10216 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; }
10217 }'`; fi
10218 else
10219   echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222 fi
10223 rm -f conftest.err conftest.$ac_objext \
10224       conftest$ac_exeext conftest.$ac_ext
10225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10226
10227       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10228
10229       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10230      else
10231       if test "$host_cpu" = ia64; then
10232         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10233         allow_undefined_flag_CXX="-z nodefs"
10234         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10235       else
10236         # Determine the default libpath from the value encoded in an empty executable.
10237         cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h.  */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h.  */
10243
10244 int
10245 main ()
10246 {
10247
10248   ;
10249   return 0;
10250 }
10251 _ACEOF
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10254   (eval $ac_link) 2>conftest.er1
10255   ac_status=$?
10256   grep -v '^ *+' conftest.er1 >conftest.err
10257   rm -f conftest.er1
10258   cat conftest.err >&5
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } &&
10261          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263   (eval $ac_try) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; } &&
10267          { ac_try='test -s conftest$ac_exeext'
10268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269   (eval $ac_try) 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); }; }; then
10273
10274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10275 }'`
10276 # Check for a 64-bit object if we didn't find anything.
10277 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; }
10278 }'`; fi
10279 else
10280   echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283 fi
10284 rm -f conftest.err conftest.$ac_objext \
10285       conftest$ac_exeext conftest.$ac_ext
10286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10287
10288         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10289         # Warning - without using the other run time loading flags,
10290         # -berok will link without error, but may produce a broken library.
10291         no_undefined_flag_CXX=' ${wl}-bernotok'
10292         allow_undefined_flag_CXX=' ${wl}-berok'
10293         # -bexpall does not export symbols beginning with underscore (_)
10294         always_export_symbols_CXX=yes
10295         # Exported symbols can be pulled into shared objects from archives
10296         whole_archive_flag_spec_CXX=' '
10297         archive_cmds_need_lc_CXX=yes
10298         # This is similar to how AIX traditionally builds it's shared libraries.
10299         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10300       fi
10301     fi
10302     ;;
10303   chorus*)
10304     case $cc_basename in
10305       *)
10306         # FIXME: insert proper C++ library support
10307         ld_shlibs_CXX=no
10308         ;;
10309     esac
10310     ;;
10311
10312   cygwin* | mingw* | pw32*)
10313     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10314     # as there is no search path for DLLs.
10315     hardcode_libdir_flag_spec_CXX='-L$libdir'
10316     allow_undefined_flag_CXX=unsupported
10317     always_export_symbols_CXX=no
10318     enable_shared_with_static_runtimes_CXX=yes
10319
10320     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10321       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10322       # If the export-symbols file already is a .def file (1st line
10323       # is EXPORTS), use it as is; otherwise, prepend...
10324       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10325         cp $export_symbols $output_objdir/$soname.def;
10326       else
10327         echo EXPORTS > $output_objdir/$soname.def;
10328         cat $export_symbols >> $output_objdir/$soname.def;
10329       fi~
10330       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10331     else
10332       ld_shlibs_CXX=no
10333     fi
10334   ;;
10335
10336   darwin* | rhapsody*)
10337   if test "$GXX" = yes; then
10338     archive_cmds_need_lc_CXX=no
10339     case "$host_os" in
10340     rhapsody* | darwin1.[012])
10341       allow_undefined_flag_CXX='-undefined suppress'
10342       ;;
10343     *) # Darwin 1.3 on
10344       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10345         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10346       else
10347         case ${MACOSX_DEPLOYMENT_TARGET} in
10348           10.[012])
10349             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10350             ;;
10351           10.*)
10352             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10353             ;;
10354         esac
10355       fi
10356       ;;
10357     esac
10358     lt_int_apple_cc_single_mod=no
10359     output_verbose_link_cmd='echo'
10360     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10361       lt_int_apple_cc_single_mod=yes
10362     fi
10363     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10364       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10365     else
10366       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10367     fi
10368     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10369
10370     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10371     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10372       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}'
10373     else
10374       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10375     fi
10376     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}'
10377     hardcode_direct_CXX=no
10378     hardcode_automatic_CXX=yes
10379     hardcode_shlibpath_var_CXX=unsupported
10380     whole_archive_flag_spec_CXX='-all_load $convenience'
10381     link_all_deplibs_CXX=yes
10382   else
10383     ld_shlibs_CXX=no
10384   fi
10385     ;;
10386
10387   dgux*)
10388     case $cc_basename in
10389       ec++)
10390         # FIXME: insert proper C++ library support
10391         ld_shlibs_CXX=no
10392         ;;
10393       ghcx)
10394         # Green Hills C++ Compiler
10395         # FIXME: insert proper C++ library support
10396         ld_shlibs_CXX=no
10397         ;;
10398       *)
10399         # FIXME: insert proper C++ library support
10400         ld_shlibs_CXX=no
10401         ;;
10402     esac
10403     ;;
10404   freebsd12*)
10405     # C++ shared libraries reported to be fairly broken before switch to ELF
10406     ld_shlibs_CXX=no
10407     ;;
10408   freebsd-elf*)
10409     archive_cmds_need_lc_CXX=no
10410     ;;
10411   freebsd* | kfreebsd*-gnu)
10412     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10413     # conventions
10414     ld_shlibs_CXX=yes
10415     ;;
10416   gnu*)
10417     ;;
10418   hpux9*)
10419     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10420     hardcode_libdir_separator_CXX=:
10421     export_dynamic_flag_spec_CXX='${wl}-E'
10422     hardcode_direct_CXX=yes
10423     hardcode_minus_L_CXX=yes # Not in the search PATH,
10424                                 # but as the default
10425                                 # location of the library.
10426
10427     case $cc_basename in
10428     CC)
10429       # FIXME: insert proper C++ library support
10430       ld_shlibs_CXX=no
10431       ;;
10432     aCC)
10433       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'
10434       # Commands to make compiler produce verbose output that lists
10435       # what "hidden" libraries, object files and flags are used when
10436       # linking a shared library.
10437       #
10438       # There doesn't appear to be a way to prevent this compiler from
10439       # explicitly linking system object files so we need to strip them
10440       # from the output so that they don't get included in the library
10441       # dependencies.
10442       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'
10443       ;;
10444     *)
10445       if test "$GXX" = yes; then
10446         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'
10447       else
10448         # FIXME: insert proper C++ library support
10449         ld_shlibs_CXX=no
10450       fi
10451       ;;
10452     esac
10453     ;;
10454   hpux10*|hpux11*)
10455     if test $with_gnu_ld = no; then
10456       case "$host_cpu" in
10457       hppa*64*)
10458         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10459         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10460         hardcode_libdir_separator_CXX=:
10461         ;;
10462       ia64*)
10463         hardcode_libdir_flag_spec_CXX='-L$libdir'
10464         ;;
10465       *)
10466         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10467         hardcode_libdir_separator_CXX=:
10468         export_dynamic_flag_spec_CXX='${wl}-E'
10469         ;;
10470       esac
10471     fi
10472     case "$host_cpu" in
10473     hppa*64*)
10474       hardcode_direct_CXX=no
10475       hardcode_shlibpath_var_CXX=no
10476       ;;
10477     ia64*)
10478       hardcode_direct_CXX=no
10479       hardcode_shlibpath_var_CXX=no
10480       hardcode_minus_L_CXX=yes # Not in the search PATH,
10481                                               # but as the default
10482                                               # location of the library.
10483       ;;
10484     *)
10485       hardcode_direct_CXX=yes
10486       hardcode_minus_L_CXX=yes # Not in the search PATH,
10487                                               # but as the default
10488                                               # location of the library.
10489       ;;
10490     esac
10491
10492     case $cc_basename in
10493       CC)
10494         # FIXME: insert proper C++ library support
10495         ld_shlibs_CXX=no
10496         ;;
10497       aCC)
10498         case "$host_cpu" in
10499         hppa*64*|ia64*)
10500           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10501           ;;
10502         *)
10503           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10504           ;;
10505         esac
10506         # Commands to make compiler produce verbose output that lists
10507         # what "hidden" libraries, object files and flags are used when
10508         # linking a shared library.
10509         #
10510         # There doesn't appear to be a way to prevent this compiler from
10511         # explicitly linking system object files so we need to strip them
10512         # from the output so that they don't get included in the library
10513         # dependencies.
10514         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'
10515         ;;
10516       *)
10517         if test "$GXX" = yes; then
10518           if test $with_gnu_ld = no; then
10519             case "$host_cpu" in
10520             ia64*|hppa*64*)
10521               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10522               ;;
10523             *)
10524               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'
10525               ;;
10526             esac
10527           fi
10528         else
10529           # FIXME: insert proper C++ library support
10530           ld_shlibs_CXX=no
10531         fi
10532         ;;
10533     esac
10534     ;;
10535   irix5* | irix6*)
10536     case $cc_basename in
10537       CC)
10538         # SGI C++
10539         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10540
10541         # Archives containing C++ object files must be created using
10542         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10543         # necessary to make sure instantiated templates are included
10544         # in the archive.
10545         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10546         ;;
10547       *)
10548         if test "$GXX" = yes; then
10549           if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10551           else
10552             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'
10553           fi
10554         fi
10555         link_all_deplibs_CXX=yes
10556         ;;
10557     esac
10558     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10559     hardcode_libdir_separator_CXX=:
10560     ;;
10561   linux*)
10562     case $cc_basename in
10563       KCC)
10564         # Kuck and Associates, Inc. (KAI) C++ Compiler
10565
10566         # KCC will only create a shared library if the output file
10567         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10568         # to its proper name (with version) after linking.
10569         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'
10570         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'
10571         # Commands to make compiler produce verbose output that lists
10572         # what "hidden" libraries, object files and flags are used when
10573         # linking a shared library.
10574         #
10575         # There doesn't appear to be a way to prevent this compiler from
10576         # explicitly linking system object files so we need to strip them
10577         # from the output so that they don't get included in the library
10578         # dependencies.
10579         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'
10580
10581         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10582         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10583
10584         # Archives containing C++ object files must be created using
10585         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10586         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10587         ;;
10588       icpc)
10589         # Intel C++
10590         with_gnu_ld=yes
10591         archive_cmds_need_lc_CXX=no
10592         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10593         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'
10594         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10595         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10596         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10597         ;;
10598       cxx)
10599         # Compaq C++
10600         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10601         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'
10602
10603         runpath_var=LD_RUN_PATH
10604         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10605         hardcode_libdir_separator_CXX=:
10606
10607         # Commands to make compiler produce verbose output that lists
10608         # what "hidden" libraries, object files and flags are used when
10609         # linking a shared library.
10610         #
10611         # There doesn't appear to be a way to prevent this compiler from
10612         # explicitly linking system object files so we need to strip them
10613         # from the output so that they don't get included in the library
10614         # dependencies.
10615         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'
10616         ;;
10617     esac
10618     ;;
10619   lynxos*)
10620     # FIXME: insert proper C++ library support
10621     ld_shlibs_CXX=no
10622     ;;
10623   m88k*)
10624     # FIXME: insert proper C++ library support
10625     ld_shlibs_CXX=no
10626     ;;
10627   mvs*)
10628     case $cc_basename in
10629       cxx)
10630         # FIXME: insert proper C++ library support
10631         ld_shlibs_CXX=no
10632         ;;
10633       *)
10634         # FIXME: insert proper C++ library support
10635         ld_shlibs_CXX=no
10636         ;;
10637     esac
10638     ;;
10639   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10640     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10641       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10642       wlarc=
10643       hardcode_libdir_flag_spec_CXX='-R$libdir'
10644       hardcode_direct_CXX=yes
10645       hardcode_shlibpath_var_CXX=no
10646     fi
10647     # Workaround some broken pre-1.5 toolchains
10648     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10649     ;;
10650   osf3*)
10651     case $cc_basename in
10652       KCC)
10653         # Kuck and Associates, Inc. (KAI) C++ Compiler
10654
10655         # KCC will only create a shared library if the output file
10656         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10657         # to its proper name (with version) after linking.
10658         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'
10659
10660         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10661         hardcode_libdir_separator_CXX=:
10662
10663         # Archives containing C++ object files must be created using
10664         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10665         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10666
10667         ;;
10668       RCC)
10669         # Rational C++ 2.4.1
10670         # FIXME: insert proper C++ library support
10671         ld_shlibs_CXX=no
10672         ;;
10673       cxx)
10674         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10675         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10676
10677         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10678         hardcode_libdir_separator_CXX=:
10679
10680         # Commands to make compiler produce verbose output that lists
10681         # what "hidden" libraries, object files and flags are used when
10682         # linking a shared library.
10683         #
10684         # There doesn't appear to be a way to prevent this compiler from
10685         # explicitly linking system object files so we need to strip them
10686         # from the output so that they don't get included in the library
10687         # dependencies.
10688         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'
10689         ;;
10690       *)
10691         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10692           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10693           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10694
10695           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10696           hardcode_libdir_separator_CXX=:
10697
10698           # Commands to make compiler produce verbose output that lists
10699           # what "hidden" libraries, object files and flags are used when
10700           # linking a shared library.
10701           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10702
10703         else
10704           # FIXME: insert proper C++ library support
10705           ld_shlibs_CXX=no
10706         fi
10707         ;;
10708     esac
10709     ;;
10710   osf4* | osf5*)
10711     case $cc_basename in
10712       KCC)
10713         # Kuck and Associates, Inc. (KAI) C++ Compiler
10714
10715         # KCC will only create a shared library if the output file
10716         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10717         # to its proper name (with version) after linking.
10718         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'
10719
10720         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10721         hardcode_libdir_separator_CXX=:
10722
10723         # Archives containing C++ object files must be created using
10724         # the KAI C++ compiler.
10725         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10726         ;;
10727       RCC)
10728         # Rational C++ 2.4.1
10729         # FIXME: insert proper C++ library support
10730         ld_shlibs_CXX=no
10731         ;;
10732       cxx)
10733         allow_undefined_flag_CXX=' -expect_unresolved \*'
10734         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10735         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10736           echo "-hidden">> $lib.exp~
10737           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10738           $rm $lib.exp'
10739
10740         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10741         hardcode_libdir_separator_CXX=:
10742
10743         # Commands to make compiler produce verbose output that lists
10744         # what "hidden" libraries, object files and flags are used when
10745         # linking a shared library.
10746         #
10747         # There doesn't appear to be a way to prevent this compiler from
10748         # explicitly linking system object files so we need to strip them
10749         # from the output so that they don't get included in the library
10750         # dependencies.
10751         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'
10752         ;;
10753       *)
10754         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10755           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10756          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10757
10758           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10759           hardcode_libdir_separator_CXX=:
10760
10761           # Commands to make compiler produce verbose output that lists
10762           # what "hidden" libraries, object files and flags are used when
10763           # linking a shared library.
10764           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10765
10766         else
10767           # FIXME: insert proper C++ library support
10768           ld_shlibs_CXX=no
10769         fi
10770         ;;
10771     esac
10772     ;;
10773   psos*)
10774     # FIXME: insert proper C++ library support
10775     ld_shlibs_CXX=no
10776     ;;
10777   sco*)
10778     archive_cmds_need_lc_CXX=no
10779     case $cc_basename in
10780       CC)
10781         # FIXME: insert proper C++ library support
10782         ld_shlibs_CXX=no
10783         ;;
10784       *)
10785         # FIXME: insert proper C++ library support
10786         ld_shlibs_CXX=no
10787         ;;
10788     esac
10789     ;;
10790   sunos4*)
10791     case $cc_basename in
10792       CC)
10793         # Sun C++ 4.x
10794         # FIXME: insert proper C++ library support
10795         ld_shlibs_CXX=no
10796         ;;
10797       lcc)
10798         # Lucid
10799         # FIXME: insert proper C++ library support
10800         ld_shlibs_CXX=no
10801         ;;
10802       *)
10803         # FIXME: insert proper C++ library support
10804         ld_shlibs_CXX=no
10805         ;;
10806     esac
10807     ;;
10808   solaris*)
10809     case $cc_basename in
10810       CC)
10811         # Sun C++ 4.2, 5.x and Centerline C++
10812         no_undefined_flag_CXX=' -zdefs'
10813         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10814         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10815         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10816
10817         hardcode_libdir_flag_spec_CXX='-R$libdir'
10818         hardcode_shlibpath_var_CXX=no
10819         case $host_os in
10820           solaris2.0-5 | solaris2.0-5.*) ;;
10821           *)
10822             # The C++ compiler is used as linker so we must use $wl
10823             # flag to pass the commands to the underlying system
10824             # linker.
10825             # Supported since Solaris 2.6 (maybe 2.5.1?)
10826             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10827             ;;
10828         esac
10829         link_all_deplibs_CXX=yes
10830
10831         # Commands to make compiler produce verbose output that lists
10832         # what "hidden" libraries, object files and flags are used when
10833         # linking a shared library.
10834         #
10835         # There doesn't appear to be a way to prevent this compiler from
10836         # explicitly linking system object files so we need to strip them
10837         # from the output so that they don't get included in the library
10838         # dependencies.
10839         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10840
10841         # Archives containing C++ object files must be created using
10842         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10843         # necessary to make sure instantiated templates are included
10844         # in the archive.
10845         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10846         ;;
10847       gcx)
10848         # Green Hills C++ Compiler
10849         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10850
10851         # The C++ compiler must be used to create the archive.
10852         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10853         ;;
10854       *)
10855         # GNU C++ compiler with Solaris linker
10856         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10857           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10858           if $CC --version | grep -v '^2\.7' > /dev/null; then
10859             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10860             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10861                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10862
10863             # Commands to make compiler produce verbose output that lists
10864             # what "hidden" libraries, object files and flags are used when
10865             # linking a shared library.
10866             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10867           else
10868             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10869             # platform.
10870             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10871             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10872                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10873
10874             # Commands to make compiler produce verbose output that lists
10875             # what "hidden" libraries, object files and flags are used when
10876             # linking a shared library.
10877             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10878           fi
10879
10880           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10881         fi
10882         ;;
10883     esac
10884     ;;
10885   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10886     archive_cmds_need_lc_CXX=no
10887     ;;
10888   tandem*)
10889     case $cc_basename in
10890       NCC)
10891         # NonStop-UX NCC 3.20
10892         # FIXME: insert proper C++ library support
10893         ld_shlibs_CXX=no
10894         ;;
10895       *)
10896         # FIXME: insert proper C++ library support
10897         ld_shlibs_CXX=no
10898         ;;
10899     esac
10900     ;;
10901   vxworks*)
10902     # FIXME: insert proper C++ library support
10903     ld_shlibs_CXX=no
10904     ;;
10905   *)
10906     # FIXME: insert proper C++ library support
10907     ld_shlibs_CXX=no
10908     ;;
10909 esac
10910 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10911 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10912 test "$ld_shlibs_CXX" = no && can_build_shared=no
10913
10914 GCC_CXX="$GXX"
10915 LD_CXX="$LD"
10916
10917
10918 cat > conftest.$ac_ext <<EOF
10919 class Foo
10920 {
10921 public:
10922   Foo (void) { a = 0; }
10923 private:
10924   int a;
10925 };
10926 EOF
10927
10928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10929   (eval $ac_compile) 2>&5
10930   ac_status=$?
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); }; then
10933   # Parse the compiler output and extract the necessary
10934   # objects, libraries and library flags.
10935
10936   # Sentinel used to keep track of whether or not we are before
10937   # the conftest object file.
10938   pre_test_object_deps_done=no
10939
10940   # The `*' in the case matches for architectures that use `case' in
10941   # $output_verbose_cmd can trigger glob expansion during the loop
10942   # eval without this substitution.
10943   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10944
10945   for p in `eval $output_verbose_link_cmd`; do
10946     case $p in
10947
10948     -L* | -R* | -l*)
10949        # Some compilers place space between "-{L,R}" and the path.
10950        # Remove the space.
10951        if test $p = "-L" \
10952           || test $p = "-R"; then
10953          prev=$p
10954          continue
10955        else
10956          prev=
10957        fi
10958
10959        if test "$pre_test_object_deps_done" = no; then
10960          case $p in
10961          -L* | -R*)
10962            # Internal compiler library paths should come after those
10963            # provided the user.  The postdeps already come after the
10964            # user supplied libs so there is no need to process them.
10965            if test -z "$compiler_lib_search_path_CXX"; then
10966              compiler_lib_search_path_CXX="${prev}${p}"
10967            else
10968              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10969            fi
10970            ;;
10971          # The "-l" case would never come before the object being
10972          # linked, so don't bother handling this case.
10973          esac
10974        else
10975          if test -z "$postdeps_CXX"; then
10976            postdeps_CXX="${prev}${p}"
10977          else
10978            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10979          fi
10980        fi
10981        ;;
10982
10983     *.$objext)
10984        # This assumes that the test object file only shows up
10985        # once in the compiler output.
10986        if test "$p" = "conftest.$objext"; then
10987          pre_test_object_deps_done=yes
10988          continue
10989        fi
10990
10991        if test "$pre_test_object_deps_done" = no; then
10992          if test -z "$predep_objects_CXX"; then
10993            predep_objects_CXX="$p"
10994          else
10995            predep_objects_CXX="$predep_objects_CXX $p"
10996          fi
10997        else
10998          if test -z "$postdep_objects_CXX"; then
10999            postdep_objects_CXX="$p"
11000          else
11001            postdep_objects_CXX="$postdep_objects_CXX $p"
11002          fi
11003        fi
11004        ;;
11005
11006     *) ;; # Ignore the rest.
11007
11008     esac
11009   done
11010
11011   # Clean up.
11012   rm -f a.out a.exe
11013 else
11014   echo "libtool.m4: error: problem compiling CXX test program"
11015 fi
11016
11017 $rm -f confest.$objext
11018
11019 case " $postdeps_CXX " in
11020 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11021 esac
11022
11023 lt_prog_compiler_wl_CXX=
11024 lt_prog_compiler_pic_CXX=
11025 lt_prog_compiler_static_CXX=
11026
11027 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11028 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11029
11030   # C++ specific cases for pic, static, wl, etc.
11031   if test "$GXX" = yes; then
11032     lt_prog_compiler_wl_CXX='-Wl,'
11033     lt_prog_compiler_static_CXX='-static'
11034
11035     case $host_os in
11036     aix*)
11037       # All AIX code is PIC.
11038       if test "$host_cpu" = ia64; then
11039         # AIX 5 now supports IA64 processor
11040         lt_prog_compiler_static_CXX='-Bstatic'
11041       fi
11042       ;;
11043     amigaos*)
11044       # FIXME: we need at least 68020 code to build shared libraries, but
11045       # adding the `-m68020' flag to GCC prevents building anything better,
11046       # like `-m68040'.
11047       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11048       ;;
11049     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11050       # PIC is the default for these OSes.
11051       ;;
11052     mingw* | os2* | pw32*)
11053       # This hack is so that the source file can tell whether it is being
11054       # built for inclusion in a dll (and should export symbols for example).
11055       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11056       ;;
11057     darwin* | rhapsody*)
11058       # PIC is the default on this platform
11059       # Common symbols not allowed in MH_DYLIB files
11060       lt_prog_compiler_pic_CXX='-fno-common'
11061       ;;
11062     *djgpp*)
11063       # DJGPP does not support shared libraries at all
11064       lt_prog_compiler_pic_CXX=
11065       ;;
11066     sysv4*MP*)
11067       if test -d /usr/nec; then
11068         lt_prog_compiler_pic_CXX=-Kconform_pic
11069       fi
11070       ;;
11071     hpux*)
11072       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11073       # not for PA HP-UX.
11074       case "$host_cpu" in
11075       hppa*64*|ia64*)
11076         ;;
11077       *)
11078         lt_prog_compiler_pic_CXX='-fPIC'
11079         ;;
11080       esac
11081       ;;
11082     *)
11083       lt_prog_compiler_pic_CXX='-fPIC'
11084       ;;
11085     esac
11086   else
11087     case $host_os in
11088       aix4* | aix5*)
11089         # All AIX code is PIC.
11090         if test "$host_cpu" = ia64; then
11091           # AIX 5 now supports IA64 processor
11092           lt_prog_compiler_static_CXX='-Bstatic'
11093         else
11094           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11095         fi
11096         ;;
11097       chorus*)
11098         case $cc_basename in
11099         cxch68)
11100           # Green Hills C++ Compiler
11101           # _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"
11102           ;;
11103         esac
11104         ;;
11105       dgux*)
11106         case $cc_basename in
11107           ec++)
11108             lt_prog_compiler_pic_CXX='-KPIC'
11109             ;;
11110           ghcx)
11111             # Green Hills C++ Compiler
11112             lt_prog_compiler_pic_CXX='-pic'
11113             ;;
11114           *)
11115             ;;
11116         esac
11117         ;;
11118       freebsd* | kfreebsd*-gnu)
11119         # FreeBSD uses GNU C++
11120         ;;
11121       hpux9* | hpux10* | hpux11*)
11122         case $cc_basename in
11123           CC)
11124             lt_prog_compiler_wl_CXX='-Wl,'
11125             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11126             if test "$host_cpu" != ia64; then
11127               lt_prog_compiler_pic_CXX='+Z'
11128             fi
11129             ;;
11130           aCC)
11131             lt_prog_compiler_wl_CXX='-Wl,'
11132             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11133             case "$host_cpu" in
11134             hppa*64*|ia64*)
11135               # +Z the default
11136               ;;
11137             *)
11138               lt_prog_compiler_pic_CXX='+Z'
11139               ;;
11140             esac
11141             ;;
11142           *)
11143             ;;
11144         esac
11145         ;;
11146       irix5* | irix6* | nonstopux*)
11147         case $cc_basename in
11148           CC)
11149             lt_prog_compiler_wl_CXX='-Wl,'
11150             lt_prog_compiler_static_CXX='-non_shared'
11151             # CC pic flag -KPIC is the default.
11152             ;;
11153           *)
11154             ;;
11155         esac
11156         ;;
11157       linux*)
11158         case $cc_basename in
11159           KCC)
11160             # KAI C++ Compiler
11161             lt_prog_compiler_wl_CXX='--backend -Wl,'
11162             lt_prog_compiler_pic_CXX='-fPIC'
11163             ;;
11164           icpc)
11165             # Intel C++
11166             lt_prog_compiler_wl_CXX='-Wl,'
11167             lt_prog_compiler_pic_CXX='-KPIC'
11168             lt_prog_compiler_static_CXX='-static'
11169             ;;
11170           cxx)
11171             # Compaq C++
11172             # Make sure the PIC flag is empty.  It appears that all Alpha
11173             # Linux and Compaq Tru64 Unix objects are PIC.
11174             lt_prog_compiler_pic_CXX=
11175             lt_prog_compiler_static_CXX='-non_shared'
11176             ;;
11177           *)
11178             ;;
11179         esac
11180         ;;
11181       lynxos*)
11182         ;;
11183       m88k*)
11184         ;;
11185       mvs*)
11186         case $cc_basename in
11187           cxx)
11188             lt_prog_compiler_pic_CXX='-W c,exportall'
11189             ;;
11190           *)
11191             ;;
11192         esac
11193         ;;
11194       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11195         ;;
11196       osf3* | osf4* | osf5*)
11197         case $cc_basename in
11198           KCC)
11199             lt_prog_compiler_wl_CXX='--backend -Wl,'
11200             ;;
11201           RCC)
11202             # Rational C++ 2.4.1
11203             lt_prog_compiler_pic_CXX='-pic'
11204             ;;
11205           cxx)
11206             # Digital/Compaq C++
11207             lt_prog_compiler_wl_CXX='-Wl,'
11208             # Make sure the PIC flag is empty.  It appears that all Alpha
11209             # Linux and Compaq Tru64 Unix objects are PIC.
11210             lt_prog_compiler_pic_CXX=
11211             lt_prog_compiler_static_CXX='-non_shared'
11212             ;;
11213           *)
11214             ;;
11215         esac
11216         ;;
11217       psos*)
11218         ;;
11219       sco*)
11220         case $cc_basename in
11221           CC)
11222             lt_prog_compiler_pic_CXX='-fPIC'
11223             ;;
11224           *)
11225             ;;
11226         esac
11227         ;;
11228       solaris*)
11229         case $cc_basename in
11230           CC)
11231             # Sun C++ 4.2, 5.x and Centerline C++
11232             lt_prog_compiler_pic_CXX='-KPIC'
11233             lt_prog_compiler_static_CXX='-Bstatic'
11234             lt_prog_compiler_wl_CXX='-Qoption ld '
11235             ;;
11236           gcx)
11237             # Green Hills C++ Compiler
11238             lt_prog_compiler_pic_CXX='-PIC'
11239             ;;
11240           *)
11241             ;;
11242         esac
11243         ;;
11244       sunos4*)
11245         case $cc_basename in
11246           CC)
11247             # Sun C++ 4.x
11248             lt_prog_compiler_pic_CXX='-pic'
11249             lt_prog_compiler_static_CXX='-Bstatic'
11250             ;;
11251           lcc)
11252             # Lucid
11253             lt_prog_compiler_pic_CXX='-pic'
11254             ;;
11255           *)
11256             ;;
11257         esac
11258         ;;
11259       tandem*)
11260         case $cc_basename in
11261           NCC)
11262             # NonStop-UX NCC 3.20
11263             lt_prog_compiler_pic_CXX='-KPIC'
11264             ;;
11265           *)
11266             ;;
11267         esac
11268         ;;
11269       unixware*)
11270         ;;
11271       vxworks*)
11272         ;;
11273       *)
11274         lt_prog_compiler_can_build_shared_CXX=no
11275         ;;
11276     esac
11277   fi
11278
11279 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11280 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11281
11282 #
11283 # Check to make sure the PIC flag actually works.
11284 #
11285 if test -n "$lt_prog_compiler_pic_CXX"; then
11286
11287 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11288 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11289 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11290   echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292   lt_prog_compiler_pic_works_CXX=no
11293   ac_outfile=conftest.$ac_objext
11294    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11295    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11296    # Insert the option either (1) after the last *FLAGS variable, or
11297    # (2) before a word containing "conftest.", or (3) at the end.
11298    # Note that $ac_compile itself does not contain backslashes and begins
11299    # with a dollar sign (not a hyphen), so the echo should work correctly.
11300    # The option is referenced via a variable to avoid confusing sed.
11301    lt_compile=`echo "$ac_compile" | $SED \
11302    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11303    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11304    -e 's:$: $lt_compiler_flag:'`
11305    (eval echo "\"\$as_me:11305: $lt_compile\"" >&5)
11306    (eval "$lt_compile" 2>conftest.err)
11307    ac_status=$?
11308    cat conftest.err >&5
11309    echo "$as_me:11309: \$? = $ac_status" >&5
11310    if (exit $ac_status) && test -s "$ac_outfile"; then
11311      # The compiler can only warn and ignore the option if not recognized
11312      # So say no if there are warnings
11313      if test ! -s conftest.err; then
11314        lt_prog_compiler_pic_works_CXX=yes
11315      fi
11316    fi
11317    $rm conftest*
11318
11319 fi
11320 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11321 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11322
11323 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11324     case $lt_prog_compiler_pic_CXX in
11325      "" | " "*) ;;
11326      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11327      esac
11328 else
11329     lt_prog_compiler_pic_CXX=
11330      lt_prog_compiler_can_build_shared_CXX=no
11331 fi
11332
11333 fi
11334 case "$host_os" in
11335   # For platforms which do not support PIC, -DPIC is meaningless:
11336   *djgpp*)
11337     lt_prog_compiler_pic_CXX=
11338     ;;
11339   *)
11340     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11341     ;;
11342 esac
11343
11344 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11345 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11346 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   lt_cv_prog_compiler_c_o_CXX=no
11350    $rm -r conftest 2>/dev/null
11351    mkdir conftest
11352    cd conftest
11353    mkdir out
11354    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11355
11356    lt_compiler_flag="-o out/conftest2.$ac_objext"
11357    # Insert the option either (1) after the last *FLAGS variable, or
11358    # (2) before a word containing "conftest.", or (3) at the end.
11359    # Note that $ac_compile itself does not contain backslashes and begins
11360    # with a dollar sign (not a hyphen), so the echo should work correctly.
11361    lt_compile=`echo "$ac_compile" | $SED \
11362    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11363    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11364    -e 's:$: $lt_compiler_flag:'`
11365    (eval echo "\"\$as_me:11365: $lt_compile\"" >&5)
11366    (eval "$lt_compile" 2>out/conftest.err)
11367    ac_status=$?
11368    cat out/conftest.err >&5
11369    echo "$as_me:11369: \$? = $ac_status" >&5
11370    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11371    then
11372      # The compiler can only warn and ignore the option if not recognized
11373      # So say no if there are warnings
11374      if test ! -s out/conftest.err; then
11375        lt_cv_prog_compiler_c_o_CXX=yes
11376      fi
11377    fi
11378    chmod u+w .
11379    $rm conftest*
11380    # SGI C++ compiler will create directory out/ii_files/ for
11381    # template instantiation
11382    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11383    $rm out/* && rmdir out
11384    cd ..
11385    rmdir conftest
11386    $rm conftest*
11387
11388 fi
11389 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11390 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11391
11392
11393 hard_links="nottested"
11394 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11395   # do not overwrite the value of need_locks provided by the user
11396   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11397 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11398   hard_links=yes
11399   $rm conftest*
11400   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11401   touch conftest.a
11402   ln conftest.a conftest.b 2>&5 || hard_links=no
11403   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11404   echo "$as_me:$LINENO: result: $hard_links" >&5
11405 echo "${ECHO_T}$hard_links" >&6
11406   if test "$hard_links" = no; then
11407     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11408 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11409     need_locks=warn
11410   fi
11411 else
11412   need_locks=no
11413 fi
11414
11415 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11416 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11417
11418   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11419   case $host_os in
11420   aix4* | aix5*)
11421     # If we're using GNU nm, then we don't want the "-C" option.
11422     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11423     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11424       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'
11425     else
11426       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'
11427     fi
11428     ;;
11429   pw32*)
11430     export_symbols_cmds_CXX="$ltdll_cmds"
11431   ;;
11432   cygwin* | mingw*)
11433     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11434   ;;
11435   linux*)
11436     link_all_deplibs_CXX=no
11437   ;;
11438   *)
11439     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11440   ;;
11441   esac
11442
11443 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11444 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11445 test "$ld_shlibs_CXX" = no && can_build_shared=no
11446
11447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11448 if test "$GCC" = yes; then
11449   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11450 fi
11451
11452 #
11453 # Do we need to explicitly link libc?
11454 #
11455 case "x$archive_cmds_need_lc_CXX" in
11456 x|xyes)
11457   # Assume -lc should be added
11458   archive_cmds_need_lc_CXX=yes
11459
11460   if test "$enable_shared" = yes && test "$GCC" = yes; then
11461     case $archive_cmds_CXX in
11462     *'~'*)
11463       # FIXME: we may have to deal with multi-command sequences.
11464       ;;
11465     '$CC '*)
11466       # Test whether the compiler implicitly links with -lc since on some
11467       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11468       # to ld, don't add -lc before -lgcc.
11469       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11470 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11471       $rm conftest*
11472       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11473
11474       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475   (eval $ac_compile) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } 2>conftest.err; then
11479         soname=conftest
11480         lib=conftest
11481         libobjs=conftest.$ac_objext
11482         deplibs=
11483         wl=$lt_prog_compiler_wl_CXX
11484         compiler_flags=-v
11485         linker_flags=-v
11486         verstring=
11487         output_objdir=.
11488         libname=conftest
11489         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11490         allow_undefined_flag_CXX=
11491         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11492   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11493   ac_status=$?
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); }
11496         then
11497           archive_cmds_need_lc_CXX=no
11498         else
11499           archive_cmds_need_lc_CXX=yes
11500         fi
11501         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11502       else
11503         cat conftest.err 1>&5
11504       fi
11505       $rm conftest*
11506       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11507 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11508       ;;
11509     esac
11510   fi
11511   ;;
11512 esac
11513
11514 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11516 library_names_spec=
11517 libname_spec='lib$name'
11518 soname_spec=
11519 shrext_cmds=".so"
11520 postinstall_cmds=
11521 postuninstall_cmds=
11522 finish_cmds=
11523 finish_eval=
11524 shlibpath_var=
11525 shlibpath_overrides_runpath=unknown
11526 version_type=none
11527 dynamic_linker="$host_os ld.so"
11528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11529 if test "$GCC" = yes; then
11530   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11531   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11532     # if the path contains ";" then we assume it to be the separator
11533     # otherwise default to the standard path separator (i.e. ":") - it is
11534     # assumed that no part of a normal pathname contains ";" but that should
11535     # okay in the real world where ";" in dirpaths is itself problematic.
11536     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11537   else
11538     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11539   fi
11540 else
11541   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11542 fi
11543 need_lib_prefix=unknown
11544 hardcode_into_libs=no
11545
11546 # when you set need_version to no, make sure it does not cause -set_version
11547 # flags to be left without arguments
11548 need_version=unknown
11549
11550 case $host_os in
11551 aix3*)
11552   version_type=linux
11553   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11554   shlibpath_var=LIBPATH
11555
11556   # AIX 3 has no versioning support, so we append a major version to the name.
11557   soname_spec='${libname}${release}${shared_ext}$major'
11558   ;;
11559
11560 aix4* | aix5*)
11561   version_type=linux
11562   need_lib_prefix=no
11563   need_version=no
11564   hardcode_into_libs=yes
11565   if test "$host_cpu" = ia64; then
11566     # AIX 5 supports IA64
11567     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11568     shlibpath_var=LD_LIBRARY_PATH
11569   else
11570     # With GCC up to 2.95.x, collect2 would create an import file
11571     # for dependence libraries.  The import file would start with
11572     # the line `#! .'.  This would cause the generated library to
11573     # depend on `.', always an invalid library.  This was fixed in
11574     # development snapshots of GCC prior to 3.0.
11575     case $host_os in
11576       aix4 | aix4.[01] | aix4.[01].*)
11577       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11578            echo ' yes '
11579            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11580         :
11581       else
11582         can_build_shared=no
11583       fi
11584       ;;
11585     esac
11586     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11587     # soname into executable. Probably we can add versioning support to
11588     # collect2, so additional links can be useful in future.
11589     if test "$aix_use_runtimelinking" = yes; then
11590       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11591       # instead of lib<name>.a to let people know that these are not
11592       # typical AIX shared libraries.
11593       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594     else
11595       # We preserve .a as extension for shared libraries through AIX4.2
11596       # and later when we are not doing run time linking.
11597       library_names_spec='${libname}${release}.a $libname.a'
11598       soname_spec='${libname}${release}${shared_ext}$major'
11599     fi
11600     shlibpath_var=LIBPATH
11601   fi
11602   ;;
11603
11604 amigaos*)
11605   library_names_spec='$libname.ixlibrary $libname.a'
11606   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11607   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'
11608   ;;
11609
11610 beos*)
11611   library_names_spec='${libname}${shared_ext}'
11612   dynamic_linker="$host_os ld.so"
11613   shlibpath_var=LIBRARY_PATH
11614   ;;
11615
11616 bsdi4*)
11617   version_type=linux
11618   need_version=no
11619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620   soname_spec='${libname}${release}${shared_ext}$major'
11621   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11622   shlibpath_var=LD_LIBRARY_PATH
11623   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11624   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11625   # the default ld.so.conf also contains /usr/contrib/lib and
11626   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11627   # libtool to hard-code these into programs
11628   ;;
11629
11630 cygwin* | mingw* | pw32*)
11631   version_type=windows
11632   shrext_cmds=".dll"
11633   need_version=no
11634   need_lib_prefix=no
11635
11636   case $GCC,$host_os in
11637   yes,cygwin* | yes,mingw* | yes,pw32*)
11638     library_names_spec='$libname.dll.a'
11639     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11640     postinstall_cmds='base_file=`basename \${file}`~
11641       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11642       dldir=$destdir/`dirname \$dlpath`~
11643       test -d \$dldir || mkdir -p \$dldir~
11644       $install_prog $dir/$dlname \$dldir/$dlname'
11645     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11646       dlpath=$dir/\$dldll~
11647        $rm \$dlpath'
11648     shlibpath_overrides_runpath=yes
11649
11650     case $host_os in
11651     cygwin*)
11652       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11653       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11654       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11655       ;;
11656     mingw*)
11657       # MinGW DLLs use traditional 'lib' prefix
11658       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11659       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11660       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11661         # It is most probably a Windows format PATH printed by
11662         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11663         # path with ; separators, and with drive letters. We can handle the
11664         # drive letters (cygwin fileutils understands them), so leave them,
11665         # especially as we might pass files found there to a mingw objdump,
11666         # which wouldn't understand a cygwinified path. Ahh.
11667         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11668       else
11669         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11670       fi
11671       ;;
11672     pw32*)
11673       # pw32 DLLs use 'pw' prefix rather than 'lib'
11674       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11675       ;;
11676     esac
11677     ;;
11678
11679   *)
11680     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11681     ;;
11682   esac
11683   dynamic_linker='Win32 ld.exe'
11684   # FIXME: first we should search . and the directory the executable is in
11685   shlibpath_var=PATH
11686   ;;
11687
11688 darwin* | rhapsody*)
11689   dynamic_linker="$host_os dyld"
11690   version_type=darwin
11691   need_lib_prefix=no
11692   need_version=no
11693   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11694   soname_spec='${libname}${release}${major}$shared_ext'
11695   shlibpath_overrides_runpath=yes
11696   shlibpath_var=DYLD_LIBRARY_PATH
11697   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11698   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11699   if test "$GCC" = yes; then
11700     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"`
11701   else
11702     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11703   fi
11704   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11705   ;;
11706
11707 dgux*)
11708   version_type=linux
11709   need_lib_prefix=no
11710   need_version=no
11711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11712   soname_spec='${libname}${release}${shared_ext}$major'
11713   shlibpath_var=LD_LIBRARY_PATH
11714   ;;
11715
11716 freebsd1*)
11717   dynamic_linker=no
11718   ;;
11719
11720 kfreebsd*-gnu)
11721   version_type=linux
11722   need_lib_prefix=no
11723   need_version=no
11724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11725   soname_spec='${libname}${release}${shared_ext}$major'
11726   shlibpath_var=LD_LIBRARY_PATH
11727   shlibpath_overrides_runpath=no
11728   hardcode_into_libs=yes
11729   dynamic_linker='GNU ld.so'
11730   ;;
11731
11732 freebsd*)
11733   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11734   version_type=freebsd-$objformat
11735   case $version_type in
11736     freebsd-elf*)
11737       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11738       need_version=no
11739       need_lib_prefix=no
11740       ;;
11741     freebsd-*)
11742       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11743       need_version=yes
11744       ;;
11745   esac
11746   shlibpath_var=LD_LIBRARY_PATH
11747   case $host_os in
11748   freebsd2*)
11749     shlibpath_overrides_runpath=yes
11750     ;;
11751   freebsd3.01* | freebsdelf3.01*)
11752     shlibpath_overrides_runpath=yes
11753     hardcode_into_libs=yes
11754     ;;
11755   *) # from 3.2 on
11756     shlibpath_overrides_runpath=no
11757     hardcode_into_libs=yes
11758     ;;
11759   esac
11760   ;;
11761
11762 gnu*)
11763   version_type=linux
11764   need_lib_prefix=no
11765   need_version=no
11766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11767   soname_spec='${libname}${release}${shared_ext}$major'
11768   shlibpath_var=LD_LIBRARY_PATH
11769   hardcode_into_libs=yes
11770   ;;
11771
11772 hpux9* | hpux10* | hpux11*)
11773   # Give a soname corresponding to the major version so that dld.sl refuses to
11774   # link against other versions.
11775   version_type=sunos
11776   need_lib_prefix=no
11777   need_version=no
11778   case "$host_cpu" in
11779   ia64*)
11780     shrext_cmds='.so'
11781     hardcode_into_libs=yes
11782     dynamic_linker="$host_os dld.so"
11783     shlibpath_var=LD_LIBRARY_PATH
11784     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786     soname_spec='${libname}${release}${shared_ext}$major'
11787     if test "X$HPUX_IA64_MODE" = X32; then
11788       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11789     else
11790       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11791     fi
11792     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11793     ;;
11794    hppa*64*)
11795      shrext_cmds='.sl'
11796      hardcode_into_libs=yes
11797      dynamic_linker="$host_os dld.sl"
11798      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11799      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11800      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801      soname_spec='${libname}${release}${shared_ext}$major'
11802      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11803      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11804      ;;
11805    *)
11806     shrext_cmds='.sl'
11807     dynamic_linker="$host_os dld.sl"
11808     shlibpath_var=SHLIB_PATH
11809     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811     soname_spec='${libname}${release}${shared_ext}$major'
11812     ;;
11813   esac
11814   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11815   postinstall_cmds='chmod 555 $lib'
11816   ;;
11817
11818 irix5* | irix6* | nonstopux*)
11819   case $host_os in
11820     nonstopux*) version_type=nonstopux ;;
11821     *)
11822         if test "$lt_cv_prog_gnu_ld" = yes; then
11823                 version_type=linux
11824         else
11825                 version_type=irix
11826         fi ;;
11827   esac
11828   need_lib_prefix=no
11829   need_version=no
11830   soname_spec='${libname}${release}${shared_ext}$major'
11831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11832   case $host_os in
11833   irix5* | nonstopux*)
11834     libsuff= shlibsuff=
11835     ;;
11836   *)
11837     case $LD in # libtool.m4 will add one of these switches to LD
11838     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11839       libsuff= shlibsuff= libmagic=32-bit;;
11840     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11841       libsuff=32 shlibsuff=N32 libmagic=N32;;
11842     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11843       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11844     *) libsuff= shlibsuff= libmagic=never-match;;
11845     esac
11846     ;;
11847   esac
11848   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11849   shlibpath_overrides_runpath=no
11850   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11851   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11852   hardcode_into_libs=yes
11853   ;;
11854
11855 # No shared lib support for Linux oldld, aout, or coff.
11856 linux*oldld* | linux*aout* | linux*coff*)
11857   dynamic_linker=no
11858   ;;
11859
11860 # This must be Linux ELF.
11861 linux*)
11862   version_type=linux
11863   need_lib_prefix=no
11864   need_version=no
11865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866   soname_spec='${libname}${release}${shared_ext}$major'
11867   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11868   shlibpath_var=LD_LIBRARY_PATH
11869   shlibpath_overrides_runpath=no
11870   # This implies no fast_install, which is unacceptable.
11871   # Some rework will be needed to allow for fast_install
11872   # before this can be enabled.
11873   hardcode_into_libs=yes
11874
11875   # Append ld.so.conf contents to the search path
11876   if test -f /etc/ld.so.conf; then
11877     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11878     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11879   fi
11880
11881   # We used to test for /lib/ld.so.1 and disable shared libraries on
11882   # powerpc, because MkLinux only supported shared libraries with the
11883   # GNU dynamic linker.  Since this was broken with cross compilers,
11884   # most powerpc-linux boxes support dynamic linking these days and
11885   # people can always --disable-shared, the test was removed, and we
11886   # assume the GNU/Linux dynamic linker is in use.
11887   dynamic_linker='GNU/Linux ld.so'
11888   ;;
11889
11890 netbsdelf*-gnu)
11891   version_type=linux
11892   need_lib_prefix=no
11893   need_version=no
11894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11895   soname_spec='${libname}${release}${shared_ext}$major'
11896   shlibpath_var=LD_LIBRARY_PATH
11897   shlibpath_overrides_runpath=no
11898   hardcode_into_libs=yes
11899   dynamic_linker='NetBSD ld.elf_so'
11900   ;;
11901
11902 knetbsd*-gnu)
11903   version_type=linux
11904   need_lib_prefix=no
11905   need_version=no
11906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11907   soname_spec='${libname}${release}${shared_ext}$major'
11908   shlibpath_var=LD_LIBRARY_PATH
11909   shlibpath_overrides_runpath=no
11910   hardcode_into_libs=yes
11911   dynamic_linker='GNU ld.so'
11912   ;;
11913
11914 netbsd*)
11915   version_type=sunos
11916   need_lib_prefix=no
11917   need_version=no
11918   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11920     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11921     dynamic_linker='NetBSD (a.out) ld.so'
11922   else
11923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11924     soname_spec='${libname}${release}${shared_ext}$major'
11925     dynamic_linker='NetBSD ld.elf_so'
11926   fi
11927   shlibpath_var=LD_LIBRARY_PATH
11928   shlibpath_overrides_runpath=yes
11929   hardcode_into_libs=yes
11930   ;;
11931
11932 newsos6)
11933   version_type=linux
11934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11935   shlibpath_var=LD_LIBRARY_PATH
11936   shlibpath_overrides_runpath=yes
11937   ;;
11938
11939 nto-qnx*)
11940   version_type=linux
11941   need_lib_prefix=no
11942   need_version=no
11943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944   soname_spec='${libname}${release}${shared_ext}$major'
11945   shlibpath_var=LD_LIBRARY_PATH
11946   shlibpath_overrides_runpath=yes
11947   ;;
11948
11949 openbsd*)
11950   version_type=sunos
11951   need_lib_prefix=no
11952   need_version=yes
11953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11954   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11955   shlibpath_var=LD_LIBRARY_PATH
11956   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11957     case $host_os in
11958       openbsd2.[89] | openbsd2.[89].*)
11959         shlibpath_overrides_runpath=no
11960         ;;
11961       *)
11962         shlibpath_overrides_runpath=yes
11963         ;;
11964       esac
11965   else
11966     shlibpath_overrides_runpath=yes
11967   fi
11968   ;;
11969
11970 os2*)
11971   libname_spec='$name'
11972   shrext_cmds=".dll"
11973   need_lib_prefix=no
11974   library_names_spec='$libname${shared_ext} $libname.a'
11975   dynamic_linker='OS/2 ld.exe'
11976   shlibpath_var=LIBPATH
11977   ;;
11978
11979 osf3* | osf4* | osf5*)
11980   version_type=osf
11981   need_lib_prefix=no
11982   need_version=no
11983   soname_spec='${libname}${release}${shared_ext}$major'
11984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985   shlibpath_var=LD_LIBRARY_PATH
11986   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11987   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11988   ;;
11989
11990 sco3.2v5*)
11991   version_type=osf
11992   soname_spec='${libname}${release}${shared_ext}$major'
11993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11994   shlibpath_var=LD_LIBRARY_PATH
11995   ;;
11996
11997 solaris*)
11998   version_type=linux
11999   need_lib_prefix=no
12000   need_version=no
12001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12002   soname_spec='${libname}${release}${shared_ext}$major'
12003   shlibpath_var=LD_LIBRARY_PATH
12004   shlibpath_overrides_runpath=yes
12005   hardcode_into_libs=yes
12006   # ldd complains unless libraries are executable
12007   postinstall_cmds='chmod +x $lib'
12008   ;;
12009
12010 sunos4*)
12011   version_type=sunos
12012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12013   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12014   shlibpath_var=LD_LIBRARY_PATH
12015   shlibpath_overrides_runpath=yes
12016   if test "$with_gnu_ld" = yes; then
12017     need_lib_prefix=no
12018   fi
12019   need_version=yes
12020   ;;
12021
12022 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12023   version_type=linux
12024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025   soname_spec='${libname}${release}${shared_ext}$major'
12026   shlibpath_var=LD_LIBRARY_PATH
12027   case $host_vendor in
12028     sni)
12029       shlibpath_overrides_runpath=no
12030       need_lib_prefix=no
12031       export_dynamic_flag_spec='${wl}-Blargedynsym'
12032       runpath_var=LD_RUN_PATH
12033       ;;
12034     siemens)
12035       need_lib_prefix=no
12036       ;;
12037     motorola)
12038       need_lib_prefix=no
12039       need_version=no
12040       shlibpath_overrides_runpath=no
12041       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12042       ;;
12043   esac
12044   ;;
12045
12046 sysv4*MP*)
12047   if test -d /usr/nec ;then
12048     version_type=linux
12049     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12050     soname_spec='$libname${shared_ext}.$major'
12051     shlibpath_var=LD_LIBRARY_PATH
12052   fi
12053   ;;
12054
12055 uts4*)
12056   version_type=linux
12057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058   soname_spec='${libname}${release}${shared_ext}$major'
12059   shlibpath_var=LD_LIBRARY_PATH
12060   ;;
12061
12062 *)
12063   dynamic_linker=no
12064   ;;
12065 esac
12066 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12067 echo "${ECHO_T}$dynamic_linker" >&6
12068 test "$dynamic_linker" = no && can_build_shared=no
12069
12070 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12071 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12072 hardcode_action_CXX=
12073 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12074    test -n "$runpath_var CXX" || \
12075    test "X$hardcode_automatic_CXX"="Xyes" ; then
12076
12077   # We can hardcode non-existant directories.
12078   if test "$hardcode_direct_CXX" != no &&
12079      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12080      # have to relink, otherwise we might link with an installed library
12081      # when we should be linking with a yet-to-be-installed one
12082      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12083      test "$hardcode_minus_L_CXX" != no; then
12084     # Linking always hardcodes the temporary library directory.
12085     hardcode_action_CXX=relink
12086   else
12087     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12088     hardcode_action_CXX=immediate
12089   fi
12090 else
12091   # We cannot hardcode anything, or else we can only hardcode existing
12092   # directories.
12093   hardcode_action_CXX=unsupported
12094 fi
12095 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12096 echo "${ECHO_T}$hardcode_action_CXX" >&6
12097
12098 if test "$hardcode_action_CXX" = relink; then
12099   # Fast installation is not supported
12100   enable_fast_install=no
12101 elif test "$shlibpath_overrides_runpath" = yes ||
12102      test "$enable_shared" = no; then
12103   # Fast installation is not necessary
12104   enable_fast_install=needless
12105 fi
12106
12107 striplib=
12108 old_striplib=
12109 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12110 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12111 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12112   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12113   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12114   echo "$as_me:$LINENO: result: yes" >&5
12115 echo "${ECHO_T}yes" >&6
12116 else
12117 # FIXME - insert some real tests, host_os isn't really good enough
12118   case $host_os in
12119    darwin*)
12120        if test -n "$STRIP" ; then
12121          striplib="$STRIP -x"
12122          echo "$as_me:$LINENO: result: yes" >&5
12123 echo "${ECHO_T}yes" >&6
12124        else
12125   echo "$as_me:$LINENO: result: no" >&5
12126 echo "${ECHO_T}no" >&6
12127 fi
12128        ;;
12129    *)
12130   echo "$as_me:$LINENO: result: no" >&5
12131 echo "${ECHO_T}no" >&6
12132     ;;
12133   esac
12134 fi
12135
12136 if test "x$enable_dlopen" != xyes; then
12137   enable_dlopen=unknown
12138   enable_dlopen_self=unknown
12139   enable_dlopen_self_static=unknown
12140 else
12141   lt_cv_dlopen=no
12142   lt_cv_dlopen_libs=
12143
12144   case $host_os in
12145   beos*)
12146     lt_cv_dlopen="load_add_on"
12147     lt_cv_dlopen_libs=
12148     lt_cv_dlopen_self=yes
12149     ;;
12150
12151   mingw* | pw32*)
12152     lt_cv_dlopen="LoadLibrary"
12153     lt_cv_dlopen_libs=
12154    ;;
12155
12156   cygwin*)
12157     lt_cv_dlopen="dlopen"
12158     lt_cv_dlopen_libs=
12159    ;;
12160
12161   darwin*)
12162   # if libdl is installed we need to link against it
12163     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12164 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12165 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168   ac_check_lib_save_LIBS=$LIBS
12169 LIBS="-ldl  $LIBS"
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176
12177 /* Override any gcc2 internal prototype to avoid an error.  */
12178 #ifdef __cplusplus
12179 extern "C"
12180 #endif
12181 /* We use char because int might match the return type of a gcc2
12182    builtin and then its argument prototype would still apply.  */
12183 char dlopen ();
12184 int
12185 main ()
12186 {
12187 dlopen ();
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12194   (eval $ac_link) 2>conftest.er1
12195   ac_status=$?
12196   grep -v '^ *+' conftest.er1 >conftest.err
12197   rm -f conftest.er1
12198   cat conftest.err >&5
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); } &&
12201          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203   (eval $ac_try) 2>&5
12204   ac_status=$?
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); }; } &&
12207          { ac_try='test -s conftest$ac_exeext'
12208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209   (eval $ac_try) 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; }; then
12213   ac_cv_lib_dl_dlopen=yes
12214 else
12215   echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12217
12218 ac_cv_lib_dl_dlopen=no
12219 fi
12220 rm -f conftest.err conftest.$ac_objext \
12221       conftest$ac_exeext conftest.$ac_ext
12222 LIBS=$ac_check_lib_save_LIBS
12223 fi
12224 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12225 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12226 if test $ac_cv_lib_dl_dlopen = yes; then
12227   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12228 else
12229
12230     lt_cv_dlopen="dyld"
12231     lt_cv_dlopen_libs=
12232     lt_cv_dlopen_self=yes
12233
12234 fi
12235
12236    ;;
12237
12238   *)
12239     echo "$as_me:$LINENO: checking for shl_load" >&5
12240 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12241 if test "${ac_cv_func_shl_load+set}" = set; then
12242   echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244   cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12252 #define shl_load innocuous_shl_load
12253
12254 /* System header to define __stub macros and hopefully few prototypes,
12255     which can conflict with char shl_load (); below.
12256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257     <limits.h> exists even on freestanding compilers.  */
12258
12259 #ifdef __STDC__
12260 # include <limits.h>
12261 #else
12262 # include <assert.h>
12263 #endif
12264
12265 #undef shl_load
12266
12267 /* Override any gcc2 internal prototype to avoid an error.  */
12268 #ifdef __cplusplus
12269 extern "C"
12270 {
12271 #endif
12272 /* We use char because int might match the return type of a gcc2
12273    builtin and then its argument prototype would still apply.  */
12274 char shl_load ();
12275 /* The GNU C library defines this for functions which it implements
12276     to always fail with ENOSYS.  Some functions are actually named
12277     something starting with __ and the normal name is an alias.  */
12278 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12279 choke me
12280 #else
12281 char (*f) () = shl_load;
12282 #endif
12283 #ifdef __cplusplus
12284 }
12285 #endif
12286
12287 int
12288 main ()
12289 {
12290 return f != shl_load;
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297   (eval $ac_link) 2>conftest.er1
12298   ac_status=$?
12299   grep -v '^ *+' conftest.er1 >conftest.err
12300   rm -f conftest.er1
12301   cat conftest.err >&5
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); } &&
12304          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306   (eval $ac_try) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; } &&
12310          { ac_try='test -s conftest$ac_exeext'
12311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; }; then
12316   ac_cv_func_shl_load=yes
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_cv_func_shl_load=no
12322 fi
12323 rm -f conftest.err conftest.$ac_objext \
12324       conftest$ac_exeext conftest.$ac_ext
12325 fi
12326 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12327 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12328 if test $ac_cv_func_shl_load = yes; then
12329   lt_cv_dlopen="shl_load"
12330 else
12331   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12332 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12333 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12334   echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336   ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-ldld  $LIBS"
12338 cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h.  */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h.  */
12344
12345 /* Override any gcc2 internal prototype to avoid an error.  */
12346 #ifdef __cplusplus
12347 extern "C"
12348 #endif
12349 /* We use char because int might match the return type of a gcc2
12350    builtin and then its argument prototype would still apply.  */
12351 char shl_load ();
12352 int
12353 main ()
12354 {
12355 shl_load ();
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest.$ac_objext conftest$ac_exeext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12362   (eval $ac_link) 2>conftest.er1
12363   ac_status=$?
12364   grep -v '^ *+' conftest.er1 >conftest.err
12365   rm -f conftest.er1
12366   cat conftest.err >&5
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } &&
12369          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371   (eval $ac_try) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; } &&
12375          { ac_try='test -s conftest$ac_exeext'
12376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377   (eval $ac_try) 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); }; }; then
12381   ac_cv_lib_dld_shl_load=yes
12382 else
12383   echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12385
12386 ac_cv_lib_dld_shl_load=no
12387 fi
12388 rm -f conftest.err conftest.$ac_objext \
12389       conftest$ac_exeext conftest.$ac_ext
12390 LIBS=$ac_check_lib_save_LIBS
12391 fi
12392 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12393 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12394 if test $ac_cv_lib_dld_shl_load = yes; then
12395   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12396 else
12397   echo "$as_me:$LINENO: checking for dlopen" >&5
12398 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12399 if test "${ac_cv_func_dlopen+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h.  */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h.  */
12408 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12410 #define dlopen innocuous_dlopen
12411
12412 /* System header to define __stub macros and hopefully few prototypes,
12413     which can conflict with char dlopen (); below.
12414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12415     <limits.h> exists even on freestanding compilers.  */
12416
12417 #ifdef __STDC__
12418 # include <limits.h>
12419 #else
12420 # include <assert.h>
12421 #endif
12422
12423 #undef dlopen
12424
12425 /* Override any gcc2 internal prototype to avoid an error.  */
12426 #ifdef __cplusplus
12427 extern "C"
12428 {
12429 #endif
12430 /* We use char because int might match the return type of a gcc2
12431    builtin and then its argument prototype would still apply.  */
12432 char dlopen ();
12433 /* The GNU C library defines this for functions which it implements
12434     to always fail with ENOSYS.  Some functions are actually named
12435     something starting with __ and the normal name is an alias.  */
12436 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12437 choke me
12438 #else
12439 char (*f) () = dlopen;
12440 #endif
12441 #ifdef __cplusplus
12442 }
12443 #endif
12444
12445 int
12446 main ()
12447 {
12448 return f != dlopen;
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12455   (eval $ac_link) 2>conftest.er1
12456   ac_status=$?
12457   grep -v '^ *+' conftest.er1 >conftest.err
12458   rm -f conftest.er1
12459   cat conftest.err >&5
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } &&
12462          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464   (eval $ac_try) 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); }; } &&
12468          { ac_try='test -s conftest$ac_exeext'
12469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470   (eval $ac_try) 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); }; }; then
12474   ac_cv_func_dlopen=yes
12475 else
12476   echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 ac_cv_func_dlopen=no
12480 fi
12481 rm -f conftest.err conftest.$ac_objext \
12482       conftest$ac_exeext conftest.$ac_ext
12483 fi
12484 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12485 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12486 if test $ac_cv_func_dlopen = yes; then
12487   lt_cv_dlopen="dlopen"
12488 else
12489   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12490 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12491 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-ldl  $LIBS"
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502
12503 /* Override any gcc2 internal prototype to avoid an error.  */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 /* We use char because int might match the return type of a gcc2
12508    builtin and then its argument prototype would still apply.  */
12509 char dlopen ();
12510 int
12511 main ()
12512 {
12513 dlopen ();
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520   (eval $ac_link) 2>conftest.er1
12521   ac_status=$?
12522   grep -v '^ *+' conftest.er1 >conftest.err
12523   rm -f conftest.er1
12524   cat conftest.err >&5
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); } &&
12527          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529   (eval $ac_try) 2>&5
12530   ac_status=$?
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); }; } &&
12533          { ac_try='test -s conftest$ac_exeext'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; }; then
12539   ac_cv_lib_dl_dlopen=yes
12540 else
12541   echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12543
12544 ac_cv_lib_dl_dlopen=no
12545 fi
12546 rm -f conftest.err conftest.$ac_objext \
12547       conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12549 fi
12550 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12551 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12552 if test $ac_cv_lib_dl_dlopen = yes; then
12553   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12554 else
12555   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12556 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12557 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12558   echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560   ac_check_lib_save_LIBS=$LIBS
12561 LIBS="-lsvld  $LIBS"
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h.  */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h.  */
12568
12569 /* Override any gcc2 internal prototype to avoid an error.  */
12570 #ifdef __cplusplus
12571 extern "C"
12572 #endif
12573 /* We use char because int might match the return type of a gcc2
12574    builtin and then its argument prototype would still apply.  */
12575 char dlopen ();
12576 int
12577 main ()
12578 {
12579 dlopen ();
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586   (eval $ac_link) 2>conftest.er1
12587   ac_status=$?
12588   grep -v '^ *+' conftest.er1 >conftest.err
12589   rm -f conftest.er1
12590   cat conftest.err >&5
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); } &&
12593          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; } &&
12599          { ac_try='test -s conftest$ac_exeext'
12600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601   (eval $ac_try) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; }; then
12605   ac_cv_lib_svld_dlopen=yes
12606 else
12607   echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12609
12610 ac_cv_lib_svld_dlopen=no
12611 fi
12612 rm -f conftest.err conftest.$ac_objext \
12613       conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12615 fi
12616 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12617 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12618 if test $ac_cv_lib_svld_dlopen = yes; then
12619   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12620 else
12621   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12622 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12623 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626   ac_check_lib_save_LIBS=$LIBS
12627 LIBS="-ldld  $LIBS"
12628 cat >conftest.$ac_ext <<_ACEOF
12629 /* confdefs.h.  */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h.  */
12634
12635 /* Override any gcc2 internal prototype to avoid an error.  */
12636 #ifdef __cplusplus
12637 extern "C"
12638 #endif
12639 /* We use char because int might match the return type of a gcc2
12640    builtin and then its argument prototype would still apply.  */
12641 char dld_link ();
12642 int
12643 main ()
12644 {
12645 dld_link ();
12646   ;
12647   return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652   (eval $ac_link) 2>conftest.er1
12653   ac_status=$?
12654   grep -v '^ *+' conftest.er1 >conftest.err
12655   rm -f conftest.er1
12656   cat conftest.err >&5
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } &&
12659          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661   (eval $ac_try) 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; } &&
12665          { ac_try='test -s conftest$ac_exeext'
12666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667   (eval $ac_try) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; }; then
12671   ac_cv_lib_dld_dld_link=yes
12672 else
12673   echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676 ac_cv_lib_dld_dld_link=no
12677 fi
12678 rm -f conftest.err conftest.$ac_objext \
12679       conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12681 fi
12682 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12683 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12684 if test $ac_cv_lib_dld_dld_link = yes; then
12685   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12686 fi
12687
12688
12689 fi
12690
12691
12692 fi
12693
12694
12695 fi
12696
12697
12698 fi
12699
12700
12701 fi
12702
12703     ;;
12704   esac
12705
12706   if test "x$lt_cv_dlopen" != xno; then
12707     enable_dlopen=yes
12708   else
12709     enable_dlopen=no
12710   fi
12711
12712   case $lt_cv_dlopen in
12713   dlopen)
12714     save_CPPFLAGS="$CPPFLAGS"
12715     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12716
12717     save_LDFLAGS="$LDFLAGS"
12718     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12719
12720     save_LIBS="$LIBS"
12721     LIBS="$lt_cv_dlopen_libs $LIBS"
12722
12723     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12724 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12725 if test "${lt_cv_dlopen_self+set}" = set; then
12726   echo $ECHO_N "(cached) $ECHO_C" >&6
12727 else
12728           if test "$cross_compiling" = yes; then :
12729   lt_cv_dlopen_self=cross
12730 else
12731   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12732   lt_status=$lt_dlunknown
12733   cat > conftest.$ac_ext <<EOF
12734 #line 12734 "configure"
12735 #include "confdefs.h"
12736
12737 #if HAVE_DLFCN_H
12738 #include <dlfcn.h>
12739 #endif
12740
12741 #include <stdio.h>
12742
12743 #ifdef RTLD_GLOBAL
12744 #  define LT_DLGLOBAL           RTLD_GLOBAL
12745 #else
12746 #  ifdef DL_GLOBAL
12747 #    define LT_DLGLOBAL         DL_GLOBAL
12748 #  else
12749 #    define LT_DLGLOBAL         0
12750 #  endif
12751 #endif
12752
12753 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12754    find out it does not work in some platform. */
12755 #ifndef LT_DLLAZY_OR_NOW
12756 #  ifdef RTLD_LAZY
12757 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12758 #  else
12759 #    ifdef DL_LAZY
12760 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12761 #    else
12762 #      ifdef RTLD_NOW
12763 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12764 #      else
12765 #        ifdef DL_NOW
12766 #          define LT_DLLAZY_OR_NOW      DL_NOW
12767 #        else
12768 #          define LT_DLLAZY_OR_NOW      0
12769 #        endif
12770 #      endif
12771 #    endif
12772 #  endif
12773 #endif
12774
12775 #ifdef __cplusplus
12776 extern "C" void exit (int);
12777 #endif
12778
12779 void fnord() { int i=42;}
12780 int main ()
12781 {
12782   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12783   int status = $lt_dlunknown;
12784
12785   if (self)
12786     {
12787       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12788       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12789       /* dlclose (self); */
12790     }
12791
12792     exit (status);
12793 }
12794 EOF
12795   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12796   (eval $ac_link) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12800     (./conftest; exit; ) 2>/dev/null
12801     lt_status=$?
12802     case x$lt_status in
12803       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12804       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12805       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12806     esac
12807   else :
12808     # compilation failed
12809     lt_cv_dlopen_self=no
12810   fi
12811 fi
12812 rm -fr conftest*
12813
12814
12815 fi
12816 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12817 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12818
12819     if test "x$lt_cv_dlopen_self" = xyes; then
12820       LDFLAGS="$LDFLAGS $link_static_flag"
12821       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12822 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12823 if test "${lt_cv_dlopen_self_static+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826           if test "$cross_compiling" = yes; then :
12827   lt_cv_dlopen_self_static=cross
12828 else
12829   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12830   lt_status=$lt_dlunknown
12831   cat > conftest.$ac_ext <<EOF
12832 #line 12832 "configure"
12833 #include "confdefs.h"
12834
12835 #if HAVE_DLFCN_H
12836 #include <dlfcn.h>
12837 #endif
12838
12839 #include <stdio.h>
12840
12841 #ifdef RTLD_GLOBAL
12842 #  define LT_DLGLOBAL           RTLD_GLOBAL
12843 #else
12844 #  ifdef DL_GLOBAL
12845 #    define LT_DLGLOBAL         DL_GLOBAL
12846 #  else
12847 #    define LT_DLGLOBAL         0
12848 #  endif
12849 #endif
12850
12851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12852    find out it does not work in some platform. */
12853 #ifndef LT_DLLAZY_OR_NOW
12854 #  ifdef RTLD_LAZY
12855 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12856 #  else
12857 #    ifdef DL_LAZY
12858 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12859 #    else
12860 #      ifdef RTLD_NOW
12861 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12862 #      else
12863 #        ifdef DL_NOW
12864 #          define LT_DLLAZY_OR_NOW      DL_NOW
12865 #        else
12866 #          define LT_DLLAZY_OR_NOW      0
12867 #        endif
12868 #      endif
12869 #    endif
12870 #  endif
12871 #endif
12872
12873 #ifdef __cplusplus
12874 extern "C" void exit (int);
12875 #endif
12876
12877 void fnord() { int i=42;}
12878 int main ()
12879 {
12880   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12881   int status = $lt_dlunknown;
12882
12883   if (self)
12884     {
12885       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12886       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12887       /* dlclose (self); */
12888     }
12889
12890     exit (status);
12891 }
12892 EOF
12893   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12894   (eval $ac_link) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12898     (./conftest; exit; ) 2>/dev/null
12899     lt_status=$?
12900     case x$lt_status in
12901       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12902       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12903       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12904     esac
12905   else :
12906     # compilation failed
12907     lt_cv_dlopen_self_static=no
12908   fi
12909 fi
12910 rm -fr conftest*
12911
12912
12913 fi
12914 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12915 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12916     fi
12917
12918     CPPFLAGS="$save_CPPFLAGS"
12919     LDFLAGS="$save_LDFLAGS"
12920     LIBS="$save_LIBS"
12921     ;;
12922   esac
12923
12924   case $lt_cv_dlopen_self in
12925   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12926   *) enable_dlopen_self=unknown ;;
12927   esac
12928
12929   case $lt_cv_dlopen_self_static in
12930   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12931   *) enable_dlopen_self_static=unknown ;;
12932   esac
12933 fi
12934
12935
12936 # The else clause should only fire when bootstrapping the
12937 # libtool distribution, otherwise you forgot to ship ltmain.sh
12938 # with your package, and you will get complaints that there are
12939 # no rules to generate ltmain.sh.
12940 if test -f "$ltmain"; then
12941   # See if we are running on zsh, and set the options which allow our commands through
12942   # without removal of \ escapes.
12943   if test -n "${ZSH_VERSION+set}" ; then
12944     setopt NO_GLOB_SUBST
12945   fi
12946   # Now quote all the things that may contain metacharacters while being
12947   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12948   # variables and quote the copies for generation of the libtool script.
12949   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12950     SED SHELL STRIP \
12951     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12952     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12953     deplibs_check_method reload_flag reload_cmds need_locks \
12954     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12955     lt_cv_sys_global_symbol_to_c_name_address \
12956     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12957     old_postinstall_cmds old_postuninstall_cmds \
12958     compiler_CXX \
12959     CC_CXX \
12960     LD_CXX \
12961     lt_prog_compiler_wl_CXX \
12962     lt_prog_compiler_pic_CXX \
12963     lt_prog_compiler_static_CXX \
12964     lt_prog_compiler_no_builtin_flag_CXX \
12965     export_dynamic_flag_spec_CXX \
12966     thread_safe_flag_spec_CXX \
12967     whole_archive_flag_spec_CXX \
12968     enable_shared_with_static_runtimes_CXX \
12969     old_archive_cmds_CXX \
12970     old_archive_from_new_cmds_CXX \
12971     predep_objects_CXX \
12972     postdep_objects_CXX \
12973     predeps_CXX \
12974     postdeps_CXX \
12975     compiler_lib_search_path_CXX \
12976     archive_cmds_CXX \
12977     archive_expsym_cmds_CXX \
12978     postinstall_cmds_CXX \
12979     postuninstall_cmds_CXX \
12980     old_archive_from_expsyms_cmds_CXX \
12981     allow_undefined_flag_CXX \
12982     no_undefined_flag_CXX \
12983     export_symbols_cmds_CXX \
12984     hardcode_libdir_flag_spec_CXX \
12985     hardcode_libdir_flag_spec_ld_CXX \
12986     hardcode_libdir_separator_CXX \
12987     hardcode_automatic_CXX \
12988     module_cmds_CXX \
12989     module_expsym_cmds_CXX \
12990     lt_cv_prog_compiler_c_o_CXX \
12991     exclude_expsyms_CXX \
12992     include_expsyms_CXX; do
12993
12994     case $var in
12995     old_archive_cmds_CXX | \
12996     old_archive_from_new_cmds_CXX | \
12997     archive_cmds_CXX | \
12998     archive_expsym_cmds_CXX | \
12999     module_cmds_CXX | \
13000     module_expsym_cmds_CXX | \
13001     old_archive_from_expsyms_cmds_CXX | \
13002     export_symbols_cmds_CXX | \
13003     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13004     postinstall_cmds | postuninstall_cmds | \
13005     old_postinstall_cmds | old_postuninstall_cmds | \
13006     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13007       # Double-quote double-evaled strings.
13008       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13009       ;;
13010     *)
13011       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13012       ;;
13013     esac
13014   done
13015
13016   case $lt_echo in
13017   *'\$0 --fallback-echo"')
13018     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13019     ;;
13020   esac
13021
13022 cfgfile="$ofile"
13023
13024   cat <<__EOF__ >> "$cfgfile"
13025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13026
13027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13028
13029 # Shell to use when invoking shell scripts.
13030 SHELL=$lt_SHELL
13031
13032 # Whether or not to build shared libraries.
13033 build_libtool_libs=$enable_shared
13034
13035 # Whether or not to build static libraries.
13036 build_old_libs=$enable_static
13037
13038 # Whether or not to add -lc for building shared libraries.
13039 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13040
13041 # Whether or not to disallow shared libs when runtime libs are static
13042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13043
13044 # Whether or not to optimize for fast installation.
13045 fast_install=$enable_fast_install
13046
13047 # The host system.
13048 host_alias=$host_alias
13049 host=$host
13050
13051 # An echo program that does not interpret backslashes.
13052 echo=$lt_echo
13053
13054 # The archiver.
13055 AR=$lt_AR
13056 AR_FLAGS=$lt_AR_FLAGS
13057
13058 # A C compiler.
13059 LTCC=$lt_LTCC
13060
13061 # A language-specific compiler.
13062 CC=$lt_compiler_CXX
13063
13064 # Is the compiler the GNU C compiler?
13065 with_gcc=$GCC_CXX
13066
13067 # An ERE matcher.
13068 EGREP=$lt_EGREP
13069
13070 # The linker used to build libraries.
13071 LD=$lt_LD_CXX
13072
13073 # Whether we need hard or soft links.
13074 LN_S=$lt_LN_S
13075
13076 # A BSD-compatible nm program.
13077 NM=$lt_NM
13078
13079 # A symbol stripping program
13080 STRIP=$lt_STRIP
13081
13082 # Used to examine libraries when file_magic_cmd begins "file"
13083 MAGIC_CMD=$MAGIC_CMD
13084
13085 # Used on cygwin: DLL creation program.
13086 DLLTOOL="$DLLTOOL"
13087
13088 # Used on cygwin: object dumper.
13089 OBJDUMP="$OBJDUMP"
13090
13091 # Used on cygwin: assembler.
13092 AS="$AS"
13093
13094 # The name of the directory that contains temporary libtool files.
13095 objdir=$objdir
13096
13097 # How to create reloadable object files.
13098 reload_flag=$lt_reload_flag
13099 reload_cmds=$lt_reload_cmds
13100
13101 # How to pass a linker flag through the compiler.
13102 wl=$lt_lt_prog_compiler_wl_CXX
13103
13104 # Object file suffix (normally "o").
13105 objext="$ac_objext"
13106
13107 # Old archive suffix (normally "a").
13108 libext="$libext"
13109
13110 # Shared library suffix (normally ".so").
13111 shrext_cmds='$shrext_cmds'
13112
13113 # Executable file suffix (normally "").
13114 exeext="$exeext"
13115
13116 # Additional compiler flags for building library objects.
13117 pic_flag=$lt_lt_prog_compiler_pic_CXX
13118 pic_mode=$pic_mode
13119
13120 # What is the maximum length of a command?
13121 max_cmd_len=$lt_cv_sys_max_cmd_len
13122
13123 # Does compiler simultaneously support -c and -o options?
13124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13125
13126 # Must we lock files when doing compilation ?
13127 need_locks=$lt_need_locks
13128
13129 # Do we need the lib prefix for modules?
13130 need_lib_prefix=$need_lib_prefix
13131
13132 # Do we need a version for libraries?
13133 need_version=$need_version
13134
13135 # Whether dlopen is supported.
13136 dlopen_support=$enable_dlopen
13137
13138 # Whether dlopen of programs is supported.
13139 dlopen_self=$enable_dlopen_self
13140
13141 # Whether dlopen of statically linked programs is supported.
13142 dlopen_self_static=$enable_dlopen_self_static
13143
13144 # Compiler flag to prevent dynamic linking.
13145 link_static_flag=$lt_lt_prog_compiler_static_CXX
13146
13147 # Compiler flag to turn off builtin functions.
13148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13149
13150 # Compiler flag to allow reflexive dlopens.
13151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13152
13153 # Compiler flag to generate shared objects directly from archives.
13154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13155
13156 # Compiler flag to generate thread-safe objects.
13157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13158
13159 # Library versioning type.
13160 version_type=$version_type
13161
13162 # Format of library name prefix.
13163 libname_spec=$lt_libname_spec
13164
13165 # List of archive names.  First name is the real one, the rest are links.
13166 # The last name is the one that the linker finds with -lNAME.
13167 library_names_spec=$lt_library_names_spec
13168
13169 # The coded name of the library, if different from the real name.
13170 soname_spec=$lt_soname_spec
13171
13172 # Commands used to build and install an old-style archive.
13173 RANLIB=$lt_RANLIB
13174 old_archive_cmds=$lt_old_archive_cmds_CXX
13175 old_postinstall_cmds=$lt_old_postinstall_cmds
13176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13177
13178 # Create an old-style archive from a shared archive.
13179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13180
13181 # Create a temporary old-style archive to link instead of a shared archive.
13182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13183
13184 # Commands used to build and install a shared archive.
13185 archive_cmds=$lt_archive_cmds_CXX
13186 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13187 postinstall_cmds=$lt_postinstall_cmds
13188 postuninstall_cmds=$lt_postuninstall_cmds
13189
13190 # Commands used to build a loadable module (assumed same as above if empty)
13191 module_cmds=$lt_module_cmds_CXX
13192 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13193
13194 # Commands to strip libraries.
13195 old_striplib=$lt_old_striplib
13196 striplib=$lt_striplib
13197
13198 # Dependencies to place before the objects being linked to create a
13199 # shared library.
13200 predep_objects=$lt_predep_objects_CXX
13201
13202 # Dependencies to place after the objects being linked to create a
13203 # shared library.
13204 postdep_objects=$lt_postdep_objects_CXX
13205
13206 # Dependencies to place before the objects being linked to create a
13207 # shared library.
13208 predeps=$lt_predeps_CXX
13209
13210 # Dependencies to place after the objects being linked to create a
13211 # shared library.
13212 postdeps=$lt_postdeps_CXX
13213
13214 # The library search path used internally by the compiler when linking
13215 # a shared library.
13216 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13217
13218 # Method to check whether dependent libraries are shared objects.
13219 deplibs_check_method=$lt_deplibs_check_method
13220
13221 # Command to use when deplibs_check_method == file_magic.
13222 file_magic_cmd=$lt_file_magic_cmd
13223
13224 # Flag that allows shared libraries with undefined symbols to be built.
13225 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13226
13227 # Flag that forces no undefined symbols.
13228 no_undefined_flag=$lt_no_undefined_flag_CXX
13229
13230 # Commands used to finish a libtool library installation in a directory.
13231 finish_cmds=$lt_finish_cmds
13232
13233 # Same as above, but a single script fragment to be evaled but not shown.
13234 finish_eval=$lt_finish_eval
13235
13236 # Take the output of nm and produce a listing of raw symbols and C names.
13237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13238
13239 # Transform the output of nm in a proper C declaration
13240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13241
13242 # Transform the output of nm in a C name address pair
13243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13244
13245 # This is the shared library runtime path variable.
13246 runpath_var=$runpath_var
13247
13248 # This is the shared library path variable.
13249 shlibpath_var=$shlibpath_var
13250
13251 # Is shlibpath searched before the hard-coded library search path?
13252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13253
13254 # How to hardcode a shared library path into an executable.
13255 hardcode_action=$hardcode_action_CXX
13256
13257 # Whether we should hardcode library paths into libraries.
13258 hardcode_into_libs=$hardcode_into_libs
13259
13260 # Flag to hardcode \$libdir into a binary during linking.
13261 # This must work even if \$libdir does not exist.
13262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13263
13264 # If ld is used when linking, flag to hardcode \$libdir into
13265 # a binary during linking. This must work even if \$libdir does
13266 # not exist.
13267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13268
13269 # Whether we need a single -rpath flag with a separated argument.
13270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13271
13272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13273 # resulting binary.
13274 hardcode_direct=$hardcode_direct_CXX
13275
13276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13277 # resulting binary.
13278 hardcode_minus_L=$hardcode_minus_L_CXX
13279
13280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13281 # the resulting binary.
13282 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13283
13284 # Set to yes if building a shared library automatically hardcodes DIR into the library
13285 # and all subsequent libraries and executables linked against it.
13286 hardcode_automatic=$hardcode_automatic_CXX
13287
13288 # Variables whose values should be saved in libtool wrapper scripts and
13289 # restored at relink time.
13290 variables_saved_for_relink="$variables_saved_for_relink"
13291
13292 # Whether libtool must link a program against all its dependency libraries.
13293 link_all_deplibs=$link_all_deplibs_CXX
13294
13295 # Compile-time system search path for libraries
13296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13297
13298 # Run-time system search path for libraries
13299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13300
13301 # Fix the shell variable \$srcfile for the compiler.
13302 fix_srcfile_path="$fix_srcfile_path_CXX"
13303
13304 # Set to yes if exported symbols are required.
13305 always_export_symbols=$always_export_symbols_CXX
13306
13307 # The commands to list exported symbols.
13308 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13309
13310 # The commands to extract the exported symbol list from a shared archive.
13311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13312
13313 # Symbols that should not be listed in the preloaded symbols.
13314 exclude_expsyms=$lt_exclude_expsyms_CXX
13315
13316 # Symbols that must always be exported.
13317 include_expsyms=$lt_include_expsyms_CXX
13318
13319 # ### END LIBTOOL TAG CONFIG: $tagname
13320
13321 __EOF__
13322
13323
13324 else
13325   # If there is no Makefile yet, we rely on a make rule to execute
13326   # `config.status --recheck' to rerun these tests and create the
13327   # libtool script then.
13328   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13329   if test -f "$ltmain_in"; then
13330     test -f Makefile && make "$ltmain"
13331   fi
13332 fi
13333
13334
13335 ac_ext=c
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340
13341 CC=$lt_save_CC
13342 LDCXX=$LD
13343 LD=$lt_save_LD
13344 GCC=$lt_save_GCC
13345 with_gnu_ldcxx=$with_gnu_ld
13346 with_gnu_ld=$lt_save_with_gnu_ld
13347 lt_cv_path_LDCXX=$lt_cv_path_LD
13348 lt_cv_path_LD=$lt_save_path_LD
13349 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13350 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13351
13352         else
13353           tagname=""
13354         fi
13355         ;;
13356
13357       F77)
13358         if test -n "$F77" && test "X$F77" != "Xno"; then
13359
13360 ac_ext=f
13361 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13362 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13364
13365
13366 archive_cmds_need_lc_F77=no
13367 allow_undefined_flag_F77=
13368 always_export_symbols_F77=no
13369 archive_expsym_cmds_F77=
13370 export_dynamic_flag_spec_F77=
13371 hardcode_direct_F77=no
13372 hardcode_libdir_flag_spec_F77=
13373 hardcode_libdir_flag_spec_ld_F77=
13374 hardcode_libdir_separator_F77=
13375 hardcode_minus_L_F77=no
13376 hardcode_automatic_F77=no
13377 module_cmds_F77=
13378 module_expsym_cmds_F77=
13379 link_all_deplibs_F77=unknown
13380 old_archive_cmds_F77=$old_archive_cmds
13381 no_undefined_flag_F77=
13382 whole_archive_flag_spec_F77=
13383 enable_shared_with_static_runtimes_F77=no
13384
13385 # Source file extension for f77 test sources.
13386 ac_ext=f
13387
13388 # Object file extension for compiled f77 test sources.
13389 objext=o
13390 objext_F77=$objext
13391
13392 # Code to be used in simple compile tests
13393 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13394
13395 # Code to be used in simple link tests
13396 lt_simple_link_test_code="      program t\n      end\n"
13397
13398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13399
13400 # If no C compiler was specified, use CC.
13401 LTCC=${LTCC-"$CC"}
13402
13403 # Allow CC to be a program name with arguments.
13404 compiler=$CC
13405
13406
13407 # Allow CC to be a program name with arguments.
13408 lt_save_CC="$CC"
13409 CC=${F77-"f77"}
13410 compiler=$CC
13411 compiler_F77=$CC
13412 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13413
13414 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13416 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13417 echo "${ECHO_T}$can_build_shared" >&6
13418
13419 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13421 test "$can_build_shared" = "no" && enable_shared=no
13422
13423 # On AIX, shared libraries and static libraries use the same namespace, and
13424 # are all built from PIC.
13425 case "$host_os" in
13426 aix3*)
13427   test "$enable_shared" = yes && enable_static=no
13428   if test -n "$RANLIB"; then
13429     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13430     postinstall_cmds='$RANLIB $lib'
13431   fi
13432   ;;
13433 aix4* | aix5*)
13434   test "$enable_shared" = yes && enable_static=no
13435   ;;
13436 esac
13437 echo "$as_me:$LINENO: result: $enable_shared" >&5
13438 echo "${ECHO_T}$enable_shared" >&6
13439
13440 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13441 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13442 # Make sure either enable_shared or enable_static is yes.
13443 test "$enable_shared" = yes || enable_static=yes
13444 echo "$as_me:$LINENO: result: $enable_static" >&5
13445 echo "${ECHO_T}$enable_static" >&6
13446
13447 test "$ld_shlibs_F77" = no && can_build_shared=no
13448
13449 GCC_F77="$G77"
13450 LD_F77="$LD"
13451
13452 lt_prog_compiler_wl_F77=
13453 lt_prog_compiler_pic_F77=
13454 lt_prog_compiler_static_F77=
13455
13456 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13458
13459   if test "$GCC" = yes; then
13460     lt_prog_compiler_wl_F77='-Wl,'
13461     lt_prog_compiler_static_F77='-static'
13462
13463     case $host_os in
13464       aix*)
13465       # All AIX code is PIC.
13466       if test "$host_cpu" = ia64; then
13467         # AIX 5 now supports IA64 processor
13468         lt_prog_compiler_static_F77='-Bstatic'
13469       fi
13470       ;;
13471
13472     amigaos*)
13473       # FIXME: we need at least 68020 code to build shared libraries, but
13474       # adding the `-m68020' flag to GCC prevents building anything better,
13475       # like `-m68040'.
13476       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13477       ;;
13478
13479     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13480       # PIC is the default for these OSes.
13481       ;;
13482
13483     mingw* | pw32* | os2*)
13484       # This hack is so that the source file can tell whether it is being
13485       # built for inclusion in a dll (and should export symbols for example).
13486       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13487       ;;
13488
13489     darwin* | rhapsody*)
13490       # PIC is the default on this platform
13491       # Common symbols not allowed in MH_DYLIB files
13492       lt_prog_compiler_pic_F77='-fno-common'
13493       ;;
13494
13495     msdosdjgpp*)
13496       # Just because we use GCC doesn't mean we suddenly get shared libraries
13497       # on systems that don't support them.
13498       lt_prog_compiler_can_build_shared_F77=no
13499       enable_shared=no
13500       ;;
13501
13502     sysv4*MP*)
13503       if test -d /usr/nec; then
13504         lt_prog_compiler_pic_F77=-Kconform_pic
13505       fi
13506       ;;
13507
13508     hpux*)
13509       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13510       # not for PA HP-UX.
13511       case "$host_cpu" in
13512       hppa*64*|ia64*)
13513         # +Z the default
13514         ;;
13515       *)
13516         lt_prog_compiler_pic_F77='-fPIC'
13517         ;;
13518       esac
13519       ;;
13520
13521     *)
13522       lt_prog_compiler_pic_F77='-fPIC'
13523       ;;
13524     esac
13525   else
13526     # PORTME Check for flag to pass linker flags through the system compiler.
13527     case $host_os in
13528     aix*)
13529       lt_prog_compiler_wl_F77='-Wl,'
13530       if test "$host_cpu" = ia64; then
13531         # AIX 5 now supports IA64 processor
13532         lt_prog_compiler_static_F77='-Bstatic'
13533       else
13534         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13535       fi
13536       ;;
13537
13538     mingw* | pw32* | os2*)
13539       # This hack is so that the source file can tell whether it is being
13540       # built for inclusion in a dll (and should export symbols for example).
13541       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13542       ;;
13543
13544     hpux9* | hpux10* | hpux11*)
13545       lt_prog_compiler_wl_F77='-Wl,'
13546       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13547       # not for PA HP-UX.
13548       case "$host_cpu" in
13549       hppa*64*|ia64*)
13550         # +Z the default
13551         ;;
13552       *)
13553         lt_prog_compiler_pic_F77='+Z'
13554         ;;
13555       esac
13556       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13557       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13558       ;;
13559
13560     irix5* | irix6* | nonstopux*)
13561       lt_prog_compiler_wl_F77='-Wl,'
13562       # PIC (with -KPIC) is the default.
13563       lt_prog_compiler_static_F77='-non_shared'
13564       ;;
13565
13566     newsos6)
13567       lt_prog_compiler_pic_F77='-KPIC'
13568       lt_prog_compiler_static_F77='-Bstatic'
13569       ;;
13570
13571     linux*)
13572       case $CC in
13573       icc* | ecc*)
13574         lt_prog_compiler_wl_F77='-Wl,'
13575         lt_prog_compiler_pic_F77='-KPIC'
13576         lt_prog_compiler_static_F77='-static'
13577         ;;
13578       ccc*)
13579         lt_prog_compiler_wl_F77='-Wl,'
13580         # All Alpha code is PIC.
13581         lt_prog_compiler_static_F77='-non_shared'
13582         ;;
13583       esac
13584       ;;
13585
13586     osf3* | osf4* | osf5*)
13587       lt_prog_compiler_wl_F77='-Wl,'
13588       # All OSF/1 code is PIC.
13589       lt_prog_compiler_static_F77='-non_shared'
13590       ;;
13591
13592     sco3.2v5*)
13593       lt_prog_compiler_pic_F77='-Kpic'
13594       lt_prog_compiler_static_F77='-dn'
13595       ;;
13596
13597     solaris*)
13598       lt_prog_compiler_wl_F77='-Wl,'
13599       lt_prog_compiler_pic_F77='-KPIC'
13600       lt_prog_compiler_static_F77='-Bstatic'
13601       ;;
13602
13603     sunos4*)
13604       lt_prog_compiler_wl_F77='-Qoption ld '
13605       lt_prog_compiler_pic_F77='-PIC'
13606       lt_prog_compiler_static_F77='-Bstatic'
13607       ;;
13608
13609     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13610       lt_prog_compiler_wl_F77='-Wl,'
13611       lt_prog_compiler_pic_F77='-KPIC'
13612       lt_prog_compiler_static_F77='-Bstatic'
13613       ;;
13614
13615     sysv4*MP*)
13616       if test -d /usr/nec ;then
13617         lt_prog_compiler_pic_F77='-Kconform_pic'
13618         lt_prog_compiler_static_F77='-Bstatic'
13619       fi
13620       ;;
13621
13622     uts4*)
13623       lt_prog_compiler_pic_F77='-pic'
13624       lt_prog_compiler_static_F77='-Bstatic'
13625       ;;
13626
13627     *)
13628       lt_prog_compiler_can_build_shared_F77=no
13629       ;;
13630     esac
13631   fi
13632
13633 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13634 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13635
13636 #
13637 # Check to make sure the PIC flag actually works.
13638 #
13639 if test -n "$lt_prog_compiler_pic_F77"; then
13640
13641 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13642 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13643 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13644   echo $ECHO_N "(cached) $ECHO_C" >&6
13645 else
13646   lt_prog_compiler_pic_works_F77=no
13647   ac_outfile=conftest.$ac_objext
13648    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13649    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13650    # Insert the option either (1) after the last *FLAGS variable, or
13651    # (2) before a word containing "conftest.", or (3) at the end.
13652    # Note that $ac_compile itself does not contain backslashes and begins
13653    # with a dollar sign (not a hyphen), so the echo should work correctly.
13654    # The option is referenced via a variable to avoid confusing sed.
13655    lt_compile=`echo "$ac_compile" | $SED \
13656    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13657    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13658    -e 's:$: $lt_compiler_flag:'`
13659    (eval echo "\"\$as_me:13659: $lt_compile\"" >&5)
13660    (eval "$lt_compile" 2>conftest.err)
13661    ac_status=$?
13662    cat conftest.err >&5
13663    echo "$as_me:13663: \$? = $ac_status" >&5
13664    if (exit $ac_status) && test -s "$ac_outfile"; then
13665      # The compiler can only warn and ignore the option if not recognized
13666      # So say no if there are warnings
13667      if test ! -s conftest.err; then
13668        lt_prog_compiler_pic_works_F77=yes
13669      fi
13670    fi
13671    $rm conftest*
13672
13673 fi
13674 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13675 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13676
13677 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13678     case $lt_prog_compiler_pic_F77 in
13679      "" | " "*) ;;
13680      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13681      esac
13682 else
13683     lt_prog_compiler_pic_F77=
13684      lt_prog_compiler_can_build_shared_F77=no
13685 fi
13686
13687 fi
13688 case "$host_os" in
13689   # For platforms which do not support PIC, -DPIC is meaningless:
13690   *djgpp*)
13691     lt_prog_compiler_pic_F77=
13692     ;;
13693   *)
13694     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13695     ;;
13696 esac
13697
13698 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13699 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13700 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13701   echo $ECHO_N "(cached) $ECHO_C" >&6
13702 else
13703   lt_cv_prog_compiler_c_o_F77=no
13704    $rm -r conftest 2>/dev/null
13705    mkdir conftest
13706    cd conftest
13707    mkdir out
13708    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13709
13710    lt_compiler_flag="-o out/conftest2.$ac_objext"
13711    # Insert the option either (1) after the last *FLAGS variable, or
13712    # (2) before a word containing "conftest.", or (3) at the end.
13713    # Note that $ac_compile itself does not contain backslashes and begins
13714    # with a dollar sign (not a hyphen), so the echo should work correctly.
13715    lt_compile=`echo "$ac_compile" | $SED \
13716    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13718    -e 's:$: $lt_compiler_flag:'`
13719    (eval echo "\"\$as_me:13719: $lt_compile\"" >&5)
13720    (eval "$lt_compile" 2>out/conftest.err)
13721    ac_status=$?
13722    cat out/conftest.err >&5
13723    echo "$as_me:13723: \$? = $ac_status" >&5
13724    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13725    then
13726      # The compiler can only warn and ignore the option if not recognized
13727      # So say no if there are warnings
13728      if test ! -s out/conftest.err; then
13729        lt_cv_prog_compiler_c_o_F77=yes
13730      fi
13731    fi
13732    chmod u+w .
13733    $rm conftest*
13734    # SGI C++ compiler will create directory out/ii_files/ for
13735    # template instantiation
13736    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13737    $rm out/* && rmdir out
13738    cd ..
13739    rmdir conftest
13740    $rm conftest*
13741
13742 fi
13743 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13744 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13745
13746
13747 hard_links="nottested"
13748 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13749   # do not overwrite the value of need_locks provided by the user
13750   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13751 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13752   hard_links=yes
13753   $rm conftest*
13754   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13755   touch conftest.a
13756   ln conftest.a conftest.b 2>&5 || hard_links=no
13757   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13758   echo "$as_me:$LINENO: result: $hard_links" >&5
13759 echo "${ECHO_T}$hard_links" >&6
13760   if test "$hard_links" = no; then
13761     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13762 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13763     need_locks=warn
13764   fi
13765 else
13766   need_locks=no
13767 fi
13768
13769 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13770 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13771
13772   runpath_var=
13773   allow_undefined_flag_F77=
13774   enable_shared_with_static_runtimes_F77=no
13775   archive_cmds_F77=
13776   archive_expsym_cmds_F77=
13777   old_archive_From_new_cmds_F77=
13778   old_archive_from_expsyms_cmds_F77=
13779   export_dynamic_flag_spec_F77=
13780   whole_archive_flag_spec_F77=
13781   thread_safe_flag_spec_F77=
13782   hardcode_libdir_flag_spec_F77=
13783   hardcode_libdir_flag_spec_ld_F77=
13784   hardcode_libdir_separator_F77=
13785   hardcode_direct_F77=no
13786   hardcode_minus_L_F77=no
13787   hardcode_shlibpath_var_F77=unsupported
13788   link_all_deplibs_F77=unknown
13789   hardcode_automatic_F77=no
13790   module_cmds_F77=
13791   module_expsym_cmds_F77=
13792   always_export_symbols_F77=no
13793   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13794   # include_expsyms should be a list of space-separated symbols to be *always*
13795   # included in the symbol list
13796   include_expsyms_F77=
13797   # exclude_expsyms can be an extended regexp of symbols to exclude
13798   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13799   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13800   # as well as any symbol that contains `d'.
13801   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13802   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13803   # platforms (ab)use it in PIC code, but their linkers get confused if
13804   # the symbol is explicitly referenced.  Since portable code cannot
13805   # rely on this symbol name, it's probably fine to never include it in
13806   # preloaded symbol tables.
13807   extract_expsyms_cmds=
13808
13809   case $host_os in
13810   cygwin* | mingw* | pw32*)
13811     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13812     # When not using gcc, we currently assume that we are using
13813     # Microsoft Visual C++.
13814     if test "$GCC" != yes; then
13815       with_gnu_ld=no
13816     fi
13817     ;;
13818   openbsd*)
13819     with_gnu_ld=no
13820     ;;
13821   esac
13822
13823   ld_shlibs_F77=yes
13824   if test "$with_gnu_ld" = yes; then
13825     # If archive_cmds runs LD, not CC, wlarc should be empty
13826     wlarc='${wl}'
13827
13828     # See if GNU ld supports shared libraries.
13829     case $host_os in
13830     aix3* | aix4* | aix5*)
13831       # On AIX/PPC, the GNU linker is very broken
13832       if test "$host_cpu" != ia64; then
13833         ld_shlibs_F77=no
13834         cat <<EOF 1>&2
13835
13836 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13837 *** to be unable to reliably create shared libraries on AIX.
13838 *** Therefore, libtool is disabling shared libraries support.  If you
13839 *** really care for shared libraries, you may want to modify your PATH
13840 *** so that a non-GNU linker is found, and then restart.
13841
13842 EOF
13843       fi
13844       ;;
13845
13846     amigaos*)
13847       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)'
13848       hardcode_libdir_flag_spec_F77='-L$libdir'
13849       hardcode_minus_L_F77=yes
13850
13851       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13852       # that the semantics of dynamic libraries on AmigaOS, at least up
13853       # to version 4, is to share data among multiple programs linked
13854       # with the same dynamic library.  Since this doesn't match the
13855       # behavior of shared libraries on other platforms, we can't use
13856       # them.
13857       ld_shlibs_F77=no
13858       ;;
13859
13860     beos*)
13861       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13862         allow_undefined_flag_F77=unsupported
13863         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13864         # support --undefined.  This deserves some investigation.  FIXME
13865         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13866       else
13867         ld_shlibs_F77=no
13868       fi
13869       ;;
13870
13871     cygwin* | mingw* | pw32*)
13872       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13873       # as there is no search path for DLLs.
13874       hardcode_libdir_flag_spec_F77='-L$libdir'
13875       allow_undefined_flag_F77=unsupported
13876       always_export_symbols_F77=no
13877       enable_shared_with_static_runtimes_F77=yes
13878       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13879
13880       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13881         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13882         # If the export-symbols file already is a .def file (1st line
13883         # is EXPORTS), use it as is; otherwise, prepend...
13884         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13885           cp $export_symbols $output_objdir/$soname.def;
13886         else
13887           echo EXPORTS > $output_objdir/$soname.def;
13888           cat $export_symbols >> $output_objdir/$soname.def;
13889         fi~
13890         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13891       else
13892         ld_shlibs=no
13893       fi
13894       ;;
13895
13896     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13897       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13898         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13899         wlarc=
13900       else
13901         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13903       fi
13904       ;;
13905
13906     solaris* | sysv5*)
13907       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13908         ld_shlibs_F77=no
13909         cat <<EOF 1>&2
13910
13911 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13912 *** create shared libraries on Solaris systems.  Therefore, libtool
13913 *** is disabling shared libraries support.  We urge you to upgrade GNU
13914 *** binutils to release 2.9.1 or newer.  Another option is to modify
13915 *** your PATH or compiler configuration so that the native linker is
13916 *** used, and then restart.
13917
13918 EOF
13919       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13922       else
13923         ld_shlibs_F77=no
13924       fi
13925       ;;
13926
13927     sunos4*)
13928       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13929       wlarc=
13930       hardcode_direct_F77=yes
13931       hardcode_shlibpath_var_F77=no
13932       ;;
13933
13934   linux*)
13935     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13936         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937         archive_cmds_F77="$tmp_archive_cmds"
13938       supports_anon_versioning=no
13939       case `$LD -v 2>/dev/null` in
13940         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13941         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13942         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13943         *\ 2.11.*) ;; # other 2.11 versions
13944         *) supports_anon_versioning=yes ;;
13945       esac
13946       if test $supports_anon_versioning = yes; then
13947         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13949 $echo "local: *; };" >> $output_objdir/$libname.ver~
13950         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13951       else
13952         archive_expsym_cmds_F77="$tmp_archive_cmds"
13953       fi
13954       link_all_deplibs_F77=no
13955     else
13956       ld_shlibs_F77=no
13957     fi
13958     ;;
13959
13960     *)
13961       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13962         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13964       else
13965         ld_shlibs_F77=no
13966       fi
13967       ;;
13968     esac
13969
13970     if test "$ld_shlibs_F77" = yes; then
13971       runpath_var=LD_RUN_PATH
13972       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13973       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13974       # ancient GNU ld didn't support --whole-archive et. al.
13975       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13976         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13977       else
13978         whole_archive_flag_spec_F77=
13979       fi
13980     fi
13981   else
13982     # PORTME fill in a description of your system's linker (not GNU ld)
13983     case $host_os in
13984     aix3*)
13985       allow_undefined_flag_F77=unsupported
13986       always_export_symbols_F77=yes
13987       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'
13988       # Note: this linker hardcodes the directories in LIBPATH if there
13989       # are no directories specified by -L.
13990       hardcode_minus_L_F77=yes
13991       if test "$GCC" = yes && test -z "$link_static_flag"; then
13992         # Neither direct hardcoding nor static linking is supported with a
13993         # broken collect2.
13994         hardcode_direct_F77=unsupported
13995       fi
13996       ;;
13997
13998     aix4* | aix5*)
13999       if test "$host_cpu" = ia64; then
14000         # On IA64, the linker does run time linking by default, so we don't
14001         # have to do anything special.
14002         aix_use_runtimelinking=no
14003         exp_sym_flag='-Bexport'
14004         no_entry_flag=""
14005       else
14006         # If we're using GNU nm, then we don't want the "-C" option.
14007         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14008         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14009           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'
14010         else
14011           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'
14012         fi
14013         aix_use_runtimelinking=no
14014
14015         # Test if we are trying to use run time linking or normal
14016         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14017         # need to do runtime linking.
14018         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14019           for ld_flag in $LDFLAGS; do
14020           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14021             aix_use_runtimelinking=yes
14022             break
14023           fi
14024           done
14025         esac
14026
14027         exp_sym_flag='-bexport'
14028         no_entry_flag='-bnoentry'
14029       fi
14030
14031       # When large executables or shared objects are built, AIX ld can
14032       # have problems creating the table of contents.  If linking a library
14033       # or program results in "error TOC overflow" add -mminimal-toc to
14034       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14035       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14036
14037       archive_cmds_F77=''
14038       hardcode_direct_F77=yes
14039       hardcode_libdir_separator_F77=':'
14040       link_all_deplibs_F77=yes
14041
14042       if test "$GCC" = yes; then
14043         case $host_os in aix4.012|aix4.012.*)
14044         # We only want to do this on AIX 4.2 and lower, the check
14045         # below for broken collect2 doesn't work under 4.3+
14046           collect2name=`${CC} -print-prog-name=collect2`
14047           if test -f "$collect2name" && \
14048            strings "$collect2name" | grep resolve_lib_name >/dev/null
14049           then
14050           # We have reworked collect2
14051           hardcode_direct_F77=yes
14052           else
14053           # We have old collect2
14054           hardcode_direct_F77=unsupported
14055           # It fails to find uninstalled libraries when the uninstalled
14056           # path is not listed in the libpath.  Setting hardcode_minus_L
14057           # to unsupported forces relinking
14058           hardcode_minus_L_F77=yes
14059           hardcode_libdir_flag_spec_F77='-L$libdir'
14060           hardcode_libdir_separator_F77=
14061           fi
14062         esac
14063         shared_flag='-shared'
14064       else
14065         # not using gcc
14066         if test "$host_cpu" = ia64; then
14067         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14068         # chokes on -Wl,-G. The following line is correct:
14069           shared_flag='-G'
14070         else
14071         if test "$aix_use_runtimelinking" = yes; then
14072             shared_flag='${wl}-G'
14073           else
14074             shared_flag='${wl}-bM:SRE'
14075         fi
14076         fi
14077       fi
14078
14079       # It seems that -bexpall does not export symbols beginning with
14080       # underscore (_), so it is better to generate a list of symbols to export.
14081       always_export_symbols_F77=yes
14082       if test "$aix_use_runtimelinking" = yes; then
14083         # Warning - without using the other runtime loading flags (-brtl),
14084         # -berok will link without error, but may produce a broken library.
14085         allow_undefined_flag_F77='-berok'
14086        # Determine the default libpath from the value encoded in an empty executable.
14087        cat >conftest.$ac_ext <<_ACEOF
14088       program main
14089
14090       end
14091 _ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094   (eval $ac_link) 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103   (eval $ac_try) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; } &&
14107          { ac_try='test -s conftest$ac_exeext'
14108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109   (eval $ac_try) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; }; then
14113
14114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14115 }'`
14116 # Check for a 64-bit object if we didn't find anything.
14117 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; }
14118 }'`; fi
14119 else
14120   echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123 fi
14124 rm -f conftest.err conftest.$ac_objext \
14125       conftest$ac_exeext conftest.$ac_ext
14126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14127
14128        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14129         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14130        else
14131         if test "$host_cpu" = ia64; then
14132           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14133           allow_undefined_flag_F77="-z nodefs"
14134           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14135         else
14136          # Determine the default libpath from the value encoded in an empty executable.
14137          cat >conftest.$ac_ext <<_ACEOF
14138       program main
14139
14140       end
14141 _ACEOF
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144   (eval $ac_link) 2>conftest.er1
14145   ac_status=$?
14146   grep -v '^ *+' conftest.er1 >conftest.err
14147   rm -f conftest.er1
14148   cat conftest.err >&5
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); } &&
14151          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153   (eval $ac_try) 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); }; } &&
14157          { ac_try='test -s conftest$ac_exeext'
14158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159   (eval $ac_try) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); }; }; then
14163
14164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14165 }'`
14166 # Check for a 64-bit object if we didn't find anything.
14167 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; }
14168 }'`; fi
14169 else
14170   echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173 fi
14174 rm -f conftest.err conftest.$ac_objext \
14175       conftest$ac_exeext conftest.$ac_ext
14176 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14177
14178          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14179           # Warning - without using the other run time loading flags,
14180           # -berok will link without error, but may produce a broken library.
14181           no_undefined_flag_F77=' ${wl}-bernotok'
14182           allow_undefined_flag_F77=' ${wl}-berok'
14183           # -bexpall does not export symbols beginning with underscore (_)
14184           always_export_symbols_F77=yes
14185           # Exported symbols can be pulled into shared objects from archives
14186           whole_archive_flag_spec_F77=' '
14187           archive_cmds_need_lc_F77=yes
14188           # This is similar to how AIX traditionally builds it's shared libraries.
14189           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14190         fi
14191       fi
14192       ;;
14193
14194     amigaos*)
14195       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)'
14196       hardcode_libdir_flag_spec_F77='-L$libdir'
14197       hardcode_minus_L_F77=yes
14198       # see comment about different semantics on the GNU ld section
14199       ld_shlibs_F77=no
14200       ;;
14201
14202     bsdi4*)
14203       export_dynamic_flag_spec_F77=-rdynamic
14204       ;;
14205
14206     cygwin* | mingw* | pw32*)
14207       # When not using gcc, we currently assume that we are using
14208       # Microsoft Visual C++.
14209       # hardcode_libdir_flag_spec is actually meaningless, as there is
14210       # no search path for DLLs.
14211       hardcode_libdir_flag_spec_F77=' '
14212       allow_undefined_flag_F77=unsupported
14213       # Tell ltmain to make .lib files, not .a files.
14214       libext=lib
14215       # Tell ltmain to make .dll files, not .so files.
14216       shrext_cmds=".dll"
14217       # FIXME: Setting linknames here is a bad hack.
14218       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14219       # The linker will automatically build a .lib file if we build a DLL.
14220       old_archive_From_new_cmds_F77='true'
14221       # FIXME: Should let the user specify the lib program.
14222       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14223       fix_srcfile_path='`cygpath -w "$srcfile"`'
14224       enable_shared_with_static_runtimes_F77=yes
14225       ;;
14226
14227     darwin* | rhapsody*)
14228     if test "$GXX" = yes ; then
14229       archive_cmds_need_lc_F77=no
14230       case "$host_os" in
14231       rhapsody* | darwin1.[012])
14232         allow_undefined_flag_F77='-undefined suppress'
14233         ;;
14234       *) # Darwin 1.3 on
14235       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14236         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14237       else
14238         case ${MACOSX_DEPLOYMENT_TARGET} in
14239           10.[012])
14240             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14241             ;;
14242           10.*)
14243             allow_undefined_flag_F77='-undefined dynamic_lookup'
14244             ;;
14245         esac
14246       fi
14247         ;;
14248       esac
14249         lt_int_apple_cc_single_mod=no
14250         output_verbose_link_cmd='echo'
14251         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14252           lt_int_apple_cc_single_mod=yes
14253         fi
14254         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14255           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14256         else
14257         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14258       fi
14259       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14260       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14261         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14262           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14263         else
14264           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14265         fi
14266           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}'
14267       hardcode_direct_F77=no
14268       hardcode_automatic_F77=yes
14269       hardcode_shlibpath_var_F77=unsupported
14270       whole_archive_flag_spec_F77='-all_load $convenience'
14271       link_all_deplibs_F77=yes
14272     else
14273       ld_shlibs_F77=no
14274     fi
14275       ;;
14276
14277     dgux*)
14278       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279       hardcode_libdir_flag_spec_F77='-L$libdir'
14280       hardcode_shlibpath_var_F77=no
14281       ;;
14282
14283     freebsd1*)
14284       ld_shlibs_F77=no
14285       ;;
14286
14287     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14288     # support.  Future versions do this automatically, but an explicit c++rt0.o
14289     # does not break anything, and helps significantly (at the cost of a little
14290     # extra space).
14291     freebsd2.2*)
14292       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14293       hardcode_libdir_flag_spec_F77='-R$libdir'
14294       hardcode_direct_F77=yes
14295       hardcode_shlibpath_var_F77=no
14296       ;;
14297
14298     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14299     freebsd2*)
14300       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14301       hardcode_direct_F77=yes
14302       hardcode_minus_L_F77=yes
14303       hardcode_shlibpath_var_F77=no
14304       ;;
14305
14306     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14307     freebsd* | kfreebsd*-gnu)
14308       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14309       hardcode_libdir_flag_spec_F77='-R$libdir'
14310       hardcode_direct_F77=yes
14311       hardcode_shlibpath_var_F77=no
14312       ;;
14313
14314     hpux9*)
14315       if test "$GCC" = yes; then
14316         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'
14317       else
14318         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'
14319       fi
14320       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14321       hardcode_libdir_separator_F77=:
14322       hardcode_direct_F77=yes
14323
14324       # hardcode_minus_L: Not really in the search PATH,
14325       # but as the default location of the library.
14326       hardcode_minus_L_F77=yes
14327       export_dynamic_flag_spec_F77='${wl}-E'
14328       ;;
14329
14330     hpux10* | hpux11*)
14331       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14332         case "$host_cpu" in
14333         hppa*64*|ia64*)
14334           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14335           ;;
14336         *)
14337           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14338           ;;
14339         esac
14340       else
14341         case "$host_cpu" in
14342         hppa*64*|ia64*)
14343           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14344           ;;
14345         *)
14346           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14347           ;;
14348         esac
14349       fi
14350       if test "$with_gnu_ld" = no; then
14351         case "$host_cpu" in
14352         hppa*64*)
14353           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14354           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14355           hardcode_libdir_separator_F77=:
14356           hardcode_direct_F77=no
14357           hardcode_shlibpath_var_F77=no
14358           ;;
14359         ia64*)
14360           hardcode_libdir_flag_spec_F77='-L$libdir'
14361           hardcode_direct_F77=no
14362           hardcode_shlibpath_var_F77=no
14363
14364           # hardcode_minus_L: Not really in the search PATH,
14365           # but as the default location of the library.
14366           hardcode_minus_L_F77=yes
14367           ;;
14368         *)
14369           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14370           hardcode_libdir_separator_F77=:
14371           hardcode_direct_F77=yes
14372           export_dynamic_flag_spec_F77='${wl}-E'
14373
14374           # hardcode_minus_L: Not really in the search PATH,
14375           # but as the default location of the library.
14376           hardcode_minus_L_F77=yes
14377           ;;
14378         esac
14379       fi
14380       ;;
14381
14382     irix5* | irix6* | nonstopux*)
14383       if test "$GCC" = yes; then
14384         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'
14385       else
14386         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'
14387         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14388       fi
14389       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14390       hardcode_libdir_separator_F77=:
14391       link_all_deplibs_F77=yes
14392       ;;
14393
14394     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14395       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14396         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14397       else
14398         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14399       fi
14400       hardcode_libdir_flag_spec_F77='-R$libdir'
14401       hardcode_direct_F77=yes
14402       hardcode_shlibpath_var_F77=no
14403       ;;
14404
14405     newsos6)
14406       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407       hardcode_direct_F77=yes
14408       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14409       hardcode_libdir_separator_F77=:
14410       hardcode_shlibpath_var_F77=no
14411       ;;
14412
14413     openbsd*)
14414       hardcode_direct_F77=yes
14415       hardcode_shlibpath_var_F77=no
14416       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14417         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14418         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14419         export_dynamic_flag_spec_F77='${wl}-E'
14420       else
14421        case $host_os in
14422          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14423            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14424            hardcode_libdir_flag_spec_F77='-R$libdir'
14425            ;;
14426          *)
14427            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14428            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14429            ;;
14430        esac
14431       fi
14432       ;;
14433
14434     os2*)
14435       hardcode_libdir_flag_spec_F77='-L$libdir'
14436       hardcode_minus_L_F77=yes
14437       allow_undefined_flag_F77=unsupported
14438       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'
14439       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14440       ;;
14441
14442     osf3*)
14443       if test "$GCC" = yes; then
14444         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14445         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'
14446       else
14447         allow_undefined_flag_F77=' -expect_unresolved \*'
14448         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'
14449       fi
14450       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14451       hardcode_libdir_separator_F77=:
14452       ;;
14453
14454     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14455       if test "$GCC" = yes; then
14456         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14457         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'
14458         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14459       else
14460         allow_undefined_flag_F77=' -expect_unresolved \*'
14461         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'
14462         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~
14463         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14464
14465         # Both c and cxx compiler support -rpath directly
14466         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14467       fi
14468       hardcode_libdir_separator_F77=:
14469       ;;
14470
14471     sco3.2v5*)
14472       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473       hardcode_shlibpath_var_F77=no
14474       export_dynamic_flag_spec_F77='${wl}-Bexport'
14475       runpath_var=LD_RUN_PATH
14476       hardcode_runpath_var=yes
14477       ;;
14478
14479     solaris*)
14480       no_undefined_flag_F77=' -z text'
14481       if test "$GCC" = yes; then
14482         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14483         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14484           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14485       else
14486         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14487         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14488         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14489       fi
14490       hardcode_libdir_flag_spec_F77='-R$libdir'
14491       hardcode_shlibpath_var_F77=no
14492       case $host_os in
14493       solaris2.[0-5] | solaris2.[0-5].*) ;;
14494       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14495         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14496       esac
14497       link_all_deplibs_F77=yes
14498       ;;
14499
14500     sunos4*)
14501       if test "x$host_vendor" = xsequent; then
14502         # Use $CC to link under sequent, because it throws in some extra .o
14503         # files that make .init and .fini sections work.
14504         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14505       else
14506         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14507       fi
14508       hardcode_libdir_flag_spec_F77='-L$libdir'
14509       hardcode_direct_F77=yes
14510       hardcode_minus_L_F77=yes
14511       hardcode_shlibpath_var_F77=no
14512       ;;
14513
14514     sysv4)
14515       case $host_vendor in
14516         sni)
14517           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14518           hardcode_direct_F77=yes # is this really true???
14519         ;;
14520         siemens)
14521           ## LD is ld it makes a PLAMLIB
14522           ## CC just makes a GrossModule.
14523           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14524           reload_cmds_F77='$CC -r -o $output$reload_objs'
14525           hardcode_direct_F77=no
14526         ;;
14527         motorola)
14528           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14529           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14530         ;;
14531       esac
14532       runpath_var='LD_RUN_PATH'
14533       hardcode_shlibpath_var_F77=no
14534       ;;
14535
14536     sysv4.3*)
14537       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538       hardcode_shlibpath_var_F77=no
14539       export_dynamic_flag_spec_F77='-Bexport'
14540       ;;
14541
14542     sysv4*MP*)
14543       if test -d /usr/nec; then
14544         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14545         hardcode_shlibpath_var_F77=no
14546         runpath_var=LD_RUN_PATH
14547         hardcode_runpath_var=yes
14548         ld_shlibs_F77=yes
14549       fi
14550       ;;
14551
14552     sysv4.2uw2*)
14553       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14554       hardcode_direct_F77=yes
14555       hardcode_minus_L_F77=no
14556       hardcode_shlibpath_var_F77=no
14557       hardcode_runpath_var=yes
14558       runpath_var=LD_RUN_PATH
14559       ;;
14560
14561    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14562       no_undefined_flag_F77='${wl}-z ${wl}text'
14563       if test "$GCC" = yes; then
14564         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14565       else
14566         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14567       fi
14568       runpath_var='LD_RUN_PATH'
14569       hardcode_shlibpath_var_F77=no
14570       ;;
14571
14572     sysv5*)
14573       no_undefined_flag_F77=' -z text'
14574       # $CC -shared without GNU ld will not create a library from C++
14575       # object files and a static libstdc++, better avoid it by now
14576       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14577       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14578                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14579       hardcode_libdir_flag_spec_F77=
14580       hardcode_shlibpath_var_F77=no
14581       runpath_var='LD_RUN_PATH'
14582       ;;
14583
14584     uts4*)
14585       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586       hardcode_libdir_flag_spec_F77='-L$libdir'
14587       hardcode_shlibpath_var_F77=no
14588       ;;
14589
14590     *)
14591       ld_shlibs_F77=no
14592       ;;
14593     esac
14594   fi
14595
14596 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14597 echo "${ECHO_T}$ld_shlibs_F77" >&6
14598 test "$ld_shlibs_F77" = no && can_build_shared=no
14599
14600 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14601 if test "$GCC" = yes; then
14602   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14603 fi
14604
14605 #
14606 # Do we need to explicitly link libc?
14607 #
14608 case "x$archive_cmds_need_lc_F77" in
14609 x|xyes)
14610   # Assume -lc should be added
14611   archive_cmds_need_lc_F77=yes
14612
14613   if test "$enable_shared" = yes && test "$GCC" = yes; then
14614     case $archive_cmds_F77 in
14615     *'~'*)
14616       # FIXME: we may have to deal with multi-command sequences.
14617       ;;
14618     '$CC '*)
14619       # Test whether the compiler implicitly links with -lc since on some
14620       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14621       # to ld, don't add -lc before -lgcc.
14622       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14623 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14624       $rm conftest*
14625       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14626
14627       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628   (eval $ac_compile) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } 2>conftest.err; then
14632         soname=conftest
14633         lib=conftest
14634         libobjs=conftest.$ac_objext
14635         deplibs=
14636         wl=$lt_prog_compiler_wl_F77
14637         compiler_flags=-v
14638         linker_flags=-v
14639         verstring=
14640         output_objdir=.
14641         libname=conftest
14642         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14643         allow_undefined_flag_F77=
14644         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14645   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }
14649         then
14650           archive_cmds_need_lc_F77=no
14651         else
14652           archive_cmds_need_lc_F77=yes
14653         fi
14654         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14655       else
14656         cat conftest.err 1>&5
14657       fi
14658       $rm conftest*
14659       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14660 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14661       ;;
14662     esac
14663   fi
14664   ;;
14665 esac
14666
14667 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14668 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14669 library_names_spec=
14670 libname_spec='lib$name'
14671 soname_spec=
14672 shrext_cmds=".so"
14673 postinstall_cmds=
14674 postuninstall_cmds=
14675 finish_cmds=
14676 finish_eval=
14677 shlibpath_var=
14678 shlibpath_overrides_runpath=unknown
14679 version_type=none
14680 dynamic_linker="$host_os ld.so"
14681 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14682 if test "$GCC" = yes; then
14683   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14684   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14685     # if the path contains ";" then we assume it to be the separator
14686     # otherwise default to the standard path separator (i.e. ":") - it is
14687     # assumed that no part of a normal pathname contains ";" but that should
14688     # okay in the real world where ";" in dirpaths is itself problematic.
14689     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14690   else
14691     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14692   fi
14693 else
14694   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14695 fi
14696 need_lib_prefix=unknown
14697 hardcode_into_libs=no
14698
14699 # when you set need_version to no, make sure it does not cause -set_version
14700 # flags to be left without arguments
14701 need_version=unknown
14702
14703 case $host_os in
14704 aix3*)
14705   version_type=linux
14706   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14707   shlibpath_var=LIBPATH
14708
14709   # AIX 3 has no versioning support, so we append a major version to the name.
14710   soname_spec='${libname}${release}${shared_ext}$major'
14711   ;;
14712
14713 aix4* | aix5*)
14714   version_type=linux
14715   need_lib_prefix=no
14716   need_version=no
14717   hardcode_into_libs=yes
14718   if test "$host_cpu" = ia64; then
14719     # AIX 5 supports IA64
14720     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14721     shlibpath_var=LD_LIBRARY_PATH
14722   else
14723     # With GCC up to 2.95.x, collect2 would create an import file
14724     # for dependence libraries.  The import file would start with
14725     # the line `#! .'.  This would cause the generated library to
14726     # depend on `.', always an invalid library.  This was fixed in
14727     # development snapshots of GCC prior to 3.0.
14728     case $host_os in
14729       aix4 | aix4.[01] | aix4.[01].*)
14730       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14731            echo ' yes '
14732            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14733         :
14734       else
14735         can_build_shared=no
14736       fi
14737       ;;
14738     esac
14739     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14740     # soname into executable. Probably we can add versioning support to
14741     # collect2, so additional links can be useful in future.
14742     if test "$aix_use_runtimelinking" = yes; then
14743       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14744       # instead of lib<name>.a to let people know that these are not
14745       # typical AIX shared libraries.
14746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747     else
14748       # We preserve .a as extension for shared libraries through AIX4.2
14749       # and later when we are not doing run time linking.
14750       library_names_spec='${libname}${release}.a $libname.a'
14751       soname_spec='${libname}${release}${shared_ext}$major'
14752     fi
14753     shlibpath_var=LIBPATH
14754   fi
14755   ;;
14756
14757 amigaos*)
14758   library_names_spec='$libname.ixlibrary $libname.a'
14759   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14760   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'
14761   ;;
14762
14763 beos*)
14764   library_names_spec='${libname}${shared_ext}'
14765   dynamic_linker="$host_os ld.so"
14766   shlibpath_var=LIBRARY_PATH
14767   ;;
14768
14769 bsdi4*)
14770   version_type=linux
14771   need_version=no
14772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773   soname_spec='${libname}${release}${shared_ext}$major'
14774   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14775   shlibpath_var=LD_LIBRARY_PATH
14776   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14777   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14778   # the default ld.so.conf also contains /usr/contrib/lib and
14779   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14780   # libtool to hard-code these into programs
14781   ;;
14782
14783 cygwin* | mingw* | pw32*)
14784   version_type=windows
14785   shrext_cmds=".dll"
14786   need_version=no
14787   need_lib_prefix=no
14788
14789   case $GCC,$host_os in
14790   yes,cygwin* | yes,mingw* | yes,pw32*)
14791     library_names_spec='$libname.dll.a'
14792     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14793     postinstall_cmds='base_file=`basename \${file}`~
14794       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14795       dldir=$destdir/`dirname \$dlpath`~
14796       test -d \$dldir || mkdir -p \$dldir~
14797       $install_prog $dir/$dlname \$dldir/$dlname'
14798     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14799       dlpath=$dir/\$dldll~
14800        $rm \$dlpath'
14801     shlibpath_overrides_runpath=yes
14802
14803     case $host_os in
14804     cygwin*)
14805       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14806       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14807       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14808       ;;
14809     mingw*)
14810       # MinGW DLLs use traditional 'lib' prefix
14811       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14812       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14813       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14814         # It is most probably a Windows format PATH printed by
14815         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14816         # path with ; separators, and with drive letters. We can handle the
14817         # drive letters (cygwin fileutils understands them), so leave them,
14818         # especially as we might pass files found there to a mingw objdump,
14819         # which wouldn't understand a cygwinified path. Ahh.
14820         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14821       else
14822         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14823       fi
14824       ;;
14825     pw32*)
14826       # pw32 DLLs use 'pw' prefix rather than 'lib'
14827       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14828       ;;
14829     esac
14830     ;;
14831
14832   *)
14833     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14834     ;;
14835   esac
14836   dynamic_linker='Win32 ld.exe'
14837   # FIXME: first we should search . and the directory the executable is in
14838   shlibpath_var=PATH
14839   ;;
14840
14841 darwin* | rhapsody*)
14842   dynamic_linker="$host_os dyld"
14843   version_type=darwin
14844   need_lib_prefix=no
14845   need_version=no
14846   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14847   soname_spec='${libname}${release}${major}$shared_ext'
14848   shlibpath_overrides_runpath=yes
14849   shlibpath_var=DYLD_LIBRARY_PATH
14850   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14851   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14852   if test "$GCC" = yes; then
14853     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"`
14854   else
14855     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14856   fi
14857   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14858   ;;
14859
14860 dgux*)
14861   version_type=linux
14862   need_lib_prefix=no
14863   need_version=no
14864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14865   soname_spec='${libname}${release}${shared_ext}$major'
14866   shlibpath_var=LD_LIBRARY_PATH
14867   ;;
14868
14869 freebsd1*)
14870   dynamic_linker=no
14871   ;;
14872
14873 kfreebsd*-gnu)
14874   version_type=linux
14875   need_lib_prefix=no
14876   need_version=no
14877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14878   soname_spec='${libname}${release}${shared_ext}$major'
14879   shlibpath_var=LD_LIBRARY_PATH
14880   shlibpath_overrides_runpath=no
14881   hardcode_into_libs=yes
14882   dynamic_linker='GNU ld.so'
14883   ;;
14884
14885 freebsd*)
14886   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14887   version_type=freebsd-$objformat
14888   case $version_type in
14889     freebsd-elf*)
14890       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14891       need_version=no
14892       need_lib_prefix=no
14893       ;;
14894     freebsd-*)
14895       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14896       need_version=yes
14897       ;;
14898   esac
14899   shlibpath_var=LD_LIBRARY_PATH
14900   case $host_os in
14901   freebsd2*)
14902     shlibpath_overrides_runpath=yes
14903     ;;
14904   freebsd3.01* | freebsdelf3.01*)
14905     shlibpath_overrides_runpath=yes
14906     hardcode_into_libs=yes
14907     ;;
14908   *) # from 3.2 on
14909     shlibpath_overrides_runpath=no
14910     hardcode_into_libs=yes
14911     ;;
14912   esac
14913   ;;
14914
14915 gnu*)
14916   version_type=linux
14917   need_lib_prefix=no
14918   need_version=no
14919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14920   soname_spec='${libname}${release}${shared_ext}$major'
14921   shlibpath_var=LD_LIBRARY_PATH
14922   hardcode_into_libs=yes
14923   ;;
14924
14925 hpux9* | hpux10* | hpux11*)
14926   # Give a soname corresponding to the major version so that dld.sl refuses to
14927   # link against other versions.
14928   version_type=sunos
14929   need_lib_prefix=no
14930   need_version=no
14931   case "$host_cpu" in
14932   ia64*)
14933     shrext_cmds='.so'
14934     hardcode_into_libs=yes
14935     dynamic_linker="$host_os dld.so"
14936     shlibpath_var=LD_LIBRARY_PATH
14937     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939     soname_spec='${libname}${release}${shared_ext}$major'
14940     if test "X$HPUX_IA64_MODE" = X32; then
14941       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14942     else
14943       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14944     fi
14945     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14946     ;;
14947    hppa*64*)
14948      shrext_cmds='.sl'
14949      hardcode_into_libs=yes
14950      dynamic_linker="$host_os dld.sl"
14951      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14952      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14953      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954      soname_spec='${libname}${release}${shared_ext}$major'
14955      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14956      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14957      ;;
14958    *)
14959     shrext_cmds='.sl'
14960     dynamic_linker="$host_os dld.sl"
14961     shlibpath_var=SHLIB_PATH
14962     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964     soname_spec='${libname}${release}${shared_ext}$major'
14965     ;;
14966   esac
14967   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14968   postinstall_cmds='chmod 555 $lib'
14969   ;;
14970
14971 irix5* | irix6* | nonstopux*)
14972   case $host_os in
14973     nonstopux*) version_type=nonstopux ;;
14974     *)
14975         if test "$lt_cv_prog_gnu_ld" = yes; then
14976                 version_type=linux
14977         else
14978                 version_type=irix
14979         fi ;;
14980   esac
14981   need_lib_prefix=no
14982   need_version=no
14983   soname_spec='${libname}${release}${shared_ext}$major'
14984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14985   case $host_os in
14986   irix5* | nonstopux*)
14987     libsuff= shlibsuff=
14988     ;;
14989   *)
14990     case $LD in # libtool.m4 will add one of these switches to LD
14991     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14992       libsuff= shlibsuff= libmagic=32-bit;;
14993     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14994       libsuff=32 shlibsuff=N32 libmagic=N32;;
14995     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14996       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14997     *) libsuff= shlibsuff= libmagic=never-match;;
14998     esac
14999     ;;
15000   esac
15001   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15002   shlibpath_overrides_runpath=no
15003   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15004   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15005   hardcode_into_libs=yes
15006   ;;
15007
15008 # No shared lib support for Linux oldld, aout, or coff.
15009 linux*oldld* | linux*aout* | linux*coff*)
15010   dynamic_linker=no
15011   ;;
15012
15013 # This must be Linux ELF.
15014 linux*)
15015   version_type=linux
15016   need_lib_prefix=no
15017   need_version=no
15018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019   soname_spec='${libname}${release}${shared_ext}$major'
15020   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15021   shlibpath_var=LD_LIBRARY_PATH
15022   shlibpath_overrides_runpath=no
15023   # This implies no fast_install, which is unacceptable.
15024   # Some rework will be needed to allow for fast_install
15025   # before this can be enabled.
15026   hardcode_into_libs=yes
15027
15028   # Append ld.so.conf contents to the search path
15029   if test -f /etc/ld.so.conf; then
15030     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15031     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15032   fi
15033
15034   # We used to test for /lib/ld.so.1 and disable shared libraries on
15035   # powerpc, because MkLinux only supported shared libraries with the
15036   # GNU dynamic linker.  Since this was broken with cross compilers,
15037   # most powerpc-linux boxes support dynamic linking these days and
15038   # people can always --disable-shared, the test was removed, and we
15039   # assume the GNU/Linux dynamic linker is in use.
15040   dynamic_linker='GNU/Linux ld.so'
15041   ;;
15042
15043 netbsdelf*-gnu)
15044   version_type=linux
15045   need_lib_prefix=no
15046   need_version=no
15047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15048   soname_spec='${libname}${release}${shared_ext}$major'
15049   shlibpath_var=LD_LIBRARY_PATH
15050   shlibpath_overrides_runpath=no
15051   hardcode_into_libs=yes
15052   dynamic_linker='NetBSD ld.elf_so'
15053   ;;
15054
15055 knetbsd*-gnu)
15056   version_type=linux
15057   need_lib_prefix=no
15058   need_version=no
15059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15060   soname_spec='${libname}${release}${shared_ext}$major'
15061   shlibpath_var=LD_LIBRARY_PATH
15062   shlibpath_overrides_runpath=no
15063   hardcode_into_libs=yes
15064   dynamic_linker='GNU ld.so'
15065   ;;
15066
15067 netbsd*)
15068   version_type=sunos
15069   need_lib_prefix=no
15070   need_version=no
15071   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15073     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15074     dynamic_linker='NetBSD (a.out) ld.so'
15075   else
15076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15077     soname_spec='${libname}${release}${shared_ext}$major'
15078     dynamic_linker='NetBSD ld.elf_so'
15079   fi
15080   shlibpath_var=LD_LIBRARY_PATH
15081   shlibpath_overrides_runpath=yes
15082   hardcode_into_libs=yes
15083   ;;
15084
15085 newsos6)
15086   version_type=linux
15087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088   shlibpath_var=LD_LIBRARY_PATH
15089   shlibpath_overrides_runpath=yes
15090   ;;
15091
15092 nto-qnx*)
15093   version_type=linux
15094   need_lib_prefix=no
15095   need_version=no
15096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097   soname_spec='${libname}${release}${shared_ext}$major'
15098   shlibpath_var=LD_LIBRARY_PATH
15099   shlibpath_overrides_runpath=yes
15100   ;;
15101
15102 openbsd*)
15103   version_type=sunos
15104   need_lib_prefix=no
15105   need_version=yes
15106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15107   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15108   shlibpath_var=LD_LIBRARY_PATH
15109   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15110     case $host_os in
15111       openbsd2.[89] | openbsd2.[89].*)
15112         shlibpath_overrides_runpath=no
15113         ;;
15114       *)
15115         shlibpath_overrides_runpath=yes
15116         ;;
15117       esac
15118   else
15119     shlibpath_overrides_runpath=yes
15120   fi
15121   ;;
15122
15123 os2*)
15124   libname_spec='$name'
15125   shrext_cmds=".dll"
15126   need_lib_prefix=no
15127   library_names_spec='$libname${shared_ext} $libname.a'
15128   dynamic_linker='OS/2 ld.exe'
15129   shlibpath_var=LIBPATH
15130   ;;
15131
15132 osf3* | osf4* | osf5*)
15133   version_type=osf
15134   need_lib_prefix=no
15135   need_version=no
15136   soname_spec='${libname}${release}${shared_ext}$major'
15137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138   shlibpath_var=LD_LIBRARY_PATH
15139   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15140   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15141   ;;
15142
15143 sco3.2v5*)
15144   version_type=osf
15145   soname_spec='${libname}${release}${shared_ext}$major'
15146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147   shlibpath_var=LD_LIBRARY_PATH
15148   ;;
15149
15150 solaris*)
15151   version_type=linux
15152   need_lib_prefix=no
15153   need_version=no
15154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155   soname_spec='${libname}${release}${shared_ext}$major'
15156   shlibpath_var=LD_LIBRARY_PATH
15157   shlibpath_overrides_runpath=yes
15158   hardcode_into_libs=yes
15159   # ldd complains unless libraries are executable
15160   postinstall_cmds='chmod +x $lib'
15161   ;;
15162
15163 sunos4*)
15164   version_type=sunos
15165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15166   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15167   shlibpath_var=LD_LIBRARY_PATH
15168   shlibpath_overrides_runpath=yes
15169   if test "$with_gnu_ld" = yes; then
15170     need_lib_prefix=no
15171   fi
15172   need_version=yes
15173   ;;
15174
15175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15176   version_type=linux
15177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178   soname_spec='${libname}${release}${shared_ext}$major'
15179   shlibpath_var=LD_LIBRARY_PATH
15180   case $host_vendor in
15181     sni)
15182       shlibpath_overrides_runpath=no
15183       need_lib_prefix=no
15184       export_dynamic_flag_spec='${wl}-Blargedynsym'
15185       runpath_var=LD_RUN_PATH
15186       ;;
15187     siemens)
15188       need_lib_prefix=no
15189       ;;
15190     motorola)
15191       need_lib_prefix=no
15192       need_version=no
15193       shlibpath_overrides_runpath=no
15194       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15195       ;;
15196   esac
15197   ;;
15198
15199 sysv4*MP*)
15200   if test -d /usr/nec ;then
15201     version_type=linux
15202     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15203     soname_spec='$libname${shared_ext}.$major'
15204     shlibpath_var=LD_LIBRARY_PATH
15205   fi
15206   ;;
15207
15208 uts4*)
15209   version_type=linux
15210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211   soname_spec='${libname}${release}${shared_ext}$major'
15212   shlibpath_var=LD_LIBRARY_PATH
15213   ;;
15214
15215 *)
15216   dynamic_linker=no
15217   ;;
15218 esac
15219 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15220 echo "${ECHO_T}$dynamic_linker" >&6
15221 test "$dynamic_linker" = no && can_build_shared=no
15222
15223 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15224 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15225 hardcode_action_F77=
15226 if test -n "$hardcode_libdir_flag_spec_F77" || \
15227    test -n "$runpath_var F77" || \
15228    test "X$hardcode_automatic_F77"="Xyes" ; then
15229
15230   # We can hardcode non-existant directories.
15231   if test "$hardcode_direct_F77" != no &&
15232      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15233      # have to relink, otherwise we might link with an installed library
15234      # when we should be linking with a yet-to-be-installed one
15235      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15236      test "$hardcode_minus_L_F77" != no; then
15237     # Linking always hardcodes the temporary library directory.
15238     hardcode_action_F77=relink
15239   else
15240     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15241     hardcode_action_F77=immediate
15242   fi
15243 else
15244   # We cannot hardcode anything, or else we can only hardcode existing
15245   # directories.
15246   hardcode_action_F77=unsupported
15247 fi
15248 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15249 echo "${ECHO_T}$hardcode_action_F77" >&6
15250
15251 if test "$hardcode_action_F77" = relink; then
15252   # Fast installation is not supported
15253   enable_fast_install=no
15254 elif test "$shlibpath_overrides_runpath" = yes ||
15255      test "$enable_shared" = no; then
15256   # Fast installation is not necessary
15257   enable_fast_install=needless
15258 fi
15259
15260 striplib=
15261 old_striplib=
15262 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15263 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15264 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15265   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15266   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15267   echo "$as_me:$LINENO: result: yes" >&5
15268 echo "${ECHO_T}yes" >&6
15269 else
15270 # FIXME - insert some real tests, host_os isn't really good enough
15271   case $host_os in
15272    darwin*)
15273        if test -n "$STRIP" ; then
15274          striplib="$STRIP -x"
15275          echo "$as_me:$LINENO: result: yes" >&5
15276 echo "${ECHO_T}yes" >&6
15277        else
15278   echo "$as_me:$LINENO: result: no" >&5
15279 echo "${ECHO_T}no" >&6
15280 fi
15281        ;;
15282    *)
15283   echo "$as_me:$LINENO: result: no" >&5
15284 echo "${ECHO_T}no" >&6
15285     ;;
15286   esac
15287 fi
15288
15289
15290
15291 # The else clause should only fire when bootstrapping the
15292 # libtool distribution, otherwise you forgot to ship ltmain.sh
15293 # with your package, and you will get complaints that there are
15294 # no rules to generate ltmain.sh.
15295 if test -f "$ltmain"; then
15296   # See if we are running on zsh, and set the options which allow our commands through
15297   # without removal of \ escapes.
15298   if test -n "${ZSH_VERSION+set}" ; then
15299     setopt NO_GLOB_SUBST
15300   fi
15301   # Now quote all the things that may contain metacharacters while being
15302   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15303   # variables and quote the copies for generation of the libtool script.
15304   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15305     SED SHELL STRIP \
15306     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15307     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15308     deplibs_check_method reload_flag reload_cmds need_locks \
15309     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15310     lt_cv_sys_global_symbol_to_c_name_address \
15311     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15312     old_postinstall_cmds old_postuninstall_cmds \
15313     compiler_F77 \
15314     CC_F77 \
15315     LD_F77 \
15316     lt_prog_compiler_wl_F77 \
15317     lt_prog_compiler_pic_F77 \
15318     lt_prog_compiler_static_F77 \
15319     lt_prog_compiler_no_builtin_flag_F77 \
15320     export_dynamic_flag_spec_F77 \
15321     thread_safe_flag_spec_F77 \
15322     whole_archive_flag_spec_F77 \
15323     enable_shared_with_static_runtimes_F77 \
15324     old_archive_cmds_F77 \
15325     old_archive_from_new_cmds_F77 \
15326     predep_objects_F77 \
15327     postdep_objects_F77 \
15328     predeps_F77 \
15329     postdeps_F77 \
15330     compiler_lib_search_path_F77 \
15331     archive_cmds_F77 \
15332     archive_expsym_cmds_F77 \
15333     postinstall_cmds_F77 \
15334     postuninstall_cmds_F77 \
15335     old_archive_from_expsyms_cmds_F77 \
15336     allow_undefined_flag_F77 \
15337     no_undefined_flag_F77 \
15338     export_symbols_cmds_F77 \
15339     hardcode_libdir_flag_spec_F77 \
15340     hardcode_libdir_flag_spec_ld_F77 \
15341     hardcode_libdir_separator_F77 \
15342     hardcode_automatic_F77 \
15343     module_cmds_F77 \
15344     module_expsym_cmds_F77 \
15345     lt_cv_prog_compiler_c_o_F77 \
15346     exclude_expsyms_F77 \
15347     include_expsyms_F77; do
15348
15349     case $var in
15350     old_archive_cmds_F77 | \
15351     old_archive_from_new_cmds_F77 | \
15352     archive_cmds_F77 | \
15353     archive_expsym_cmds_F77 | \
15354     module_cmds_F77 | \
15355     module_expsym_cmds_F77 | \
15356     old_archive_from_expsyms_cmds_F77 | \
15357     export_symbols_cmds_F77 | \
15358     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15359     postinstall_cmds | postuninstall_cmds | \
15360     old_postinstall_cmds | old_postuninstall_cmds | \
15361     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15362       # Double-quote double-evaled strings.
15363       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15364       ;;
15365     *)
15366       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15367       ;;
15368     esac
15369   done
15370
15371   case $lt_echo in
15372   *'\$0 --fallback-echo"')
15373     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15374     ;;
15375   esac
15376
15377 cfgfile="$ofile"
15378
15379   cat <<__EOF__ >> "$cfgfile"
15380 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15381
15382 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15383
15384 # Shell to use when invoking shell scripts.
15385 SHELL=$lt_SHELL
15386
15387 # Whether or not to build shared libraries.
15388 build_libtool_libs=$enable_shared
15389
15390 # Whether or not to build static libraries.
15391 build_old_libs=$enable_static
15392
15393 # Whether or not to add -lc for building shared libraries.
15394 build_libtool_need_lc=$archive_cmds_need_lc_F77
15395
15396 # Whether or not to disallow shared libs when runtime libs are static
15397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15398
15399 # Whether or not to optimize for fast installation.
15400 fast_install=$enable_fast_install
15401
15402 # The host system.
15403 host_alias=$host_alias
15404 host=$host
15405
15406 # An echo program that does not interpret backslashes.
15407 echo=$lt_echo
15408
15409 # The archiver.
15410 AR=$lt_AR
15411 AR_FLAGS=$lt_AR_FLAGS
15412
15413 # A C compiler.
15414 LTCC=$lt_LTCC
15415
15416 # A language-specific compiler.
15417 CC=$lt_compiler_F77
15418
15419 # Is the compiler the GNU C compiler?
15420 with_gcc=$GCC_F77
15421
15422 # An ERE matcher.
15423 EGREP=$lt_EGREP
15424
15425 # The linker used to build libraries.
15426 LD=$lt_LD_F77
15427
15428 # Whether we need hard or soft links.
15429 LN_S=$lt_LN_S
15430
15431 # A BSD-compatible nm program.
15432 NM=$lt_NM
15433
15434 # A symbol stripping program
15435 STRIP=$lt_STRIP
15436
15437 # Used to examine libraries when file_magic_cmd begins "file"
15438 MAGIC_CMD=$MAGIC_CMD
15439
15440 # Used on cygwin: DLL creation program.
15441 DLLTOOL="$DLLTOOL"
15442
15443 # Used on cygwin: object dumper.
15444 OBJDUMP="$OBJDUMP"
15445
15446 # Used on cygwin: assembler.
15447 AS="$AS"
15448
15449 # The name of the directory that contains temporary libtool files.
15450 objdir=$objdir
15451
15452 # How to create reloadable object files.
15453 reload_flag=$lt_reload_flag
15454 reload_cmds=$lt_reload_cmds
15455
15456 # How to pass a linker flag through the compiler.
15457 wl=$lt_lt_prog_compiler_wl_F77
15458
15459 # Object file suffix (normally "o").
15460 objext="$ac_objext"
15461
15462 # Old archive suffix (normally "a").
15463 libext="$libext"
15464
15465 # Shared library suffix (normally ".so").
15466 shrext_cmds='$shrext_cmds'
15467
15468 # Executable file suffix (normally "").
15469 exeext="$exeext"
15470
15471 # Additional compiler flags for building library objects.
15472 pic_flag=$lt_lt_prog_compiler_pic_F77
15473 pic_mode=$pic_mode
15474
15475 # What is the maximum length of a command?
15476 max_cmd_len=$lt_cv_sys_max_cmd_len
15477
15478 # Does compiler simultaneously support -c and -o options?
15479 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15480
15481 # Must we lock files when doing compilation ?
15482 need_locks=$lt_need_locks
15483
15484 # Do we need the lib prefix for modules?
15485 need_lib_prefix=$need_lib_prefix
15486
15487 # Do we need a version for libraries?
15488 need_version=$need_version
15489
15490 # Whether dlopen is supported.
15491 dlopen_support=$enable_dlopen
15492
15493 # Whether dlopen of programs is supported.
15494 dlopen_self=$enable_dlopen_self
15495
15496 # Whether dlopen of statically linked programs is supported.
15497 dlopen_self_static=$enable_dlopen_self_static
15498
15499 # Compiler flag to prevent dynamic linking.
15500 link_static_flag=$lt_lt_prog_compiler_static_F77
15501
15502 # Compiler flag to turn off builtin functions.
15503 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15504
15505 # Compiler flag to allow reflexive dlopens.
15506 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15507
15508 # Compiler flag to generate shared objects directly from archives.
15509 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15510
15511 # Compiler flag to generate thread-safe objects.
15512 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15513
15514 # Library versioning type.
15515 version_type=$version_type
15516
15517 # Format of library name prefix.
15518 libname_spec=$lt_libname_spec
15519
15520 # List of archive names.  First name is the real one, the rest are links.
15521 # The last name is the one that the linker finds with -lNAME.
15522 library_names_spec=$lt_library_names_spec
15523
15524 # The coded name of the library, if different from the real name.
15525 soname_spec=$lt_soname_spec
15526
15527 # Commands used to build and install an old-style archive.
15528 RANLIB=$lt_RANLIB
15529 old_archive_cmds=$lt_old_archive_cmds_F77
15530 old_postinstall_cmds=$lt_old_postinstall_cmds
15531 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15532
15533 # Create an old-style archive from a shared archive.
15534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15535
15536 # Create a temporary old-style archive to link instead of a shared archive.
15537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15538
15539 # Commands used to build and install a shared archive.
15540 archive_cmds=$lt_archive_cmds_F77
15541 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15542 postinstall_cmds=$lt_postinstall_cmds
15543 postuninstall_cmds=$lt_postuninstall_cmds
15544
15545 # Commands used to build a loadable module (assumed same as above if empty)
15546 module_cmds=$lt_module_cmds_F77
15547 module_expsym_cmds=$lt_module_expsym_cmds_F77
15548
15549 # Commands to strip libraries.
15550 old_striplib=$lt_old_striplib
15551 striplib=$lt_striplib
15552
15553 # Dependencies to place before the objects being linked to create a
15554 # shared library.
15555 predep_objects=$lt_predep_objects_F77
15556
15557 # Dependencies to place after the objects being linked to create a
15558 # shared library.
15559 postdep_objects=$lt_postdep_objects_F77
15560
15561 # Dependencies to place before the objects being linked to create a
15562 # shared library.
15563 predeps=$lt_predeps_F77
15564
15565 # Dependencies to place after the objects being linked to create a
15566 # shared library.
15567 postdeps=$lt_postdeps_F77
15568
15569 # The library search path used internally by the compiler when linking
15570 # a shared library.
15571 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15572
15573 # Method to check whether dependent libraries are shared objects.
15574 deplibs_check_method=$lt_deplibs_check_method
15575
15576 # Command to use when deplibs_check_method == file_magic.
15577 file_magic_cmd=$lt_file_magic_cmd
15578
15579 # Flag that allows shared libraries with undefined symbols to be built.
15580 allow_undefined_flag=$lt_allow_undefined_flag_F77
15581
15582 # Flag that forces no undefined symbols.
15583 no_undefined_flag=$lt_no_undefined_flag_F77
15584
15585 # Commands used to finish a libtool library installation in a directory.
15586 finish_cmds=$lt_finish_cmds
15587
15588 # Same as above, but a single script fragment to be evaled but not shown.
15589 finish_eval=$lt_finish_eval
15590
15591 # Take the output of nm and produce a listing of raw symbols and C names.
15592 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15593
15594 # Transform the output of nm in a proper C declaration
15595 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15596
15597 # Transform the output of nm in a C name address pair
15598 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15599
15600 # This is the shared library runtime path variable.
15601 runpath_var=$runpath_var
15602
15603 # This is the shared library path variable.
15604 shlibpath_var=$shlibpath_var
15605
15606 # Is shlibpath searched before the hard-coded library search path?
15607 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15608
15609 # How to hardcode a shared library path into an executable.
15610 hardcode_action=$hardcode_action_F77
15611
15612 # Whether we should hardcode library paths into libraries.
15613 hardcode_into_libs=$hardcode_into_libs
15614
15615 # Flag to hardcode \$libdir into a binary during linking.
15616 # This must work even if \$libdir does not exist.
15617 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15618
15619 # If ld is used when linking, flag to hardcode \$libdir into
15620 # a binary during linking. This must work even if \$libdir does
15621 # not exist.
15622 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15623
15624 # Whether we need a single -rpath flag with a separated argument.
15625 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15626
15627 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15628 # resulting binary.
15629 hardcode_direct=$hardcode_direct_F77
15630
15631 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15632 # resulting binary.
15633 hardcode_minus_L=$hardcode_minus_L_F77
15634
15635 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15636 # the resulting binary.
15637 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15638
15639 # Set to yes if building a shared library automatically hardcodes DIR into the library
15640 # and all subsequent libraries and executables linked against it.
15641 hardcode_automatic=$hardcode_automatic_F77
15642
15643 # Variables whose values should be saved in libtool wrapper scripts and
15644 # restored at relink time.
15645 variables_saved_for_relink="$variables_saved_for_relink"
15646
15647 # Whether libtool must link a program against all its dependency libraries.
15648 link_all_deplibs=$link_all_deplibs_F77
15649
15650 # Compile-time system search path for libraries
15651 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15652
15653 # Run-time system search path for libraries
15654 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15655
15656 # Fix the shell variable \$srcfile for the compiler.
15657 fix_srcfile_path="$fix_srcfile_path_F77"
15658
15659 # Set to yes if exported symbols are required.
15660 always_export_symbols=$always_export_symbols_F77
15661
15662 # The commands to list exported symbols.
15663 export_symbols_cmds=$lt_export_symbols_cmds_F77
15664
15665 # The commands to extract the exported symbol list from a shared archive.
15666 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15667
15668 # Symbols that should not be listed in the preloaded symbols.
15669 exclude_expsyms=$lt_exclude_expsyms_F77
15670
15671 # Symbols that must always be exported.
15672 include_expsyms=$lt_include_expsyms_F77
15673
15674 # ### END LIBTOOL TAG CONFIG: $tagname
15675
15676 __EOF__
15677
15678
15679 else
15680   # If there is no Makefile yet, we rely on a make rule to execute
15681   # `config.status --recheck' to rerun these tests and create the
15682   # libtool script then.
15683   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15684   if test -f "$ltmain_in"; then
15685     test -f Makefile && make "$ltmain"
15686   fi
15687 fi
15688
15689
15690 ac_ext=c
15691 ac_cpp='$CPP $CPPFLAGS'
15692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15695
15696 CC="$lt_save_CC"
15697
15698         else
15699           tagname=""
15700         fi
15701         ;;
15702
15703       GCJ)
15704         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15705
15706
15707
15708 # Source file extension for Java test sources.
15709 ac_ext=java
15710
15711 # Object file extension for compiled Java test sources.
15712 objext=o
15713 objext_GCJ=$objext
15714
15715 # Code to be used in simple compile tests
15716 lt_simple_compile_test_code="class foo {}\n"
15717
15718 # Code to be used in simple link tests
15719 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15720
15721 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15722
15723 # If no C compiler was specified, use CC.
15724 LTCC=${LTCC-"$CC"}
15725
15726 # Allow CC to be a program name with arguments.
15727 compiler=$CC
15728
15729
15730 # Allow CC to be a program name with arguments.
15731 lt_save_CC="$CC"
15732 CC=${GCJ-"gcj"}
15733 compiler=$CC
15734 compiler_GCJ=$CC
15735
15736 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15737 archive_cmds_need_lc_GCJ=no
15738
15739
15740 lt_prog_compiler_no_builtin_flag_GCJ=
15741
15742 if test "$GCC" = yes; then
15743   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15744
15745
15746 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15747 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15748 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15749   echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751   lt_cv_prog_compiler_rtti_exceptions=no
15752   ac_outfile=conftest.$ac_objext
15753    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15754    lt_compiler_flag="-fno-rtti -fno-exceptions"
15755    # Insert the option either (1) after the last *FLAGS variable, or
15756    # (2) before a word containing "conftest.", or (3) at the end.
15757    # Note that $ac_compile itself does not contain backslashes and begins
15758    # with a dollar sign (not a hyphen), so the echo should work correctly.
15759    # The option is referenced via a variable to avoid confusing sed.
15760    lt_compile=`echo "$ac_compile" | $SED \
15761    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15763    -e 's:$: $lt_compiler_flag:'`
15764    (eval echo "\"\$as_me:15764: $lt_compile\"" >&5)
15765    (eval "$lt_compile" 2>conftest.err)
15766    ac_status=$?
15767    cat conftest.err >&5
15768    echo "$as_me:15768: \$? = $ac_status" >&5
15769    if (exit $ac_status) && test -s "$ac_outfile"; then
15770      # The compiler can only warn and ignore the option if not recognized
15771      # So say no if there are warnings
15772      if test ! -s conftest.err; then
15773        lt_cv_prog_compiler_rtti_exceptions=yes
15774      fi
15775    fi
15776    $rm conftest*
15777
15778 fi
15779 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15780 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15781
15782 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15783     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15784 else
15785     :
15786 fi
15787
15788 fi
15789
15790 lt_prog_compiler_wl_GCJ=
15791 lt_prog_compiler_pic_GCJ=
15792 lt_prog_compiler_static_GCJ=
15793
15794 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15795 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15796
15797   if test "$GCC" = yes; then
15798     lt_prog_compiler_wl_GCJ='-Wl,'
15799     lt_prog_compiler_static_GCJ='-static'
15800
15801     case $host_os in
15802       aix*)
15803       # All AIX code is PIC.
15804       if test "$host_cpu" = ia64; then
15805         # AIX 5 now supports IA64 processor
15806         lt_prog_compiler_static_GCJ='-Bstatic'
15807       fi
15808       ;;
15809
15810     amigaos*)
15811       # FIXME: we need at least 68020 code to build shared libraries, but
15812       # adding the `-m68020' flag to GCC prevents building anything better,
15813       # like `-m68040'.
15814       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15815       ;;
15816
15817     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15818       # PIC is the default for these OSes.
15819       ;;
15820
15821     mingw* | pw32* | os2*)
15822       # This hack is so that the source file can tell whether it is being
15823       # built for inclusion in a dll (and should export symbols for example).
15824       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15825       ;;
15826
15827     darwin* | rhapsody*)
15828       # PIC is the default on this platform
15829       # Common symbols not allowed in MH_DYLIB files
15830       lt_prog_compiler_pic_GCJ='-fno-common'
15831       ;;
15832
15833     msdosdjgpp*)
15834       # Just because we use GCC doesn't mean we suddenly get shared libraries
15835       # on systems that don't support them.
15836       lt_prog_compiler_can_build_shared_GCJ=no
15837       enable_shared=no
15838       ;;
15839
15840     sysv4*MP*)
15841       if test -d /usr/nec; then
15842         lt_prog_compiler_pic_GCJ=-Kconform_pic
15843       fi
15844       ;;
15845
15846     hpux*)
15847       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15848       # not for PA HP-UX.
15849       case "$host_cpu" in
15850       hppa*64*|ia64*)
15851         # +Z the default
15852         ;;
15853       *)
15854         lt_prog_compiler_pic_GCJ='-fPIC'
15855         ;;
15856       esac
15857       ;;
15858
15859     *)
15860       lt_prog_compiler_pic_GCJ='-fPIC'
15861       ;;
15862     esac
15863   else
15864     # PORTME Check for flag to pass linker flags through the system compiler.
15865     case $host_os in
15866     aix*)
15867       lt_prog_compiler_wl_GCJ='-Wl,'
15868       if test "$host_cpu" = ia64; then
15869         # AIX 5 now supports IA64 processor
15870         lt_prog_compiler_static_GCJ='-Bstatic'
15871       else
15872         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15873       fi
15874       ;;
15875
15876     mingw* | pw32* | os2*)
15877       # This hack is so that the source file can tell whether it is being
15878       # built for inclusion in a dll (and should export symbols for example).
15879       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15880       ;;
15881
15882     hpux9* | hpux10* | hpux11*)
15883       lt_prog_compiler_wl_GCJ='-Wl,'
15884       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15885       # not for PA HP-UX.
15886       case "$host_cpu" in
15887       hppa*64*|ia64*)
15888         # +Z the default
15889         ;;
15890       *)
15891         lt_prog_compiler_pic_GCJ='+Z'
15892         ;;
15893       esac
15894       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15895       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15896       ;;
15897
15898     irix5* | irix6* | nonstopux*)
15899       lt_prog_compiler_wl_GCJ='-Wl,'
15900       # PIC (with -KPIC) is the default.
15901       lt_prog_compiler_static_GCJ='-non_shared'
15902       ;;
15903
15904     newsos6)
15905       lt_prog_compiler_pic_GCJ='-KPIC'
15906       lt_prog_compiler_static_GCJ='-Bstatic'
15907       ;;
15908
15909     linux*)
15910       case $CC in
15911       icc* | ecc*)
15912         lt_prog_compiler_wl_GCJ='-Wl,'
15913         lt_prog_compiler_pic_GCJ='-KPIC'
15914         lt_prog_compiler_static_GCJ='-static'
15915         ;;
15916       ccc*)
15917         lt_prog_compiler_wl_GCJ='-Wl,'
15918         # All Alpha code is PIC.
15919         lt_prog_compiler_static_GCJ='-non_shared'
15920         ;;
15921       esac
15922       ;;
15923
15924     osf3* | osf4* | osf5*)
15925       lt_prog_compiler_wl_GCJ='-Wl,'
15926       # All OSF/1 code is PIC.
15927       lt_prog_compiler_static_GCJ='-non_shared'
15928       ;;
15929
15930     sco3.2v5*)
15931       lt_prog_compiler_pic_GCJ='-Kpic'
15932       lt_prog_compiler_static_GCJ='-dn'
15933       ;;
15934
15935     solaris*)
15936       lt_prog_compiler_wl_GCJ='-Wl,'
15937       lt_prog_compiler_pic_GCJ='-KPIC'
15938       lt_prog_compiler_static_GCJ='-Bstatic'
15939       ;;
15940
15941     sunos4*)
15942       lt_prog_compiler_wl_GCJ='-Qoption ld '
15943       lt_prog_compiler_pic_GCJ='-PIC'
15944       lt_prog_compiler_static_GCJ='-Bstatic'
15945       ;;
15946
15947     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15948       lt_prog_compiler_wl_GCJ='-Wl,'
15949       lt_prog_compiler_pic_GCJ='-KPIC'
15950       lt_prog_compiler_static_GCJ='-Bstatic'
15951       ;;
15952
15953     sysv4*MP*)
15954       if test -d /usr/nec ;then
15955         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15956         lt_prog_compiler_static_GCJ='-Bstatic'
15957       fi
15958       ;;
15959
15960     uts4*)
15961       lt_prog_compiler_pic_GCJ='-pic'
15962       lt_prog_compiler_static_GCJ='-Bstatic'
15963       ;;
15964
15965     *)
15966       lt_prog_compiler_can_build_shared_GCJ=no
15967       ;;
15968     esac
15969   fi
15970
15971 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15972 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15973
15974 #
15975 # Check to make sure the PIC flag actually works.
15976 #
15977 if test -n "$lt_prog_compiler_pic_GCJ"; then
15978
15979 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15980 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15981 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15982   echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984   lt_prog_compiler_pic_works_GCJ=no
15985   ac_outfile=conftest.$ac_objext
15986    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15987    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15988    # Insert the option either (1) after the last *FLAGS variable, or
15989    # (2) before a word containing "conftest.", or (3) at the end.
15990    # Note that $ac_compile itself does not contain backslashes and begins
15991    # with a dollar sign (not a hyphen), so the echo should work correctly.
15992    # The option is referenced via a variable to avoid confusing sed.
15993    lt_compile=`echo "$ac_compile" | $SED \
15994    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15995    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15996    -e 's:$: $lt_compiler_flag:'`
15997    (eval echo "\"\$as_me:15997: $lt_compile\"" >&5)
15998    (eval "$lt_compile" 2>conftest.err)
15999    ac_status=$?
16000    cat conftest.err >&5
16001    echo "$as_me:16001: \$? = $ac_status" >&5
16002    if (exit $ac_status) && test -s "$ac_outfile"; then
16003      # The compiler can only warn and ignore the option if not recognized
16004      # So say no if there are warnings
16005      if test ! -s conftest.err; then
16006        lt_prog_compiler_pic_works_GCJ=yes
16007      fi
16008    fi
16009    $rm conftest*
16010
16011 fi
16012 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16013 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16014
16015 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16016     case $lt_prog_compiler_pic_GCJ in
16017      "" | " "*) ;;
16018      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16019      esac
16020 else
16021     lt_prog_compiler_pic_GCJ=
16022      lt_prog_compiler_can_build_shared_GCJ=no
16023 fi
16024
16025 fi
16026 case "$host_os" in
16027   # For platforms which do not support PIC, -DPIC is meaningless:
16028   *djgpp*)
16029     lt_prog_compiler_pic_GCJ=
16030     ;;
16031   *)
16032     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16033     ;;
16034 esac
16035
16036 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16037 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16038 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16039   echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041   lt_cv_prog_compiler_c_o_GCJ=no
16042    $rm -r conftest 2>/dev/null
16043    mkdir conftest
16044    cd conftest
16045    mkdir out
16046    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16047
16048    lt_compiler_flag="-o out/conftest2.$ac_objext"
16049    # Insert the option either (1) after the last *FLAGS variable, or
16050    # (2) before a word containing "conftest.", or (3) at the end.
16051    # Note that $ac_compile itself does not contain backslashes and begins
16052    # with a dollar sign (not a hyphen), so the echo should work correctly.
16053    lt_compile=`echo "$ac_compile" | $SED \
16054    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16056    -e 's:$: $lt_compiler_flag:'`
16057    (eval echo "\"\$as_me:16057: $lt_compile\"" >&5)
16058    (eval "$lt_compile" 2>out/conftest.err)
16059    ac_status=$?
16060    cat out/conftest.err >&5
16061    echo "$as_me:16061: \$? = $ac_status" >&5
16062    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16063    then
16064      # The compiler can only warn and ignore the option if not recognized
16065      # So say no if there are warnings
16066      if test ! -s out/conftest.err; then
16067        lt_cv_prog_compiler_c_o_GCJ=yes
16068      fi
16069    fi
16070    chmod u+w .
16071    $rm conftest*
16072    # SGI C++ compiler will create directory out/ii_files/ for
16073    # template instantiation
16074    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16075    $rm out/* && rmdir out
16076    cd ..
16077    rmdir conftest
16078    $rm conftest*
16079
16080 fi
16081 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16082 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16083
16084
16085 hard_links="nottested"
16086 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16087   # do not overwrite the value of need_locks provided by the user
16088   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16089 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16090   hard_links=yes
16091   $rm conftest*
16092   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16093   touch conftest.a
16094   ln conftest.a conftest.b 2>&5 || hard_links=no
16095   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16096   echo "$as_me:$LINENO: result: $hard_links" >&5
16097 echo "${ECHO_T}$hard_links" >&6
16098   if test "$hard_links" = no; then
16099     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16100 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16101     need_locks=warn
16102   fi
16103 else
16104   need_locks=no
16105 fi
16106
16107 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16108 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16109
16110   runpath_var=
16111   allow_undefined_flag_GCJ=
16112   enable_shared_with_static_runtimes_GCJ=no
16113   archive_cmds_GCJ=
16114   archive_expsym_cmds_GCJ=
16115   old_archive_From_new_cmds_GCJ=
16116   old_archive_from_expsyms_cmds_GCJ=
16117   export_dynamic_flag_spec_GCJ=
16118   whole_archive_flag_spec_GCJ=
16119   thread_safe_flag_spec_GCJ=
16120   hardcode_libdir_flag_spec_GCJ=
16121   hardcode_libdir_flag_spec_ld_GCJ=
16122   hardcode_libdir_separator_GCJ=
16123   hardcode_direct_GCJ=no
16124   hardcode_minus_L_GCJ=no
16125   hardcode_shlibpath_var_GCJ=unsupported
16126   link_all_deplibs_GCJ=unknown
16127   hardcode_automatic_GCJ=no
16128   module_cmds_GCJ=
16129   module_expsym_cmds_GCJ=
16130   always_export_symbols_GCJ=no
16131   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16132   # include_expsyms should be a list of space-separated symbols to be *always*
16133   # included in the symbol list
16134   include_expsyms_GCJ=
16135   # exclude_expsyms can be an extended regexp of symbols to exclude
16136   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16137   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16138   # as well as any symbol that contains `d'.
16139   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16140   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16141   # platforms (ab)use it in PIC code, but their linkers get confused if
16142   # the symbol is explicitly referenced.  Since portable code cannot
16143   # rely on this symbol name, it's probably fine to never include it in
16144   # preloaded symbol tables.
16145   extract_expsyms_cmds=
16146
16147   case $host_os in
16148   cygwin* | mingw* | pw32*)
16149     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16150     # When not using gcc, we currently assume that we are using
16151     # Microsoft Visual C++.
16152     if test "$GCC" != yes; then
16153       with_gnu_ld=no
16154     fi
16155     ;;
16156   openbsd*)
16157     with_gnu_ld=no
16158     ;;
16159   esac
16160
16161   ld_shlibs_GCJ=yes
16162   if test "$with_gnu_ld" = yes; then
16163     # If archive_cmds runs LD, not CC, wlarc should be empty
16164     wlarc='${wl}'
16165
16166     # See if GNU ld supports shared libraries.
16167     case $host_os in
16168     aix3* | aix4* | aix5*)
16169       # On AIX/PPC, the GNU linker is very broken
16170       if test "$host_cpu" != ia64; then
16171         ld_shlibs_GCJ=no
16172         cat <<EOF 1>&2
16173
16174 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16175 *** to be unable to reliably create shared libraries on AIX.
16176 *** Therefore, libtool is disabling shared libraries support.  If you
16177 *** really care for shared libraries, you may want to modify your PATH
16178 *** so that a non-GNU linker is found, and then restart.
16179
16180 EOF
16181       fi
16182       ;;
16183
16184     amigaos*)
16185       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)'
16186       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16187       hardcode_minus_L_GCJ=yes
16188
16189       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16190       # that the semantics of dynamic libraries on AmigaOS, at least up
16191       # to version 4, is to share data among multiple programs linked
16192       # with the same dynamic library.  Since this doesn't match the
16193       # behavior of shared libraries on other platforms, we can't use
16194       # them.
16195       ld_shlibs_GCJ=no
16196       ;;
16197
16198     beos*)
16199       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16200         allow_undefined_flag_GCJ=unsupported
16201         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16202         # support --undefined.  This deserves some investigation.  FIXME
16203         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16204       else
16205         ld_shlibs_GCJ=no
16206       fi
16207       ;;
16208
16209     cygwin* | mingw* | pw32*)
16210       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16211       # as there is no search path for DLLs.
16212       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16213       allow_undefined_flag_GCJ=unsupported
16214       always_export_symbols_GCJ=no
16215       enable_shared_with_static_runtimes_GCJ=yes
16216       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16217
16218       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16219         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16220         # If the export-symbols file already is a .def file (1st line
16221         # is EXPORTS), use it as is; otherwise, prepend...
16222         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16223           cp $export_symbols $output_objdir/$soname.def;
16224         else
16225           echo EXPORTS > $output_objdir/$soname.def;
16226           cat $export_symbols >> $output_objdir/$soname.def;
16227         fi~
16228         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16229       else
16230         ld_shlibs=no
16231       fi
16232       ;;
16233
16234     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16235       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16236         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16237         wlarc=
16238       else
16239         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16240         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16241       fi
16242       ;;
16243
16244     solaris* | sysv5*)
16245       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16246         ld_shlibs_GCJ=no
16247         cat <<EOF 1>&2
16248
16249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16250 *** create shared libraries on Solaris systems.  Therefore, libtool
16251 *** is disabling shared libraries support.  We urge you to upgrade GNU
16252 *** binutils to release 2.9.1 or newer.  Another option is to modify
16253 *** your PATH or compiler configuration so that the native linker is
16254 *** used, and then restart.
16255
16256 EOF
16257       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16258         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16259         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16260       else
16261         ld_shlibs_GCJ=no
16262       fi
16263       ;;
16264
16265     sunos4*)
16266       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16267       wlarc=
16268       hardcode_direct_GCJ=yes
16269       hardcode_shlibpath_var_GCJ=no
16270       ;;
16271
16272   linux*)
16273     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16274         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16275         archive_cmds_GCJ="$tmp_archive_cmds"
16276       supports_anon_versioning=no
16277       case `$LD -v 2>/dev/null` in
16278         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16279         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16280         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16281         *\ 2.11.*) ;; # other 2.11 versions
16282         *) supports_anon_versioning=yes ;;
16283       esac
16284       if test $supports_anon_versioning = yes; then
16285         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16287 $echo "local: *; };" >> $output_objdir/$libname.ver~
16288         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16289       else
16290         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16291       fi
16292       link_all_deplibs_GCJ=no
16293     else
16294       ld_shlibs_GCJ=no
16295     fi
16296     ;;
16297
16298     *)
16299       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16300         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16301         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16302       else
16303         ld_shlibs_GCJ=no
16304       fi
16305       ;;
16306     esac
16307
16308     if test "$ld_shlibs_GCJ" = yes; then
16309       runpath_var=LD_RUN_PATH
16310       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16311       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16312       # ancient GNU ld didn't support --whole-archive et. al.
16313       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16314         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16315       else
16316         whole_archive_flag_spec_GCJ=
16317       fi
16318     fi
16319   else
16320     # PORTME fill in a description of your system's linker (not GNU ld)
16321     case $host_os in
16322     aix3*)
16323       allow_undefined_flag_GCJ=unsupported
16324       always_export_symbols_GCJ=yes
16325       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'
16326       # Note: this linker hardcodes the directories in LIBPATH if there
16327       # are no directories specified by -L.
16328       hardcode_minus_L_GCJ=yes
16329       if test "$GCC" = yes && test -z "$link_static_flag"; then
16330         # Neither direct hardcoding nor static linking is supported with a
16331         # broken collect2.
16332         hardcode_direct_GCJ=unsupported
16333       fi
16334       ;;
16335
16336     aix4* | aix5*)
16337       if test "$host_cpu" = ia64; then
16338         # On IA64, the linker does run time linking by default, so we don't
16339         # have to do anything special.
16340         aix_use_runtimelinking=no
16341         exp_sym_flag='-Bexport'
16342         no_entry_flag=""
16343       else
16344         # If we're using GNU nm, then we don't want the "-C" option.
16345         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16346         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16347           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'
16348         else
16349           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'
16350         fi
16351         aix_use_runtimelinking=no
16352
16353         # Test if we are trying to use run time linking or normal
16354         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16355         # need to do runtime linking.
16356         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16357           for ld_flag in $LDFLAGS; do
16358           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16359             aix_use_runtimelinking=yes
16360             break
16361           fi
16362           done
16363         esac
16364
16365         exp_sym_flag='-bexport'
16366         no_entry_flag='-bnoentry'
16367       fi
16368
16369       # When large executables or shared objects are built, AIX ld can
16370       # have problems creating the table of contents.  If linking a library
16371       # or program results in "error TOC overflow" add -mminimal-toc to
16372       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16373       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16374
16375       archive_cmds_GCJ=''
16376       hardcode_direct_GCJ=yes
16377       hardcode_libdir_separator_GCJ=':'
16378       link_all_deplibs_GCJ=yes
16379
16380       if test "$GCC" = yes; then
16381         case $host_os in aix4.012|aix4.012.*)
16382         # We only want to do this on AIX 4.2 and lower, the check
16383         # below for broken collect2 doesn't work under 4.3+
16384           collect2name=`${CC} -print-prog-name=collect2`
16385           if test -f "$collect2name" && \
16386            strings "$collect2name" | grep resolve_lib_name >/dev/null
16387           then
16388           # We have reworked collect2
16389           hardcode_direct_GCJ=yes
16390           else
16391           # We have old collect2
16392           hardcode_direct_GCJ=unsupported
16393           # It fails to find uninstalled libraries when the uninstalled
16394           # path is not listed in the libpath.  Setting hardcode_minus_L
16395           # to unsupported forces relinking
16396           hardcode_minus_L_GCJ=yes
16397           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16398           hardcode_libdir_separator_GCJ=
16399           fi
16400         esac
16401         shared_flag='-shared'
16402       else
16403         # not using gcc
16404         if test "$host_cpu" = ia64; then
16405         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16406         # chokes on -Wl,-G. The following line is correct:
16407           shared_flag='-G'
16408         else
16409         if test "$aix_use_runtimelinking" = yes; then
16410             shared_flag='${wl}-G'
16411           else
16412             shared_flag='${wl}-bM:SRE'
16413         fi
16414         fi
16415       fi
16416
16417       # It seems that -bexpall does not export symbols beginning with
16418       # underscore (_), so it is better to generate a list of symbols to export.
16419       always_export_symbols_GCJ=yes
16420       if test "$aix_use_runtimelinking" = yes; then
16421         # Warning - without using the other runtime loading flags (-brtl),
16422         # -berok will link without error, but may produce a broken library.
16423         allow_undefined_flag_GCJ='-berok'
16424        # Determine the default libpath from the value encoded in an empty executable.
16425        cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16431
16432 int
16433 main ()
16434 {
16435
16436   ;
16437   return 0;
16438 }
16439 _ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442   (eval $ac_link) 2>conftest.er1
16443   ac_status=$?
16444   grep -v '^ *+' conftest.er1 >conftest.err
16445   rm -f conftest.er1
16446   cat conftest.err >&5
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); } &&
16449          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451   (eval $ac_try) 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; } &&
16455          { ac_try='test -s conftest$ac_exeext'
16456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457   (eval $ac_try) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; }; then
16461
16462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16463 }'`
16464 # Check for a 64-bit object if we didn't find anything.
16465 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; }
16466 }'`; fi
16467 else
16468   echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 fi
16472 rm -f conftest.err conftest.$ac_objext \
16473       conftest$ac_exeext conftest.$ac_ext
16474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16475
16476        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16477         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16478        else
16479         if test "$host_cpu" = ia64; then
16480           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16481           allow_undefined_flag_GCJ="-z nodefs"
16482           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16483         else
16484          # Determine the default libpath from the value encoded in an empty executable.
16485          cat >conftest.$ac_ext <<_ACEOF
16486 /* confdefs.h.  */
16487 _ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h.  */
16491
16492 int
16493 main ()
16494 {
16495
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16502   (eval $ac_link) 2>conftest.er1
16503   ac_status=$?
16504   grep -v '^ *+' conftest.er1 >conftest.err
16505   rm -f conftest.er1
16506   cat conftest.err >&5
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); } &&
16509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511   (eval $ac_try) 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); }; } &&
16515          { ac_try='test -s conftest$ac_exeext'
16516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517   (eval $ac_try) 2>&5
16518   ac_status=$?
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); }; }; then
16521
16522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16523 }'`
16524 # Check for a 64-bit object if we didn't find anything.
16525 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; }
16526 }'`; fi
16527 else
16528   echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 fi
16532 rm -f conftest.err conftest.$ac_objext \
16533       conftest$ac_exeext conftest.$ac_ext
16534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16535
16536          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16537           # Warning - without using the other run time loading flags,
16538           # -berok will link without error, but may produce a broken library.
16539           no_undefined_flag_GCJ=' ${wl}-bernotok'
16540           allow_undefined_flag_GCJ=' ${wl}-berok'
16541           # -bexpall does not export symbols beginning with underscore (_)
16542           always_export_symbols_GCJ=yes
16543           # Exported symbols can be pulled into shared objects from archives
16544           whole_archive_flag_spec_GCJ=' '
16545           archive_cmds_need_lc_GCJ=yes
16546           # This is similar to how AIX traditionally builds it's shared libraries.
16547           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16548         fi
16549       fi
16550       ;;
16551
16552     amigaos*)
16553       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)'
16554       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16555       hardcode_minus_L_GCJ=yes
16556       # see comment about different semantics on the GNU ld section
16557       ld_shlibs_GCJ=no
16558       ;;
16559
16560     bsdi4*)
16561       export_dynamic_flag_spec_GCJ=-rdynamic
16562       ;;
16563
16564     cygwin* | mingw* | pw32*)
16565       # When not using gcc, we currently assume that we are using
16566       # Microsoft Visual C++.
16567       # hardcode_libdir_flag_spec is actually meaningless, as there is
16568       # no search path for DLLs.
16569       hardcode_libdir_flag_spec_GCJ=' '
16570       allow_undefined_flag_GCJ=unsupported
16571       # Tell ltmain to make .lib files, not .a files.
16572       libext=lib
16573       # Tell ltmain to make .dll files, not .so files.
16574       shrext_cmds=".dll"
16575       # FIXME: Setting linknames here is a bad hack.
16576       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16577       # The linker will automatically build a .lib file if we build a DLL.
16578       old_archive_From_new_cmds_GCJ='true'
16579       # FIXME: Should let the user specify the lib program.
16580       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16581       fix_srcfile_path='`cygpath -w "$srcfile"`'
16582       enable_shared_with_static_runtimes_GCJ=yes
16583       ;;
16584
16585     darwin* | rhapsody*)
16586     if test "$GXX" = yes ; then
16587       archive_cmds_need_lc_GCJ=no
16588       case "$host_os" in
16589       rhapsody* | darwin1.[012])
16590         allow_undefined_flag_GCJ='-undefined suppress'
16591         ;;
16592       *) # Darwin 1.3 on
16593       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16594         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16595       else
16596         case ${MACOSX_DEPLOYMENT_TARGET} in
16597           10.[012])
16598             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16599             ;;
16600           10.*)
16601             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16602             ;;
16603         esac
16604       fi
16605         ;;
16606       esac
16607         lt_int_apple_cc_single_mod=no
16608         output_verbose_link_cmd='echo'
16609         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16610           lt_int_apple_cc_single_mod=yes
16611         fi
16612         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16613           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16614         else
16615         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16616       fi
16617       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16618       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16619         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16620           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16621         else
16622           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16623         fi
16624           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}'
16625       hardcode_direct_GCJ=no
16626       hardcode_automatic_GCJ=yes
16627       hardcode_shlibpath_var_GCJ=unsupported
16628       whole_archive_flag_spec_GCJ='-all_load $convenience'
16629       link_all_deplibs_GCJ=yes
16630     else
16631       ld_shlibs_GCJ=no
16632     fi
16633       ;;
16634
16635     dgux*)
16636       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16637       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16638       hardcode_shlibpath_var_GCJ=no
16639       ;;
16640
16641     freebsd1*)
16642       ld_shlibs_GCJ=no
16643       ;;
16644
16645     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16646     # support.  Future versions do this automatically, but an explicit c++rt0.o
16647     # does not break anything, and helps significantly (at the cost of a little
16648     # extra space).
16649     freebsd2.2*)
16650       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16651       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16652       hardcode_direct_GCJ=yes
16653       hardcode_shlibpath_var_GCJ=no
16654       ;;
16655
16656     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16657     freebsd2*)
16658       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16659       hardcode_direct_GCJ=yes
16660       hardcode_minus_L_GCJ=yes
16661       hardcode_shlibpath_var_GCJ=no
16662       ;;
16663
16664     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16665     freebsd* | kfreebsd*-gnu)
16666       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16667       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16668       hardcode_direct_GCJ=yes
16669       hardcode_shlibpath_var_GCJ=no
16670       ;;
16671
16672     hpux9*)
16673       if test "$GCC" = yes; then
16674         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'
16675       else
16676         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'
16677       fi
16678       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16679       hardcode_libdir_separator_GCJ=:
16680       hardcode_direct_GCJ=yes
16681
16682       # hardcode_minus_L: Not really in the search PATH,
16683       # but as the default location of the library.
16684       hardcode_minus_L_GCJ=yes
16685       export_dynamic_flag_spec_GCJ='${wl}-E'
16686       ;;
16687
16688     hpux10* | hpux11*)
16689       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16690         case "$host_cpu" in
16691         hppa*64*|ia64*)
16692           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16693           ;;
16694         *)
16695           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16696           ;;
16697         esac
16698       else
16699         case "$host_cpu" in
16700         hppa*64*|ia64*)
16701           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16702           ;;
16703         *)
16704           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16705           ;;
16706         esac
16707       fi
16708       if test "$with_gnu_ld" = no; then
16709         case "$host_cpu" in
16710         hppa*64*)
16711           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16712           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16713           hardcode_libdir_separator_GCJ=:
16714           hardcode_direct_GCJ=no
16715           hardcode_shlibpath_var_GCJ=no
16716           ;;
16717         ia64*)
16718           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16719           hardcode_direct_GCJ=no
16720           hardcode_shlibpath_var_GCJ=no
16721
16722           # hardcode_minus_L: Not really in the search PATH,
16723           # but as the default location of the library.
16724           hardcode_minus_L_GCJ=yes
16725           ;;
16726         *)
16727           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16728           hardcode_libdir_separator_GCJ=:
16729           hardcode_direct_GCJ=yes
16730           export_dynamic_flag_spec_GCJ='${wl}-E'
16731
16732           # hardcode_minus_L: Not really in the search PATH,
16733           # but as the default location of the library.
16734           hardcode_minus_L_GCJ=yes
16735           ;;
16736         esac
16737       fi
16738       ;;
16739
16740     irix5* | irix6* | nonstopux*)
16741       if test "$GCC" = yes; then
16742         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'
16743       else
16744         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'
16745         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16746       fi
16747       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16748       hardcode_libdir_separator_GCJ=:
16749       link_all_deplibs_GCJ=yes
16750       ;;
16751
16752     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16753       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16754         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16755       else
16756         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16757       fi
16758       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16759       hardcode_direct_GCJ=yes
16760       hardcode_shlibpath_var_GCJ=no
16761       ;;
16762
16763     newsos6)
16764       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16765       hardcode_direct_GCJ=yes
16766       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16767       hardcode_libdir_separator_GCJ=:
16768       hardcode_shlibpath_var_GCJ=no
16769       ;;
16770
16771     openbsd*)
16772       hardcode_direct_GCJ=yes
16773       hardcode_shlibpath_var_GCJ=no
16774       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16775         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16776         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16777         export_dynamic_flag_spec_GCJ='${wl}-E'
16778       else
16779        case $host_os in
16780          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16781            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16782            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16783            ;;
16784          *)
16785            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16786            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16787            ;;
16788        esac
16789       fi
16790       ;;
16791
16792     os2*)
16793       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16794       hardcode_minus_L_GCJ=yes
16795       allow_undefined_flag_GCJ=unsupported
16796       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'
16797       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16798       ;;
16799
16800     osf3*)
16801       if test "$GCC" = yes; then
16802         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16803         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'
16804       else
16805         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16806         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'
16807       fi
16808       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16809       hardcode_libdir_separator_GCJ=:
16810       ;;
16811
16812     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16813       if test "$GCC" = yes; then
16814         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16815         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'
16816         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16817       else
16818         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16819         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'
16820         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~
16821         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16822
16823         # Both c and cxx compiler support -rpath directly
16824         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16825       fi
16826       hardcode_libdir_separator_GCJ=:
16827       ;;
16828
16829     sco3.2v5*)
16830       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16831       hardcode_shlibpath_var_GCJ=no
16832       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16833       runpath_var=LD_RUN_PATH
16834       hardcode_runpath_var=yes
16835       ;;
16836
16837     solaris*)
16838       no_undefined_flag_GCJ=' -z text'
16839       if test "$GCC" = yes; then
16840         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16841         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16842           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16843       else
16844         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16845         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16846         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16847       fi
16848       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16849       hardcode_shlibpath_var_GCJ=no
16850       case $host_os in
16851       solaris2.[0-5] | solaris2.[0-5].*) ;;
16852       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16853         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16854       esac
16855       link_all_deplibs_GCJ=yes
16856       ;;
16857
16858     sunos4*)
16859       if test "x$host_vendor" = xsequent; then
16860         # Use $CC to link under sequent, because it throws in some extra .o
16861         # files that make .init and .fini sections work.
16862         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16863       else
16864         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16865       fi
16866       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867       hardcode_direct_GCJ=yes
16868       hardcode_minus_L_GCJ=yes
16869       hardcode_shlibpath_var_GCJ=no
16870       ;;
16871
16872     sysv4)
16873       case $host_vendor in
16874         sni)
16875           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16876           hardcode_direct_GCJ=yes # is this really true???
16877         ;;
16878         siemens)
16879           ## LD is ld it makes a PLAMLIB
16880           ## CC just makes a GrossModule.
16881           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16882           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16883           hardcode_direct_GCJ=no
16884         ;;
16885         motorola)
16886           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16887           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16888         ;;
16889       esac
16890       runpath_var='LD_RUN_PATH'
16891       hardcode_shlibpath_var_GCJ=no
16892       ;;
16893
16894     sysv4.3*)
16895       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16896       hardcode_shlibpath_var_GCJ=no
16897       export_dynamic_flag_spec_GCJ='-Bexport'
16898       ;;
16899
16900     sysv4*MP*)
16901       if test -d /usr/nec; then
16902         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16903         hardcode_shlibpath_var_GCJ=no
16904         runpath_var=LD_RUN_PATH
16905         hardcode_runpath_var=yes
16906         ld_shlibs_GCJ=yes
16907       fi
16908       ;;
16909
16910     sysv4.2uw2*)
16911       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16912       hardcode_direct_GCJ=yes
16913       hardcode_minus_L_GCJ=no
16914       hardcode_shlibpath_var_GCJ=no
16915       hardcode_runpath_var=yes
16916       runpath_var=LD_RUN_PATH
16917       ;;
16918
16919    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16920       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16921       if test "$GCC" = yes; then
16922         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16923       else
16924         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16925       fi
16926       runpath_var='LD_RUN_PATH'
16927       hardcode_shlibpath_var_GCJ=no
16928       ;;
16929
16930     sysv5*)
16931       no_undefined_flag_GCJ=' -z text'
16932       # $CC -shared without GNU ld will not create a library from C++
16933       # object files and a static libstdc++, better avoid it by now
16934       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16935       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16936                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16937       hardcode_libdir_flag_spec_GCJ=
16938       hardcode_shlibpath_var_GCJ=no
16939       runpath_var='LD_RUN_PATH'
16940       ;;
16941
16942     uts4*)
16943       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16944       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16945       hardcode_shlibpath_var_GCJ=no
16946       ;;
16947
16948     *)
16949       ld_shlibs_GCJ=no
16950       ;;
16951     esac
16952   fi
16953
16954 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16955 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16956 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16957
16958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16959 if test "$GCC" = yes; then
16960   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16961 fi
16962
16963 #
16964 # Do we need to explicitly link libc?
16965 #
16966 case "x$archive_cmds_need_lc_GCJ" in
16967 x|xyes)
16968   # Assume -lc should be added
16969   archive_cmds_need_lc_GCJ=yes
16970
16971   if test "$enable_shared" = yes && test "$GCC" = yes; then
16972     case $archive_cmds_GCJ in
16973     *'~'*)
16974       # FIXME: we may have to deal with multi-command sequences.
16975       ;;
16976     '$CC '*)
16977       # Test whether the compiler implicitly links with -lc since on some
16978       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16979       # to ld, don't add -lc before -lgcc.
16980       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16981 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16982       $rm conftest*
16983       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16984
16985       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16986   (eval $ac_compile) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } 2>conftest.err; then
16990         soname=conftest
16991         lib=conftest
16992         libobjs=conftest.$ac_objext
16993         deplibs=
16994         wl=$lt_prog_compiler_wl_GCJ
16995         compiler_flags=-v
16996         linker_flags=-v
16997         verstring=
16998         output_objdir=.
16999         libname=conftest
17000         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17001         allow_undefined_flag_GCJ=
17002         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17003   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); }
17007         then
17008           archive_cmds_need_lc_GCJ=no
17009         else
17010           archive_cmds_need_lc_GCJ=yes
17011         fi
17012         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17013       else
17014         cat conftest.err 1>&5
17015       fi
17016       $rm conftest*
17017       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17018 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17019       ;;
17020     esac
17021   fi
17022   ;;
17023 esac
17024
17025 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17026 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17027 library_names_spec=
17028 libname_spec='lib$name'
17029 soname_spec=
17030 shrext_cmds=".so"
17031 postinstall_cmds=
17032 postuninstall_cmds=
17033 finish_cmds=
17034 finish_eval=
17035 shlibpath_var=
17036 shlibpath_overrides_runpath=unknown
17037 version_type=none
17038 dynamic_linker="$host_os ld.so"
17039 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17040 if test "$GCC" = yes; then
17041   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17042   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17043     # if the path contains ";" then we assume it to be the separator
17044     # otherwise default to the standard path separator (i.e. ":") - it is
17045     # assumed that no part of a normal pathname contains ";" but that should
17046     # okay in the real world where ";" in dirpaths is itself problematic.
17047     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17048   else
17049     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17050   fi
17051 else
17052   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17053 fi
17054 need_lib_prefix=unknown
17055 hardcode_into_libs=no
17056
17057 # when you set need_version to no, make sure it does not cause -set_version
17058 # flags to be left without arguments
17059 need_version=unknown
17060
17061 case $host_os in
17062 aix3*)
17063   version_type=linux
17064   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17065   shlibpath_var=LIBPATH
17066
17067   # AIX 3 has no versioning support, so we append a major version to the name.
17068   soname_spec='${libname}${release}${shared_ext}$major'
17069   ;;
17070
17071 aix4* | aix5*)
17072   version_type=linux
17073   need_lib_prefix=no
17074   need_version=no
17075   hardcode_into_libs=yes
17076   if test "$host_cpu" = ia64; then
17077     # AIX 5 supports IA64
17078     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17079     shlibpath_var=LD_LIBRARY_PATH
17080   else
17081     # With GCC up to 2.95.x, collect2 would create an import file
17082     # for dependence libraries.  The import file would start with
17083     # the line `#! .'.  This would cause the generated library to
17084     # depend on `.', always an invalid library.  This was fixed in
17085     # development snapshots of GCC prior to 3.0.
17086     case $host_os in
17087       aix4 | aix4.[01] | aix4.[01].*)
17088       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17089            echo ' yes '
17090            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17091         :
17092       else
17093         can_build_shared=no
17094       fi
17095       ;;
17096     esac
17097     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17098     # soname into executable. Probably we can add versioning support to
17099     # collect2, so additional links can be useful in future.
17100     if test "$aix_use_runtimelinking" = yes; then
17101       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17102       # instead of lib<name>.a to let people know that these are not
17103       # typical AIX shared libraries.
17104       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105     else
17106       # We preserve .a as extension for shared libraries through AIX4.2
17107       # and later when we are not doing run time linking.
17108       library_names_spec='${libname}${release}.a $libname.a'
17109       soname_spec='${libname}${release}${shared_ext}$major'
17110     fi
17111     shlibpath_var=LIBPATH
17112   fi
17113   ;;
17114
17115 amigaos*)
17116   library_names_spec='$libname.ixlibrary $libname.a'
17117   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17118   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'
17119   ;;
17120
17121 beos*)
17122   library_names_spec='${libname}${shared_ext}'
17123   dynamic_linker="$host_os ld.so"
17124   shlibpath_var=LIBRARY_PATH
17125   ;;
17126
17127 bsdi4*)
17128   version_type=linux
17129   need_version=no
17130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131   soname_spec='${libname}${release}${shared_ext}$major'
17132   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17133   shlibpath_var=LD_LIBRARY_PATH
17134   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17135   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17136   # the default ld.so.conf also contains /usr/contrib/lib and
17137   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17138   # libtool to hard-code these into programs
17139   ;;
17140
17141 cygwin* | mingw* | pw32*)
17142   version_type=windows
17143   shrext_cmds=".dll"
17144   need_version=no
17145   need_lib_prefix=no
17146
17147   case $GCC,$host_os in
17148   yes,cygwin* | yes,mingw* | yes,pw32*)
17149     library_names_spec='$libname.dll.a'
17150     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17151     postinstall_cmds='base_file=`basename \${file}`~
17152       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17153       dldir=$destdir/`dirname \$dlpath`~
17154       test -d \$dldir || mkdir -p \$dldir~
17155       $install_prog $dir/$dlname \$dldir/$dlname'
17156     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17157       dlpath=$dir/\$dldll~
17158        $rm \$dlpath'
17159     shlibpath_overrides_runpath=yes
17160
17161     case $host_os in
17162     cygwin*)
17163       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17164       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17165       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17166       ;;
17167     mingw*)
17168       # MinGW DLLs use traditional 'lib' prefix
17169       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17170       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17171       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17172         # It is most probably a Windows format PATH printed by
17173         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17174         # path with ; separators, and with drive letters. We can handle the
17175         # drive letters (cygwin fileutils understands them), so leave them,
17176         # especially as we might pass files found there to a mingw objdump,
17177         # which wouldn't understand a cygwinified path. Ahh.
17178         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17179       else
17180         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17181       fi
17182       ;;
17183     pw32*)
17184       # pw32 DLLs use 'pw' prefix rather than 'lib'
17185       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17186       ;;
17187     esac
17188     ;;
17189
17190   *)
17191     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17192     ;;
17193   esac
17194   dynamic_linker='Win32 ld.exe'
17195   # FIXME: first we should search . and the directory the executable is in
17196   shlibpath_var=PATH
17197   ;;
17198
17199 darwin* | rhapsody*)
17200   dynamic_linker="$host_os dyld"
17201   version_type=darwin
17202   need_lib_prefix=no
17203   need_version=no
17204   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17205   soname_spec='${libname}${release}${major}$shared_ext'
17206   shlibpath_overrides_runpath=yes
17207   shlibpath_var=DYLD_LIBRARY_PATH
17208   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17209   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17210   if test "$GCC" = yes; then
17211     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"`
17212   else
17213     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17214   fi
17215   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17216   ;;
17217
17218 dgux*)
17219   version_type=linux
17220   need_lib_prefix=no
17221   need_version=no
17222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17223   soname_spec='${libname}${release}${shared_ext}$major'
17224   shlibpath_var=LD_LIBRARY_PATH
17225   ;;
17226
17227 freebsd1*)
17228   dynamic_linker=no
17229   ;;
17230
17231 kfreebsd*-gnu)
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   shlibpath_var=LD_LIBRARY_PATH
17238   shlibpath_overrides_runpath=no
17239   hardcode_into_libs=yes
17240   dynamic_linker='GNU ld.so'
17241   ;;
17242
17243 freebsd*)
17244   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17245   version_type=freebsd-$objformat
17246   case $version_type in
17247     freebsd-elf*)
17248       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17249       need_version=no
17250       need_lib_prefix=no
17251       ;;
17252     freebsd-*)
17253       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17254       need_version=yes
17255       ;;
17256   esac
17257   shlibpath_var=LD_LIBRARY_PATH
17258   case $host_os in
17259   freebsd2*)
17260     shlibpath_overrides_runpath=yes
17261     ;;
17262   freebsd3.01* | freebsdelf3.01*)
17263     shlibpath_overrides_runpath=yes
17264     hardcode_into_libs=yes
17265     ;;
17266   *) # from 3.2 on
17267     shlibpath_overrides_runpath=no
17268     hardcode_into_libs=yes
17269     ;;
17270   esac
17271   ;;
17272
17273 gnu*)
17274   version_type=linux
17275   need_lib_prefix=no
17276   need_version=no
17277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17278   soname_spec='${libname}${release}${shared_ext}$major'
17279   shlibpath_var=LD_LIBRARY_PATH
17280   hardcode_into_libs=yes
17281   ;;
17282
17283 hpux9* | hpux10* | hpux11*)
17284   # Give a soname corresponding to the major version so that dld.sl refuses to
17285   # link against other versions.
17286   version_type=sunos
17287   need_lib_prefix=no
17288   need_version=no
17289   case "$host_cpu" in
17290   ia64*)
17291     shrext_cmds='.so'
17292     hardcode_into_libs=yes
17293     dynamic_linker="$host_os dld.so"
17294     shlibpath_var=LD_LIBRARY_PATH
17295     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297     soname_spec='${libname}${release}${shared_ext}$major'
17298     if test "X$HPUX_IA64_MODE" = X32; then
17299       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17300     else
17301       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17302     fi
17303     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17304     ;;
17305    hppa*64*)
17306      shrext_cmds='.sl'
17307      hardcode_into_libs=yes
17308      dynamic_linker="$host_os dld.sl"
17309      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17310      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17311      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312      soname_spec='${libname}${release}${shared_ext}$major'
17313      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17314      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17315      ;;
17316    *)
17317     shrext_cmds='.sl'
17318     dynamic_linker="$host_os dld.sl"
17319     shlibpath_var=SHLIB_PATH
17320     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322     soname_spec='${libname}${release}${shared_ext}$major'
17323     ;;
17324   esac
17325   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17326   postinstall_cmds='chmod 555 $lib'
17327   ;;
17328
17329 irix5* | irix6* | nonstopux*)
17330   case $host_os in
17331     nonstopux*) version_type=nonstopux ;;
17332     *)
17333         if test "$lt_cv_prog_gnu_ld" = yes; then
17334                 version_type=linux
17335         else
17336                 version_type=irix
17337         fi ;;
17338   esac
17339   need_lib_prefix=no
17340   need_version=no
17341   soname_spec='${libname}${release}${shared_ext}$major'
17342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17343   case $host_os in
17344   irix5* | nonstopux*)
17345     libsuff= shlibsuff=
17346     ;;
17347   *)
17348     case $LD in # libtool.m4 will add one of these switches to LD
17349     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17350       libsuff= shlibsuff= libmagic=32-bit;;
17351     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17352       libsuff=32 shlibsuff=N32 libmagic=N32;;
17353     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17354       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17355     *) libsuff= shlibsuff= libmagic=never-match;;
17356     esac
17357     ;;
17358   esac
17359   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17360   shlibpath_overrides_runpath=no
17361   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17362   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17363   hardcode_into_libs=yes
17364   ;;
17365
17366 # No shared lib support for Linux oldld, aout, or coff.
17367 linux*oldld* | linux*aout* | linux*coff*)
17368   dynamic_linker=no
17369   ;;
17370
17371 # This must be Linux ELF.
17372 linux*)
17373   version_type=linux
17374   need_lib_prefix=no
17375   need_version=no
17376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377   soname_spec='${libname}${release}${shared_ext}$major'
17378   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17379   shlibpath_var=LD_LIBRARY_PATH
17380   shlibpath_overrides_runpath=no
17381   # This implies no fast_install, which is unacceptable.
17382   # Some rework will be needed to allow for fast_install
17383   # before this can be enabled.
17384   hardcode_into_libs=yes
17385
17386   # Append ld.so.conf contents to the search path
17387   if test -f /etc/ld.so.conf; then
17388     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17389     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17390   fi
17391
17392   # We used to test for /lib/ld.so.1 and disable shared libraries on
17393   # powerpc, because MkLinux only supported shared libraries with the
17394   # GNU dynamic linker.  Since this was broken with cross compilers,
17395   # most powerpc-linux boxes support dynamic linking these days and
17396   # people can always --disable-shared, the test was removed, and we
17397   # assume the GNU/Linux dynamic linker is in use.
17398   dynamic_linker='GNU/Linux ld.so'
17399   ;;
17400
17401 netbsdelf*-gnu)
17402   version_type=linux
17403   need_lib_prefix=no
17404   need_version=no
17405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406   soname_spec='${libname}${release}${shared_ext}$major'
17407   shlibpath_var=LD_LIBRARY_PATH
17408   shlibpath_overrides_runpath=no
17409   hardcode_into_libs=yes
17410   dynamic_linker='NetBSD ld.elf_so'
17411   ;;
17412
17413 knetbsd*-gnu)
17414   version_type=linux
17415   need_lib_prefix=no
17416   need_version=no
17417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17418   soname_spec='${libname}${release}${shared_ext}$major'
17419   shlibpath_var=LD_LIBRARY_PATH
17420   shlibpath_overrides_runpath=no
17421   hardcode_into_libs=yes
17422   dynamic_linker='GNU ld.so'
17423   ;;
17424
17425 netbsd*)
17426   version_type=sunos
17427   need_lib_prefix=no
17428   need_version=no
17429   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17431     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17432     dynamic_linker='NetBSD (a.out) ld.so'
17433   else
17434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17435     soname_spec='${libname}${release}${shared_ext}$major'
17436     dynamic_linker='NetBSD ld.elf_so'
17437   fi
17438   shlibpath_var=LD_LIBRARY_PATH
17439   shlibpath_overrides_runpath=yes
17440   hardcode_into_libs=yes
17441   ;;
17442
17443 newsos6)
17444   version_type=linux
17445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446   shlibpath_var=LD_LIBRARY_PATH
17447   shlibpath_overrides_runpath=yes
17448   ;;
17449
17450 nto-qnx*)
17451   version_type=linux
17452   need_lib_prefix=no
17453   need_version=no
17454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455   soname_spec='${libname}${release}${shared_ext}$major'
17456   shlibpath_var=LD_LIBRARY_PATH
17457   shlibpath_overrides_runpath=yes
17458   ;;
17459
17460 openbsd*)
17461   version_type=sunos
17462   need_lib_prefix=no
17463   need_version=yes
17464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17465   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17466   shlibpath_var=LD_LIBRARY_PATH
17467   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17468     case $host_os in
17469       openbsd2.[89] | openbsd2.[89].*)
17470         shlibpath_overrides_runpath=no
17471         ;;
17472       *)
17473         shlibpath_overrides_runpath=yes
17474         ;;
17475       esac
17476   else
17477     shlibpath_overrides_runpath=yes
17478   fi
17479   ;;
17480
17481 os2*)
17482   libname_spec='$name'
17483   shrext_cmds=".dll"
17484   need_lib_prefix=no
17485   library_names_spec='$libname${shared_ext} $libname.a'
17486   dynamic_linker='OS/2 ld.exe'
17487   shlibpath_var=LIBPATH
17488   ;;
17489
17490 osf3* | osf4* | osf5*)
17491   version_type=osf
17492   need_lib_prefix=no
17493   need_version=no
17494   soname_spec='${libname}${release}${shared_ext}$major'
17495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17496   shlibpath_var=LD_LIBRARY_PATH
17497   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17498   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17499   ;;
17500
17501 sco3.2v5*)
17502   version_type=osf
17503   soname_spec='${libname}${release}${shared_ext}$major'
17504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505   shlibpath_var=LD_LIBRARY_PATH
17506   ;;
17507
17508 solaris*)
17509   version_type=linux
17510   need_lib_prefix=no
17511   need_version=no
17512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17513   soname_spec='${libname}${release}${shared_ext}$major'
17514   shlibpath_var=LD_LIBRARY_PATH
17515   shlibpath_overrides_runpath=yes
17516   hardcode_into_libs=yes
17517   # ldd complains unless libraries are executable
17518   postinstall_cmds='chmod +x $lib'
17519   ;;
17520
17521 sunos4*)
17522   version_type=sunos
17523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17524   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17525   shlibpath_var=LD_LIBRARY_PATH
17526   shlibpath_overrides_runpath=yes
17527   if test "$with_gnu_ld" = yes; then
17528     need_lib_prefix=no
17529   fi
17530   need_version=yes
17531   ;;
17532
17533 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17534   version_type=linux
17535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17536   soname_spec='${libname}${release}${shared_ext}$major'
17537   shlibpath_var=LD_LIBRARY_PATH
17538   case $host_vendor in
17539     sni)
17540       shlibpath_overrides_runpath=no
17541       need_lib_prefix=no
17542       export_dynamic_flag_spec='${wl}-Blargedynsym'
17543       runpath_var=LD_RUN_PATH
17544       ;;
17545     siemens)
17546       need_lib_prefix=no
17547       ;;
17548     motorola)
17549       need_lib_prefix=no
17550       need_version=no
17551       shlibpath_overrides_runpath=no
17552       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17553       ;;
17554   esac
17555   ;;
17556
17557 sysv4*MP*)
17558   if test -d /usr/nec ;then
17559     version_type=linux
17560     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17561     soname_spec='$libname${shared_ext}.$major'
17562     shlibpath_var=LD_LIBRARY_PATH
17563   fi
17564   ;;
17565
17566 uts4*)
17567   version_type=linux
17568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569   soname_spec='${libname}${release}${shared_ext}$major'
17570   shlibpath_var=LD_LIBRARY_PATH
17571   ;;
17572
17573 *)
17574   dynamic_linker=no
17575   ;;
17576 esac
17577 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17578 echo "${ECHO_T}$dynamic_linker" >&6
17579 test "$dynamic_linker" = no && can_build_shared=no
17580
17581 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17582 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17583 hardcode_action_GCJ=
17584 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17585    test -n "$runpath_var GCJ" || \
17586    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17587
17588   # We can hardcode non-existant directories.
17589   if test "$hardcode_direct_GCJ" != no &&
17590      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17591      # have to relink, otherwise we might link with an installed library
17592      # when we should be linking with a yet-to-be-installed one
17593      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17594      test "$hardcode_minus_L_GCJ" != no; then
17595     # Linking always hardcodes the temporary library directory.
17596     hardcode_action_GCJ=relink
17597   else
17598     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17599     hardcode_action_GCJ=immediate
17600   fi
17601 else
17602   # We cannot hardcode anything, or else we can only hardcode existing
17603   # directories.
17604   hardcode_action_GCJ=unsupported
17605 fi
17606 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17607 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17608
17609 if test "$hardcode_action_GCJ" = relink; then
17610   # Fast installation is not supported
17611   enable_fast_install=no
17612 elif test "$shlibpath_overrides_runpath" = yes ||
17613      test "$enable_shared" = no; then
17614   # Fast installation is not necessary
17615   enable_fast_install=needless
17616 fi
17617
17618 striplib=
17619 old_striplib=
17620 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17621 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17622 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17623   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17624   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17625   echo "$as_me:$LINENO: result: yes" >&5
17626 echo "${ECHO_T}yes" >&6
17627 else
17628 # FIXME - insert some real tests, host_os isn't really good enough
17629   case $host_os in
17630    darwin*)
17631        if test -n "$STRIP" ; then
17632          striplib="$STRIP -x"
17633          echo "$as_me:$LINENO: result: yes" >&5
17634 echo "${ECHO_T}yes" >&6
17635        else
17636   echo "$as_me:$LINENO: result: no" >&5
17637 echo "${ECHO_T}no" >&6
17638 fi
17639        ;;
17640    *)
17641   echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6
17643     ;;
17644   esac
17645 fi
17646
17647 if test "x$enable_dlopen" != xyes; then
17648   enable_dlopen=unknown
17649   enable_dlopen_self=unknown
17650   enable_dlopen_self_static=unknown
17651 else
17652   lt_cv_dlopen=no
17653   lt_cv_dlopen_libs=
17654
17655   case $host_os in
17656   beos*)
17657     lt_cv_dlopen="load_add_on"
17658     lt_cv_dlopen_libs=
17659     lt_cv_dlopen_self=yes
17660     ;;
17661
17662   mingw* | pw32*)
17663     lt_cv_dlopen="LoadLibrary"
17664     lt_cv_dlopen_libs=
17665    ;;
17666
17667   cygwin*)
17668     lt_cv_dlopen="dlopen"
17669     lt_cv_dlopen_libs=
17670    ;;
17671
17672   darwin*)
17673   # if libdl is installed we need to link against it
17674     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17675 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17676 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17677   echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679   ac_check_lib_save_LIBS=$LIBS
17680 LIBS="-ldl  $LIBS"
17681 cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h.  */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h.  */
17687
17688 /* Override any gcc2 internal prototype to avoid an error.  */
17689 #ifdef __cplusplus
17690 extern "C"
17691 #endif
17692 /* We use char because int might match the return type of a gcc2
17693    builtin and then its argument prototype would still apply.  */
17694 char dlopen ();
17695 int
17696 main ()
17697 {
17698 dlopen ();
17699   ;
17700   return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705   (eval $ac_link) 2>conftest.er1
17706   ac_status=$?
17707   grep -v '^ *+' conftest.er1 >conftest.err
17708   rm -f conftest.er1
17709   cat conftest.err >&5
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); } &&
17712          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714   (eval $ac_try) 2>&5
17715   ac_status=$?
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); }; } &&
17718          { ac_try='test -s conftest$ac_exeext'
17719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720   (eval $ac_try) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; }; then
17724   ac_cv_lib_dl_dlopen=yes
17725 else
17726   echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17728
17729 ac_cv_lib_dl_dlopen=no
17730 fi
17731 rm -f conftest.err conftest.$ac_objext \
17732       conftest$ac_exeext conftest.$ac_ext
17733 LIBS=$ac_check_lib_save_LIBS
17734 fi
17735 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17737 if test $ac_cv_lib_dl_dlopen = yes; then
17738   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17739 else
17740
17741     lt_cv_dlopen="dyld"
17742     lt_cv_dlopen_libs=
17743     lt_cv_dlopen_self=yes
17744
17745 fi
17746
17747    ;;
17748
17749   *)
17750     echo "$as_me:$LINENO: checking for shl_load" >&5
17751 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17752 if test "${ac_cv_func_shl_load+set}" = set; then
17753   echo $ECHO_N "(cached) $ECHO_C" >&6
17754 else
17755   cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h.  */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h.  */
17761 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17763 #define shl_load innocuous_shl_load
17764
17765 /* System header to define __stub macros and hopefully few prototypes,
17766     which can conflict with char shl_load (); below.
17767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17768     <limits.h> exists even on freestanding compilers.  */
17769
17770 #ifdef __STDC__
17771 # include <limits.h>
17772 #else
17773 # include <assert.h>
17774 #endif
17775
17776 #undef shl_load
17777
17778 /* Override any gcc2 internal prototype to avoid an error.  */
17779 #ifdef __cplusplus
17780 extern "C"
17781 {
17782 #endif
17783 /* We use char because int might match the return type of a gcc2
17784    builtin and then its argument prototype would still apply.  */
17785 char shl_load ();
17786 /* The GNU C library defines this for functions which it implements
17787     to always fail with ENOSYS.  Some functions are actually named
17788     something starting with __ and the normal name is an alias.  */
17789 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17790 choke me
17791 #else
17792 char (*f) () = shl_load;
17793 #endif
17794 #ifdef __cplusplus
17795 }
17796 #endif
17797
17798 int
17799 main ()
17800 {
17801 return f != shl_load;
17802   ;
17803   return 0;
17804 }
17805 _ACEOF
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17808   (eval $ac_link) 2>conftest.er1
17809   ac_status=$?
17810   grep -v '^ *+' conftest.er1 >conftest.err
17811   rm -f conftest.er1
17812   cat conftest.err >&5
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); } &&
17815          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817   (eval $ac_try) 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; } &&
17821          { ac_try='test -s conftest$ac_exeext'
17822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823   (eval $ac_try) 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; }; then
17827   ac_cv_func_shl_load=yes
17828 else
17829   echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832 ac_cv_func_shl_load=no
17833 fi
17834 rm -f conftest.err conftest.$ac_objext \
17835       conftest$ac_exeext conftest.$ac_ext
17836 fi
17837 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17838 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17839 if test $ac_cv_func_shl_load = yes; then
17840   lt_cv_dlopen="shl_load"
17841 else
17842   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17843 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17844 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   ac_check_lib_save_LIBS=$LIBS
17848 LIBS="-ldld  $LIBS"
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855
17856 /* Override any gcc2 internal prototype to avoid an error.  */
17857 #ifdef __cplusplus
17858 extern "C"
17859 #endif
17860 /* We use char because int might match the return type of a gcc2
17861    builtin and then its argument prototype would still apply.  */
17862 char shl_load ();
17863 int
17864 main ()
17865 {
17866 shl_load ();
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873   (eval $ac_link) 2>conftest.er1
17874   ac_status=$?
17875   grep -v '^ *+' conftest.er1 >conftest.err
17876   rm -f conftest.er1
17877   cat conftest.err >&5
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } &&
17880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882   (eval $ac_try) 2>&5
17883   ac_status=$?
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); }; } &&
17886          { ac_try='test -s conftest$ac_exeext'
17887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888   (eval $ac_try) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; }; then
17892   ac_cv_lib_dld_shl_load=yes
17893 else
17894   echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 ac_cv_lib_dld_shl_load=no
17898 fi
17899 rm -f conftest.err conftest.$ac_objext \
17900       conftest$ac_exeext conftest.$ac_ext
17901 LIBS=$ac_check_lib_save_LIBS
17902 fi
17903 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17904 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17905 if test $ac_cv_lib_dld_shl_load = yes; then
17906   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17907 else
17908   echo "$as_me:$LINENO: checking for dlopen" >&5
17909 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17910 if test "${ac_cv_func_dlopen+set}" = set; then
17911   echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913   cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h.  */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h.  */
17919 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17921 #define dlopen innocuous_dlopen
17922
17923 /* System header to define __stub macros and hopefully few prototypes,
17924     which can conflict with char dlopen (); below.
17925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17926     <limits.h> exists even on freestanding compilers.  */
17927
17928 #ifdef __STDC__
17929 # include <limits.h>
17930 #else
17931 # include <assert.h>
17932 #endif
17933
17934 #undef dlopen
17935
17936 /* Override any gcc2 internal prototype to avoid an error.  */
17937 #ifdef __cplusplus
17938 extern "C"
17939 {
17940 #endif
17941 /* We use char because int might match the return type of a gcc2
17942    builtin and then its argument prototype would still apply.  */
17943 char dlopen ();
17944 /* The GNU C library defines this for functions which it implements
17945     to always fail with ENOSYS.  Some functions are actually named
17946     something starting with __ and the normal name is an alias.  */
17947 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17948 choke me
17949 #else
17950 char (*f) () = dlopen;
17951 #endif
17952 #ifdef __cplusplus
17953 }
17954 #endif
17955
17956 int
17957 main ()
17958 {
17959 return f != dlopen;
17960   ;
17961   return 0;
17962 }
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966   (eval $ac_link) 2>conftest.er1
17967   ac_status=$?
17968   grep -v '^ *+' conftest.er1 >conftest.err
17969   rm -f conftest.er1
17970   cat conftest.err >&5
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); } &&
17973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975   (eval $ac_try) 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; } &&
17979          { ac_try='test -s conftest$ac_exeext'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; }; then
17985   ac_cv_func_dlopen=yes
17986 else
17987   echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 ac_cv_func_dlopen=no
17991 fi
17992 rm -f conftest.err conftest.$ac_objext \
17993       conftest$ac_exeext conftest.$ac_ext
17994 fi
17995 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17996 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17997 if test $ac_cv_func_dlopen = yes; then
17998   lt_cv_dlopen="dlopen"
17999 else
18000   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18001 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18002 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005   ac_check_lib_save_LIBS=$LIBS
18006 LIBS="-ldl  $LIBS"
18007 cat >conftest.$ac_ext <<_ACEOF
18008 /* confdefs.h.  */
18009 _ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h.  */
18013
18014 /* Override any gcc2 internal prototype to avoid an error.  */
18015 #ifdef __cplusplus
18016 extern "C"
18017 #endif
18018 /* We use char because int might match the return type of a gcc2
18019    builtin and then its argument prototype would still apply.  */
18020 char dlopen ();
18021 int
18022 main ()
18023 {
18024 dlopen ();
18025   ;
18026   return 0;
18027 }
18028 _ACEOF
18029 rm -f conftest.$ac_objext conftest$ac_exeext
18030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18031   (eval $ac_link) 2>conftest.er1
18032   ac_status=$?
18033   grep -v '^ *+' conftest.er1 >conftest.err
18034   rm -f conftest.er1
18035   cat conftest.err >&5
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); } &&
18038          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040   (eval $ac_try) 2>&5
18041   ac_status=$?
18042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043   (exit $ac_status); }; } &&
18044          { ac_try='test -s conftest$ac_exeext'
18045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046   (eval $ac_try) 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; }; then
18050   ac_cv_lib_dl_dlopen=yes
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 ac_cv_lib_dl_dlopen=no
18056 fi
18057 rm -f conftest.err conftest.$ac_objext \
18058       conftest$ac_exeext conftest.$ac_ext
18059 LIBS=$ac_check_lib_save_LIBS
18060 fi
18061 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18063 if test $ac_cv_lib_dl_dlopen = yes; then
18064   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18065 else
18066   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18069   echo $ECHO_N "(cached) $ECHO_C" >&6
18070 else
18071   ac_check_lib_save_LIBS=$LIBS
18072 LIBS="-lsvld  $LIBS"
18073 cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h.  */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h.  */
18079
18080 /* Override any gcc2 internal prototype to avoid an error.  */
18081 #ifdef __cplusplus
18082 extern "C"
18083 #endif
18084 /* We use char because int might match the return type of a gcc2
18085    builtin and then its argument prototype would still apply.  */
18086 char dlopen ();
18087 int
18088 main ()
18089 {
18090 dlopen ();
18091   ;
18092   return 0;
18093 }
18094 _ACEOF
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097   (eval $ac_link) 2>conftest.er1
18098   ac_status=$?
18099   grep -v '^ *+' conftest.er1 >conftest.err
18100   rm -f conftest.er1
18101   cat conftest.err >&5
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); } &&
18104          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106   (eval $ac_try) 2>&5
18107   ac_status=$?
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); }; } &&
18110          { ac_try='test -s conftest$ac_exeext'
18111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112   (eval $ac_try) 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; }; then
18116   ac_cv_lib_svld_dlopen=yes
18117 else
18118   echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18120
18121 ac_cv_lib_svld_dlopen=no
18122 fi
18123 rm -f conftest.err conftest.$ac_objext \
18124       conftest$ac_exeext conftest.$ac_ext
18125 LIBS=$ac_check_lib_save_LIBS
18126 fi
18127 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18128 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18129 if test $ac_cv_lib_svld_dlopen = yes; then
18130   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18131 else
18132   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18133 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18134 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18135   echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18137   ac_check_lib_save_LIBS=$LIBS
18138 LIBS="-ldld  $LIBS"
18139 cat >conftest.$ac_ext <<_ACEOF
18140 /* confdefs.h.  */
18141 _ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h.  */
18145
18146 /* Override any gcc2 internal prototype to avoid an error.  */
18147 #ifdef __cplusplus
18148 extern "C"
18149 #endif
18150 /* We use char because int might match the return type of a gcc2
18151    builtin and then its argument prototype would still apply.  */
18152 char dld_link ();
18153 int
18154 main ()
18155 {
18156 dld_link ();
18157   ;
18158   return 0;
18159 }
18160 _ACEOF
18161 rm -f conftest.$ac_objext conftest$ac_exeext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18163   (eval $ac_link) 2>conftest.er1
18164   ac_status=$?
18165   grep -v '^ *+' conftest.er1 >conftest.err
18166   rm -f conftest.er1
18167   cat conftest.err >&5
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); } &&
18170          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172   (eval $ac_try) 2>&5
18173   ac_status=$?
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); }; } &&
18176          { ac_try='test -s conftest$ac_exeext'
18177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178   (eval $ac_try) 2>&5
18179   ac_status=$?
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); }; }; then
18182   ac_cv_lib_dld_dld_link=yes
18183 else
18184   echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18186
18187 ac_cv_lib_dld_dld_link=no
18188 fi
18189 rm -f conftest.err conftest.$ac_objext \
18190       conftest$ac_exeext conftest.$ac_ext
18191 LIBS=$ac_check_lib_save_LIBS
18192 fi
18193 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18194 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18195 if test $ac_cv_lib_dld_dld_link = yes; then
18196   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18197 fi
18198
18199
18200 fi
18201
18202
18203 fi
18204
18205
18206 fi
18207
18208
18209 fi
18210
18211
18212 fi
18213
18214     ;;
18215   esac
18216
18217   if test "x$lt_cv_dlopen" != xno; then
18218     enable_dlopen=yes
18219   else
18220     enable_dlopen=no
18221   fi
18222
18223   case $lt_cv_dlopen in
18224   dlopen)
18225     save_CPPFLAGS="$CPPFLAGS"
18226     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18227
18228     save_LDFLAGS="$LDFLAGS"
18229     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18230
18231     save_LIBS="$LIBS"
18232     LIBS="$lt_cv_dlopen_libs $LIBS"
18233
18234     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18235 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18236 if test "${lt_cv_dlopen_self+set}" = set; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239           if test "$cross_compiling" = yes; then :
18240   lt_cv_dlopen_self=cross
18241 else
18242   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18243   lt_status=$lt_dlunknown
18244   cat > conftest.$ac_ext <<EOF
18245 #line 18245 "configure"
18246 #include "confdefs.h"
18247
18248 #if HAVE_DLFCN_H
18249 #include <dlfcn.h>
18250 #endif
18251
18252 #include <stdio.h>
18253
18254 #ifdef RTLD_GLOBAL
18255 #  define LT_DLGLOBAL           RTLD_GLOBAL
18256 #else
18257 #  ifdef DL_GLOBAL
18258 #    define LT_DLGLOBAL         DL_GLOBAL
18259 #  else
18260 #    define LT_DLGLOBAL         0
18261 #  endif
18262 #endif
18263
18264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18265    find out it does not work in some platform. */
18266 #ifndef LT_DLLAZY_OR_NOW
18267 #  ifdef RTLD_LAZY
18268 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18269 #  else
18270 #    ifdef DL_LAZY
18271 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18272 #    else
18273 #      ifdef RTLD_NOW
18274 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18275 #      else
18276 #        ifdef DL_NOW
18277 #          define LT_DLLAZY_OR_NOW      DL_NOW
18278 #        else
18279 #          define LT_DLLAZY_OR_NOW      0
18280 #        endif
18281 #      endif
18282 #    endif
18283 #  endif
18284 #endif
18285
18286 #ifdef __cplusplus
18287 extern "C" void exit (int);
18288 #endif
18289
18290 void fnord() { int i=42;}
18291 int main ()
18292 {
18293   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18294   int status = $lt_dlunknown;
18295
18296   if (self)
18297     {
18298       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18299       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18300       /* dlclose (self); */
18301     }
18302
18303     exit (status);
18304 }
18305 EOF
18306   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18307   (eval $ac_link) 2>&5
18308   ac_status=$?
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18311     (./conftest; exit; ) 2>/dev/null
18312     lt_status=$?
18313     case x$lt_status in
18314       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18315       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18316       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18317     esac
18318   else :
18319     # compilation failed
18320     lt_cv_dlopen_self=no
18321   fi
18322 fi
18323 rm -fr conftest*
18324
18325
18326 fi
18327 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18328 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18329
18330     if test "x$lt_cv_dlopen_self" = xyes; then
18331       LDFLAGS="$LDFLAGS $link_static_flag"
18332       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18333 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18334 if test "${lt_cv_dlopen_self_static+set}" = set; then
18335   echo $ECHO_N "(cached) $ECHO_C" >&6
18336 else
18337           if test "$cross_compiling" = yes; then :
18338   lt_cv_dlopen_self_static=cross
18339 else
18340   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18341   lt_status=$lt_dlunknown
18342   cat > conftest.$ac_ext <<EOF
18343 #line 18343 "configure"
18344 #include "confdefs.h"
18345
18346 #if HAVE_DLFCN_H
18347 #include <dlfcn.h>
18348 #endif
18349
18350 #include <stdio.h>
18351
18352 #ifdef RTLD_GLOBAL
18353 #  define LT_DLGLOBAL           RTLD_GLOBAL
18354 #else
18355 #  ifdef DL_GLOBAL
18356 #    define LT_DLGLOBAL         DL_GLOBAL
18357 #  else
18358 #    define LT_DLGLOBAL         0
18359 #  endif
18360 #endif
18361
18362 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18363    find out it does not work in some platform. */
18364 #ifndef LT_DLLAZY_OR_NOW
18365 #  ifdef RTLD_LAZY
18366 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18367 #  else
18368 #    ifdef DL_LAZY
18369 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18370 #    else
18371 #      ifdef RTLD_NOW
18372 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18373 #      else
18374 #        ifdef DL_NOW
18375 #          define LT_DLLAZY_OR_NOW      DL_NOW
18376 #        else
18377 #          define LT_DLLAZY_OR_NOW      0
18378 #        endif
18379 #      endif
18380 #    endif
18381 #  endif
18382 #endif
18383
18384 #ifdef __cplusplus
18385 extern "C" void exit (int);
18386 #endif
18387
18388 void fnord() { int i=42;}
18389 int main ()
18390 {
18391   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18392   int status = $lt_dlunknown;
18393
18394   if (self)
18395     {
18396       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18397       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18398       /* dlclose (self); */
18399     }
18400
18401     exit (status);
18402 }
18403 EOF
18404   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18405   (eval $ac_link) 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18409     (./conftest; exit; ) 2>/dev/null
18410     lt_status=$?
18411     case x$lt_status in
18412       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18413       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18414       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18415     esac
18416   else :
18417     # compilation failed
18418     lt_cv_dlopen_self_static=no
18419   fi
18420 fi
18421 rm -fr conftest*
18422
18423
18424 fi
18425 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18426 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18427     fi
18428
18429     CPPFLAGS="$save_CPPFLAGS"
18430     LDFLAGS="$save_LDFLAGS"
18431     LIBS="$save_LIBS"
18432     ;;
18433   esac
18434
18435   case $lt_cv_dlopen_self in
18436   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18437   *) enable_dlopen_self=unknown ;;
18438   esac
18439
18440   case $lt_cv_dlopen_self_static in
18441   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18442   *) enable_dlopen_self_static=unknown ;;
18443   esac
18444 fi
18445
18446
18447 # The else clause should only fire when bootstrapping the
18448 # libtool distribution, otherwise you forgot to ship ltmain.sh
18449 # with your package, and you will get complaints that there are
18450 # no rules to generate ltmain.sh.
18451 if test -f "$ltmain"; then
18452   # See if we are running on zsh, and set the options which allow our commands through
18453   # without removal of \ escapes.
18454   if test -n "${ZSH_VERSION+set}" ; then
18455     setopt NO_GLOB_SUBST
18456   fi
18457   # Now quote all the things that may contain metacharacters while being
18458   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18459   # variables and quote the copies for generation of the libtool script.
18460   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18461     SED SHELL STRIP \
18462     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18463     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18464     deplibs_check_method reload_flag reload_cmds need_locks \
18465     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18466     lt_cv_sys_global_symbol_to_c_name_address \
18467     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18468     old_postinstall_cmds old_postuninstall_cmds \
18469     compiler_GCJ \
18470     CC_GCJ \
18471     LD_GCJ \
18472     lt_prog_compiler_wl_GCJ \
18473     lt_prog_compiler_pic_GCJ \
18474     lt_prog_compiler_static_GCJ \
18475     lt_prog_compiler_no_builtin_flag_GCJ \
18476     export_dynamic_flag_spec_GCJ \
18477     thread_safe_flag_spec_GCJ \
18478     whole_archive_flag_spec_GCJ \
18479     enable_shared_with_static_runtimes_GCJ \
18480     old_archive_cmds_GCJ \
18481     old_archive_from_new_cmds_GCJ \
18482     predep_objects_GCJ \
18483     postdep_objects_GCJ \
18484     predeps_GCJ \
18485     postdeps_GCJ \
18486     compiler_lib_search_path_GCJ \
18487     archive_cmds_GCJ \
18488     archive_expsym_cmds_GCJ \
18489     postinstall_cmds_GCJ \
18490     postuninstall_cmds_GCJ \
18491     old_archive_from_expsyms_cmds_GCJ \
18492     allow_undefined_flag_GCJ \
18493     no_undefined_flag_GCJ \
18494     export_symbols_cmds_GCJ \
18495     hardcode_libdir_flag_spec_GCJ \
18496     hardcode_libdir_flag_spec_ld_GCJ \
18497     hardcode_libdir_separator_GCJ \
18498     hardcode_automatic_GCJ \
18499     module_cmds_GCJ \
18500     module_expsym_cmds_GCJ \
18501     lt_cv_prog_compiler_c_o_GCJ \
18502     exclude_expsyms_GCJ \
18503     include_expsyms_GCJ; do
18504
18505     case $var in
18506     old_archive_cmds_GCJ | \
18507     old_archive_from_new_cmds_GCJ | \
18508     archive_cmds_GCJ | \
18509     archive_expsym_cmds_GCJ | \
18510     module_cmds_GCJ | \
18511     module_expsym_cmds_GCJ | \
18512     old_archive_from_expsyms_cmds_GCJ | \
18513     export_symbols_cmds_GCJ | \
18514     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18515     postinstall_cmds | postuninstall_cmds | \
18516     old_postinstall_cmds | old_postuninstall_cmds | \
18517     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18518       # Double-quote double-evaled strings.
18519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18520       ;;
18521     *)
18522       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18523       ;;
18524     esac
18525   done
18526
18527   case $lt_echo in
18528   *'\$0 --fallback-echo"')
18529     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18530     ;;
18531   esac
18532
18533 cfgfile="$ofile"
18534
18535   cat <<__EOF__ >> "$cfgfile"
18536 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18537
18538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18539
18540 # Shell to use when invoking shell scripts.
18541 SHELL=$lt_SHELL
18542
18543 # Whether or not to build shared libraries.
18544 build_libtool_libs=$enable_shared
18545
18546 # Whether or not to build static libraries.
18547 build_old_libs=$enable_static
18548
18549 # Whether or not to add -lc for building shared libraries.
18550 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18551
18552 # Whether or not to disallow shared libs when runtime libs are static
18553 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18554
18555 # Whether or not to optimize for fast installation.
18556 fast_install=$enable_fast_install
18557
18558 # The host system.
18559 host_alias=$host_alias
18560 host=$host
18561
18562 # An echo program that does not interpret backslashes.
18563 echo=$lt_echo
18564
18565 # The archiver.
18566 AR=$lt_AR
18567 AR_FLAGS=$lt_AR_FLAGS
18568
18569 # A C compiler.
18570 LTCC=$lt_LTCC
18571
18572 # A language-specific compiler.
18573 CC=$lt_compiler_GCJ
18574
18575 # Is the compiler the GNU C compiler?
18576 with_gcc=$GCC_GCJ
18577
18578 # An ERE matcher.
18579 EGREP=$lt_EGREP
18580
18581 # The linker used to build libraries.
18582 LD=$lt_LD_GCJ
18583
18584 # Whether we need hard or soft links.
18585 LN_S=$lt_LN_S
18586
18587 # A BSD-compatible nm program.
18588 NM=$lt_NM
18589
18590 # A symbol stripping program
18591 STRIP=$lt_STRIP
18592
18593 # Used to examine libraries when file_magic_cmd begins "file"
18594 MAGIC_CMD=$MAGIC_CMD
18595
18596 # Used on cygwin: DLL creation program.
18597 DLLTOOL="$DLLTOOL"
18598
18599 # Used on cygwin: object dumper.
18600 OBJDUMP="$OBJDUMP"
18601
18602 # Used on cygwin: assembler.
18603 AS="$AS"
18604
18605 # The name of the directory that contains temporary libtool files.
18606 objdir=$objdir
18607
18608 # How to create reloadable object files.
18609 reload_flag=$lt_reload_flag
18610 reload_cmds=$lt_reload_cmds
18611
18612 # How to pass a linker flag through the compiler.
18613 wl=$lt_lt_prog_compiler_wl_GCJ
18614
18615 # Object file suffix (normally "o").
18616 objext="$ac_objext"
18617
18618 # Old archive suffix (normally "a").
18619 libext="$libext"
18620
18621 # Shared library suffix (normally ".so").
18622 shrext_cmds='$shrext_cmds'
18623
18624 # Executable file suffix (normally "").
18625 exeext="$exeext"
18626
18627 # Additional compiler flags for building library objects.
18628 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18629 pic_mode=$pic_mode
18630
18631 # What is the maximum length of a command?
18632 max_cmd_len=$lt_cv_sys_max_cmd_len
18633
18634 # Does compiler simultaneously support -c and -o options?
18635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18636
18637 # Must we lock files when doing compilation ?
18638 need_locks=$lt_need_locks
18639
18640 # Do we need the lib prefix for modules?
18641 need_lib_prefix=$need_lib_prefix
18642
18643 # Do we need a version for libraries?
18644 need_version=$need_version
18645
18646 # Whether dlopen is supported.
18647 dlopen_support=$enable_dlopen
18648
18649 # Whether dlopen of programs is supported.
18650 dlopen_self=$enable_dlopen_self
18651
18652 # Whether dlopen of statically linked programs is supported.
18653 dlopen_self_static=$enable_dlopen_self_static
18654
18655 # Compiler flag to prevent dynamic linking.
18656 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18657
18658 # Compiler flag to turn off builtin functions.
18659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18660
18661 # Compiler flag to allow reflexive dlopens.
18662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18663
18664 # Compiler flag to generate shared objects directly from archives.
18665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18666
18667 # Compiler flag to generate thread-safe objects.
18668 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18669
18670 # Library versioning type.
18671 version_type=$version_type
18672
18673 # Format of library name prefix.
18674 libname_spec=$lt_libname_spec
18675
18676 # List of archive names.  First name is the real one, the rest are links.
18677 # The last name is the one that the linker finds with -lNAME.
18678 library_names_spec=$lt_library_names_spec
18679
18680 # The coded name of the library, if different from the real name.
18681 soname_spec=$lt_soname_spec
18682
18683 # Commands used to build and install an old-style archive.
18684 RANLIB=$lt_RANLIB
18685 old_archive_cmds=$lt_old_archive_cmds_GCJ
18686 old_postinstall_cmds=$lt_old_postinstall_cmds
18687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18688
18689 # Create an old-style archive from a shared archive.
18690 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18691
18692 # Create a temporary old-style archive to link instead of a shared archive.
18693 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18694
18695 # Commands used to build and install a shared archive.
18696 archive_cmds=$lt_archive_cmds_GCJ
18697 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18698 postinstall_cmds=$lt_postinstall_cmds
18699 postuninstall_cmds=$lt_postuninstall_cmds
18700
18701 # Commands used to build a loadable module (assumed same as above if empty)
18702 module_cmds=$lt_module_cmds_GCJ
18703 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18704
18705 # Commands to strip libraries.
18706 old_striplib=$lt_old_striplib
18707 striplib=$lt_striplib
18708
18709 # Dependencies to place before the objects being linked to create a
18710 # shared library.
18711 predep_objects=$lt_predep_objects_GCJ
18712
18713 # Dependencies to place after the objects being linked to create a
18714 # shared library.
18715 postdep_objects=$lt_postdep_objects_GCJ
18716
18717 # Dependencies to place before the objects being linked to create a
18718 # shared library.
18719 predeps=$lt_predeps_GCJ
18720
18721 # Dependencies to place after the objects being linked to create a
18722 # shared library.
18723 postdeps=$lt_postdeps_GCJ
18724
18725 # The library search path used internally by the compiler when linking
18726 # a shared library.
18727 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18728
18729 # Method to check whether dependent libraries are shared objects.
18730 deplibs_check_method=$lt_deplibs_check_method
18731
18732 # Command to use when deplibs_check_method == file_magic.
18733 file_magic_cmd=$lt_file_magic_cmd
18734
18735 # Flag that allows shared libraries with undefined symbols to be built.
18736 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18737
18738 # Flag that forces no undefined symbols.
18739 no_undefined_flag=$lt_no_undefined_flag_GCJ
18740
18741 # Commands used to finish a libtool library installation in a directory.
18742 finish_cmds=$lt_finish_cmds
18743
18744 # Same as above, but a single script fragment to be evaled but not shown.
18745 finish_eval=$lt_finish_eval
18746
18747 # Take the output of nm and produce a listing of raw symbols and C names.
18748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18749
18750 # Transform the output of nm in a proper C declaration
18751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18752
18753 # Transform the output of nm in a C name address pair
18754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18755
18756 # This is the shared library runtime path variable.
18757 runpath_var=$runpath_var
18758
18759 # This is the shared library path variable.
18760 shlibpath_var=$shlibpath_var
18761
18762 # Is shlibpath searched before the hard-coded library search path?
18763 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18764
18765 # How to hardcode a shared library path into an executable.
18766 hardcode_action=$hardcode_action_GCJ
18767
18768 # Whether we should hardcode library paths into libraries.
18769 hardcode_into_libs=$hardcode_into_libs
18770
18771 # Flag to hardcode \$libdir into a binary during linking.
18772 # This must work even if \$libdir does not exist.
18773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18774
18775 # If ld is used when linking, flag to hardcode \$libdir into
18776 # a binary during linking. This must work even if \$libdir does
18777 # not exist.
18778 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18779
18780 # Whether we need a single -rpath flag with a separated argument.
18781 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18782
18783 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18784 # resulting binary.
18785 hardcode_direct=$hardcode_direct_GCJ
18786
18787 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18788 # resulting binary.
18789 hardcode_minus_L=$hardcode_minus_L_GCJ
18790
18791 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18792 # the resulting binary.
18793 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18794
18795 # Set to yes if building a shared library automatically hardcodes DIR into the library
18796 # and all subsequent libraries and executables linked against it.
18797 hardcode_automatic=$hardcode_automatic_GCJ
18798
18799 # Variables whose values should be saved in libtool wrapper scripts and
18800 # restored at relink time.
18801 variables_saved_for_relink="$variables_saved_for_relink"
18802
18803 # Whether libtool must link a program against all its dependency libraries.
18804 link_all_deplibs=$link_all_deplibs_GCJ
18805
18806 # Compile-time system search path for libraries
18807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18808
18809 # Run-time system search path for libraries
18810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18811
18812 # Fix the shell variable \$srcfile for the compiler.
18813 fix_srcfile_path="$fix_srcfile_path_GCJ"
18814
18815 # Set to yes if exported symbols are required.
18816 always_export_symbols=$always_export_symbols_GCJ
18817
18818 # The commands to list exported symbols.
18819 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18820
18821 # The commands to extract the exported symbol list from a shared archive.
18822 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18823
18824 # Symbols that should not be listed in the preloaded symbols.
18825 exclude_expsyms=$lt_exclude_expsyms_GCJ
18826
18827 # Symbols that must always be exported.
18828 include_expsyms=$lt_include_expsyms_GCJ
18829
18830 # ### END LIBTOOL TAG CONFIG: $tagname
18831
18832 __EOF__
18833
18834
18835 else
18836   # If there is no Makefile yet, we rely on a make rule to execute
18837   # `config.status --recheck' to rerun these tests and create the
18838   # libtool script then.
18839   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18840   if test -f "$ltmain_in"; then
18841     test -f Makefile && make "$ltmain"
18842   fi
18843 fi
18844
18845
18846 ac_ext=c
18847 ac_cpp='$CPP $CPPFLAGS'
18848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18851
18852 CC="$lt_save_CC"
18853
18854         else
18855           tagname=""
18856         fi
18857         ;;
18858
18859       RC)
18860
18861
18862
18863 # Source file extension for RC test sources.
18864 ac_ext=rc
18865
18866 # Object file extension for compiled RC test sources.
18867 objext=o
18868 objext_RC=$objext
18869
18870 # Code to be used in simple compile tests
18871 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18872
18873 # Code to be used in simple link tests
18874 lt_simple_link_test_code="$lt_simple_compile_test_code"
18875
18876 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18877
18878 # If no C compiler was specified, use CC.
18879 LTCC=${LTCC-"$CC"}
18880
18881 # Allow CC to be a program name with arguments.
18882 compiler=$CC
18883
18884
18885 # Allow CC to be a program name with arguments.
18886 lt_save_CC="$CC"
18887 CC=${RC-"windres"}
18888 compiler=$CC
18889 compiler_RC=$CC
18890 lt_cv_prog_compiler_c_o_RC=yes
18891
18892 # The else clause should only fire when bootstrapping the
18893 # libtool distribution, otherwise you forgot to ship ltmain.sh
18894 # with your package, and you will get complaints that there are
18895 # no rules to generate ltmain.sh.
18896 if test -f "$ltmain"; then
18897   # See if we are running on zsh, and set the options which allow our commands through
18898   # without removal of \ escapes.
18899   if test -n "${ZSH_VERSION+set}" ; then
18900     setopt NO_GLOB_SUBST
18901   fi
18902   # Now quote all the things that may contain metacharacters while being
18903   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18904   # variables and quote the copies for generation of the libtool script.
18905   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18906     SED SHELL STRIP \
18907     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18908     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18909     deplibs_check_method reload_flag reload_cmds need_locks \
18910     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18911     lt_cv_sys_global_symbol_to_c_name_address \
18912     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18913     old_postinstall_cmds old_postuninstall_cmds \
18914     compiler_RC \
18915     CC_RC \
18916     LD_RC \
18917     lt_prog_compiler_wl_RC \
18918     lt_prog_compiler_pic_RC \
18919     lt_prog_compiler_static_RC \
18920     lt_prog_compiler_no_builtin_flag_RC \
18921     export_dynamic_flag_spec_RC \
18922     thread_safe_flag_spec_RC \
18923     whole_archive_flag_spec_RC \
18924     enable_shared_with_static_runtimes_RC \
18925     old_archive_cmds_RC \
18926     old_archive_from_new_cmds_RC \
18927     predep_objects_RC \
18928     postdep_objects_RC \
18929     predeps_RC \
18930     postdeps_RC \
18931     compiler_lib_search_path_RC \
18932     archive_cmds_RC \
18933     archive_expsym_cmds_RC \
18934     postinstall_cmds_RC \
18935     postuninstall_cmds_RC \
18936     old_archive_from_expsyms_cmds_RC \
18937     allow_undefined_flag_RC \
18938     no_undefined_flag_RC \
18939     export_symbols_cmds_RC \
18940     hardcode_libdir_flag_spec_RC \
18941     hardcode_libdir_flag_spec_ld_RC \
18942     hardcode_libdir_separator_RC \
18943     hardcode_automatic_RC \
18944     module_cmds_RC \
18945     module_expsym_cmds_RC \
18946     lt_cv_prog_compiler_c_o_RC \
18947     exclude_expsyms_RC \
18948     include_expsyms_RC; do
18949
18950     case $var in
18951     old_archive_cmds_RC | \
18952     old_archive_from_new_cmds_RC | \
18953     archive_cmds_RC | \
18954     archive_expsym_cmds_RC | \
18955     module_cmds_RC | \
18956     module_expsym_cmds_RC | \
18957     old_archive_from_expsyms_cmds_RC | \
18958     export_symbols_cmds_RC | \
18959     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18960     postinstall_cmds | postuninstall_cmds | \
18961     old_postinstall_cmds | old_postuninstall_cmds | \
18962     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18963       # Double-quote double-evaled strings.
18964       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18965       ;;
18966     *)
18967       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18968       ;;
18969     esac
18970   done
18971
18972   case $lt_echo in
18973   *'\$0 --fallback-echo"')
18974     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18975     ;;
18976   esac
18977
18978 cfgfile="$ofile"
18979
18980   cat <<__EOF__ >> "$cfgfile"
18981 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18982
18983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18984
18985 # Shell to use when invoking shell scripts.
18986 SHELL=$lt_SHELL
18987
18988 # Whether or not to build shared libraries.
18989 build_libtool_libs=$enable_shared
18990
18991 # Whether or not to build static libraries.
18992 build_old_libs=$enable_static
18993
18994 # Whether or not to add -lc for building shared libraries.
18995 build_libtool_need_lc=$archive_cmds_need_lc_RC
18996
18997 # Whether or not to disallow shared libs when runtime libs are static
18998 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18999
19000 # Whether or not to optimize for fast installation.
19001 fast_install=$enable_fast_install
19002
19003 # The host system.
19004 host_alias=$host_alias
19005 host=$host
19006
19007 # An echo program that does not interpret backslashes.
19008 echo=$lt_echo
19009
19010 # The archiver.
19011 AR=$lt_AR
19012 AR_FLAGS=$lt_AR_FLAGS
19013
19014 # A C compiler.
19015 LTCC=$lt_LTCC
19016
19017 # A language-specific compiler.
19018 CC=$lt_compiler_RC
19019
19020 # Is the compiler the GNU C compiler?
19021 with_gcc=$GCC_RC
19022
19023 # An ERE matcher.
19024 EGREP=$lt_EGREP
19025
19026 # The linker used to build libraries.
19027 LD=$lt_LD_RC
19028
19029 # Whether we need hard or soft links.
19030 LN_S=$lt_LN_S
19031
19032 # A BSD-compatible nm program.
19033 NM=$lt_NM
19034
19035 # A symbol stripping program
19036 STRIP=$lt_STRIP
19037
19038 # Used to examine libraries when file_magic_cmd begins "file"
19039 MAGIC_CMD=$MAGIC_CMD
19040
19041 # Used on cygwin: DLL creation program.
19042 DLLTOOL="$DLLTOOL"
19043
19044 # Used on cygwin: object dumper.
19045 OBJDUMP="$OBJDUMP"
19046
19047 # Used on cygwin: assembler.
19048 AS="$AS"
19049
19050 # The name of the directory that contains temporary libtool files.
19051 objdir=$objdir
19052
19053 # How to create reloadable object files.
19054 reload_flag=$lt_reload_flag
19055 reload_cmds=$lt_reload_cmds
19056
19057 # How to pass a linker flag through the compiler.
19058 wl=$lt_lt_prog_compiler_wl_RC
19059
19060 # Object file suffix (normally "o").
19061 objext="$ac_objext"
19062
19063 # Old archive suffix (normally "a").
19064 libext="$libext"
19065
19066 # Shared library suffix (normally ".so").
19067 shrext_cmds='$shrext_cmds'
19068
19069 # Executable file suffix (normally "").
19070 exeext="$exeext"
19071
19072 # Additional compiler flags for building library objects.
19073 pic_flag=$lt_lt_prog_compiler_pic_RC
19074 pic_mode=$pic_mode
19075
19076 # What is the maximum length of a command?
19077 max_cmd_len=$lt_cv_sys_max_cmd_len
19078
19079 # Does compiler simultaneously support -c and -o options?
19080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19081
19082 # Must we lock files when doing compilation ?
19083 need_locks=$lt_need_locks
19084
19085 # Do we need the lib prefix for modules?
19086 need_lib_prefix=$need_lib_prefix
19087
19088 # Do we need a version for libraries?
19089 need_version=$need_version
19090
19091 # Whether dlopen is supported.
19092 dlopen_support=$enable_dlopen
19093
19094 # Whether dlopen of programs is supported.
19095 dlopen_self=$enable_dlopen_self
19096
19097 # Whether dlopen of statically linked programs is supported.
19098 dlopen_self_static=$enable_dlopen_self_static
19099
19100 # Compiler flag to prevent dynamic linking.
19101 link_static_flag=$lt_lt_prog_compiler_static_RC
19102
19103 # Compiler flag to turn off builtin functions.
19104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19105
19106 # Compiler flag to allow reflexive dlopens.
19107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19108
19109 # Compiler flag to generate shared objects directly from archives.
19110 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19111
19112 # Compiler flag to generate thread-safe objects.
19113 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19114
19115 # Library versioning type.
19116 version_type=$version_type
19117
19118 # Format of library name prefix.
19119 libname_spec=$lt_libname_spec
19120
19121 # List of archive names.  First name is the real one, the rest are links.
19122 # The last name is the one that the linker finds with -lNAME.
19123 library_names_spec=$lt_library_names_spec
19124
19125 # The coded name of the library, if different from the real name.
19126 soname_spec=$lt_soname_spec
19127
19128 # Commands used to build and install an old-style archive.
19129 RANLIB=$lt_RANLIB
19130 old_archive_cmds=$lt_old_archive_cmds_RC
19131 old_postinstall_cmds=$lt_old_postinstall_cmds
19132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19133
19134 # Create an old-style archive from a shared archive.
19135 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19136
19137 # Create a temporary old-style archive to link instead of a shared archive.
19138 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19139
19140 # Commands used to build and install a shared archive.
19141 archive_cmds=$lt_archive_cmds_RC
19142 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19143 postinstall_cmds=$lt_postinstall_cmds
19144 postuninstall_cmds=$lt_postuninstall_cmds
19145
19146 # Commands used to build a loadable module (assumed same as above if empty)
19147 module_cmds=$lt_module_cmds_RC
19148 module_expsym_cmds=$lt_module_expsym_cmds_RC
19149
19150 # Commands to strip libraries.
19151 old_striplib=$lt_old_striplib
19152 striplib=$lt_striplib
19153
19154 # Dependencies to place before the objects being linked to create a
19155 # shared library.
19156 predep_objects=$lt_predep_objects_RC
19157
19158 # Dependencies to place after the objects being linked to create a
19159 # shared library.
19160 postdep_objects=$lt_postdep_objects_RC
19161
19162 # Dependencies to place before the objects being linked to create a
19163 # shared library.
19164 predeps=$lt_predeps_RC
19165
19166 # Dependencies to place after the objects being linked to create a
19167 # shared library.
19168 postdeps=$lt_postdeps_RC
19169
19170 # The library search path used internally by the compiler when linking
19171 # a shared library.
19172 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19173
19174 # Method to check whether dependent libraries are shared objects.
19175 deplibs_check_method=$lt_deplibs_check_method
19176
19177 # Command to use when deplibs_check_method == file_magic.
19178 file_magic_cmd=$lt_file_magic_cmd
19179
19180 # Flag that allows shared libraries with undefined symbols to be built.
19181 allow_undefined_flag=$lt_allow_undefined_flag_RC
19182
19183 # Flag that forces no undefined symbols.
19184 no_undefined_flag=$lt_no_undefined_flag_RC
19185
19186 # Commands used to finish a libtool library installation in a directory.
19187 finish_cmds=$lt_finish_cmds
19188
19189 # Same as above, but a single script fragment to be evaled but not shown.
19190 finish_eval=$lt_finish_eval
19191
19192 # Take the output of nm and produce a listing of raw symbols and C names.
19193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19194
19195 # Transform the output of nm in a proper C declaration
19196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19197
19198 # Transform the output of nm in a C name address pair
19199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19200
19201 # This is the shared library runtime path variable.
19202 runpath_var=$runpath_var
19203
19204 # This is the shared library path variable.
19205 shlibpath_var=$shlibpath_var
19206
19207 # Is shlibpath searched before the hard-coded library search path?
19208 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19209
19210 # How to hardcode a shared library path into an executable.
19211 hardcode_action=$hardcode_action_RC
19212
19213 # Whether we should hardcode library paths into libraries.
19214 hardcode_into_libs=$hardcode_into_libs
19215
19216 # Flag to hardcode \$libdir into a binary during linking.
19217 # This must work even if \$libdir does not exist.
19218 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19219
19220 # If ld is used when linking, flag to hardcode \$libdir into
19221 # a binary during linking. This must work even if \$libdir does
19222 # not exist.
19223 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19224
19225 # Whether we need a single -rpath flag with a separated argument.
19226 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19227
19228 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19229 # resulting binary.
19230 hardcode_direct=$hardcode_direct_RC
19231
19232 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19233 # resulting binary.
19234 hardcode_minus_L=$hardcode_minus_L_RC
19235
19236 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19237 # the resulting binary.
19238 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19239
19240 # Set to yes if building a shared library automatically hardcodes DIR into the library
19241 # and all subsequent libraries and executables linked against it.
19242 hardcode_automatic=$hardcode_automatic_RC
19243
19244 # Variables whose values should be saved in libtool wrapper scripts and
19245 # restored at relink time.
19246 variables_saved_for_relink="$variables_saved_for_relink"
19247
19248 # Whether libtool must link a program against all its dependency libraries.
19249 link_all_deplibs=$link_all_deplibs_RC
19250
19251 # Compile-time system search path for libraries
19252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19253
19254 # Run-time system search path for libraries
19255 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19256
19257 # Fix the shell variable \$srcfile for the compiler.
19258 fix_srcfile_path="$fix_srcfile_path_RC"
19259
19260 # Set to yes if exported symbols are required.
19261 always_export_symbols=$always_export_symbols_RC
19262
19263 # The commands to list exported symbols.
19264 export_symbols_cmds=$lt_export_symbols_cmds_RC
19265
19266 # The commands to extract the exported symbol list from a shared archive.
19267 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19268
19269 # Symbols that should not be listed in the preloaded symbols.
19270 exclude_expsyms=$lt_exclude_expsyms_RC
19271
19272 # Symbols that must always be exported.
19273 include_expsyms=$lt_include_expsyms_RC
19274
19275 # ### END LIBTOOL TAG CONFIG: $tagname
19276
19277 __EOF__
19278
19279
19280 else
19281   # If there is no Makefile yet, we rely on a make rule to execute
19282   # `config.status --recheck' to rerun these tests and create the
19283   # libtool script then.
19284   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19285   if test -f "$ltmain_in"; then
19286     test -f Makefile && make "$ltmain"
19287   fi
19288 fi
19289
19290
19291 ac_ext=c
19292 ac_cpp='$CPP $CPPFLAGS'
19293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19296
19297 CC="$lt_save_CC"
19298
19299         ;;
19300
19301       *)
19302         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19303 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19304    { (exit 1); exit 1; }; }
19305         ;;
19306       esac
19307
19308       # Append the new tag name to the list of available tags.
19309       if test -n "$tagname" ; then
19310       available_tags="$available_tags $tagname"
19311     fi
19312     fi
19313   done
19314   IFS="$lt_save_ifs"
19315
19316   # Now substitute the updated list of available tags.
19317   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19318     mv "${ofile}T" "$ofile"
19319     chmod +x "$ofile"
19320   else
19321     rm -f "${ofile}T"
19322     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19323 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19324    { (exit 1); exit 1; }; }
19325   fi
19326 fi
19327
19328
19329
19330 # This can be used to rebuild libtool when needed
19331 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19332
19333 # Always use our own libtool.
19334 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19335
19336 # Prevent multiple expansion
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349 # Check whether --with-system-libtool or --without-system-libtool was given.
19350 if test "${with_system_libtool+set}" = set; then
19351   withval="$with_system_libtool"
19352    # Extract the first word of "libtool", so it can be a program name with args.
19353 set dummy libtool; ac_word=$2
19354 echo "$as_me:$LINENO: checking for $ac_word" >&5
19355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19356 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19357   echo $ECHO_N "(cached) $ECHO_C" >&6
19358 else
19359   case $LIBTOOL in
19360   [\\/]* | ?:[\\/]*)
19361   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19362   ;;
19363   *)
19364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19365 as_dummy="$PATH:/usr/local/bin"
19366 for as_dir in $as_dummy
19367 do
19368   IFS=$as_save_IFS
19369   test -z "$as_dir" && as_dir=.
19370   for ac_exec_ext in '' $ac_executable_extensions; do
19371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19372     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19374     break 2
19375   fi
19376 done
19377 done
19378
19379   ;;
19380 esac
19381 fi
19382 LIBTOOL=$ac_cv_path_LIBTOOL
19383
19384 if test -n "$LIBTOOL"; then
19385   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19386 echo "${ECHO_T}$LIBTOOL" >&6
19387 else
19388   echo "$as_me:$LINENO: result: no" >&5
19389 echo "${ECHO_T}no" >&6
19390 fi
19391
19392 else
19393
19394   LIBTOOL="`pwd`/libtool"
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409 fi;
19410
19411
19412
19413 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
19414 if test "${enable_strict_dependencies+set}" = set; then
19415   enableval="$enable_strict_dependencies"
19416
19417 fi;
19418
19419 logdir='${localstatedir}/log/radius'
19420 echo "$as_me:$LINENO: checking logdir" >&5
19421 echo $ECHO_N "checking logdir... $ECHO_C" >&6
19422
19423 # Check whether --with-logdir or --without-logdir was given.
19424 if test "${with_logdir+set}" = set; then
19425   withval="$with_logdir"
19426    case "$withval" in
19427     no)
19428         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19429 echo "$as_me: error: Need logdir" >&2;}
19430    { (exit 1); exit 1; }; }
19431         ;;
19432     yes)
19433         ;;
19434     *)
19435         logdir="$withval"
19436         ;;
19437   esac
19438
19439 fi;
19440
19441 echo "$as_me:$LINENO: result: $logdir" >&5
19442 echo "${ECHO_T}$logdir" >&6
19443
19444 radacctdir='${logdir}/radacct'
19445 echo "$as_me:$LINENO: checking radacctdir" >&5
19446 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
19447
19448 # Check whether --with-radacctdir or --without-radacctdir was given.
19449 if test "${with_radacctdir+set}" = set; then
19450   withval="$with_radacctdir"
19451    case "$withval" in
19452     no)
19453         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19454 echo "$as_me: error: Need radacctdir" >&2;}
19455    { (exit 1); exit 1; }; }
19456         ;;
19457     yes)
19458         ;;
19459     *)
19460         radacctdir="$withval"
19461         ;;
19462   esac
19463
19464 fi;
19465
19466 echo "$as_me:$LINENO: result: $radacctdir" >&5
19467 echo "${ECHO_T}$radacctdir" >&6
19468
19469 raddbdir='${sysconfdir}/raddb'
19470 echo "$as_me:$LINENO: checking raddbdir" >&5
19471 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
19472
19473 # Check whether --with-raddbdir or --without-raddbdir was given.
19474 if test "${with_raddbdir+set}" = set; then
19475   withval="$with_raddbdir"
19476    case "$withval" in
19477     no)
19478         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19479 echo "$as_me: error: Need raddbdir" >&2;}
19480    { (exit 1); exit 1; }; }
19481         ;;
19482     yes)
19483         ;;
19484     *)
19485         raddbdir="$withval"
19486         ;;
19487   esac
19488
19489 fi;
19490
19491 echo "$as_me:$LINENO: result: $raddbdir" >&5
19492 echo "${ECHO_T}$raddbdir" >&6
19493
19494 ASCEND_BINARY=yes
19495
19496 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19497 if test "${with_ascend_binary+set}" = set; then
19498   withval="$with_ascend_binary"
19499    case "$withval" in
19500     yes)
19501         ;;
19502     *)
19503         ASCEND_BINARY=""
19504   esac
19505
19506 fi;
19507 if test "X$ASCEND_BINARY" = "Xyes"; then
19508
19509 cat >>confdefs.h <<\_ACEOF
19510 #define ASCEND_BINARY
19511 _ACEOF
19512
19513 fi
19514
19515 WITH_THREADS=yes
19516
19517 # Check whether --with-threads or --without-threads was given.
19518 if test "${with_threads+set}" = set; then
19519   withval="$with_threads"
19520    case "$withval" in
19521     yes)
19522         ;;
19523     *)
19524         WITH_THREADS=""
19525   esac
19526
19527 fi;
19528
19529 WITH_SNMP=yes
19530
19531 # Check whether --with-snmp or --without-snmp was given.
19532 if test "${with_snmp+set}" = set; then
19533   withval="$with_snmp"
19534    case "$withval" in
19535     yes)
19536         ;;
19537     *)
19538         WITH_SNMP=no
19539   esac
19540
19541 fi;
19542
19543 rad_enable_largefiles=no
19544
19545 # Check whether --with-large-files or --without-large-files was given.
19546 if test "${with_large_files+set}" = set; then
19547   withval="$with_large_files"
19548    case "$withval" in
19549     yes)
19550         rad_enable_largefiles=yes
19551         ;;
19552     *)
19553         ;;
19554   esac
19555
19556 fi;
19557
19558
19559
19560 STATIC_MODULES=
19561
19562 # Check whether --with-static_modules or --without-static_modules was given.
19563 if test "${with_static_modules+set}" = set; then
19564   withval="$with_static_modules"
19565
19566   for i in $withval; do
19567     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19568   done
19569
19570 fi;
19571
19572 # Check whether --enable-developer or --disable-developer was given.
19573 if test "${enable_developer+set}" = set; then
19574   enableval="$enable_developer"
19575    case "$enableval" in
19576     no)
19577         developer=no
19578         ;;
19579     *)
19580         developer=yes
19581   esac
19582
19583 fi;
19584
19585 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19586     developer="yes"
19587 fi
19588
19589 EXPERIMENTAL=
19590
19591 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19592 if test "${with_experimental_modules+set}" = set; then
19593   withval="$with_experimental_modules"
19594    case "$withval" in
19595     yes)
19596         EXPERIMENTAL=yes
19597         ;;
19598     *)
19599   esac
19600
19601 fi;
19602
19603
19604 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19605 if test "${with_openssl_includes+set}" = set; then
19606   withval="$with_openssl_includes"
19607    case "$withval" in
19608     *) OPENSSL_INCLUDE_DIR="$withval"
19609         ;;
19610   esac
19611
19612 fi;
19613
19614
19615 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19616 if test "${with_openssl_libraries+set}" = set; then
19617   withval="$with_openssl_libraries"
19618    case "$withval" in
19619     *) OPENSSL_LIB_DIR="$withval"
19620         ;;
19621   esac
19622
19623 fi;
19624
19625
19626
19627 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19628 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19629   withval="$with_rlm_FOO_lib_dir"
19630    case "$withval" in
19631     *)
19632         ;;
19633   esac
19634
19635 fi;
19636
19637
19638 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19639 if test "${with_rlm_FOO_include_dir+set}" = set; then
19640   withval="$with_rlm_FOO_include_dir"
19641    case "$withval" in
19642     *)
19643         ;;
19644   esac
19645
19646 fi;
19647
19648
19649 WITH_UDPFROMTO=no
19650
19651 # Check whether --with-udpfromto or --without-udpfromto was given.
19652 if test "${with_udpfromto+set}" = set; then
19653   withval="$with_udpfromto"
19654    case "$withval" in
19655     yes)
19656         WITH_UDPFROMTO=yes
19657         ;;
19658     *)
19659         WITH_UDPFROMTO=no
19660   esac
19661
19662 fi;
19663
19664 if test "x$WITH_UDPFROMTO" = "xyes"; then
19665
19666 cat >>confdefs.h <<\_ACEOF
19667 #define WITH_UDPFROMTO
19668 _ACEOF
19669
19670 fi
19671
19672
19673 CHECKRAD=checkrad.pl
19674 # Extract the first word of "perl", so it can be a program name with args.
19675 set dummy perl; ac_word=$2
19676 echo "$as_me:$LINENO: checking for $ac_word" >&5
19677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19678 if test "${ac_cv_path_PERL+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   case $PERL in
19682   [\\/]* | ?:[\\/]*)
19683   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19684   ;;
19685   *)
19686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19687 for as_dir in $PATH
19688 do
19689   IFS=$as_save_IFS
19690   test -z "$as_dir" && as_dir=.
19691   for ac_exec_ext in '' $ac_executable_extensions; do
19692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19693     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19695     break 2
19696   fi
19697 done
19698 done
19699
19700   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19701   ;;
19702 esac
19703 fi
19704 PERL=$ac_cv_path_PERL
19705
19706 if test -n "$PERL"; then
19707   echo "$as_me:$LINENO: result: $PERL" >&5
19708 echo "${ECHO_T}$PERL" >&6
19709 else
19710   echo "$as_me:$LINENO: result: no" >&5
19711 echo "${ECHO_T}no" >&6
19712 fi
19713
19714 if test "x$ac_cv_path_PERL" = "x"; then
19715   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19716 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19717 fi
19718 # Extract the first word of "snmpget", so it can be a program name with args.
19719 set dummy snmpget; ac_word=$2
19720 echo "$as_me:$LINENO: checking for $ac_word" >&5
19721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19722 if test "${ac_cv_path_SNMPGET+set}" = set; then
19723   echo $ECHO_N "(cached) $ECHO_C" >&6
19724 else
19725   case $SNMPGET in
19726   [\\/]* | ?:[\\/]*)
19727   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19728   ;;
19729   *)
19730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19731 for as_dir in $PATH
19732 do
19733   IFS=$as_save_IFS
19734   test -z "$as_dir" && as_dir=.
19735   for ac_exec_ext in '' $ac_executable_extensions; do
19736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19737     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19739     break 2
19740   fi
19741 done
19742 done
19743
19744   ;;
19745 esac
19746 fi
19747 SNMPGET=$ac_cv_path_SNMPGET
19748
19749 if test -n "$SNMPGET"; then
19750   echo "$as_me:$LINENO: result: $SNMPGET" >&5
19751 echo "${ECHO_T}$SNMPGET" >&6
19752 else
19753   echo "$as_me:$LINENO: result: no" >&5
19754 echo "${ECHO_T}no" >&6
19755 fi
19756
19757 if test "x$ac_cv_path_SNMPGET" = "x"; then
19758   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19759 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19760 fi
19761
19762 # Extract the first word of "snmpwalk", so it can be a program name with args.
19763 set dummy snmpwalk; ac_word=$2
19764 echo "$as_me:$LINENO: checking for $ac_word" >&5
19765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19766 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769   case $SNMPWALK in
19770   [\\/]* | ?:[\\/]*)
19771   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19772   ;;
19773   *)
19774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19775 for as_dir in $PATH
19776 do
19777   IFS=$as_save_IFS
19778   test -z "$as_dir" && as_dir=.
19779   for ac_exec_ext in '' $ac_executable_extensions; do
19780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19781     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19783     break 2
19784   fi
19785 done
19786 done
19787
19788   ;;
19789 esac
19790 fi
19791 SNMPWALK=$ac_cv_path_SNMPWALK
19792
19793 if test -n "$SNMPWALK"; then
19794   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19795 echo "${ECHO_T}$SNMPWALK" >&6
19796 else
19797   echo "$as_me:$LINENO: result: no" >&5
19798 echo "${ECHO_T}no" >&6
19799 fi
19800
19801 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19802   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19803 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19804 fi
19805
19806 # Extract the first word of "rusers", so it can be a program name with args.
19807 set dummy rusers; ac_word=$2
19808 echo "$as_me:$LINENO: checking for $ac_word" >&5
19809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19810 if test "${ac_cv_path_RUSERS+set}" = set; then
19811   echo $ECHO_N "(cached) $ECHO_C" >&6
19812 else
19813   case $RUSERS in
19814   [\\/]* | ?:[\\/]*)
19815   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19816   ;;
19817   *)
19818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819 for as_dir in $PATH
19820 do
19821   IFS=$as_save_IFS
19822   test -z "$as_dir" && as_dir=.
19823   for ac_exec_ext in '' $ac_executable_extensions; do
19824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19825     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19827     break 2
19828   fi
19829 done
19830 done
19831
19832   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19833   ;;
19834 esac
19835 fi
19836 RUSERS=$ac_cv_path_RUSERS
19837
19838 if test -n "$RUSERS"; then
19839   echo "$as_me:$LINENO: result: $RUSERS" >&5
19840 echo "${ECHO_T}$RUSERS" >&6
19841 else
19842   echo "$as_me:$LINENO: result: no" >&5
19843 echo "${ECHO_T}no" >&6
19844 fi
19845
19846
19847 missing_dir=`cd $ac_aux_dir && pwd`
19848 # expand $ac_aux_dir to an absolute path
19849 am_aux_dir=`cd $ac_aux_dir && pwd`
19850
19851 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19852 # Use eval to expand $SHELL
19853 if eval "$MISSING --run true"; then
19854   am_missing_run="$MISSING --run "
19855 else
19856   am_missing_run=
19857   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19858 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19859 fi
19860
19861
19862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19863
19864
19865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19866
19867
19868 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19869
19870
19871 # Extract the first word of "locate", so it can be a program name with args.
19872 set dummy locate; ac_word=$2
19873 echo "$as_me:$LINENO: checking for $ac_word" >&5
19874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19875 if test "${ac_cv_path_LOCATE+set}" = set; then
19876   echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878   case $LOCATE in
19879   [\\/]* | ?:[\\/]*)
19880   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19881   ;;
19882   *)
19883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19884 for as_dir in $PATH
19885 do
19886   IFS=$as_save_IFS
19887   test -z "$as_dir" && as_dir=.
19888   for ac_exec_ext in '' $ac_executable_extensions; do
19889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19890     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19892     break 2
19893   fi
19894 done
19895 done
19896
19897   ;;
19898 esac
19899 fi
19900 LOCATE=$ac_cv_path_LOCATE
19901
19902 if test -n "$LOCATE"; then
19903   echo "$as_me:$LINENO: result: $LOCATE" >&5
19904 echo "${ECHO_T}$LOCATE" >&6
19905 else
19906   echo "$as_me:$LINENO: result: no" >&5
19907 echo "${ECHO_T}no" >&6
19908 fi
19909
19910 # Extract the first word of "dirname", so it can be a program name with args.
19911 set dummy dirname; ac_word=$2
19912 echo "$as_me:$LINENO: checking for $ac_word" >&5
19913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19914 if test "${ac_cv_path_DIRNAME+set}" = set; then
19915   echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917   case $DIRNAME in
19918   [\\/]* | ?:[\\/]*)
19919   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19920   ;;
19921   *)
19922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19923 for as_dir in $PATH
19924 do
19925   IFS=$as_save_IFS
19926   test -z "$as_dir" && as_dir=.
19927   for ac_exec_ext in '' $ac_executable_extensions; do
19928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19929     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19931     break 2
19932   fi
19933 done
19934 done
19935
19936   ;;
19937 esac
19938 fi
19939 DIRNAME=$ac_cv_path_DIRNAME
19940
19941 if test -n "$DIRNAME"; then
19942   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19943 echo "${ECHO_T}$DIRNAME" >&6
19944 else
19945   echo "$as_me:$LINENO: result: no" >&5
19946 echo "${ECHO_T}no" >&6
19947 fi
19948
19949 # Extract the first word of "grep", so it can be a program name with args.
19950 set dummy grep; ac_word=$2
19951 echo "$as_me:$LINENO: checking for $ac_word" >&5
19952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19953 if test "${ac_cv_path_GREP+set}" = set; then
19954   echo $ECHO_N "(cached) $ECHO_C" >&6
19955 else
19956   case $GREP in
19957   [\\/]* | ?:[\\/]*)
19958   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19959   ;;
19960   *)
19961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19962 for as_dir in $PATH
19963 do
19964   IFS=$as_save_IFS
19965   test -z "$as_dir" && as_dir=.
19966   for ac_exec_ext in '' $ac_executable_extensions; do
19967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19968     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19970     break 2
19971   fi
19972 done
19973 done
19974
19975   ;;
19976 esac
19977 fi
19978 GREP=$ac_cv_path_GREP
19979
19980 if test -n "$GREP"; then
19981   echo "$as_me:$LINENO: result: $GREP" >&5
19982 echo "${ECHO_T}$GREP" >&6
19983 else
19984   echo "$as_me:$LINENO: result: no" >&5
19985 echo "${ECHO_T}no" >&6
19986 fi
19987
19988
19989
19990 old_CFLAGS=$CFLAGS
19991 if test "x$WITH_THREADS" = "xyes"; then
19992   if test $ac_cv_prog_suncc = "yes"; then
19993     CFLAGS="$CFLAGS -mt"
19994   fi
19995
19996
19997 for ac_header in pthread.h
19998 do
19999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20001   echo "$as_me:$LINENO: checking for $ac_header" >&5
20002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 fi
20006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20008 else
20009   # Is the header compilable?
20010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h.  */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h.  */
20018 $ac_includes_default
20019 #include <$ac_header>
20020 _ACEOF
20021 rm -f conftest.$ac_objext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023   (eval $ac_compile) 2>conftest.er1
20024   ac_status=$?
20025   grep -v '^ *+' conftest.er1 >conftest.err
20026   rm -f conftest.er1
20027   cat conftest.err >&5
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); } &&
20030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; } &&
20036          { ac_try='test -s conftest.$ac_objext'
20037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038   (eval $ac_try) 2>&5
20039   ac_status=$?
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); }; }; then
20042   ac_header_compiler=yes
20043 else
20044   echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047 ac_header_compiler=no
20048 fi
20049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20051 echo "${ECHO_T}$ac_header_compiler" >&6
20052
20053 # Is the header present?
20054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062 #include <$ac_header>
20063 _ACEOF
20064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } >/dev/null; then
20072   if test -s conftest.err; then
20073     ac_cpp_err=$ac_c_preproc_warn_flag
20074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20075   else
20076     ac_cpp_err=
20077   fi
20078 else
20079   ac_cpp_err=yes
20080 fi
20081 if test -z "$ac_cpp_err"; then
20082   ac_header_preproc=yes
20083 else
20084   echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20086
20087   ac_header_preproc=no
20088 fi
20089 rm -f conftest.err conftest.$ac_ext
20090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20091 echo "${ECHO_T}$ac_header_preproc" >&6
20092
20093 # So?  What about this header?
20094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20095   yes:no: )
20096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20100     ac_header_preproc=yes
20101     ;;
20102   no:yes:* )
20103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20115     (
20116       cat <<\_ASBOX
20117 ## ------------------------------------------ ##
20118 ## Report this to the AC_PACKAGE_NAME lists.  ##
20119 ## ------------------------------------------ ##
20120 _ASBOX
20121     ) |
20122       sed "s/^/$as_me: WARNING:     /" >&2
20123     ;;
20124 esac
20125 echo "$as_me:$LINENO: checking for $ac_header" >&5
20126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20128   echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130   eval "$as_ac_Header=\$ac_header_preproc"
20131 fi
20132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20134
20135 fi
20136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20137   cat >>confdefs.h <<_ACEOF
20138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20139 _ACEOF
20140
20141 else
20142    WITH_THREADS="no"
20143 fi
20144
20145 done
20146
20147
20148   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20149 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20150 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20151   echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153   ac_check_lib_save_LIBS=$LIBS
20154 LIBS="-lpthread  $LIBS"
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161
20162 /* Override any gcc2 internal prototype to avoid an error.  */
20163 #ifdef __cplusplus
20164 extern "C"
20165 #endif
20166 /* We use char because int might match the return type of a gcc2
20167    builtin and then its argument prototype would still apply.  */
20168 char pthread_create ();
20169 int
20170 main ()
20171 {
20172 pthread_create ();
20173   ;
20174   return 0;
20175 }
20176 _ACEOF
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20179   (eval $ac_link) 2>conftest.er1
20180   ac_status=$?
20181   grep -v '^ *+' conftest.er1 >conftest.err
20182   rm -f conftest.er1
20183   cat conftest.err >&5
20184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); } &&
20186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188   (eval $ac_try) 2>&5
20189   ac_status=$?
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); }; } &&
20192          { ac_try='test -s conftest$ac_exeext'
20193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194   (eval $ac_try) 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; }; then
20198   ac_cv_lib_pthread_pthread_create=yes
20199 else
20200   echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20202
20203 ac_cv_lib_pthread_pthread_create=no
20204 fi
20205 rm -f conftest.err conftest.$ac_objext \
20206       conftest$ac_exeext conftest.$ac_ext
20207 LIBS=$ac_check_lib_save_LIBS
20208 fi
20209 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20210 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20211 if test $ac_cv_lib_pthread_pthread_create = yes; then
20212    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20213                   LIBS="$LIBS -lpthread"
20214 else
20215   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20216 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20217 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20218   echo $ECHO_N "(cached) $ECHO_C" >&6
20219 else
20220   ac_check_lib_save_LIBS=$LIBS
20221 LIBS="-lc_r  $LIBS"
20222 cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h.  */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h.  */
20228
20229 /* Override any gcc2 internal prototype to avoid an error.  */
20230 #ifdef __cplusplus
20231 extern "C"
20232 #endif
20233 /* We use char because int might match the return type of a gcc2
20234    builtin and then its argument prototype would still apply.  */
20235 char pthread_create ();
20236 int
20237 main ()
20238 {
20239 pthread_create ();
20240   ;
20241   return 0;
20242 }
20243 _ACEOF
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20246   (eval $ac_link) 2>conftest.er1
20247   ac_status=$?
20248   grep -v '^ *+' conftest.er1 >conftest.err
20249   rm -f conftest.er1
20250   cat conftest.err >&5
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); } &&
20253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255   (eval $ac_try) 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); }; } &&
20259          { ac_try='test -s conftest$ac_exeext'
20260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261   (eval $ac_try) 2>&5
20262   ac_status=$?
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); }; }; then
20265   ac_cv_lib_c_r_pthread_create=yes
20266 else
20267   echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270 ac_cv_lib_c_r_pthread_create=no
20271 fi
20272 rm -f conftest.err conftest.$ac_objext \
20273       conftest$ac_exeext conftest.$ac_ext
20274 LIBS=$ac_check_lib_save_LIBS
20275 fi
20276 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20277 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20278 if test $ac_cv_lib_c_r_pthread_create = yes; then
20279    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20280 else
20281    WITH_THREADS="no"
20282
20283 fi
20284
20285
20286 fi
20287
20288 fi
20289
20290 if test "x$WITH_THREADS" != "xyes"; then
20291   CFLAGS=$old_CFLAGS
20292   ac_cv_header_pthread_h="no"
20293   WITH_THREADS=no
20294 else
20295
20296   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20297 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
20298 if test "${ac_cv_search_sem_init+set}" = set; then
20299   echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301   ac_func_search_save_LIBS=$LIBS
20302 ac_cv_search_sem_init=no
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h.  */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h.  */
20309
20310 /* Override any gcc2 internal prototype to avoid an error.  */
20311 #ifdef __cplusplus
20312 extern "C"
20313 #endif
20314 /* We use char because int might match the return type of a gcc2
20315    builtin and then its argument prototype would still apply.  */
20316 char sem_init ();
20317 int
20318 main ()
20319 {
20320 sem_init ();
20321   ;
20322   return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20327   (eval $ac_link) 2>conftest.er1
20328   ac_status=$?
20329   grep -v '^ *+' conftest.er1 >conftest.err
20330   rm -f conftest.er1
20331   cat conftest.err >&5
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); } &&
20334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336   (eval $ac_try) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; } &&
20340          { ac_try='test -s conftest$ac_exeext'
20341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342   (eval $ac_try) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); }; }; then
20346   ac_cv_search_sem_init="none required"
20347 else
20348   echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 fi
20352 rm -f conftest.err conftest.$ac_objext \
20353       conftest$ac_exeext conftest.$ac_ext
20354 if test "$ac_cv_search_sem_init" = no; then
20355   for ac_lib in pthread sem posix4 rt semaphore; do
20356     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20357     cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363
20364 /* Override any gcc2 internal prototype to avoid an error.  */
20365 #ifdef __cplusplus
20366 extern "C"
20367 #endif
20368 /* We use char because int might match the return type of a gcc2
20369    builtin and then its argument prototype would still apply.  */
20370 char sem_init ();
20371 int
20372 main ()
20373 {
20374 sem_init ();
20375   ;
20376   return 0;
20377 }
20378 _ACEOF
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381   (eval $ac_link) 2>conftest.er1
20382   ac_status=$?
20383   grep -v '^ *+' conftest.er1 >conftest.err
20384   rm -f conftest.er1
20385   cat conftest.err >&5
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); } &&
20388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390   (eval $ac_try) 2>&5
20391   ac_status=$?
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); }; } &&
20394          { ac_try='test -s conftest$ac_exeext'
20395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396   (eval $ac_try) 2>&5
20397   ac_status=$?
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); }; }; then
20400   ac_cv_search_sem_init="-l$ac_lib"
20401 break
20402 else
20403   echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20405
20406 fi
20407 rm -f conftest.err conftest.$ac_objext \
20408       conftest$ac_exeext conftest.$ac_ext
20409   done
20410 fi
20411 LIBS=$ac_func_search_save_LIBS
20412 fi
20413 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20414 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
20415 if test "$ac_cv_search_sem_init" != no; then
20416   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
20417
20418 else
20419   { { 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
20420 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;}
20421    { (exit 1); exit 1; }; }
20422
20423 fi
20424
20425 fi
20426
20427
20428 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20429 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
20430 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20431   echo $ECHO_N "(cached) $ECHO_C" >&6
20432 else
20433   ac_check_lib_save_LIBS=$LIBS
20434 LIBS="-lsocket  $LIBS"
20435 cat >conftest.$ac_ext <<_ACEOF
20436 /* confdefs.h.  */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h.  */
20441
20442 /* Override any gcc2 internal prototype to avoid an error.  */
20443 #ifdef __cplusplus
20444 extern "C"
20445 #endif
20446 /* We use char because int might match the return type of a gcc2
20447    builtin and then its argument prototype would still apply.  */
20448 char getsockname ();
20449 int
20450 main ()
20451 {
20452 getsockname ();
20453   ;
20454   return 0;
20455 }
20456 _ACEOF
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20459   (eval $ac_link) 2>conftest.er1
20460   ac_status=$?
20461   grep -v '^ *+' conftest.er1 >conftest.err
20462   rm -f conftest.er1
20463   cat conftest.err >&5
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); } &&
20466          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468   (eval $ac_try) 2>&5
20469   ac_status=$?
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); }; } &&
20472          { ac_try='test -s conftest$ac_exeext'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; }; then
20478   ac_cv_lib_socket_getsockname=yes
20479 else
20480   echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_cv_lib_socket_getsockname=no
20484 fi
20485 rm -f conftest.err conftest.$ac_objext \
20486       conftest$ac_exeext conftest.$ac_ext
20487 LIBS=$ac_check_lib_save_LIBS
20488 fi
20489 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20490 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20491 if test $ac_cv_lib_socket_getsockname = yes; then
20492   cat >>confdefs.h <<_ACEOF
20493 #define HAVE_LIBSOCKET 1
20494 _ACEOF
20495
20496   LIBS="-lsocket $LIBS"
20497
20498 fi
20499
20500
20501
20502 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20503 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20504 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20505   echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507   ac_check_lib_save_LIBS=$LIBS
20508 LIBS="-lresolv  $LIBS"
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515
20516 /* Override any gcc2 internal prototype to avoid an error.  */
20517 #ifdef __cplusplus
20518 extern "C"
20519 #endif
20520 /* We use char because int might match the return type of a gcc2
20521    builtin and then its argument prototype would still apply.  */
20522 char inet_aton ();
20523 int
20524 main ()
20525 {
20526 inet_aton ();
20527   ;
20528   return 0;
20529 }
20530 _ACEOF
20531 rm -f conftest.$ac_objext conftest$ac_exeext
20532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20533   (eval $ac_link) 2>conftest.er1
20534   ac_status=$?
20535   grep -v '^ *+' conftest.er1 >conftest.err
20536   rm -f conftest.er1
20537   cat conftest.err >&5
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); } &&
20540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542   (eval $ac_try) 2>&5
20543   ac_status=$?
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; } &&
20546          { ac_try='test -s conftest$ac_exeext'
20547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548   (eval $ac_try) 2>&5
20549   ac_status=$?
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); }; }; then
20552   ac_cv_lib_resolv_inet_aton=yes
20553 else
20554   echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557 ac_cv_lib_resolv_inet_aton=no
20558 fi
20559 rm -f conftest.err conftest.$ac_objext \
20560       conftest$ac_exeext conftest.$ac_ext
20561 LIBS=$ac_check_lib_save_LIBS
20562 fi
20563 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20564 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20565 if test $ac_cv_lib_resolv_inet_aton = yes; then
20566   cat >>confdefs.h <<_ACEOF
20567 #define HAVE_LIBRESOLV 1
20568 _ACEOF
20569
20570   LIBS="-lresolv $LIBS"
20571
20572 fi
20573
20574
20575
20576 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20577 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20578 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20579   echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581   ac_check_lib_save_LIBS=$LIBS
20582 LIBS="-lnsl  $LIBS"
20583 cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589
20590 /* Override any gcc2 internal prototype to avoid an error.  */
20591 #ifdef __cplusplus
20592 extern "C"
20593 #endif
20594 /* We use char because int might match the return type of a gcc2
20595    builtin and then its argument prototype would still apply.  */
20596 char inet_ntoa ();
20597 int
20598 main ()
20599 {
20600 inet_ntoa ();
20601   ;
20602   return 0;
20603 }
20604 _ACEOF
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20607   (eval $ac_link) 2>conftest.er1
20608   ac_status=$?
20609   grep -v '^ *+' conftest.er1 >conftest.err
20610   rm -f conftest.er1
20611   cat conftest.err >&5
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } &&
20614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616   (eval $ac_try) 2>&5
20617   ac_status=$?
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); }; } &&
20620          { ac_try='test -s conftest$ac_exeext'
20621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622   (eval $ac_try) 2>&5
20623   ac_status=$?
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); }; }; then
20626   ac_cv_lib_nsl_inet_ntoa=yes
20627 else
20628   echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20630
20631 ac_cv_lib_nsl_inet_ntoa=no
20632 fi
20633 rm -f conftest.err conftest.$ac_objext \
20634       conftest$ac_exeext conftest.$ac_ext
20635 LIBS=$ac_check_lib_save_LIBS
20636 fi
20637 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20638 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20639 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20640   cat >>confdefs.h <<_ACEOF
20641 #define HAVE_LIBNSL 1
20642 _ACEOF
20643
20644   LIBS="-lnsl $LIBS"
20645
20646 fi
20647
20648
20649
20650 case "$host" in
20651 *-interix*)
20652         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20653         ;;
20654 *-darwin*)
20655         CFLAGS="$CFLAGS -DDARWIN"
20656         ;;
20657 esac
20658
20659
20660
20661
20662
20663
20664 ac_header_dirent=no
20665 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20666   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20667 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20668 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20670   echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672   cat >conftest.$ac_ext <<_ACEOF
20673 /* confdefs.h.  */
20674 _ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h.  */
20678 #include <sys/types.h>
20679 #include <$ac_hdr>
20680
20681 int
20682 main ()
20683 {
20684 if ((DIR *) 0)
20685 return 0;
20686   ;
20687   return 0;
20688 }
20689 _ACEOF
20690 rm -f conftest.$ac_objext
20691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20692   (eval $ac_compile) 2>conftest.er1
20693   ac_status=$?
20694   grep -v '^ *+' conftest.er1 >conftest.err
20695   rm -f conftest.er1
20696   cat conftest.err >&5
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); } &&
20699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701   (eval $ac_try) 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); }; } &&
20705          { ac_try='test -s conftest.$ac_objext'
20706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707   (eval $ac_try) 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); }; }; then
20711   eval "$as_ac_Header=yes"
20712 else
20713   echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20715
20716 eval "$as_ac_Header=no"
20717 fi
20718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20719 fi
20720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20723   cat >>confdefs.h <<_ACEOF
20724 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20725 _ACEOF
20726
20727 ac_header_dirent=$ac_hdr; break
20728 fi
20729
20730 done
20731 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20732 if test $ac_header_dirent = dirent.h; then
20733   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20735 if test "${ac_cv_search_opendir+set}" = set; then
20736   echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738   ac_func_search_save_LIBS=$LIBS
20739 ac_cv_search_opendir=no
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746
20747 /* Override any gcc2 internal prototype to avoid an error.  */
20748 #ifdef __cplusplus
20749 extern "C"
20750 #endif
20751 /* We use char because int might match the return type of a gcc2
20752    builtin and then its argument prototype would still apply.  */
20753 char opendir ();
20754 int
20755 main ()
20756 {
20757 opendir ();
20758   ;
20759   return 0;
20760 }
20761 _ACEOF
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764   (eval $ac_link) 2>conftest.er1
20765   ac_status=$?
20766   grep -v '^ *+' conftest.er1 >conftest.err
20767   rm -f conftest.er1
20768   cat conftest.err >&5
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); } &&
20771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773   (eval $ac_try) 2>&5
20774   ac_status=$?
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); }; } &&
20777          { ac_try='test -s conftest$ac_exeext'
20778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779   (eval $ac_try) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; }; then
20783   ac_cv_search_opendir="none required"
20784 else
20785   echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 fi
20789 rm -f conftest.err conftest.$ac_objext \
20790       conftest$ac_exeext conftest.$ac_ext
20791 if test "$ac_cv_search_opendir" = no; then
20792   for ac_lib in dir; do
20793     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20794     cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h.  */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h.  */
20800
20801 /* Override any gcc2 internal prototype to avoid an error.  */
20802 #ifdef __cplusplus
20803 extern "C"
20804 #endif
20805 /* We use char because int might match the return type of a gcc2
20806    builtin and then its argument prototype would still apply.  */
20807 char opendir ();
20808 int
20809 main ()
20810 {
20811 opendir ();
20812   ;
20813   return 0;
20814 }
20815 _ACEOF
20816 rm -f conftest.$ac_objext conftest$ac_exeext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20818   (eval $ac_link) 2>conftest.er1
20819   ac_status=$?
20820   grep -v '^ *+' conftest.er1 >conftest.err
20821   rm -f conftest.er1
20822   cat conftest.err >&5
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); } &&
20825          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827   (eval $ac_try) 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); }; } &&
20831          { ac_try='test -s conftest$ac_exeext'
20832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833   (eval $ac_try) 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); }; }; then
20837   ac_cv_search_opendir="-l$ac_lib"
20838 break
20839 else
20840   echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 fi
20844 rm -f conftest.err conftest.$ac_objext \
20845       conftest$ac_exeext conftest.$ac_ext
20846   done
20847 fi
20848 LIBS=$ac_func_search_save_LIBS
20849 fi
20850 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20851 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20852 if test "$ac_cv_search_opendir" != no; then
20853   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20854
20855 fi
20856
20857 else
20858   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20860 if test "${ac_cv_search_opendir+set}" = set; then
20861   echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863   ac_func_search_save_LIBS=$LIBS
20864 ac_cv_search_opendir=no
20865 cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871
20872 /* Override any gcc2 internal prototype to avoid an error.  */
20873 #ifdef __cplusplus
20874 extern "C"
20875 #endif
20876 /* We use char because int might match the return type of a gcc2
20877    builtin and then its argument prototype would still apply.  */
20878 char opendir ();
20879 int
20880 main ()
20881 {
20882 opendir ();
20883   ;
20884   return 0;
20885 }
20886 _ACEOF
20887 rm -f conftest.$ac_objext conftest$ac_exeext
20888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20889   (eval $ac_link) 2>conftest.er1
20890   ac_status=$?
20891   grep -v '^ *+' conftest.er1 >conftest.err
20892   rm -f conftest.er1
20893   cat conftest.err >&5
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); } &&
20896          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898   (eval $ac_try) 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); }; } &&
20902          { ac_try='test -s conftest$ac_exeext'
20903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904   (eval $ac_try) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); }; }; then
20908   ac_cv_search_opendir="none required"
20909 else
20910   echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20912
20913 fi
20914 rm -f conftest.err conftest.$ac_objext \
20915       conftest$ac_exeext conftest.$ac_ext
20916 if test "$ac_cv_search_opendir" = no; then
20917   for ac_lib in x; do
20918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20919     cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h.  */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h.  */
20925
20926 /* Override any gcc2 internal prototype to avoid an error.  */
20927 #ifdef __cplusplus
20928 extern "C"
20929 #endif
20930 /* We use char because int might match the return type of a gcc2
20931    builtin and then its argument prototype would still apply.  */
20932 char opendir ();
20933 int
20934 main ()
20935 {
20936 opendir ();
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943   (eval $ac_link) 2>conftest.er1
20944   ac_status=$?
20945   grep -v '^ *+' conftest.er1 >conftest.err
20946   rm -f conftest.er1
20947   cat conftest.err >&5
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); } &&
20950          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952   (eval $ac_try) 2>&5
20953   ac_status=$?
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); }; } &&
20956          { ac_try='test -s conftest$ac_exeext'
20957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958   (eval $ac_try) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); }; }; then
20962   ac_cv_search_opendir="-l$ac_lib"
20963 break
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968 fi
20969 rm -f conftest.err conftest.$ac_objext \
20970       conftest$ac_exeext conftest.$ac_ext
20971   done
20972 fi
20973 LIBS=$ac_func_search_save_LIBS
20974 fi
20975 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20976 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20977 if test "$ac_cv_search_opendir" != no; then
20978   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20979
20980 fi
20981
20982 fi
20983
20984 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20985 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20986 if test "${ac_cv_header_stdc+set}" = set; then
20987   echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989   cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h.  */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h.  */
20995 #include <stdlib.h>
20996 #include <stdarg.h>
20997 #include <string.h>
20998 #include <float.h>
20999
21000 int
21001 main ()
21002 {
21003
21004   ;
21005   return 0;
21006 }
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21010   (eval $ac_compile) 2>conftest.er1
21011   ac_status=$?
21012   grep -v '^ *+' conftest.er1 >conftest.err
21013   rm -f conftest.er1
21014   cat conftest.err >&5
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); } &&
21017          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019   (eval $ac_try) 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); }; } &&
21023          { ac_try='test -s conftest.$ac_objext'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; }; then
21029   ac_cv_header_stdc=yes
21030 else
21031   echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21033
21034 ac_cv_header_stdc=no
21035 fi
21036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21037
21038 if test $ac_cv_header_stdc = yes; then
21039   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21040   cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h.  */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h.  */
21046 #include <string.h>
21047
21048 _ACEOF
21049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21050   $EGREP "memchr" >/dev/null 2>&1; then
21051   :
21052 else
21053   ac_cv_header_stdc=no
21054 fi
21055 rm -f conftest*
21056
21057 fi
21058
21059 if test $ac_cv_header_stdc = yes; then
21060   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21061   cat >conftest.$ac_ext <<_ACEOF
21062 /* confdefs.h.  */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h.  */
21067 #include <stdlib.h>
21068
21069 _ACEOF
21070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21071   $EGREP "free" >/dev/null 2>&1; then
21072   :
21073 else
21074   ac_cv_header_stdc=no
21075 fi
21076 rm -f conftest*
21077
21078 fi
21079
21080 if test $ac_cv_header_stdc = yes; then
21081   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21082   if test "$cross_compiling" = yes; then
21083   :
21084 else
21085   cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h.  */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h.  */
21091 #include <ctype.h>
21092 #if ((' ' & 0x0FF) == 0x020)
21093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21095 #else
21096 # define ISLOWER(c) \
21097                    (('a' <= (c) && (c) <= 'i') \
21098                      || ('j' <= (c) && (c) <= 'r') \
21099                      || ('s' <= (c) && (c) <= 'z'))
21100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21101 #endif
21102
21103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21104 int
21105 main ()
21106 {
21107   int i;
21108   for (i = 0; i < 256; i++)
21109     if (XOR (islower (i), ISLOWER (i))
21110         || toupper (i) != TOUPPER (i))
21111       exit(2);
21112   exit (0);
21113 }
21114 _ACEOF
21115 rm -f conftest$ac_exeext
21116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21117   (eval $ac_link) 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122   (eval $ac_try) 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); }; }; then
21126   :
21127 else
21128   echo "$as_me: program exited with status $ac_status" >&5
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132 ( exit $ac_status )
21133 ac_cv_header_stdc=no
21134 fi
21135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21136 fi
21137 fi
21138 fi
21139 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21140 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21141 if test $ac_cv_header_stdc = yes; then
21142
21143 cat >>confdefs.h <<\_ACEOF
21144 #define STDC_HEADERS 1
21145 _ACEOF
21146
21147 fi
21148
21149 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21150 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21151 if test "${ac_cv_header_time+set}" = set; then
21152   echo $ECHO_N "(cached) $ECHO_C" >&6
21153 else
21154   cat >conftest.$ac_ext <<_ACEOF
21155 /* confdefs.h.  */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h.  */
21160 #include <sys/types.h>
21161 #include <sys/time.h>
21162 #include <time.h>
21163
21164 int
21165 main ()
21166 {
21167 if ((struct tm *) 0)
21168 return 0;
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175   (eval $ac_compile) 2>conftest.er1
21176   ac_status=$?
21177   grep -v '^ *+' conftest.er1 >conftest.err
21178   rm -f conftest.er1
21179   cat conftest.err >&5
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); } &&
21182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184   (eval $ac_try) 2>&5
21185   ac_status=$?
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); }; } &&
21188          { ac_try='test -s conftest.$ac_objext'
21189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190   (eval $ac_try) 2>&5
21191   ac_status=$?
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); }; }; then
21194   ac_cv_header_time=yes
21195 else
21196   echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21198
21199 ac_cv_header_time=no
21200 fi
21201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21202 fi
21203 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21204 echo "${ECHO_T}$ac_cv_header_time" >&6
21205 if test $ac_cv_header_time = yes; then
21206
21207 cat >>confdefs.h <<\_ACEOF
21208 #define TIME_WITH_SYS_TIME 1
21209 _ACEOF
21210
21211 fi
21212
21213 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21214 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21215 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21216   echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218   cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h.  */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h.  */
21224 #include <sys/types.h>
21225 #include <sys/wait.h>
21226 #ifndef WEXITSTATUS
21227 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21228 #endif
21229 #ifndef WIFEXITED
21230 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21231 #endif
21232
21233 int
21234 main ()
21235 {
21236   int s;
21237   wait (&s);
21238   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245   (eval $ac_compile) 2>conftest.er1
21246   ac_status=$?
21247   grep -v '^ *+' conftest.er1 >conftest.err
21248   rm -f conftest.er1
21249   cat conftest.err >&5
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); } &&
21252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254   (eval $ac_try) 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); }; } &&
21258          { ac_try='test -s conftest.$ac_objext'
21259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260   (eval $ac_try) 2>&5
21261   ac_status=$?
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); }; }; then
21264   ac_cv_header_sys_wait_h=yes
21265 else
21266   echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21268
21269 ac_cv_header_sys_wait_h=no
21270 fi
21271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21272 fi
21273 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21274 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21275 if test $ac_cv_header_sys_wait_h = yes; then
21276
21277 cat >>confdefs.h <<\_ACEOF
21278 #define HAVE_SYS_WAIT_H 1
21279 _ACEOF
21280
21281 fi
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313 for ac_header in \
21314         unistd.h \
21315         crypt.h \
21316         errno.h \
21317         resource.h \
21318         getopt.h \
21319         malloc.h \
21320         utmp.h \
21321         utmpx.h \
21322         signal.h \
21323         sys/select.h \
21324         syslog.h \
21325         inttypes.h \
21326         stdint.h \
21327         stdio.h \
21328         netdb.h \
21329         semaphore.h \
21330         arpa/inet.h \
21331         netinet/in.h \
21332         sys/types.h \
21333         sys/socket.h \
21334         sys/time.h \
21335         sys/wait.h \
21336         sys/security.h \
21337         fcntl.h \
21338         sys/fcntl.h \
21339         net/if.h \
21340         prot.h \
21341         sia.h \
21342         siad.h
21343
21344 do
21345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21347   echo "$as_me:$LINENO: checking for $ac_header" >&5
21348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21350   echo $ECHO_N "(cached) $ECHO_C" >&6
21351 fi
21352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21354 else
21355   # Is the header compilable?
21356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21358 cat >conftest.$ac_ext <<_ACEOF
21359 /* confdefs.h.  */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h.  */
21364 $ac_includes_default
21365 #include <$ac_header>
21366 _ACEOF
21367 rm -f conftest.$ac_objext
21368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21369   (eval $ac_compile) 2>conftest.er1
21370   ac_status=$?
21371   grep -v '^ *+' conftest.er1 >conftest.err
21372   rm -f conftest.er1
21373   cat conftest.err >&5
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); } &&
21376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378   (eval $ac_try) 2>&5
21379   ac_status=$?
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); }; } &&
21382          { ac_try='test -s conftest.$ac_objext'
21383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384   (eval $ac_try) 2>&5
21385   ac_status=$?
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); }; }; then
21388   ac_header_compiler=yes
21389 else
21390   echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393 ac_header_compiler=no
21394 fi
21395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21397 echo "${ECHO_T}$ac_header_compiler" >&6
21398
21399 # Is the header present?
21400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21402 cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h.  */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h.  */
21408 #include <$ac_header>
21409 _ACEOF
21410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21412   ac_status=$?
21413   grep -v '^ *+' conftest.er1 >conftest.err
21414   rm -f conftest.er1
21415   cat conftest.err >&5
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } >/dev/null; then
21418   if test -s conftest.err; then
21419     ac_cpp_err=$ac_c_preproc_warn_flag
21420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21421   else
21422     ac_cpp_err=
21423   fi
21424 else
21425   ac_cpp_err=yes
21426 fi
21427 if test -z "$ac_cpp_err"; then
21428   ac_header_preproc=yes
21429 else
21430   echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21432
21433   ac_header_preproc=no
21434 fi
21435 rm -f conftest.err conftest.$ac_ext
21436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21437 echo "${ECHO_T}$ac_header_preproc" >&6
21438
21439 # So?  What about this header?
21440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21441   yes:no: )
21442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21446     ac_header_preproc=yes
21447     ;;
21448   no:yes:* )
21449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21461     (
21462       cat <<\_ASBOX
21463 ## ------------------------------------------ ##
21464 ## Report this to the AC_PACKAGE_NAME lists.  ##
21465 ## ------------------------------------------ ##
21466 _ASBOX
21467     ) |
21468       sed "s/^/$as_me: WARNING:     /" >&2
21469     ;;
21470 esac
21471 echo "$as_me:$LINENO: checking for $ac_header" >&5
21472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21474   echo $ECHO_N "(cached) $ECHO_C" >&6
21475 else
21476   eval "$as_ac_Header=\$ac_header_preproc"
21477 fi
21478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21480
21481 fi
21482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21483   cat >>confdefs.h <<_ACEOF
21484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21485 _ACEOF
21486
21487 fi
21488
21489 done
21490
21491
21492 REGEX=no
21493 if test "${ac_cv_header_regex_h+set}" = set; then
21494   echo "$as_me:$LINENO: checking for regex.h" >&5
21495 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21496 if test "${ac_cv_header_regex_h+set}" = set; then
21497   echo $ECHO_N "(cached) $ECHO_C" >&6
21498 fi
21499 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21500 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21501 else
21502   # Is the header compilable?
21503 echo "$as_me:$LINENO: checking regex.h usability" >&5
21504 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511 $ac_includes_default
21512 #include <regex.h>
21513 _ACEOF
21514 rm -f conftest.$ac_objext
21515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21516   (eval $ac_compile) 2>conftest.er1
21517   ac_status=$?
21518   grep -v '^ *+' conftest.er1 >conftest.err
21519   rm -f conftest.er1
21520   cat conftest.err >&5
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); } &&
21523          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525   (eval $ac_try) 2>&5
21526   ac_status=$?
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); }; } &&
21529          { ac_try='test -s conftest.$ac_objext'
21530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531   (eval $ac_try) 2>&5
21532   ac_status=$?
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); }; }; then
21535   ac_header_compiler=yes
21536 else
21537   echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21539
21540 ac_header_compiler=no
21541 fi
21542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21544 echo "${ECHO_T}$ac_header_compiler" >&6
21545
21546 # Is the header present?
21547 echo "$as_me:$LINENO: checking regex.h presence" >&5
21548 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21549 cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555 #include <regex.h>
21556 _ACEOF
21557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21559   ac_status=$?
21560   grep -v '^ *+' conftest.er1 >conftest.err
21561   rm -f conftest.er1
21562   cat conftest.err >&5
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); } >/dev/null; then
21565   if test -s conftest.err; then
21566     ac_cpp_err=$ac_c_preproc_warn_flag
21567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21568   else
21569     ac_cpp_err=
21570   fi
21571 else
21572   ac_cpp_err=yes
21573 fi
21574 if test -z "$ac_cpp_err"; then
21575   ac_header_preproc=yes
21576 else
21577   echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21579
21580   ac_header_preproc=no
21581 fi
21582 rm -f conftest.err conftest.$ac_ext
21583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21584 echo "${ECHO_T}$ac_header_preproc" >&6
21585
21586 # So?  What about this header?
21587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21588   yes:no: )
21589     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21590 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21591     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21592 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21593     ac_header_preproc=yes
21594     ;;
21595   no:yes:* )
21596     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21597 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21598     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21599 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21600     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21601 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21602     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21603 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21604     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21605 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21606     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21607 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21608     (
21609       cat <<\_ASBOX
21610 ## ------------------------------------------ ##
21611 ## Report this to the AC_PACKAGE_NAME lists.  ##
21612 ## ------------------------------------------ ##
21613 _ASBOX
21614     ) |
21615       sed "s/^/$as_me: WARNING:     /" >&2
21616     ;;
21617 esac
21618 echo "$as_me:$LINENO: checking for regex.h" >&5
21619 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21620 if test "${ac_cv_header_regex_h+set}" = set; then
21621   echo $ECHO_N "(cached) $ECHO_C" >&6
21622 else
21623   ac_cv_header_regex_h=$ac_header_preproc
21624 fi
21625 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21626 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21627
21628 fi
21629 if test $ac_cv_header_regex_h = yes; then
21630
21631 cat >>confdefs.h <<\_ACEOF
21632 #define HAVE_REGEX_H
21633 _ACEOF
21634
21635 fi
21636
21637
21638 if test "x$ac_cv_header_regex_h" = "xyes"; then
21639   REGEX_EXTENDED=no
21640   REGEX=yes
21641   cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 #include <regex.h>
21648      #ifdef REG_EXTENDED
21649        yes
21650      #endif
21651
21652 _ACEOF
21653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21654   $EGREP "yes" >/dev/null 2>&1; then
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define HAVE_REG_EXTENDED
21658 _ACEOF
21659  REGEX_EXTENDED=yes
21660 fi
21661 rm -f conftest*
21662
21663 fi
21664
21665
21666
21667 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21668 then
21669
21670 cat >>confdefs.h <<\_ACEOF
21671 #define OSFC2
21672 _ACEOF
21673
21674 fi
21675
21676 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21677 then
21678
21679 cat >>confdefs.h <<\_ACEOF
21680 #define OSFSIA
21681 _ACEOF
21682
21683 fi
21684
21685 smart_try_dir="$OPENSSL_INCLUDE_DIR"
21686 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
21687
21688
21689 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
21690 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21691 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
21692
21693 old_CFLAGS="$CFLAGS"
21694 smart_include=
21695 smart_include_dir=
21696
21697 if test "x$smart_try_dir" != "x"; then
21698   for try in $smart_try_dir; do
21699     CFLAGS="$old_CFLAGS -I$try"
21700     cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h.  */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h.  */
21706
21707                     #include <openssl/ssl.h>
21708 int
21709 main ()
21710 {
21711  int a = 1;
21712   ;
21713   return 0;
21714 }
21715 _ACEOF
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718   (eval $ac_compile) 2>conftest.er1
21719   ac_status=$?
21720   grep -v '^ *+' conftest.er1 >conftest.err
21721   rm -f conftest.er1
21722   cat conftest.err >&5
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); } &&
21725          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727   (eval $ac_try) 2>&5
21728   ac_status=$?
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); }; } &&
21731          { ac_try='test -s conftest.$ac_objext'
21732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733   (eval $ac_try) 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); }; }; then
21737   smart_include="-I$try"
21738 else
21739   echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21741
21742 smart_include=
21743 fi
21744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21745     if test "x$smart_include" != "x"; then
21746       break;
21747     fi
21748     CFLAGS="$old_CFLAGS"
21749   done
21750 fi
21751
21752 if test "x$smart_include" = "x"; then
21753   cat >conftest.$ac_ext <<_ACEOF
21754 /* confdefs.h.  */
21755 _ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h.  */
21759
21760                   #include <openssl/ssl.h>
21761 int
21762 main ()
21763 {
21764  int a = 1;
21765   ;
21766   return 0;
21767 }
21768 _ACEOF
21769 rm -f conftest.$ac_objext
21770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21771   (eval $ac_compile) 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } &&
21778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780   (eval $ac_try) 2>&5
21781   ac_status=$?
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); }; } &&
21784          { ac_try='test -s conftest.$ac_objext'
21785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786   (eval $ac_try) 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); }; }; then
21790   smart_include=" "
21791 else
21792   echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21794
21795 smart_include=
21796 fi
21797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21798 fi
21799
21800 if test "x$smart_include" = "x"; then
21801
21802
21803 if test "x$LOCATE" != "x"; then
21804         DIRS=
21805   file=openssl/ssl.h
21806
21807   for x in `${LOCATE} $file 2>/dev/null`; do
21808                                         base=`echo $x | sed "s%/${file}%%"`
21809     if test "x$x" = "x$base"; then
21810       continue;
21811     fi
21812
21813     dir=`${DIRNAME} $x 2>/dev/null`
21814                 exclude=`echo ${dir} | ${GREP} /home`
21815     if test "x$exclude" != "x"; then
21816       continue
21817     fi
21818
21819                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21820     if test "x$already" = "x"; then
21821       DIRS="$DIRS $dir"
21822     fi
21823   done
21824 fi
21825
21826 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21827
21828
21829   for try in $smart_include_dir /usr/local/include /opt/include; do
21830     CFLAGS="$old_CFLAGS -I$try"
21831     cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h.  */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h.  */
21837
21838                     #include <openssl/ssl.h>
21839 int
21840 main ()
21841 {
21842  int a = 1;
21843   ;
21844   return 0;
21845 }
21846 _ACEOF
21847 rm -f conftest.$ac_objext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21849   (eval $ac_compile) 2>conftest.er1
21850   ac_status=$?
21851   grep -v '^ *+' conftest.er1 >conftest.err
21852   rm -f conftest.er1
21853   cat conftest.err >&5
21854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855   (exit $ac_status); } &&
21856          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858   (eval $ac_try) 2>&5
21859   ac_status=$?
21860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861   (exit $ac_status); }; } &&
21862          { ac_try='test -s conftest.$ac_objext'
21863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864   (eval $ac_try) 2>&5
21865   ac_status=$?
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); }; }; then
21868   smart_include="-I$try"
21869 else
21870   echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21872
21873 smart_include=
21874 fi
21875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21876     if test "x$smart_include" != "x"; then
21877       break;
21878     fi
21879     CFLAGS="$old_CFLAGS"
21880   done
21881 fi
21882
21883 if test "x$smart_include" != "x"; then
21884   echo "$as_me:$LINENO: result: yes" >&5
21885 echo "${ECHO_T}yes" >&6
21886   eval "ac_cv_header_$ac_safe=yes"
21887   CFLAGS="$old_CFLAGS $smart_include"
21888   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21889 else
21890   echo "$as_me:$LINENO: result: no" >&5
21891 echo "${ECHO_T}no" >&6
21892 fi
21893
21894 OPENSSL_INCLUDE=
21895 OPENSSL_LIBS=
21896 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21897
21898 cat >>confdefs.h <<\_ACEOF
21899 #define HAVE_OPENSSL_SSL_H
21900 _ACEOF
21901
21902   old_CPPFLAGS="$CPPFLAGS"
21903   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21904       CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21905   fi
21906
21907
21908
21909
21910 for ac_header in \
21911           openssl/err.h \
21912           openssl/crypto.h \
21913           openssl/rand.h \
21914           openssl/engine.h
21915
21916 do
21917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21919   echo "$as_me:$LINENO: checking for $ac_header" >&5
21920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21922   echo $ECHO_N "(cached) $ECHO_C" >&6
21923 fi
21924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21926 else
21927   # Is the header compilable?
21928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21930 cat >conftest.$ac_ext <<_ACEOF
21931 /* confdefs.h.  */
21932 _ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h.  */
21936 $ac_includes_default
21937 #include <$ac_header>
21938 _ACEOF
21939 rm -f conftest.$ac_objext
21940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21941   (eval $ac_compile) 2>conftest.er1
21942   ac_status=$?
21943   grep -v '^ *+' conftest.er1 >conftest.err
21944   rm -f conftest.er1
21945   cat conftest.err >&5
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); } &&
21948          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950   (eval $ac_try) 2>&5
21951   ac_status=$?
21952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); }; } &&
21954          { ac_try='test -s conftest.$ac_objext'
21955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956   (eval $ac_try) 2>&5
21957   ac_status=$?
21958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959   (exit $ac_status); }; }; then
21960   ac_header_compiler=yes
21961 else
21962   echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21964
21965 ac_header_compiler=no
21966 fi
21967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21969 echo "${ECHO_T}$ac_header_compiler" >&6
21970
21971 # Is the header present?
21972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h.  */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h.  */
21980 #include <$ac_header>
21981 _ACEOF
21982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21984   ac_status=$?
21985   grep -v '^ *+' conftest.er1 >conftest.err
21986   rm -f conftest.er1
21987   cat conftest.err >&5
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); } >/dev/null; then
21990   if test -s conftest.err; then
21991     ac_cpp_err=$ac_c_preproc_warn_flag
21992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21993   else
21994     ac_cpp_err=
21995   fi
21996 else
21997   ac_cpp_err=yes
21998 fi
21999 if test -z "$ac_cpp_err"; then
22000   ac_header_preproc=yes
22001 else
22002   echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22004
22005   ac_header_preproc=no
22006 fi
22007 rm -f conftest.err conftest.$ac_ext
22008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22009 echo "${ECHO_T}$ac_header_preproc" >&6
22010
22011 # So?  What about this header?
22012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22013   yes:no: )
22014     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22018     ac_header_preproc=yes
22019     ;;
22020   no:yes:* )
22021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22023     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22024 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22025     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22027     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22028 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22031     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22033     (
22034       cat <<\_ASBOX
22035 ## ------------------------------------------ ##
22036 ## Report this to the AC_PACKAGE_NAME lists.  ##
22037 ## ------------------------------------------ ##
22038 _ASBOX
22039     ) |
22040       sed "s/^/$as_me: WARNING:     /" >&2
22041     ;;
22042 esac
22043 echo "$as_me:$LINENO: checking for $ac_header" >&5
22044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22046   echo $ECHO_N "(cached) $ECHO_C" >&6
22047 else
22048   eval "$as_ac_Header=\$ac_header_preproc"
22049 fi
22050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22052
22053 fi
22054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22055   cat >>confdefs.h <<_ACEOF
22056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22057 _ACEOF
22058
22059 fi
22060
22061 done
22062
22063   CPPFLAGS="$old_CPPFLAGS"
22064
22065   echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22066 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
22067        old_CPPFLAGS=$CPPFLAGS
22068        old_LIBS="$LIBS"
22069        if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22070            CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
22071            fi
22072        cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h.  */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h.  */
22078 #include <openssl/crypto.h>
22079        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22080         yes
22081        #endif
22082
22083 _ACEOF
22084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22085   $EGREP "yes" >/dev/null 2>&1; then
22086   goodssl="yes"
22087 fi
22088 rm -f conftest*
22089
22090            if test "x$goodssl" != "xyes"; then
22091              echo "$as_me:$LINENO: result: no" >&5
22092 echo "${ECHO_T}no" >&6
22093              OPENSSL_INCLUDE=
22094              OPENSSL_LIBS=
22095            else
22096              echo "$as_me:$LINENO: result: yes" >&5
22097 echo "${ECHO_T}yes" >&6
22098
22099              # Look for the OpenSSL libraries.
22100              smart_try_dir=$OPENSSL_LIB_DIR
22101
22102
22103 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
22104 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
22105 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
22106 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
22107
22108 old_LIBS="$LIBS"
22109 smart_lib=
22110 smart_lib_dir=
22111
22112 if test "x$smart_try_dir" != "x"; then
22113   for try in $smart_try_dir; do
22114     LIBS="-L$try -lcrypto $old_LIBS"
22115     cat >conftest.$ac_ext <<_ACEOF
22116 /* confdefs.h.  */
22117 _ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h.  */
22121 extern char DH_new();
22122 int
22123 main ()
22124 {
22125  DH_new()
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 rm -f conftest.$ac_objext conftest$ac_exeext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132   (eval $ac_link) 2>conftest.er1
22133   ac_status=$?
22134   grep -v '^ *+' conftest.er1 >conftest.err
22135   rm -f conftest.er1
22136   cat conftest.err >&5
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); } &&
22139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141   (eval $ac_try) 2>&5
22142   ac_status=$?
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); }; } &&
22145          { ac_try='test -s conftest$ac_exeext'
22146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147   (eval $ac_try) 2>&5
22148   ac_status=$?
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); }; }; then
22151   smart_lib="-L$try -lcrypto"
22152 else
22153   echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22155
22156 fi
22157 rm -f conftest.err conftest.$ac_objext \
22158       conftest$ac_exeext conftest.$ac_ext
22159     if test "x$smart_lib" != "x"; then
22160       break;
22161     fi
22162     LIBS="$old_LIBS"
22163   done
22164 fi
22165
22166 if test "x$smart_lib" = "x"; then
22167   LIBS="-lcrypto $old_LIBS"
22168   cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h.  */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h.  */
22174 extern char DH_new();
22175 int
22176 main ()
22177 {
22178  DH_new()
22179   ;
22180   return 0;
22181 }
22182 _ACEOF
22183 rm -f conftest.$ac_objext conftest$ac_exeext
22184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22185   (eval $ac_link) 2>conftest.er1
22186   ac_status=$?
22187   grep -v '^ *+' conftest.er1 >conftest.err
22188   rm -f conftest.er1
22189   cat conftest.err >&5
22190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191   (exit $ac_status); } &&
22192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194   (eval $ac_try) 2>&5
22195   ac_status=$?
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); }; } &&
22198          { ac_try='test -s conftest$ac_exeext'
22199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200   (eval $ac_try) 2>&5
22201   ac_status=$?
22202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203   (exit $ac_status); }; }; then
22204   smart_lib="-lcrypto"
22205 else
22206   echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22208
22209 fi
22210 rm -f conftest.err conftest.$ac_objext \
22211       conftest$ac_exeext conftest.$ac_ext
22212   LIBS="$old_LIBS"
22213 fi
22214
22215 if test "x$smart_lib" = "x"; then
22216
22217
22218 if test "x$LOCATE" != "x"; then
22219         DIRS=
22220   file=libcrypto${libltdl_cv_shlibext}
22221
22222   for x in `${LOCATE} $file 2>/dev/null`; do
22223                                         base=`echo $x | sed "s%/${file}%%"`
22224     if test "x$x" = "x$base"; then
22225       continue;
22226     fi
22227
22228     dir=`${DIRNAME} $x 2>/dev/null`
22229                 exclude=`echo ${dir} | ${GREP} /home`
22230     if test "x$exclude" != "x"; then
22231       continue
22232     fi
22233
22234                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22235     if test "x$already" = "x"; then
22236       DIRS="$DIRS $dir"
22237     fi
22238   done
22239 fi
22240
22241 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22242
22243
22244
22245 if test "x$LOCATE" != "x"; then
22246         DIRS=
22247   file=libcrypto.a
22248
22249   for x in `${LOCATE} $file 2>/dev/null`; do
22250                                         base=`echo $x | sed "s%/${file}%%"`
22251     if test "x$x" = "x$base"; then
22252       continue;
22253     fi
22254
22255     dir=`${DIRNAME} $x 2>/dev/null`
22256                 exclude=`echo ${dir} | ${GREP} /home`
22257     if test "x$exclude" != "x"; then
22258       continue
22259     fi
22260
22261                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22262     if test "x$already" = "x"; then
22263       DIRS="$DIRS $dir"
22264     fi
22265   done
22266 fi
22267
22268 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22269
22270
22271   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
22272     LIBS="-L$try -lcrypto $old_LIBS"
22273     cat >conftest.$ac_ext <<_ACEOF
22274 /* confdefs.h.  */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h.  */
22279 extern char DH_new();
22280 int
22281 main ()
22282 {
22283  DH_new()
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22290   (eval $ac_link) 2>conftest.er1
22291   ac_status=$?
22292   grep -v '^ *+' conftest.er1 >conftest.err
22293   rm -f conftest.er1
22294   cat conftest.err >&5
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } &&
22297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299   (eval $ac_try) 2>&5
22300   ac_status=$?
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); }; } &&
22303          { ac_try='test -s conftest$ac_exeext'
22304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305   (eval $ac_try) 2>&5
22306   ac_status=$?
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); }; }; then
22309   smart_lib="-L$try -lcrypto"
22310 else
22311   echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 fi
22315 rm -f conftest.err conftest.$ac_objext \
22316       conftest$ac_exeext conftest.$ac_ext
22317     if test "x$smart_lib" != "x"; then
22318       break;
22319     fi
22320     LIBS="$old_LIBS"
22321   done
22322 fi
22323
22324 if test "x$smart_lib" != "x"; then
22325   echo "$as_me:$LINENO: result: yes" >&5
22326 echo "${ECHO_T}yes" >&6
22327   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22328   LIBS="$smart_lib $old_LIBS"
22329   SMART_LIBS="$smart_lib $SMART_LIBS"
22330 else
22331   echo "$as_me:$LINENO: result: no" >&5
22332 echo "${ECHO_T}no" >&6
22333 fi
22334
22335              if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
22336
22337
22338 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
22339 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
22340 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
22341 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
22342
22343 old_LIBS="$LIBS"
22344 smart_lib=
22345 smart_lib_dir=
22346
22347 if test "x$smart_try_dir" != "x"; then
22348   for try in $smart_try_dir; do
22349     LIBS="-L$try -lssl $old_LIBS"
22350     cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h.  */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h.  */
22356 extern char SSL_new();
22357 int
22358 main ()
22359 {
22360  SSL_new()
22361   ;
22362   return 0;
22363 }
22364 _ACEOF
22365 rm -f conftest.$ac_objext conftest$ac_exeext
22366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22367   (eval $ac_link) 2>conftest.er1
22368   ac_status=$?
22369   grep -v '^ *+' conftest.er1 >conftest.err
22370   rm -f conftest.er1
22371   cat conftest.err >&5
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); } &&
22374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376   (eval $ac_try) 2>&5
22377   ac_status=$?
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); }; } &&
22380          { ac_try='test -s conftest$ac_exeext'
22381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382   (eval $ac_try) 2>&5
22383   ac_status=$?
22384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385   (exit $ac_status); }; }; then
22386   smart_lib="-L$try -lssl"
22387 else
22388   echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22390
22391 fi
22392 rm -f conftest.err conftest.$ac_objext \
22393       conftest$ac_exeext conftest.$ac_ext
22394     if test "x$smart_lib" != "x"; then
22395       break;
22396     fi
22397     LIBS="$old_LIBS"
22398   done
22399 fi
22400
22401 if test "x$smart_lib" = "x"; then
22402   LIBS="-lssl $old_LIBS"
22403   cat >conftest.$ac_ext <<_ACEOF
22404 /* confdefs.h.  */
22405 _ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h.  */
22409 extern char SSL_new();
22410 int
22411 main ()
22412 {
22413  SSL_new()
22414   ;
22415   return 0;
22416 }
22417 _ACEOF
22418 rm -f conftest.$ac_objext conftest$ac_exeext
22419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22420   (eval $ac_link) 2>conftest.er1
22421   ac_status=$?
22422   grep -v '^ *+' conftest.er1 >conftest.err
22423   rm -f conftest.er1
22424   cat conftest.err >&5
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); } &&
22427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429   (eval $ac_try) 2>&5
22430   ac_status=$?
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); }; } &&
22433          { ac_try='test -s conftest$ac_exeext'
22434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435   (eval $ac_try) 2>&5
22436   ac_status=$?
22437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438   (exit $ac_status); }; }; then
22439   smart_lib="-lssl"
22440 else
22441   echo "$as_me: failed program was:" >&5
22442 sed 's/^/| /' conftest.$ac_ext >&5
22443
22444 fi
22445 rm -f conftest.err conftest.$ac_objext \
22446       conftest$ac_exeext conftest.$ac_ext
22447   LIBS="$old_LIBS"
22448 fi
22449
22450 if test "x$smart_lib" = "x"; then
22451
22452
22453 if test "x$LOCATE" != "x"; then
22454         DIRS=
22455   file=libssl${libltdl_cv_shlibext}
22456
22457   for x in `${LOCATE} $file 2>/dev/null`; do
22458                                         base=`echo $x | sed "s%/${file}%%"`
22459     if test "x$x" = "x$base"; then
22460       continue;
22461     fi
22462
22463     dir=`${DIRNAME} $x 2>/dev/null`
22464                 exclude=`echo ${dir} | ${GREP} /home`
22465     if test "x$exclude" != "x"; then
22466       continue
22467     fi
22468
22469                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22470     if test "x$already" = "x"; then
22471       DIRS="$DIRS $dir"
22472     fi
22473   done
22474 fi
22475
22476 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22477
22478
22479
22480 if test "x$LOCATE" != "x"; then
22481         DIRS=
22482   file=libssl.a
22483
22484   for x in `${LOCATE} $file 2>/dev/null`; do
22485                                         base=`echo $x | sed "s%/${file}%%"`
22486     if test "x$x" = "x$base"; then
22487       continue;
22488     fi
22489
22490     dir=`${DIRNAME} $x 2>/dev/null`
22491                 exclude=`echo ${dir} | ${GREP} /home`
22492     if test "x$exclude" != "x"; then
22493       continue
22494     fi
22495
22496                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22497     if test "x$already" = "x"; then
22498       DIRS="$DIRS $dir"
22499     fi
22500   done
22501 fi
22502
22503 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22504
22505
22506   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
22507     LIBS="-L$try -lssl $old_LIBS"
22508     cat >conftest.$ac_ext <<_ACEOF
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514 extern char SSL_new();
22515 int
22516 main ()
22517 {
22518  SSL_new()
22519   ;
22520   return 0;
22521 }
22522 _ACEOF
22523 rm -f conftest.$ac_objext conftest$ac_exeext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22525   (eval $ac_link) 2>conftest.er1
22526   ac_status=$?
22527   grep -v '^ *+' conftest.er1 >conftest.err
22528   rm -f conftest.er1
22529   cat conftest.err >&5
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); } &&
22532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); }; } &&
22538          { ac_try='test -s conftest$ac_exeext'
22539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540   (eval $ac_try) 2>&5
22541   ac_status=$?
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); }; }; then
22544   smart_lib="-L$try -lssl"
22545 else
22546   echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22548
22549 fi
22550 rm -f conftest.err conftest.$ac_objext \
22551       conftest$ac_exeext conftest.$ac_ext
22552     if test "x$smart_lib" != "x"; then
22553       break;
22554     fi
22555     LIBS="$old_LIBS"
22556   done
22557 fi
22558
22559 if test "x$smart_lib" != "x"; then
22560   echo "$as_me:$LINENO: result: yes" >&5
22561 echo "${ECHO_T}yes" >&6
22562   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22563   LIBS="$smart_lib $old_LIBS"
22564   SMART_LIBS="$smart_lib $SMART_LIBS"
22565 else
22566   echo "$as_me:$LINENO: result: no" >&5
22567 echo "${ECHO_T}no" >&6
22568 fi
22569
22570                if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
22571                  if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22572                    OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
22573                  fi
22574                  if test "x$OPENSSL_LIB_DIR" != "x"; then
22575                    OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
22576                  fi
22577                  OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
22578                else
22579                  OPENSSL_INCLUDE=
22580                  OPENSSL_LIBS=
22581                fi
22582              fi
22583            fi
22584        CPPFLAGS=$old_CPPFLAGS
22585        LIBS="$old_LIBS"
22586 fi
22587
22588
22589 export OPENSSL_LIBS
22590
22591
22592 echo "$as_me:$LINENO: checking for off_t" >&5
22593 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22594 if test "${ac_cv_type_off_t+set}" = set; then
22595   echo $ECHO_N "(cached) $ECHO_C" >&6
22596 else
22597   cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603 $ac_includes_default
22604 int
22605 main ()
22606 {
22607 if ((off_t *) 0)
22608   return 0;
22609 if (sizeof (off_t))
22610   return 0;
22611   ;
22612   return 0;
22613 }
22614 _ACEOF
22615 rm -f conftest.$ac_objext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22617   (eval $ac_compile) 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } &&
22624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626   (eval $ac_try) 2>&5
22627   ac_status=$?
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); }; } &&
22630          { ac_try='test -s conftest.$ac_objext'
22631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632   (eval $ac_try) 2>&5
22633   ac_status=$?
22634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635   (exit $ac_status); }; }; then
22636   ac_cv_type_off_t=yes
22637 else
22638   echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641 ac_cv_type_off_t=no
22642 fi
22643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22644 fi
22645 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22646 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22647 if test $ac_cv_type_off_t = yes; then
22648   :
22649 else
22650
22651 cat >>confdefs.h <<_ACEOF
22652 #define off_t long
22653 _ACEOF
22654
22655 fi
22656
22657 echo "$as_me:$LINENO: checking for pid_t" >&5
22658 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22659 if test "${ac_cv_type_pid_t+set}" = set; then
22660   echo $ECHO_N "(cached) $ECHO_C" >&6
22661 else
22662   cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h.  */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h.  */
22668 $ac_includes_default
22669 int
22670 main ()
22671 {
22672 if ((pid_t *) 0)
22673   return 0;
22674 if (sizeof (pid_t))
22675   return 0;
22676   ;
22677   return 0;
22678 }
22679 _ACEOF
22680 rm -f conftest.$ac_objext
22681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22682   (eval $ac_compile) 2>conftest.er1
22683   ac_status=$?
22684   grep -v '^ *+' conftest.er1 >conftest.err
22685   rm -f conftest.er1
22686   cat conftest.err >&5
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); } &&
22689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691   (eval $ac_try) 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; } &&
22695          { ac_try='test -s conftest.$ac_objext'
22696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22697   (eval $ac_try) 2>&5
22698   ac_status=$?
22699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700   (exit $ac_status); }; }; then
22701   ac_cv_type_pid_t=yes
22702 else
22703   echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22705
22706 ac_cv_type_pid_t=no
22707 fi
22708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22709 fi
22710 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22711 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22712 if test $ac_cv_type_pid_t = yes; then
22713   :
22714 else
22715
22716 cat >>confdefs.h <<_ACEOF
22717 #define pid_t int
22718 _ACEOF
22719
22720 fi
22721
22722 echo "$as_me:$LINENO: checking for size_t" >&5
22723 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22724 if test "${ac_cv_type_size_t+set}" = set; then
22725   echo $ECHO_N "(cached) $ECHO_C" >&6
22726 else
22727   cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h.  */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h.  */
22733 $ac_includes_default
22734 int
22735 main ()
22736 {
22737 if ((size_t *) 0)
22738   return 0;
22739 if (sizeof (size_t))
22740   return 0;
22741   ;
22742   return 0;
22743 }
22744 _ACEOF
22745 rm -f conftest.$ac_objext
22746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22747   (eval $ac_compile) 2>conftest.er1
22748   ac_status=$?
22749   grep -v '^ *+' conftest.er1 >conftest.err
22750   rm -f conftest.er1
22751   cat conftest.err >&5
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); } &&
22754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756   (eval $ac_try) 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; } &&
22760          { ac_try='test -s conftest.$ac_objext'
22761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762   (eval $ac_try) 2>&5
22763   ac_status=$?
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); }; }; then
22766   ac_cv_type_size_t=yes
22767 else
22768   echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22770
22771 ac_cv_type_size_t=no
22772 fi
22773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22774 fi
22775 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22776 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22777 if test $ac_cv_type_size_t = yes; then
22778   :
22779 else
22780
22781 cat >>confdefs.h <<_ACEOF
22782 #define size_t unsigned
22783 _ACEOF
22784
22785 fi
22786
22787 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22788 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22789 if test "${ac_cv_type_uid_t+set}" = set; then
22790   echo $ECHO_N "(cached) $ECHO_C" >&6
22791 else
22792   cat >conftest.$ac_ext <<_ACEOF
22793 /* confdefs.h.  */
22794 _ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h.  */
22798 #include <sys/types.h>
22799
22800 _ACEOF
22801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22802   $EGREP "uid_t" >/dev/null 2>&1; then
22803   ac_cv_type_uid_t=yes
22804 else
22805   ac_cv_type_uid_t=no
22806 fi
22807 rm -f conftest*
22808
22809 fi
22810 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22811 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22812 if test $ac_cv_type_uid_t = no; then
22813
22814 cat >>confdefs.h <<\_ACEOF
22815 #define uid_t int
22816 _ACEOF
22817
22818
22819 cat >>confdefs.h <<\_ACEOF
22820 #define gid_t int
22821 _ACEOF
22822
22823 fi
22824
22825
22826
22827   echo "$as_me:$LINENO: checking for socklen_t" >&5
22828 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22829 if test "${ac_cv_type_socklen_t+set}" = set; then
22830   echo $ECHO_N "(cached) $ECHO_C" >&6
22831 else
22832    ac_cv_type_socklen_t=no
22833       cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h.  */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h.  */
22839 #ifdef HAVE_SYS_TYPES_H
22840 #include <sys/types.h>
22841 #endif
22842 #ifdef HAVE_SYS_SOCKET_H
22843 #include <sys/socket.h>
22844 #endif
22845
22846 int
22847 main ()
22848 {
22849 socklen_t foo
22850   ;
22851   return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext
22855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22856   (eval $ac_compile) 2>conftest.er1
22857   ac_status=$?
22858   grep -v '^ *+' conftest.er1 >conftest.err
22859   rm -f conftest.er1
22860   cat conftest.err >&5
22861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862   (exit $ac_status); } &&
22863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865   (eval $ac_try) 2>&5
22866   ac_status=$?
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); }; } &&
22869          { ac_try='test -s conftest.$ac_objext'
22870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871   (eval $ac_try) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); }; }; then
22875   ac_cv_type_socklen_t=yes
22876 else
22877   echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22879
22880 fi
22881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22882
22883
22884 fi
22885 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22886 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22887
22888   if test "$ac_cv_type_socklen_t" != "yes"; then
22889
22890 cat >>confdefs.h <<\_ACEOF
22891 #define socklen_t int
22892 _ACEOF
22893
22894   fi
22895
22896
22897
22898   echo "$as_me:$LINENO: checking for uint8_t" >&5
22899 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22900 if test "${ac_cv_type_uint8_t+set}" = set; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903    ac_cv_type_uint8_t=no
22904       cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910 #ifdef HAVE_INTTYPES_H
22911 #include <inttypes.h>
22912 #endif
22913 #ifdef HAVE_STDINT_H
22914 #include <stdint.h>
22915 #endif
22916
22917 int
22918 main ()
22919 {
22920 uint8_t foo
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 rm -f conftest.$ac_objext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22927   (eval $ac_compile) 2>conftest.er1
22928   ac_status=$?
22929   grep -v '^ *+' conftest.er1 >conftest.err
22930   rm -f conftest.er1
22931   cat conftest.err >&5
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); } &&
22934          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936   (eval $ac_try) 2>&5
22937   ac_status=$?
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); }; } &&
22940          { ac_try='test -s conftest.$ac_objext'
22941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942   (eval $ac_try) 2>&5
22943   ac_status=$?
22944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945   (exit $ac_status); }; }; then
22946   ac_cv_type_uint8_t=yes
22947 else
22948   echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22950
22951 fi
22952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22953
22954
22955 fi
22956 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22957 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22958
22959   if test "$ac_cv_type_uint8_t" != "yes"; then
22960
22961 cat >>confdefs.h <<\_ACEOF
22962 #define uint8_t unsigned char
22963 _ACEOF
22964
22965   fi
22966
22967
22968
22969   echo "$as_me:$LINENO: checking for uint16_t" >&5
22970 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22971 if test "${ac_cv_type_uint16_t+set}" = set; then
22972   echo $ECHO_N "(cached) $ECHO_C" >&6
22973 else
22974    ac_cv_type_uint16_t=no
22975       cat >conftest.$ac_ext <<_ACEOF
22976 /* confdefs.h.  */
22977 _ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h.  */
22981 #ifdef HAVE_INTTYPES_H
22982 #include <inttypes.h>
22983 #endif
22984 #ifdef HAVE_STDINT_H
22985 #include <stdint.h>
22986 #endif
22987
22988 int
22989 main ()
22990 {
22991 uint16_t foo
22992   ;
22993   return 0;
22994 }
22995 _ACEOF
22996 rm -f conftest.$ac_objext
22997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22998   (eval $ac_compile) 2>conftest.er1
22999   ac_status=$?
23000   grep -v '^ *+' conftest.er1 >conftest.err
23001   rm -f conftest.er1
23002   cat conftest.err >&5
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); } &&
23005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007   (eval $ac_try) 2>&5
23008   ac_status=$?
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); }; } &&
23011          { ac_try='test -s conftest.$ac_objext'
23012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013   (eval $ac_try) 2>&5
23014   ac_status=$?
23015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016   (exit $ac_status); }; }; then
23017   ac_cv_type_uint16_t=yes
23018 else
23019   echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23021
23022 fi
23023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23024
23025
23026 fi
23027 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23028 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
23029
23030   if test "$ac_cv_type_uint16_t" != "yes"; then
23031
23032 cat >>confdefs.h <<\_ACEOF
23033 #define uint16_t unsigned short
23034 _ACEOF
23035
23036   fi
23037
23038
23039
23040   echo "$as_me:$LINENO: checking for uint32_t" >&5
23041 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
23042 if test "${ac_cv_type_uint32_t+set}" = set; then
23043   echo $ECHO_N "(cached) $ECHO_C" >&6
23044 else
23045    ac_cv_type_uint32_t=no
23046       cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052 #ifdef HAVE_INTTYPES_H
23053 #include <inttypes.h>
23054 #endif
23055 #ifdef HAVE_STDINT_H
23056 #include <stdint.h>
23057 #endif
23058
23059 int
23060 main ()
23061 {
23062 uint32_t foo
23063   ;
23064   return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext
23068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23069   (eval $ac_compile) 2>conftest.er1
23070   ac_status=$?
23071   grep -v '^ *+' conftest.er1 >conftest.err
23072   rm -f conftest.er1
23073   cat conftest.err >&5
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); } &&
23076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078   (eval $ac_try) 2>&5
23079   ac_status=$?
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); }; } &&
23082          { ac_try='test -s conftest.$ac_objext'
23083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084   (eval $ac_try) 2>&5
23085   ac_status=$?
23086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087   (exit $ac_status); }; }; then
23088   ac_cv_type_uint32_t=yes
23089 else
23090   echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 fi
23094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23095
23096
23097 fi
23098 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23099 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
23100
23101   if test "$ac_cv_type_uint32_t" != "yes"; then
23102
23103 cat >>confdefs.h <<\_ACEOF
23104 #define uint32_t unsigned int
23105 _ACEOF
23106
23107   fi
23108
23109
23110 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
23111 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
23112 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
23113   echo $ECHO_N "(cached) $ECHO_C" >&6
23114 else
23115   cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h.  */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h.  */
23121
23122 #ifdef HAVE_NETINET_IN_H
23123 #include <netinet/in.h>
23124 #endif
23125
23126
23127 int
23128 main ()
23129 {
23130 if ((struct in6_addr *) 0)
23131   return 0;
23132 if (sizeof (struct in6_addr))
23133   return 0;
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 rm -f conftest.$ac_objext
23139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23140   (eval $ac_compile) 2>conftest.er1
23141   ac_status=$?
23142   grep -v '^ *+' conftest.er1 >conftest.err
23143   rm -f conftest.er1
23144   cat conftest.err >&5
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); } &&
23147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149   (eval $ac_try) 2>&5
23150   ac_status=$?
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); }; } &&
23153          { ac_try='test -s conftest.$ac_objext'
23154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155   (eval $ac_try) 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; }; then
23159   ac_cv_type_struct_in6_addr=yes
23160 else
23161   echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23163
23164 ac_cv_type_struct_in6_addr=no
23165 fi
23166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23167 fi
23168 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23169 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
23170 if test $ac_cv_type_struct_in6_addr = yes; then
23171
23172 cat >>confdefs.h <<\_ACEOF
23173 #define HAVE_STRUCT_IN6_ADDR 1
23174 _ACEOF
23175
23176 fi
23177
23178
23179 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23180 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
23181 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23182   echo $ECHO_N "(cached) $ECHO_C" >&6
23183 else
23184   cat >conftest.$ac_ext <<_ACEOF
23185 /* confdefs.h.  */
23186 _ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h.  */
23190
23191 #ifdef HAVE_NETINET_IN_H
23192 #include <netinet/in.h>
23193 #endif
23194
23195
23196 int
23197 main ()
23198 {
23199 if ((struct sockaddr_storage *) 0)
23200   return 0;
23201 if (sizeof (struct sockaddr_storage))
23202   return 0;
23203   ;
23204   return 0;
23205 }
23206 _ACEOF
23207 rm -f conftest.$ac_objext
23208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23209   (eval $ac_compile) 2>conftest.er1
23210   ac_status=$?
23211   grep -v '^ *+' conftest.er1 >conftest.err
23212   rm -f conftest.er1
23213   cat conftest.err >&5
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); } &&
23216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218   (eval $ac_try) 2>&5
23219   ac_status=$?
23220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); }; } &&
23222          { ac_try='test -s conftest.$ac_objext'
23223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224   (eval $ac_try) 2>&5
23225   ac_status=$?
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); }; }; then
23228   ac_cv_type_struct_sockaddr_storage=yes
23229 else
23230   echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 ac_cv_type_struct_sockaddr_storage=no
23234 fi
23235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23236 fi
23237 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23238 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
23239 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23240
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23243 _ACEOF
23244
23245 fi
23246
23247
23248 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23249 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
23250 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23251   echo $ECHO_N "(cached) $ECHO_C" >&6
23252 else
23253   cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h.  */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h.  */
23259
23260 #ifdef HAVE_NETINET_IN_H
23261 #include <netinet/in.h>
23262 #endif
23263
23264
23265 int
23266 main ()
23267 {
23268 if ((struct sockaddr_in6 *) 0)
23269   return 0;
23270 if (sizeof (struct sockaddr_in6))
23271   return 0;
23272   ;
23273   return 0;
23274 }
23275 _ACEOF
23276 rm -f conftest.$ac_objext
23277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23278   (eval $ac_compile) 2>conftest.er1
23279   ac_status=$?
23280   grep -v '^ *+' conftest.er1 >conftest.err
23281   rm -f conftest.er1
23282   cat conftest.err >&5
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); } &&
23285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287   (eval $ac_try) 2>&5
23288   ac_status=$?
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); }; } &&
23291          { ac_try='test -s conftest.$ac_objext'
23292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293   (eval $ac_try) 2>&5
23294   ac_status=$?
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); }; }; then
23297   ac_cv_type_struct_sockaddr_in6=yes
23298 else
23299   echo "$as_me: failed program was:" >&5
23300 sed 's/^/| /' conftest.$ac_ext >&5
23301
23302 ac_cv_type_struct_sockaddr_in6=no
23303 fi
23304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23305 fi
23306 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23307 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
23308 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23309
23310 cat >>confdefs.h <<\_ACEOF
23311 #define HAVE_STRUCT_SOCKADDR_IN6 1
23312 _ACEOF
23313
23314 fi
23315
23316
23317 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23318 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23319 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23320   echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322   cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h.  */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h.  */
23328
23329 #ifdef HAVE_SYS_TYPES_H
23330 #include <sys/types.h>
23331 #endif
23332 #ifdef HAVE_SYS_SOCKET_H
23333 #include <sys/socket.h>
23334 #endif
23335 #ifdef HAVE_NETDB_H
23336 #include <netdb.h>
23337 #endif
23338
23339
23340 int
23341 main ()
23342 {
23343 if ((struct addrinfo *) 0)
23344   return 0;
23345 if (sizeof (struct addrinfo))
23346   return 0;
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext
23352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23353   (eval $ac_compile) 2>conftest.er1
23354   ac_status=$?
23355   grep -v '^ *+' conftest.er1 >conftest.err
23356   rm -f conftest.er1
23357   cat conftest.err >&5
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); } &&
23360          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362   (eval $ac_try) 2>&5
23363   ac_status=$?
23364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); }; } &&
23366          { ac_try='test -s conftest.$ac_objext'
23367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368   (eval $ac_try) 2>&5
23369   ac_status=$?
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); }; }; then
23372   ac_cv_type_struct_addrinfo=yes
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377 ac_cv_type_struct_addrinfo=no
23378 fi
23379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23380 fi
23381 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23382 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
23383 if test $ac_cv_type_struct_addrinfo = yes; then
23384
23385 cat >>confdefs.h <<\_ACEOF
23386 #define HAVE_STRUCT_ADDRINFO 1
23387 _ACEOF
23388
23389 fi
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417 for ac_func in \
23418         getopt_long \
23419         lockf \
23420         strsignal \
23421         sigaction \
23422         sigprocmask \
23423         pthread_sigmask \
23424         snprintf \
23425         vsnprintf \
23426         setsid \
23427         strncasecmp \
23428         strcasecmp \
23429         localtime_r \
23430         ctime_r \
23431         gmtime_r \
23432         strsep \
23433         inet_aton \
23434         inet_pton \
23435         inet_ntop \
23436         gethostname \
23437         setlinebuf \
23438         setvbuf \
23439         getusershell \
23440         initgroups \
23441         getaddrinfo \
23442         getnameinfo
23443
23444 do
23445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23446 echo "$as_me:$LINENO: checking for $ac_func" >&5
23447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23448 if eval "test \"\${$as_ac_var+set}\" = set"; then
23449   echo $ECHO_N "(cached) $ECHO_C" >&6
23450 else
23451   cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h.  */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h.  */
23457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23459 #define $ac_func innocuous_$ac_func
23460
23461 /* System header to define __stub macros and hopefully few prototypes,
23462     which can conflict with char $ac_func (); below.
23463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23464     <limits.h> exists even on freestanding compilers.  */
23465
23466 #ifdef __STDC__
23467 # include <limits.h>
23468 #else
23469 # include <assert.h>
23470 #endif
23471
23472 #undef $ac_func
23473
23474 /* Override any gcc2 internal prototype to avoid an error.  */
23475 #ifdef __cplusplus
23476 extern "C"
23477 {
23478 #endif
23479 /* We use char because int might match the return type of a gcc2
23480    builtin and then its argument prototype would still apply.  */
23481 char $ac_func ();
23482 /* The GNU C library defines this for functions which it implements
23483     to always fail with ENOSYS.  Some functions are actually named
23484     something starting with __ and the normal name is an alias.  */
23485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23486 choke me
23487 #else
23488 char (*f) () = $ac_func;
23489 #endif
23490 #ifdef __cplusplus
23491 }
23492 #endif
23493
23494 int
23495 main ()
23496 {
23497 return f != $ac_func;
23498   ;
23499   return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest.$ac_objext conftest$ac_exeext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23504   (eval $ac_link) 2>conftest.er1
23505   ac_status=$?
23506   grep -v '^ *+' conftest.er1 >conftest.err
23507   rm -f conftest.er1
23508   cat conftest.err >&5
23509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); } &&
23511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513   (eval $ac_try) 2>&5
23514   ac_status=$?
23515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516   (exit $ac_status); }; } &&
23517          { ac_try='test -s conftest$ac_exeext'
23518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519   (eval $ac_try) 2>&5
23520   ac_status=$?
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); }; }; then
23523   eval "$as_ac_var=yes"
23524 else
23525   echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23527
23528 eval "$as_ac_var=no"
23529 fi
23530 rm -f conftest.err conftest.$ac_objext \
23531       conftest$ac_exeext conftest.$ac_ext
23532 fi
23533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23535 if test `eval echo '${'$as_ac_var'}'` = yes; then
23536   cat >>confdefs.h <<_ACEOF
23537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23538 _ACEOF
23539
23540 fi
23541 done
23542
23543 for ac_func in \
23544         crypt \
23545         strncasecmp \
23546         strcasecmp \
23547         inet_aton \
23548         gethostname \
23549         setlinebuf \
23550         getusershell \
23551         endusershell
23552
23553 do
23554 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23555 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
23556 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
23557   echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559   cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h.  */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h.  */
23565
23566 #include <stdio.h>
23567 #include <string.h>
23568 #ifdef HAVE_UNISTD_H
23569 #include <unistd.h>
23570 #endif
23571 #ifdef HAVE_CRYPT_H
23572 #include <crypt.h>
23573 #endif
23574 #ifdef HAVE_ERRNO_H
23575 #include <errno.h>
23576 #endif
23577 #ifdef HAVE_RESOURCE_H
23578 #include <resource.h>
23579 #endif
23580 #ifdef HAVE_GETOPT_H
23581 #include <getopt.h>
23582 #endif
23583 #ifdef HAVE_MALLOC_H
23584 #include <malloc.h>
23585 #endif
23586 #ifdef HAVE_UTMP_H
23587 #include <utmp.h>
23588 #endif
23589 #ifdef HAVE_UTMPX_H
23590 #include <utmpx.h>
23591 #endif
23592 #ifdef HAVE_SYS_SELECT_H
23593 #include <sys/select.h>
23594 #endif
23595 #ifdef HAVE_DLFCN_H
23596 #include <dlfcn.h>
23597 #endif
23598 #ifdef HAVE_REGEX_H
23599 #include <regex.h>
23600 #endif
23601 #ifdef HAVE_SYSLOG_H
23602 #include <syslog.h>
23603 #endif
23604 #ifdef HAVE_INTTYPES_H
23605 #include <inttypes.h>
23606 #endif
23607 #ifdef HAVE_STDINT_H
23608 #include <stdint.h>
23609 #endif
23610 #ifdef HAVE_ARPA_INET_H
23611 #include <arpa/inet.h>
23612 #endif
23613
23614 int
23615 main ()
23616 {
23617 char *(*pfn) = (char *(*)) $ac_func
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 rm -f conftest.$ac_objext
23623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23624   (eval $ac_compile) 2>conftest.er1
23625   ac_status=$?
23626   grep -v '^ *+' conftest.er1 >conftest.err
23627   rm -f conftest.er1
23628   cat conftest.err >&5
23629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630   (exit $ac_status); } &&
23631          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23633   (eval $ac_try) 2>&5
23634   ac_status=$?
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); }; } &&
23637          { ac_try='test -s conftest.$ac_objext'
23638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639   (eval $ac_try) 2>&5
23640   ac_status=$?
23641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642   (exit $ac_status); }; }; then
23643   eval "radius_cv_decl_needed_$ac_func=no"
23644 else
23645   echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23647
23648 eval "radius_cv_decl_needed_$ac_func=yes"
23649 fi
23650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23651 fi
23652
23653 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23654   echo "$as_me:$LINENO: result: yes" >&5
23655 echo "${ECHO_T}yes" >&6
23656   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23657   cat >>confdefs.h <<_ACEOF
23658 #define $radius_tr_decl 1
23659 _ACEOF
23660
23661 else
23662   echo "$as_me:$LINENO: result: no" >&5
23663 echo "${ECHO_T}no" >&6
23664 fi
23665
23666 done
23667
23668
23669 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23670 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23671 if test "${ac_cv_type_signal+set}" = set; then
23672   echo $ECHO_N "(cached) $ECHO_C" >&6
23673 else
23674   cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h.  */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h.  */
23680 #include <sys/types.h>
23681 #include <signal.h>
23682 #ifdef signal
23683 # undef signal
23684 #endif
23685 #ifdef __cplusplus
23686 extern "C" void (*signal (int, void (*)(int)))(int);
23687 #else
23688 void (*signal ()) ();
23689 #endif
23690
23691 int
23692 main ()
23693 {
23694 int i;
23695   ;
23696   return 0;
23697 }
23698 _ACEOF
23699 rm -f conftest.$ac_objext
23700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23701   (eval $ac_compile) 2>conftest.er1
23702   ac_status=$?
23703   grep -v '^ *+' conftest.er1 >conftest.err
23704   rm -f conftest.er1
23705   cat conftest.err >&5
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); } &&
23708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710   (eval $ac_try) 2>&5
23711   ac_status=$?
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); }; } &&
23714          { ac_try='test -s conftest.$ac_objext'
23715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716   (eval $ac_try) 2>&5
23717   ac_status=$?
23718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719   (exit $ac_status); }; }; then
23720   ac_cv_type_signal=void
23721 else
23722   echo "$as_me: failed program was:" >&5
23723 sed 's/^/| /' conftest.$ac_ext >&5
23724
23725 ac_cv_type_signal=int
23726 fi
23727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23728 fi
23729 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23730 echo "${ECHO_T}$ac_cv_type_signal" >&6
23731
23732 cat >>confdefs.h <<_ACEOF
23733 #define RETSIGTYPE $ac_cv_type_signal
23734 _ACEOF
23735
23736
23737
23738 if test "x$ac_cv_header_utmpx_h" = "xyes"
23739 then
23740
23741   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23742 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23743
23744
23745   cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h.  */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h.  */
23751
23752 #include <utmpx.h>
23753 #ifndef offsetof
23754 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23755 #endif
23756
23757 int
23758 main ()
23759 {
23760  int foo = offsetof(struct utmpx, ut_xtime)
23761   ;
23762   return 0;
23763 }
23764 _ACEOF
23765 rm -f conftest.$ac_objext
23766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23767   (eval $ac_compile) 2>conftest.er1
23768   ac_status=$?
23769   grep -v '^ *+' conftest.er1 >conftest.err
23770   rm -f conftest.er1
23771   cat conftest.err >&5
23772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773   (exit $ac_status); } &&
23774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23776   (eval $ac_try) 2>&5
23777   ac_status=$?
23778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779   (exit $ac_status); }; } &&
23780          { ac_try='test -s conftest.$ac_objext'
23781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782   (eval $ac_try) 2>&5
23783   ac_status=$?
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); }; }; then
23786   has_element=" "
23787 else
23788   echo "$as_me: failed program was:" >&5
23789 sed 's/^/| /' conftest.$ac_ext >&5
23790
23791 has_element=
23792 fi
23793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23794
23795   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23796   if test "x$has_element" != "x"; then
23797     echo "$as_me:$LINENO: result: yes" >&5
23798 echo "${ECHO_T}yes" >&6
23799     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23800   else
23801     echo "$as_me:$LINENO: result: no" >&5
23802 echo "${ECHO_T}no" >&6
23803     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23804  fi
23805
23806  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23807  then
23808
23809 cat >>confdefs.h <<\_ACEOF
23810 #define ut_xtime ut_tv.tv_sec
23811 _ACEOF
23812
23813  fi
23814 fi
23815
23816
23817   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23818 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23819
23820
23821   cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h.  */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h.  */
23827
23828 #include <netinet/in.h>
23829 #ifndef offsetof
23830 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23831 #endif
23832
23833 int
23834 main ()
23835 {
23836  int foo = offsetof(struct in_pktinfo, ipi_addr)
23837   ;
23838   return 0;
23839 }
23840 _ACEOF
23841 rm -f conftest.$ac_objext
23842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23843   (eval $ac_compile) 2>conftest.er1
23844   ac_status=$?
23845   grep -v '^ *+' conftest.er1 >conftest.err
23846   rm -f conftest.er1
23847   cat conftest.err >&5
23848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849   (exit $ac_status); } &&
23850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852   (eval $ac_try) 2>&5
23853   ac_status=$?
23854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855   (exit $ac_status); }; } &&
23856          { ac_try='test -s conftest.$ac_objext'
23857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858   (eval $ac_try) 2>&5
23859   ac_status=$?
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); }; }; then
23862   has_element=" "
23863 else
23864   echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23866
23867 has_element=
23868 fi
23869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23870
23871   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23872   if test "x$has_element" != "x"; then
23873     echo "$as_me:$LINENO: result: yes" >&5
23874 echo "${ECHO_T}yes" >&6
23875     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23876   else
23877     echo "$as_me:$LINENO: result: no" >&5
23878 echo "${ECHO_T}no" >&6
23879     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23880  fi
23881
23882 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23883 then
23884
23885 cat >>confdefs.h <<\_ACEOF
23886 #define HAVE_IP_PKTINFO
23887 _ACEOF
23888
23889 fi
23890
23891
23892   echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23893 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
23894
23895
23896   cat >conftest.$ac_ext <<_ACEOF
23897 /* confdefs.h.  */
23898 _ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h.  */
23902
23903 #include <netinet/in.h>
23904 #ifndef offsetof
23905 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23906 #endif
23907
23908 int
23909 main ()
23910 {
23911  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23912   ;
23913   return 0;
23914 }
23915 _ACEOF
23916 rm -f conftest.$ac_objext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23918   (eval $ac_compile) 2>conftest.er1
23919   ac_status=$?
23920   grep -v '^ *+' conftest.er1 >conftest.err
23921   rm -f conftest.er1
23922   cat conftest.err >&5
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); } &&
23925          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927   (eval $ac_try) 2>&5
23928   ac_status=$?
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); }; } &&
23931          { ac_try='test -s conftest.$ac_objext'
23932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933   (eval $ac_try) 2>&5
23934   ac_status=$?
23935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); }; }; then
23937   has_element=" "
23938 else
23939   echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23941
23942 has_element=
23943 fi
23944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23945
23946   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23947   if test "x$has_element" != "x"; then
23948     echo "$as_me:$LINENO: result: yes" >&5
23949 echo "${ECHO_T}yes" >&6
23950     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23951   else
23952     echo "$as_me:$LINENO: result: no" >&5
23953 echo "${ECHO_T}no" >&6
23954     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23955  fi
23956
23957 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23958 then
23959
23960 cat >>confdefs.h <<\_ACEOF
23961 #define HAVE_IN6_PKTINFO
23962 _ACEOF
23963
23964 fi
23965
23966
23967 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23968 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23969 if test "${ac_cv_c_const+set}" = set; then
23970   echo $ECHO_N "(cached) $ECHO_C" >&6
23971 else
23972   cat >conftest.$ac_ext <<_ACEOF
23973 /* confdefs.h.  */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h.  */
23978
23979 int
23980 main ()
23981 {
23982 /* FIXME: Include the comments suggested by Paul. */
23983 #ifndef __cplusplus
23984   /* Ultrix mips cc rejects this.  */
23985   typedef int charset[2];
23986   const charset x;
23987   /* SunOS 4.1.1 cc rejects this.  */
23988   char const *const *ccp;
23989   char **p;
23990   /* NEC SVR4.0.2 mips cc rejects this.  */
23991   struct point {int x, y;};
23992   static struct point const zero = {0,0};
23993   /* AIX XL C 1.02.0.0 rejects this.
23994      It does not let you subtract one const X* pointer from another in
23995      an arm of an if-expression whose if-part is not a constant
23996      expression */
23997   const char *g = "string";
23998   ccp = &g + (g ? g-g : 0);
23999   /* HPUX 7.0 cc rejects these. */
24000   ++ccp;
24001   p = (char**) ccp;
24002   ccp = (char const *const *) p;
24003   { /* SCO 3.2v4 cc rejects this.  */
24004     char *t;
24005     char const *s = 0 ? (char *) 0 : (char const *) 0;
24006
24007     *t++ = 0;
24008   }
24009   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24010     int x[] = {25, 17};
24011     const int *foo = &x[0];
24012     ++foo;
24013   }
24014   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24015     typedef const int *iptr;
24016     iptr p = 0;
24017     ++p;
24018   }
24019   { /* AIX XL C 1.02.0.0 rejects this saying
24020        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24021     struct s { int j; const int *ap[3]; };
24022     struct s *b; b->j = 5;
24023   }
24024   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24025     const int foo = 10;
24026   }
24027 #endif
24028
24029   ;
24030   return 0;
24031 }
24032 _ACEOF
24033 rm -f conftest.$ac_objext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24035   (eval $ac_compile) 2>conftest.er1
24036   ac_status=$?
24037   grep -v '^ *+' conftest.er1 >conftest.err
24038   rm -f conftest.er1
24039   cat conftest.err >&5
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); } &&
24042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044   (eval $ac_try) 2>&5
24045   ac_status=$?
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); }; } &&
24048          { ac_try='test -s conftest.$ac_objext'
24049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050   (eval $ac_try) 2>&5
24051   ac_status=$?
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); }; }; then
24054   ac_cv_c_const=yes
24055 else
24056   echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24058
24059 ac_cv_c_const=no
24060 fi
24061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24062 fi
24063 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24064 echo "${ECHO_T}$ac_cv_c_const" >&6
24065 if test $ac_cv_c_const = no; then
24066
24067 cat >>confdefs.h <<\_ACEOF
24068 #define const
24069 _ACEOF
24070
24071 fi
24072
24073
24074 echo "$as_me:$LINENO: checking type of OS" >&5
24075 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
24076 OS=`uname -s`
24077 echo "$as_me:$LINENO: result: $OS" >&5
24078 echo "${ECHO_T}$OS" >&6
24079 if test "$OS" = "OS/2"; then
24080         LIBPREFIX=
24081 else
24082         LIBPREFIX=lib
24083 fi
24084
24085
24086 if test "x$GCC" = "xyes"; then
24087     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
24088 fi
24089
24090 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
24091 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
24092 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
24093   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
24094   CFLAGS="$CFLAGS $devflags"
24095   INSTALLSTRIP=""
24096   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
24097 echo "${ECHO_T}yes.  Using $devflags" >&6
24098 else
24099   devflags=""
24100   CFLAGS="$CFLAGS -DNDEBUG"
24101   INSTALLSTRIP="-s"
24102   echo "$as_me:$LINENO: result: no." >&5
24103 echo "${ECHO_T}no." >&6
24104 fi
24105
24106
24107 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
24108 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
24109 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
24110   echo $ECHO_N "(cached) $ECHO_C" >&6
24111 else
24112   ac_check_lib_save_LIBS=$LIBS
24113 LIBS="-lcrypt  $LIBS"
24114 cat >conftest.$ac_ext <<_ACEOF
24115 /* confdefs.h.  */
24116 _ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h.  */
24120
24121 /* Override any gcc2 internal prototype to avoid an error.  */
24122 #ifdef __cplusplus
24123 extern "C"
24124 #endif
24125 /* We use char because int might match the return type of a gcc2
24126    builtin and then its argument prototype would still apply.  */
24127 char crypt ();
24128 int
24129 main ()
24130 {
24131 crypt ();
24132   ;
24133   return 0;
24134 }
24135 _ACEOF
24136 rm -f conftest.$ac_objext conftest$ac_exeext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24138   (eval $ac_link) 2>conftest.er1
24139   ac_status=$?
24140   grep -v '^ *+' conftest.er1 >conftest.err
24141   rm -f conftest.er1
24142   cat conftest.err >&5
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); } &&
24145          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147   (eval $ac_try) 2>&5
24148   ac_status=$?
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); }; } &&
24151          { ac_try='test -s conftest$ac_exeext'
24152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153   (eval $ac_try) 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); }; }; then
24157   ac_cv_lib_crypt_crypt=yes
24158 else
24159   echo "$as_me: failed program was:" >&5
24160 sed 's/^/| /' conftest.$ac_ext >&5
24161
24162 ac_cv_lib_crypt_crypt=no
24163 fi
24164 rm -f conftest.err conftest.$ac_objext \
24165       conftest$ac_exeext conftest.$ac_ext
24166 LIBS=$ac_check_lib_save_LIBS
24167 fi
24168 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24169 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
24170 if test $ac_cv_lib_crypt_crypt = yes; then
24171   CRYPTLIB="-lcrypt"
24172
24173 fi
24174
24175 if test "$CRYPTLIB" != ""; then
24176
24177 cat >>confdefs.h <<\_ACEOF
24178 #define HAVE_CRYPT
24179 _ACEOF
24180
24181 else
24182   echo "$as_me:$LINENO: checking for crypt" >&5
24183 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
24184 if test "${ac_cv_func_crypt+set}" = set; then
24185   echo $ECHO_N "(cached) $ECHO_C" >&6
24186 else
24187   cat >conftest.$ac_ext <<_ACEOF
24188 /* confdefs.h.  */
24189 _ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h.  */
24193 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24195 #define crypt innocuous_crypt
24196
24197 /* System header to define __stub macros and hopefully few prototypes,
24198     which can conflict with char crypt (); below.
24199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24200     <limits.h> exists even on freestanding compilers.  */
24201
24202 #ifdef __STDC__
24203 # include <limits.h>
24204 #else
24205 # include <assert.h>
24206 #endif
24207
24208 #undef crypt
24209
24210 /* Override any gcc2 internal prototype to avoid an error.  */
24211 #ifdef __cplusplus
24212 extern "C"
24213 {
24214 #endif
24215 /* We use char because int might match the return type of a gcc2
24216    builtin and then its argument prototype would still apply.  */
24217 char crypt ();
24218 /* The GNU C library defines this for functions which it implements
24219     to always fail with ENOSYS.  Some functions are actually named
24220     something starting with __ and the normal name is an alias.  */
24221 #if defined (__stub_crypt) || defined (__stub___crypt)
24222 choke me
24223 #else
24224 char (*f) () = crypt;
24225 #endif
24226 #ifdef __cplusplus
24227 }
24228 #endif
24229
24230 int
24231 main ()
24232 {
24233 return f != crypt;
24234   ;
24235   return 0;
24236 }
24237 _ACEOF
24238 rm -f conftest.$ac_objext conftest$ac_exeext
24239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24240   (eval $ac_link) 2>conftest.er1
24241   ac_status=$?
24242   grep -v '^ *+' conftest.er1 >conftest.err
24243   rm -f conftest.er1
24244   cat conftest.err >&5
24245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); } &&
24247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249   (eval $ac_try) 2>&5
24250   ac_status=$?
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); }; } &&
24253          { ac_try='test -s conftest$ac_exeext'
24254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255   (eval $ac_try) 2>&5
24256   ac_status=$?
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); }; }; then
24259   ac_cv_func_crypt=yes
24260 else
24261   echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24263
24264 ac_cv_func_crypt=no
24265 fi
24266 rm -f conftest.err conftest.$ac_objext \
24267       conftest$ac_exeext conftest.$ac_ext
24268 fi
24269 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24270 echo "${ECHO_T}$ac_cv_func_crypt" >&6
24271 if test $ac_cv_func_crypt = yes; then
24272
24273 cat >>confdefs.h <<\_ACEOF
24274 #define HAVE_CRYPT
24275 _ACEOF
24276
24277 fi
24278
24279 fi
24280
24281 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24282 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
24283 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24284   echo $ECHO_N "(cached) $ECHO_C" >&6
24285 else
24286   ac_check_lib_save_LIBS=$LIBS
24287 LIBS="-lcipher  $LIBS"
24288 cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h.  */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h.  */
24294
24295 /* Override any gcc2 internal prototype to avoid an error.  */
24296 #ifdef __cplusplus
24297 extern "C"
24298 #endif
24299 /* We use char because int might match the return type of a gcc2
24300    builtin and then its argument prototype would still apply.  */
24301 char setkey ();
24302 int
24303 main ()
24304 {
24305 setkey ();
24306   ;
24307   return 0;
24308 }
24309 _ACEOF
24310 rm -f conftest.$ac_objext conftest$ac_exeext
24311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24312   (eval $ac_link) 2>conftest.er1
24313   ac_status=$?
24314   grep -v '^ *+' conftest.er1 >conftest.err
24315   rm -f conftest.er1
24316   cat conftest.err >&5
24317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318   (exit $ac_status); } &&
24319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321   (eval $ac_try) 2>&5
24322   ac_status=$?
24323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324   (exit $ac_status); }; } &&
24325          { ac_try='test -s conftest$ac_exeext'
24326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327   (eval $ac_try) 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); }; }; then
24331   ac_cv_lib_cipher_setkey=yes
24332 else
24333   echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24335
24336 ac_cv_lib_cipher_setkey=no
24337 fi
24338 rm -f conftest.err conftest.$ac_objext \
24339       conftest$ac_exeext conftest.$ac_ext
24340 LIBS=$ac_check_lib_save_LIBS
24341 fi
24342 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24343 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
24344 if test $ac_cv_lib_cipher_setkey = yes; then
24345   CRYPTLIB="${CRYPTLIB} -lcipher"
24346
24347 fi
24348
24349
24350
24351 if test "x$WITH_SNMP" = "xyes"; then
24352
24353
24354
24355
24356 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24357 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
24358
24359 cat >conftest.$ac_ext <<_ACEOF
24360 /* confdefs.h.  */
24361 _ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h.  */
24365
24366 #ifdef HAVE_SYS_TYPES_H
24367 #include <sys/types.h>
24368 #endif
24369 #ifdef HAVE_STDINT_H
24370 #include <stdint.h>
24371 #endif
24372 #ifdef HAVE_STDIO_H
24373 #include <stdio.h>
24374 #endif
24375 #ifdef HAVE_NETDB_H
24376 #include <netdb.h>
24377 #endif
24378 #ifdef HAVE_UNISTD_H
24379 #include <unistd.h>
24380 #endif
24381 #include <ucd-snmp/ucd-snmp-config.h>
24382 #include <ucd-snmp/asn1.h>
24383 #include <ucd-snmp/snmp.h>
24384 #include <ucd-snmp/snmp_impl.h>
24385 int
24386 main ()
24387 {
24388  int a = 1;
24389   ;
24390   return 0;
24391 }
24392 _ACEOF
24393 rm -f conftest.$ac_objext
24394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24395   (eval $ac_compile) 2>conftest.er1
24396   ac_status=$?
24397   grep -v '^ *+' conftest.er1 >conftest.err
24398   rm -f conftest.er1
24399   cat conftest.err >&5
24400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401   (exit $ac_status); } &&
24402          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404   (eval $ac_try) 2>&5
24405   ac_status=$?
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); }; } &&
24408          { ac_try='test -s conftest.$ac_objext'
24409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410   (eval $ac_try) 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); }; }; then
24414   SNMP_INCLUDE="";ucdsnmp=yes
24415 else
24416   echo "$as_me: failed program was:" >&5
24417 sed 's/^/| /' conftest.$ac_ext >&5
24418
24419 ucdsnmp=
24420 fi
24421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24422
24423 if test "x$ucdsnmp" = "x"; then
24424   old_CFLAGS="$CFLAGS"
24425   for try in /usr/include /usr/local/include $snmp_include_dir; do
24426     CFLAGS="$old_CFLAGS -I$try"
24427     cat >conftest.$ac_ext <<_ACEOF
24428 /* confdefs.h.  */
24429 _ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h.  */
24433
24434 #ifdef HAVE_SYS_TYPES_H
24435 #include <sys/types.h>
24436 #endif
24437 #ifdef HAVE_STDINT_H
24438 #include <stdint.h>
24439 #endif
24440 #ifdef HAVE_STDIO_H
24441 #include <stdio.h>
24442 #endif
24443 #ifdef HAVE_NETDB_H
24444 #include <netdb.h>
24445 #endif
24446 #ifdef HAVE_UNISTD_H
24447 #include <unistd.h>
24448 #endif
24449 #include <ucd-snmp/ucd-snmp-config.h>
24450 #include <ucd-snmp/asn1.h>
24451 #include <ucd-snmp/snmp.h>
24452 #include <ucd-snmp/snmp_impl.h>
24453 int
24454 main ()
24455 {
24456  int a = 1;
24457   ;
24458   return 0;
24459 }
24460 _ACEOF
24461 rm -f conftest.$ac_objext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24463   (eval $ac_compile) 2>conftest.er1
24464   ac_status=$?
24465   grep -v '^ *+' conftest.er1 >conftest.err
24466   rm -f conftest.er1
24467   cat conftest.err >&5
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); } &&
24470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472   (eval $ac_try) 2>&5
24473   ac_status=$?
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); }; } &&
24476          { ac_try='test -s conftest.$ac_objext'
24477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478   (eval $ac_try) 2>&5
24479   ac_status=$?
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); }; }; then
24482   SNMP_INCLUDE="-I$try";ucdsnmp=yes
24483 else
24484   echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24486
24487 ucdsnmp=
24488 fi
24489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24490     if test "x$ucdsnmp" != "x"; then
24491       break;
24492     fi
24493   done
24494   CFLAGS="$old_CFLAGS"
24495 fi
24496
24497 if test "x$ucdsnmp" = "x"; then
24498   old_CFLAGS="$CFLAGS"
24499   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24500     CFLAGS="$old_CFLAGS -I$try"
24501 cat >conftest.$ac_ext <<_ACEOF
24502 /* confdefs.h.  */
24503 _ACEOF
24504 cat confdefs.h >>conftest.$ac_ext
24505 cat >>conftest.$ac_ext <<_ACEOF
24506 /* end confdefs.h.  */
24507
24508 #ifdef HAVE_SYS_TYPES_H
24509 #include <sys/types.h>
24510 #endif
24511 #ifdef HAVE_STDINT_H
24512 #include <stdint.h>
24513 #endif
24514 #ifdef HAVE_STDIO_H
24515 #include <stdio.h>
24516 #endif
24517 #ifdef HAVE_NETDB_H
24518 #include <netdb.h>
24519 #endif
24520 #ifdef HAVE_UNISTD_H
24521 #include <unistd.h>
24522 #endif
24523 #include <asn1.h>
24524 #include <snmp.h>
24525 #include <snmp_impl.h>
24526 int
24527 main ()
24528 {
24529  int a = 1;
24530   ;
24531   return 0;
24532 }
24533 _ACEOF
24534 rm -f conftest.$ac_objext
24535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24536   (eval $ac_compile) 2>conftest.er1
24537   ac_status=$?
24538   grep -v '^ *+' conftest.er1 >conftest.err
24539   rm -f conftest.er1
24540   cat conftest.err >&5
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); } &&
24543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545   (eval $ac_try) 2>&5
24546   ac_status=$?
24547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548   (exit $ac_status); }; } &&
24549          { ac_try='test -s conftest.$ac_objext'
24550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24551   (eval $ac_try) 2>&5
24552   ac_status=$?
24553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); }; }; then
24555   SNMP_INCLUDE="";ucdsnmp=no
24556 else
24557   echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560 ucdsnmp=
24561 fi
24562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24563     if test "x$ucdsnmp" != "x"; then
24564       break;
24565     fi
24566   done
24567   CFLAGS="$old_CFLAGS"
24568 fi
24569
24570 if test "x$ucdsnmp" = "x"; then
24571   old_CFLAGS="$CFLAGS"
24572   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24573     CFLAGS="$old_CFLAGS -I$try"
24574     cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h.  */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h.  */
24580
24581 #ifdef HAVE_SYS_TYPES_H
24582 #include <sys/types.h>
24583 #endif
24584 #ifdef HAVE_STDINT_H
24585 #include <stdint.h>
24586 #endif
24587 #ifdef HAVE_STDIO_H
24588 #include <stdio.h>
24589 #endif
24590 #ifdef HAVE_NETDB_H
24591 #include <netdb.h>
24592 #endif
24593 #ifdef HAVE_UNISTD_H
24594 #include <unistd.h>
24595 #endif
24596 #include <asn1.h>
24597 #include <snmp.h>
24598 #include <snmp_impl.h>
24599 int
24600 main ()
24601 {
24602  int a = 1;
24603   ;
24604   return 0;
24605 }
24606 _ACEOF
24607 rm -f conftest.$ac_objext
24608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24609   (eval $ac_compile) 2>conftest.er1
24610   ac_status=$?
24611   grep -v '^ *+' conftest.er1 >conftest.err
24612   rm -f conftest.er1
24613   cat conftest.err >&5
24614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615   (exit $ac_status); } &&
24616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24618   (eval $ac_try) 2>&5
24619   ac_status=$?
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); }; } &&
24622          { ac_try='test -s conftest.$ac_objext'
24623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624   (eval $ac_try) 2>&5
24625   ac_status=$?
24626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627   (exit $ac_status); }; }; then
24628   SNMP_INCLUDE="-I$try";ucdsnmp=no
24629 else
24630   echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24632
24633 ucdsnmp=
24634 fi
24635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24636     if test "x$ucdsnmp" != "x"; then
24637       break;
24638     fi
24639   done
24640   CFLAGS="$old_CFLAGS"
24641 fi
24642
24643 if test "x$ucdsnmp" = "x"; then
24644   echo "$as_me:$LINENO: result: no" >&5
24645 echo "${ECHO_T}no" >&6
24646 else
24647   if test "x$ucdsnmp" = "xyes"; then
24648     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24649 echo "${ECHO_T}(ucd-snmp)yes" >&6
24650
24651 cat >>confdefs.h <<\_ACEOF
24652 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24653 _ACEOF
24654
24655   else
24656     echo "$as_me:$LINENO: result: yes" >&5
24657 echo "${ECHO_T}yes" >&6
24658
24659 cat >>confdefs.h <<\_ACEOF
24660 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24661 _ACEOF
24662
24663   fi
24664   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24665 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
24666
24667   old_LIBS="$LIBS"
24668   LIBS="$old_LIBS -lsnmp"
24669   cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h.  */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h.  */
24675 extern char snmp_build_var_op();
24676 int
24677 main ()
24678 {
24679  snmp_build_var_op()
24680   ;
24681   return 0;
24682 }
24683 _ACEOF
24684 rm -f conftest.$ac_objext conftest$ac_exeext
24685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24686   (eval $ac_link) 2>conftest.er1
24687   ac_status=$?
24688   grep -v '^ *+' conftest.er1 >conftest.err
24689   rm -f conftest.er1
24690   cat conftest.err >&5
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); } &&
24693          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695   (eval $ac_try) 2>&5
24696   ac_status=$?
24697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698   (exit $ac_status); }; } &&
24699          { ac_try='test -s conftest$ac_exeext'
24700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701   (eval $ac_try) 2>&5
24702   ac_status=$?
24703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704   (exit $ac_status); }; }; then
24705   SNMP_LIBS="-lsnmp"
24706 else
24707   echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24709
24710 SNMP_LIBS=
24711 fi
24712 rm -f conftest.err conftest.$ac_objext \
24713       conftest$ac_exeext conftest.$ac_ext
24714
24715   if test "x$SNMP_LIBS" = "x"; then
24716     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24717       LIBS="$old_LIBS -L$try -lsnmp"
24718       cat >conftest.$ac_ext <<_ACEOF
24719 /* confdefs.h.  */
24720 _ACEOF
24721 cat confdefs.h >>conftest.$ac_ext
24722 cat >>conftest.$ac_ext <<_ACEOF
24723 /* end confdefs.h.  */
24724 extern char snmp_build_var_op();
24725 int
24726 main ()
24727 {
24728  snmp_build_var_op()
24729   ;
24730   return 0;
24731 }
24732 _ACEOF
24733 rm -f conftest.$ac_objext conftest$ac_exeext
24734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24735   (eval $ac_link) 2>conftest.er1
24736   ac_status=$?
24737   grep -v '^ *+' conftest.er1 >conftest.err
24738   rm -f conftest.er1
24739   cat conftest.err >&5
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); } &&
24742          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744   (eval $ac_try) 2>&5
24745   ac_status=$?
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); }; } &&
24748          { ac_try='test -s conftest$ac_exeext'
24749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750   (eval $ac_try) 2>&5
24751   ac_status=$?
24752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753   (exit $ac_status); }; }; then
24754   SNMP_LIBS="-L$try -lsnmp"
24755 else
24756   echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24758
24759 SNMP_LIBS=
24760 fi
24761 rm -f conftest.err conftest.$ac_objext \
24762       conftest$ac_exeext conftest.$ac_ext
24763       if test "x$SNMP_LIBS" != "x"; then
24764         break;
24765       fi
24766       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24767       cat >conftest.$ac_ext <<_ACEOF
24768 /* confdefs.h.  */
24769 _ACEOF
24770 cat confdefs.h >>conftest.$ac_ext
24771 cat >>conftest.$ac_ext <<_ACEOF
24772 /* end confdefs.h.  */
24773 extern char snmp_build_var_op();
24774 int
24775 main ()
24776 {
24777  snmp_build_var_op()
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24784   (eval $ac_link) 2>conftest.er1
24785   ac_status=$?
24786   grep -v '^ *+' conftest.er1 >conftest.err
24787   rm -f conftest.er1
24788   cat conftest.err >&5
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); } &&
24791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24793   (eval $ac_try) 2>&5
24794   ac_status=$?
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); }; } &&
24797          { ac_try='test -s conftest$ac_exeext'
24798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799   (eval $ac_try) 2>&5
24800   ac_status=$?
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); }; }; then
24803   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24804 else
24805   echo "$as_me: failed program was:" >&5
24806 sed 's/^/| /' conftest.$ac_ext >&5
24807
24808 SNMP_LIBS=
24809 fi
24810 rm -f conftest.err conftest.$ac_objext \
24811       conftest$ac_exeext conftest.$ac_ext
24812       if test "x$SNMP_LIBS" != "x"; then
24813         break;
24814       fi
24815       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24816       cat >conftest.$ac_ext <<_ACEOF
24817 /* confdefs.h.  */
24818 _ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h.  */
24822 extern char snmp_build_var_op();
24823 int
24824 main ()
24825 {
24826  snmp_build_var_op()
24827   ;
24828   return 0;
24829 }
24830 _ACEOF
24831 rm -f conftest.$ac_objext conftest$ac_exeext
24832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24833   (eval $ac_link) 2>conftest.er1
24834   ac_status=$?
24835   grep -v '^ *+' conftest.er1 >conftest.err
24836   rm -f conftest.er1
24837   cat conftest.err >&5
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); } &&
24840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842   (eval $ac_try) 2>&5
24843   ac_status=$?
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); }; } &&
24846          { ac_try='test -s conftest$ac_exeext'
24847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848   (eval $ac_try) 2>&5
24849   ac_status=$?
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); }; }; then
24852   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24853 else
24854   echo "$as_me: failed program was:" >&5
24855 sed 's/^/| /' conftest.$ac_ext >&5
24856
24857 SNMP_LIBS=
24858 fi
24859 rm -f conftest.err conftest.$ac_objext \
24860       conftest$ac_exeext conftest.$ac_ext
24861       if test "x$SNMP_LIBS" != "x"; then
24862         break;
24863       fi
24864     done
24865   fi
24866   LIBS="$old_LIBS"
24867
24868           CFLAGS="$old_CFLAGS"
24869   if test "x$SNMP_LIBS" = "x"; then
24870     echo "$as_me:$LINENO: result: no" >&5
24871 echo "${ECHO_T}no" >&6
24872     SNMP_INCLUDE=
24873   else
24874     echo "$as_me:$LINENO: result: yes" >&5
24875 echo "${ECHO_T}yes" >&6
24876
24877 cat >>confdefs.h <<\_ACEOF
24878 #define WITH_SNMP
24879 _ACEOF
24880
24881
24882 cat >>confdefs.h <<\_ACEOF
24883 #define HAVE_LIBSNMP
24884 _ACEOF
24885
24886   fi
24887 fi
24888
24889 fi
24890
24891
24892 cat >>confdefs.h <<\_ACEOF
24893 #define GNUSTYLE 1
24894 _ACEOF
24895
24896
24897 cat >>confdefs.h <<\_ACEOF
24898 #define SYSVSTYLE 2
24899 _ACEOF
24900
24901
24902 cat >>confdefs.h <<\_ACEOF
24903 #define BSDSTYLE 3
24904 _ACEOF
24905
24906 gethostbyaddrrstyle=""
24907 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24908 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24909 case "$host" in
24910 *-freebsd*)
24911
24912 cat >>confdefs.h <<\_ACEOF
24913 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24914 _ACEOF
24915
24916         gethostbyaddrrstyle=BSD
24917         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24918 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24919         ;;
24920 esac
24921 if test "x$gethostbyaddrrstyle" = "x"; then
24922         cat >conftest.$ac_ext <<_ACEOF
24923 /* confdefs.h.  */
24924 _ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h.  */
24928
24929 #include <stdio.h>
24930 #include <netdb.h>
24931
24932 int
24933 main ()
24934 {
24935  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24936   ;
24937   return 0;
24938 }
24939 _ACEOF
24940 rm -f conftest.$ac_objext conftest$ac_exeext
24941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24942   (eval $ac_link) 2>conftest.er1
24943   ac_status=$?
24944   grep -v '^ *+' conftest.er1 >conftest.err
24945   rm -f conftest.er1
24946   cat conftest.err >&5
24947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948   (exit $ac_status); } &&
24949          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951   (eval $ac_try) 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }; } &&
24955          { ac_try='test -s conftest$ac_exeext'
24956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957   (eval $ac_try) 2>&5
24958   ac_status=$?
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); }; }; then
24961
24962
24963 cat >>confdefs.h <<\_ACEOF
24964 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24965 _ACEOF
24966
24967         gethostbyaddrrstyle=GNU
24968
24969 else
24970   echo "$as_me: failed program was:" >&5
24971 sed 's/^/| /' conftest.$ac_ext >&5
24972
24973 fi
24974 rm -f conftest.err conftest.$ac_objext \
24975       conftest$ac_exeext conftest.$ac_ext
24976 fi
24977 if test "x$gethostbyaddrrstyle" = "x"; then
24978         cat >conftest.$ac_ext <<_ACEOF
24979 /* confdefs.h.  */
24980 _ACEOF
24981 cat confdefs.h >>conftest.$ac_ext
24982 cat >>conftest.$ac_ext <<_ACEOF
24983 /* end confdefs.h.  */
24984
24985 #include <stdio.h>
24986 #include <netdb.h>
24987
24988 int
24989 main ()
24990 {
24991  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24992   ;
24993   return 0;
24994 }
24995 _ACEOF
24996 rm -f conftest.$ac_objext conftest$ac_exeext
24997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24998   (eval $ac_link) 2>conftest.er1
24999   ac_status=$?
25000   grep -v '^ *+' conftest.er1 >conftest.err
25001   rm -f conftest.er1
25002   cat conftest.err >&5
25003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004   (exit $ac_status); } &&
25005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007   (eval $ac_try) 2>&5
25008   ac_status=$?
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); }; } &&
25011          { ac_try='test -s conftest$ac_exeext'
25012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013   (eval $ac_try) 2>&5
25014   ac_status=$?
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); }; }; then
25017
25018
25019 cat >>confdefs.h <<\_ACEOF
25020 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25021 _ACEOF
25022
25023                 gethostbyaddrrstyle=SYSV
25024
25025 else
25026   echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25028
25029 fi
25030 rm -f conftest.err conftest.$ac_objext \
25031       conftest$ac_exeext conftest.$ac_ext
25032 fi
25033 if test "x$gethostbyaddrrstyle" = "x"; then
25034         cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h.  */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h.  */
25040
25041 #include <stdio.h>
25042 #include <netdb.h>
25043
25044 int
25045 main ()
25046 {
25047  gethostbyaddr(NULL, 0, 0)
25048   ;
25049   return 0;
25050 }
25051 _ACEOF
25052 rm -f conftest.$ac_objext conftest$ac_exeext
25053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25054   (eval $ac_link) 2>conftest.er1
25055   ac_status=$?
25056   grep -v '^ *+' conftest.er1 >conftest.err
25057   rm -f conftest.er1
25058   cat conftest.err >&5
25059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060   (exit $ac_status); } &&
25061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25063   (eval $ac_try) 2>&5
25064   ac_status=$?
25065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066   (exit $ac_status); }; } &&
25067          { ac_try='test -s conftest$ac_exeext'
25068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069   (eval $ac_try) 2>&5
25070   ac_status=$?
25071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072   (exit $ac_status); }; }; then
25073
25074
25075 cat >>confdefs.h <<\_ACEOF
25076 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25077 _ACEOF
25078
25079                 gethostbyaddrrstyle=BSD
25080
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085 fi
25086 rm -f conftest.err conftest.$ac_objext \
25087       conftest$ac_exeext conftest.$ac_ext
25088 fi
25089
25090 if test "x$gethostbyaddrrstyle" = "x"; then
25091         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25092 echo "${ECHO_T}none!  It must not exist, here." >&6
25093 else
25094         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25095 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
25096 fi
25097
25098 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25099         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25100 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25101 fi
25102
25103 gethostbynamerstyle=""
25104 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25105 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
25106 cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h.  */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h.  */
25112
25113 #include <stdio.h>
25114 #include <netdb.h>
25115
25116 int
25117 main ()
25118 {
25119  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25120   ;
25121   return 0;
25122 }
25123 _ACEOF
25124 rm -f conftest.$ac_objext conftest$ac_exeext
25125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25126   (eval $ac_link) 2>conftest.er1
25127   ac_status=$?
25128   grep -v '^ *+' conftest.er1 >conftest.err
25129   rm -f conftest.er1
25130   cat conftest.err >&5
25131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132   (exit $ac_status); } &&
25133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135   (eval $ac_try) 2>&5
25136   ac_status=$?
25137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138   (exit $ac_status); }; } &&
25139          { ac_try='test -s conftest$ac_exeext'
25140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141   (eval $ac_try) 2>&5
25142   ac_status=$?
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); }; }; then
25145
25146
25147 cat >>confdefs.h <<\_ACEOF
25148 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25149 _ACEOF
25150
25151         gethostbynamerstyle=GNU
25152
25153 else
25154   echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157 fi
25158 rm -f conftest.err conftest.$ac_objext \
25159       conftest$ac_exeext conftest.$ac_ext
25160 if test "x$gethostbynamerstyle" = "x"; then
25161         cat >conftest.$ac_ext <<_ACEOF
25162 /* confdefs.h.  */
25163 _ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h.  */
25167
25168 #include <stdio.h>
25169 #include <netdb.h>
25170
25171 int
25172 main ()
25173 {
25174  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25175   ;
25176   return 0;
25177 }
25178 _ACEOF
25179 rm -f conftest.$ac_objext conftest$ac_exeext
25180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25181   (eval $ac_link) 2>conftest.er1
25182   ac_status=$?
25183   grep -v '^ *+' conftest.er1 >conftest.err
25184   rm -f conftest.er1
25185   cat conftest.err >&5
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); } &&
25188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190   (eval $ac_try) 2>&5
25191   ac_status=$?
25192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193   (exit $ac_status); }; } &&
25194          { ac_try='test -s conftest$ac_exeext'
25195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196   (eval $ac_try) 2>&5
25197   ac_status=$?
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); }; }; then
25200
25201
25202 cat >>confdefs.h <<\_ACEOF
25203 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25204 _ACEOF
25205
25206                 gethostbynamerstyle=SYSV
25207
25208 else
25209   echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25211
25212 fi
25213 rm -f conftest.err conftest.$ac_objext \
25214       conftest$ac_exeext conftest.$ac_ext
25215 fi
25216 if test "x$gethostbynamerstyle" = "x"; then
25217         cat >conftest.$ac_ext <<_ACEOF
25218 /* confdefs.h.  */
25219 _ACEOF
25220 cat confdefs.h >>conftest.$ac_ext
25221 cat >>conftest.$ac_ext <<_ACEOF
25222 /* end confdefs.h.  */
25223
25224 #include <stdio.h>
25225 #include <netdb.h>
25226
25227 int
25228 main ()
25229 {
25230  gethostbyname(NULL)
25231   ;
25232   return 0;
25233 }
25234 _ACEOF
25235 rm -f conftest.$ac_objext conftest$ac_exeext
25236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25237   (eval $ac_link) 2>conftest.er1
25238   ac_status=$?
25239   grep -v '^ *+' conftest.er1 >conftest.err
25240   rm -f conftest.er1
25241   cat conftest.err >&5
25242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); } &&
25244          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246   (eval $ac_try) 2>&5
25247   ac_status=$?
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); }; } &&
25250          { ac_try='test -s conftest$ac_exeext'
25251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252   (eval $ac_try) 2>&5
25253   ac_status=$?
25254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255   (exit $ac_status); }; }; then
25256
25257
25258 cat >>confdefs.h <<\_ACEOF
25259 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25260 _ACEOF
25261
25262                 gethostbynamerstyle=BSD
25263
25264 else
25265   echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25267
25268 fi
25269 rm -f conftest.err conftest.$ac_objext \
25270       conftest$ac_exeext conftest.$ac_ext
25271 fi
25272
25273 if test "x$gethostbynamerstyle" = "x"; then
25274         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25275 echo "${ECHO_T}none!  It must not exist, here." >&6
25276 else
25277         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25278 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
25279 fi
25280
25281 if test "x$gethostbynamerstyle" = "xBSD"; then
25282         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25283 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25284 fi
25285
25286
25287 cat >>confdefs.h <<\_ACEOF
25288 #define POSIXSTYLE 1
25289 _ACEOF
25290
25291
25292 cat >>confdefs.h <<\_ACEOF
25293 #define SOLARISSTYLE 2
25294 _ACEOF
25295
25296 ctimerstyle=""
25297 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25298 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
25299 cat >conftest.$ac_ext <<_ACEOF
25300 /* confdefs.h.  */
25301 _ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h.  */
25305
25306 #include <time.h>
25307
25308 int
25309 main ()
25310 {
25311  ctime_r(NULL, NULL, 0)
25312   ;
25313   return 0;
25314 }
25315 _ACEOF
25316 rm -f conftest.$ac_objext conftest$ac_exeext
25317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25318   (eval $ac_link) 2>conftest.er1
25319   ac_status=$?
25320   grep -v '^ *+' conftest.er1 >conftest.err
25321   rm -f conftest.er1
25322   cat conftest.err >&5
25323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324   (exit $ac_status); } &&
25325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327   (eval $ac_try) 2>&5
25328   ac_status=$?
25329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330   (exit $ac_status); }; } &&
25331          { ac_try='test -s conftest$ac_exeext'
25332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333   (eval $ac_try) 2>&5
25334   ac_status=$?
25335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); }; }; then
25337
25338
25339 cat >>confdefs.h <<\_ACEOF
25340 #define CTIMERSTYLE SOLARISSTYLE
25341 _ACEOF
25342
25343         ctimerstyle="SOLARIS"
25344
25345 else
25346   echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25348
25349 fi
25350 rm -f conftest.err conftest.$ac_objext \
25351       conftest$ac_exeext conftest.$ac_ext
25352 if test "x$ctimerstyle" = "x"; then
25353         cat >conftest.$ac_ext <<_ACEOF
25354 /* confdefs.h.  */
25355 _ACEOF
25356 cat confdefs.h >>conftest.$ac_ext
25357 cat >>conftest.$ac_ext <<_ACEOF
25358 /* end confdefs.h.  */
25359
25360 #include <time.h>
25361
25362 int
25363 main ()
25364 {
25365  ctime_r(NULL, NULL)
25366   ;
25367   return 0;
25368 }
25369 _ACEOF
25370 rm -f conftest.$ac_objext conftest$ac_exeext
25371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25372   (eval $ac_link) 2>conftest.er1
25373   ac_status=$?
25374   grep -v '^ *+' conftest.er1 >conftest.err
25375   rm -f conftest.er1
25376   cat conftest.err >&5
25377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378   (exit $ac_status); } &&
25379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381   (eval $ac_try) 2>&5
25382   ac_status=$?
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); }; } &&
25385          { ac_try='test -s conftest$ac_exeext'
25386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387   (eval $ac_try) 2>&5
25388   ac_status=$?
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); }; }; then
25391
25392
25393 cat >>confdefs.h <<\_ACEOF
25394 #define CTIMERSTYLE POSIXSTYLE
25395 _ACEOF
25396
25397                 ctimerstyle="POSIX"
25398
25399 else
25400   echo "$as_me: failed program was:" >&5
25401 sed 's/^/| /' conftest.$ac_ext >&5
25402
25403 fi
25404 rm -f conftest.err conftest.$ac_objext \
25405       conftest$ac_exeext conftest.$ac_ext
25406 fi
25407
25408 if test "x$ctimerstyle" = "x"; then
25409         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25410 echo "${ECHO_T}none!  It must not exist, here." >&6
25411 else
25412         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25413 echo "${ECHO_T}${ctimerstyle}-style" >&6
25414 fi
25415
25416 HOSTINFO=$host
25417
25418
25419
25420 top_builddir=`pwd`
25421 export top_builddir
25422 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25423 echo "${ECHO_T}top_builddir=$top_builddir" >&6
25424
25425
25426
25427 if test "x$INCLTDL" != "x";then
25428   INCLTDL='-I${top_builddir}/''libltdl'
25429 fi
25430
25431
25432
25433 mysubdirs="$LIBLTDLPATH"
25434 if test "x$EXPERIMENTAL" = "xyes"; then
25435   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
25436     mysubdirs=`echo $mysubdirs $bar`
25437 else
25438         for bar in `cat src/modules/stable`; do
25439     if test -f src/modules/$bar/configure; then
25440       mysubdirs="$mysubdirs src/modules/$bar"
25441     fi
25442   done
25443 fi
25444
25445 MODULES=
25446 if test "x$EXPERIMENTAL" = "xyes"; then
25447   for foo in `ls -1 src/modules | grep rlm_`; do
25448     MODULES="$MODULES $foo"
25449   done
25450 else
25451             for foo in `cat src/modules/stable`; do
25452     MODULES="$MODULES $foo"
25453    done
25454 fi
25455
25456
25457
25458 subdirs="$subdirs $mysubdirs"
25459
25460
25461
25462
25463           ac_config_commands="$ac_config_commands stamp-h"
25464
25465           ac_config_commands="$ac_config_commands build-radpaths-h"
25466
25467           ac_config_commands="$ac_config_commands main-chmod"
25468
25469           ac_config_commands="$ac_config_commands scripts-chmod"
25470
25471
25472
25473
25474
25475 USE_SHARED_LIBS=$enable_shared
25476
25477 USE_STATIC_LIBS=$enable_static
25478
25479
25480
25481
25482
25483 export CFLAGS LIBS LDFLAGS CPPFLAGS
25484
25485                                                                                                                                                       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 ./raddb/radrelay.conf"
25486 cat >confcache <<\_ACEOF
25487 # This file is a shell script that caches the results of configure
25488 # tests run on this system so they can be shared between configure
25489 # scripts and configure runs, see configure's option --config-cache.
25490 # It is not useful on other systems.  If it contains results you don't
25491 # want to keep, you may remove or edit it.
25492 #
25493 # config.status only pays attention to the cache file if you give it
25494 # the --recheck option to rerun configure.
25495 #
25496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25498 # following values.
25499
25500 _ACEOF
25501
25502 # The following way of writing the cache mishandles newlines in values,
25503 # but we know of no workaround that is simple, portable, and efficient.
25504 # So, don't put newlines in cache variables' values.
25505 # Ultrix sh set writes to stderr and can't be redirected directly,
25506 # and sets the high bit in the cache file unless we assign to the vars.
25507 {
25508   (set) 2>&1 |
25509     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25510     *ac_space=\ *)
25511       # `set' does not quote correctly, so add quotes (double-quote
25512       # substitution turns \\\\ into \\, and sed turns \\ into \).
25513       sed -n \
25514         "s/'/'\\\\''/g;
25515           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25516       ;;
25517     *)
25518       # `set' quotes correctly as required by POSIX, so do not add quotes.
25519       sed -n \
25520         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25521       ;;
25522     esac;
25523 } |
25524   sed '
25525      t clear
25526      : clear
25527      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25528      t end
25529      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25530      : end' >>confcache
25531 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25532   if test -w $cache_file; then
25533     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25534     cat confcache >$cache_file
25535   else
25536     echo "not updating unwritable cache $cache_file"
25537   fi
25538 fi
25539 rm -f confcache
25540
25541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25542 # Let make expand exec_prefix.
25543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25544
25545 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25546 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25547 # trailing colons and then remove the whole line if VPATH becomes empty
25548 # (actually we leave an empty line to preserve line numbers).
25549 if test "x$srcdir" = x.; then
25550   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25551 s/:*\$(srcdir):*/:/;
25552 s/:*\${srcdir}:*/:/;
25553 s/:*@srcdir@:*/:/;
25554 s/^\([^=]*=[     ]*\):*/\1/;
25555 s/:*$//;
25556 s/^[^=]*=[       ]*$//;
25557 }'
25558 fi
25559
25560 DEFS=-DHAVE_CONFIG_H
25561
25562 ac_libobjs=
25563 ac_ltlibobjs=
25564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25565   # 1. Remove the extension, and $U if already installed.
25566   ac_i=`echo "$ac_i" |
25567          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25568   # 2. Add them.
25569   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25570   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25571 done
25572 LIBOBJS=$ac_libobjs
25573
25574 LTLIBOBJS=$ac_ltlibobjs
25575
25576
25577
25578 : ${CONFIG_STATUS=./config.status}
25579 ac_clean_files_save=$ac_clean_files
25580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25581 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25582 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25583 cat >$CONFIG_STATUS <<_ACEOF
25584 #! $SHELL
25585 # Generated by $as_me.
25586 # Run this file to recreate the current configuration.
25587 # Compiler output produced by configure, useful for debugging
25588 # configure, is in config.log if it exists.
25589
25590 debug=false
25591 ac_cs_recheck=false
25592 ac_cs_silent=false
25593 SHELL=\${CONFIG_SHELL-$SHELL}
25594 _ACEOF
25595
25596 cat >>$CONFIG_STATUS <<\_ACEOF
25597 ## --------------------- ##
25598 ## M4sh Initialization.  ##
25599 ## --------------------- ##
25600
25601 # Be Bourne compatible
25602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25603   emulate sh
25604   NULLCMD=:
25605   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25606   # is contrary to our usage.  Disable this feature.
25607   alias -g '${1+"$@"}'='"$@"'
25608 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25609   set -o posix
25610 fi
25611 DUALCASE=1; export DUALCASE # for MKS sh
25612
25613 # Support unset when possible.
25614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25615   as_unset=unset
25616 else
25617   as_unset=false
25618 fi
25619
25620
25621 # Work around bugs in pre-3.0 UWIN ksh.
25622 $as_unset ENV MAIL MAILPATH
25623 PS1='$ '
25624 PS2='> '
25625 PS4='+ '
25626
25627 # NLS nuisances.
25628 for as_var in \
25629   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25630   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25631   LC_TELEPHONE LC_TIME
25632 do
25633   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25634     eval $as_var=C; export $as_var
25635   else
25636     $as_unset $as_var
25637   fi
25638 done
25639
25640 # Required to use basename.
25641 if expr a : '\(a\)' >/dev/null 2>&1; then
25642   as_expr=expr
25643 else
25644   as_expr=false
25645 fi
25646
25647 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25648   as_basename=basename
25649 else
25650   as_basename=false
25651 fi
25652
25653
25654 # Name of the executable.
25655 as_me=`$as_basename "$0" ||
25656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25657          X"$0" : 'X\(//\)$' \| \
25658          X"$0" : 'X\(/\)$' \| \
25659          .     : '\(.\)' 2>/dev/null ||
25660 echo X/"$0" |
25661     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25662           /^X\/\(\/\/\)$/{ s//\1/; q; }
25663           /^X\/\(\/\).*/{ s//\1/; q; }
25664           s/.*/./; q'`
25665
25666
25667 # PATH needs CR, and LINENO needs CR and PATH.
25668 # Avoid depending upon Character Ranges.
25669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25672 as_cr_digits='0123456789'
25673 as_cr_alnum=$as_cr_Letters$as_cr_digits
25674
25675 # The user is always right.
25676 if test "${PATH_SEPARATOR+set}" != set; then
25677   echo "#! /bin/sh" >conf$$.sh
25678   echo  "exit 0"   >>conf$$.sh
25679   chmod +x conf$$.sh
25680   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25681     PATH_SEPARATOR=';'
25682   else
25683     PATH_SEPARATOR=:
25684   fi
25685   rm -f conf$$.sh
25686 fi
25687
25688
25689   as_lineno_1=$LINENO
25690   as_lineno_2=$LINENO
25691   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25692   test "x$as_lineno_1" != "x$as_lineno_2" &&
25693   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25694   # Find who we are.  Look in the path if we contain no path at all
25695   # relative or not.
25696   case $0 in
25697     *[\\/]* ) as_myself=$0 ;;
25698     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25699 for as_dir in $PATH
25700 do
25701   IFS=$as_save_IFS
25702   test -z "$as_dir" && as_dir=.
25703   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25704 done
25705
25706        ;;
25707   esac
25708   # We did not find ourselves, most probably we were run as `sh COMMAND'
25709   # in which case we are not to be found in the path.
25710   if test "x$as_myself" = x; then
25711     as_myself=$0
25712   fi
25713   if test ! -f "$as_myself"; then
25714     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25715 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25716    { (exit 1); exit 1; }; }
25717   fi
25718   case $CONFIG_SHELL in
25719   '')
25720     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25721 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25722 do
25723   IFS=$as_save_IFS
25724   test -z "$as_dir" && as_dir=.
25725   for as_base in sh bash ksh sh5; do
25726          case $as_dir in
25727          /*)
25728            if ("$as_dir/$as_base" -c '
25729   as_lineno_1=$LINENO
25730   as_lineno_2=$LINENO
25731   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25732   test "x$as_lineno_1" != "x$as_lineno_2" &&
25733   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25734              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25735              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25736              CONFIG_SHELL=$as_dir/$as_base
25737              export CONFIG_SHELL
25738              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25739            fi;;
25740          esac
25741        done
25742 done
25743 ;;
25744   esac
25745
25746   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25747   # uniformly replaced by the line number.  The first 'sed' inserts a
25748   # line-number line before each line; the second 'sed' does the real
25749   # work.  The second script uses 'N' to pair each line-number line
25750   # with the numbered line, and appends trailing '-' during
25751   # substitution so that $LINENO is not a special case at line end.
25752   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25753   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25754   sed '=' <$as_myself |
25755     sed '
25756       N
25757       s,$,-,
25758       : loop
25759       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25760       t loop
25761       s,-$,,
25762       s,^['$as_cr_digits']*\n,,
25763     ' >$as_me.lineno &&
25764   chmod +x $as_me.lineno ||
25765     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25766 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25767    { (exit 1); exit 1; }; }
25768
25769   # Don't try to exec as it changes $[0], causing all sort of problems
25770   # (the dirname of $[0] is not the place where we might find the
25771   # original and so on.  Autoconf is especially sensible to this).
25772   . ./$as_me.lineno
25773   # Exit status is that of the last command.
25774   exit
25775 }
25776
25777
25778 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25779   *c*,-n*) ECHO_N= ECHO_C='
25780 ' ECHO_T='      ' ;;
25781   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25782   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25783 esac
25784
25785 if expr a : '\(a\)' >/dev/null 2>&1; then
25786   as_expr=expr
25787 else
25788   as_expr=false
25789 fi
25790
25791 rm -f conf$$ conf$$.exe conf$$.file
25792 echo >conf$$.file
25793 if ln -s conf$$.file conf$$ 2>/dev/null; then
25794   # We could just check for DJGPP; but this test a) works b) is more generic
25795   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25796   if test -f conf$$.exe; then
25797     # Don't use ln at all; we don't have any links
25798     as_ln_s='cp -p'
25799   else
25800     as_ln_s='ln -s'
25801   fi
25802 elif ln conf$$.file conf$$ 2>/dev/null; then
25803   as_ln_s=ln
25804 else
25805   as_ln_s='cp -p'
25806 fi
25807 rm -f conf$$ conf$$.exe conf$$.file
25808
25809 if mkdir -p . 2>/dev/null; then
25810   as_mkdir_p=:
25811 else
25812   test -d ./-p && rmdir ./-p
25813   as_mkdir_p=false
25814 fi
25815
25816 as_executable_p="test -f"
25817
25818 # Sed expression to map a string onto a valid CPP name.
25819 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25820
25821 # Sed expression to map a string onto a valid variable name.
25822 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25823
25824
25825 # IFS
25826 # We need space, tab and new line, in precisely that order.
25827 as_nl='
25828 '
25829 IFS="   $as_nl"
25830
25831 # CDPATH.
25832 $as_unset CDPATH
25833
25834 exec 6>&1
25835
25836 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25837 # report actual input values of CONFIG_FILES etc. instead of their
25838 # values after options handling.  Logging --version etc. is OK.
25839 exec 5>>config.log
25840 {
25841   echo
25842   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25843 ## Running $as_me. ##
25844 _ASBOX
25845 } >&5
25846 cat >&5 <<_CSEOF
25847
25848 This file was extended by $as_me, which was
25849 generated by GNU Autoconf 2.59.  Invocation command line was
25850
25851   CONFIG_FILES    = $CONFIG_FILES
25852   CONFIG_HEADERS  = $CONFIG_HEADERS
25853   CONFIG_LINKS    = $CONFIG_LINKS
25854   CONFIG_COMMANDS = $CONFIG_COMMANDS
25855   $ $0 $@
25856
25857 _CSEOF
25858 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25859 echo >&5
25860 _ACEOF
25861
25862 # Files that config.status was made for.
25863 if test -n "$ac_config_files"; then
25864   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25865 fi
25866
25867 if test -n "$ac_config_headers"; then
25868   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25869 fi
25870
25871 if test -n "$ac_config_links"; then
25872   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25873 fi
25874
25875 if test -n "$ac_config_commands"; then
25876   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25877 fi
25878
25879 cat >>$CONFIG_STATUS <<\_ACEOF
25880
25881 ac_cs_usage="\
25882 \`$as_me' instantiates files from templates according to the
25883 current configuration.
25884
25885 Usage: $0 [OPTIONS] [FILE]...
25886
25887   -h, --help       print this help, then exit
25888   -V, --version    print version number, then exit
25889   -q, --quiet      do not print progress messages
25890   -d, --debug      don't remove temporary files
25891       --recheck    update $as_me by reconfiguring in the same conditions
25892   --file=FILE[:TEMPLATE]
25893                    instantiate the configuration file FILE
25894   --header=FILE[:TEMPLATE]
25895                    instantiate the configuration header FILE
25896
25897 Configuration files:
25898 $config_files
25899
25900 Configuration headers:
25901 $config_headers
25902
25903 Configuration commands:
25904 $config_commands
25905
25906 Report bugs to <bug-autoconf@gnu.org>."
25907 _ACEOF
25908
25909 cat >>$CONFIG_STATUS <<_ACEOF
25910 ac_cs_version="\\
25911 config.status
25912 configured by $0, generated by GNU Autoconf 2.59,
25913   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25914
25915 Copyright (C) 2003 Free Software Foundation, Inc.
25916 This config.status script is free software; the Free Software Foundation
25917 gives unlimited permission to copy, distribute and modify it."
25918 srcdir=$srcdir
25919 _ACEOF
25920
25921 cat >>$CONFIG_STATUS <<\_ACEOF
25922 # If no file are specified by the user, then we need to provide default
25923 # value.  By we need to know if files were specified by the user.
25924 ac_need_defaults=:
25925 while test $# != 0
25926 do
25927   case $1 in
25928   --*=*)
25929     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25930     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25931     ac_shift=:
25932     ;;
25933   -*)
25934     ac_option=$1
25935     ac_optarg=$2
25936     ac_shift=shift
25937     ;;
25938   *) # This is not an option, so the user has probably given explicit
25939      # arguments.
25940      ac_option=$1
25941      ac_need_defaults=false;;
25942   esac
25943
25944   case $ac_option in
25945   # Handling of the options.
25946 _ACEOF
25947 cat >>$CONFIG_STATUS <<\_ACEOF
25948   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25949     ac_cs_recheck=: ;;
25950   --version | --vers* | -V )
25951     echo "$ac_cs_version"; exit 0 ;;
25952   --he | --h)
25953     # Conflict between --help and --header
25954     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25955 Try \`$0 --help' for more information." >&5
25956 echo "$as_me: error: ambiguous option: $1
25957 Try \`$0 --help' for more information." >&2;}
25958    { (exit 1); exit 1; }; };;
25959   --help | --hel | -h )
25960     echo "$ac_cs_usage"; exit 0 ;;
25961   --debug | --d* | -d )
25962     debug=: ;;
25963   --file | --fil | --fi | --f )
25964     $ac_shift
25965     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25966     ac_need_defaults=false;;
25967   --header | --heade | --head | --hea )
25968     $ac_shift
25969     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25970     ac_need_defaults=false;;
25971   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25972   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25973     ac_cs_silent=: ;;
25974
25975   # This is an error.
25976   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25977 Try \`$0 --help' for more information." >&5
25978 echo "$as_me: error: unrecognized option: $1
25979 Try \`$0 --help' for more information." >&2;}
25980    { (exit 1); exit 1; }; } ;;
25981
25982   *) ac_config_targets="$ac_config_targets $1" ;;
25983
25984   esac
25985   shift
25986 done
25987
25988 ac_configure_extra_args=
25989
25990 if $ac_cs_silent; then
25991   exec 6>/dev/null
25992   ac_configure_extra_args="$ac_configure_extra_args --silent"
25993 fi
25994
25995 _ACEOF
25996 cat >>$CONFIG_STATUS <<_ACEOF
25997 if \$ac_cs_recheck; then
25998   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25999   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26000 fi
26001
26002 _ACEOF
26003
26004
26005
26006
26007
26008 cat >>$CONFIG_STATUS <<\_ACEOF
26009 for ac_config_target in $ac_config_targets
26010 do
26011   case "$ac_config_target" in
26012   # Handling of arguments.
26013   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26014   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26015   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26016   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26017   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26018   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26019   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26020   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26021   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
26022   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26023   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26024   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26025   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26026   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26027   "./raddb/radrelay.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
26028   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26029   "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26030   "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26031   "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26032   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26033   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26034 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26035    { (exit 1); exit 1; }; };;
26036   esac
26037 done
26038
26039 # If the user did not use the arguments to specify the items to instantiate,
26040 # then the envvar interface is used.  Set only those that are not.
26041 # We use the long form for the default assignment because of an extremely
26042 # bizarre bug on SunOS 4.1.3.
26043 if $ac_need_defaults; then
26044   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26045   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26046   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26047 fi
26048
26049 # Have a temporary directory for convenience.  Make it in the build tree
26050 # simply because there is no reason to put it here, and in addition,
26051 # creating and moving files from /tmp can sometimes cause problems.
26052 # Create a temporary directory, and hook for its removal unless debugging.
26053 $debug ||
26054 {
26055   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26056   trap '{ (exit 1); exit 1; }' 1 2 13 15
26057 }
26058
26059 # Create a (secure) tmp directory for tmp files.
26060
26061 {
26062   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26063   test -n "$tmp" && test -d "$tmp"
26064 }  ||
26065 {
26066   tmp=./confstat$$-$RANDOM
26067   (umask 077 && mkdir $tmp)
26068 } ||
26069 {
26070    echo "$me: cannot create a temporary directory in ." >&2
26071    { (exit 1); exit 1; }
26072 }
26073
26074 _ACEOF
26075
26076 cat >>$CONFIG_STATUS <<_ACEOF
26077
26078 #
26079 # CONFIG_FILES section.
26080 #
26081
26082 # No need to generate the scripts if there are no CONFIG_FILES.
26083 # This happens for instance when ./config.status config.h
26084 if test -n "\$CONFIG_FILES"; then
26085   # Protect against being on the right side of a sed subst in config.status.
26086   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26087    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26088 s,@SHELL@,$SHELL,;t t
26089 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26090 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26091 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26092 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26093 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26094 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26095 s,@exec_prefix@,$exec_prefix,;t t
26096 s,@prefix@,$prefix,;t t
26097 s,@program_transform_name@,$program_transform_name,;t t
26098 s,@bindir@,$bindir,;t t
26099 s,@sbindir@,$sbindir,;t t
26100 s,@libexecdir@,$libexecdir,;t t
26101 s,@datadir@,$datadir,;t t
26102 s,@sysconfdir@,$sysconfdir,;t t
26103 s,@sharedstatedir@,$sharedstatedir,;t t
26104 s,@localstatedir@,$localstatedir,;t t
26105 s,@libdir@,$libdir,;t t
26106 s,@includedir@,$includedir,;t t
26107 s,@oldincludedir@,$oldincludedir,;t t
26108 s,@infodir@,$infodir,;t t
26109 s,@mandir@,$mandir,;t t
26110 s,@build_alias@,$build_alias,;t t
26111 s,@host_alias@,$host_alias,;t t
26112 s,@target_alias@,$target_alias,;t t
26113 s,@DEFS@,$DEFS,;t t
26114 s,@ECHO_C@,$ECHO_C,;t t
26115 s,@ECHO_N@,$ECHO_N,;t t
26116 s,@ECHO_T@,$ECHO_T,;t t
26117 s,@LIBS@,$LIBS,;t t
26118 s,@CC@,$CC,;t t
26119 s,@CFLAGS@,$CFLAGS,;t t
26120 s,@LDFLAGS@,$LDFLAGS,;t t
26121 s,@CPPFLAGS@,$CPPFLAGS,;t t
26122 s,@ac_ct_CC@,$ac_ct_CC,;t t
26123 s,@EXEEXT@,$EXEEXT,;t t
26124 s,@OBJEXT@,$OBJEXT,;t t
26125 s,@CPP@,$CPP,;t t
26126 s,@EGREP@,$EGREP,;t t
26127 s,@RANLIB@,$RANLIB,;t t
26128 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26129 s,@abs_top_builddir@,$abs_top_builddir,;t t
26130 s,@GMAKE@,$GMAKE,;t t
26131 s,@MAKE@,$MAKE,;t t
26132 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
26133 s,@LIBTOOL@,$LIBTOOL,;t t
26134 s,@build@,$build,;t t
26135 s,@build_cpu@,$build_cpu,;t t
26136 s,@build_vendor@,$build_vendor,;t t
26137 s,@build_os@,$build_os,;t t
26138 s,@host@,$host,;t t
26139 s,@host_cpu@,$host_cpu,;t t
26140 s,@host_vendor@,$host_vendor,;t t
26141 s,@host_os@,$host_os,;t t
26142 s,@LN_S@,$LN_S,;t t
26143 s,@ECHO@,$ECHO,;t t
26144 s,@AR@,$AR,;t t
26145 s,@ac_ct_AR@,$ac_ct_AR,;t t
26146 s,@STRIP@,$STRIP,;t t
26147 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26148 s,@CXX@,$CXX,;t t
26149 s,@CXXFLAGS@,$CXXFLAGS,;t t
26150 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26151 s,@CXXCPP@,$CXXCPP,;t t
26152 s,@F77@,$F77,;t t
26153 s,@FFLAGS@,$FFLAGS,;t t
26154 s,@ac_ct_F77@,$ac_ct_F77,;t t
26155 s,@logdir@,$logdir,;t t
26156 s,@radacctdir@,$radacctdir,;t t
26157 s,@raddbdir@,$raddbdir,;t t
26158 s,@PERL@,$PERL,;t t
26159 s,@SNMPGET@,$SNMPGET,;t t
26160 s,@SNMPWALK@,$SNMPWALK,;t t
26161 s,@RUSERS@,$RUSERS,;t t
26162 s,@ACLOCAL@,$ACLOCAL,;t t
26163 s,@AUTOCONF@,$AUTOCONF,;t t
26164 s,@AUTOHEADER@,$AUTOHEADER,;t t
26165 s,@LOCATE@,$LOCATE,;t t
26166 s,@DIRNAME@,$DIRNAME,;t t
26167 s,@GREP@,$GREP,;t t
26168 s,@REGEX@,$REGEX,;t t
26169 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
26170 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
26171 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
26172 s,@LIBPREFIX@,$LIBPREFIX,;t t
26173 s,@CRYPTLIB@,$CRYPTLIB,;t t
26174 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
26175 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
26176 s,@HOSTINFO@,$HOSTINFO,;t t
26177 s,@LIBLTDL@,$LIBLTDL,;t t
26178 s,@INCLTDL@,$INCLTDL,;t t
26179 s,@subdirs@,$subdirs,;t t
26180 s,@MODULES@,$MODULES,;t t
26181 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
26182 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
26183 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
26184 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
26185 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
26186 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
26187 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
26188 s,@LIBOBJS@,$LIBOBJS,;t t
26189 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26190 CEOF
26191
26192 _ACEOF
26193
26194   cat >>$CONFIG_STATUS <<\_ACEOF
26195   # Split the substitutions into bite-sized pieces for seds with
26196   # small command number limits, like on Digital OSF/1 and HP-UX.
26197   ac_max_sed_lines=48
26198   ac_sed_frag=1 # Number of current file.
26199   ac_beg=1 # First line for current file.
26200   ac_end=$ac_max_sed_lines # Line after last line for current file.
26201   ac_more_lines=:
26202   ac_sed_cmds=
26203   while $ac_more_lines; do
26204     if test $ac_beg -gt 1; then
26205       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26206     else
26207       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26208     fi
26209     if test ! -s $tmp/subs.frag; then
26210       ac_more_lines=false
26211     else
26212       # The purpose of the label and of the branching condition is to
26213       # speed up the sed processing (if there are no `@' at all, there
26214       # is no need to browse any of the substitutions).
26215       # These are the two extra sed commands mentioned above.
26216       (echo ':t
26217   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26218       if test -z "$ac_sed_cmds"; then
26219         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26220       else
26221         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26222       fi
26223       ac_sed_frag=`expr $ac_sed_frag + 1`
26224       ac_beg=$ac_end
26225       ac_end=`expr $ac_end + $ac_max_sed_lines`
26226     fi
26227   done
26228   if test -z "$ac_sed_cmds"; then
26229     ac_sed_cmds=cat
26230   fi
26231 fi # test -n "$CONFIG_FILES"
26232
26233 _ACEOF
26234 cat >>$CONFIG_STATUS <<\_ACEOF
26235 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26236   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26237   case $ac_file in
26238   - | *:- | *:-:* ) # input from stdin
26239         cat >$tmp/stdin
26240         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26241         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26242   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26243         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26244   * )   ac_file_in=$ac_file.in ;;
26245   esac
26246
26247   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26248   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26250          X"$ac_file" : 'X\(//\)[^/]' \| \
26251          X"$ac_file" : 'X\(//\)$' \| \
26252          X"$ac_file" : 'X\(/\)' \| \
26253          .     : '\(.\)' 2>/dev/null ||
26254 echo X"$ac_file" |
26255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26256           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26257           /^X\(\/\/\)$/{ s//\1/; q; }
26258           /^X\(\/\).*/{ s//\1/; q; }
26259           s/.*/./; q'`
26260   { if $as_mkdir_p; then
26261     mkdir -p "$ac_dir"
26262   else
26263     as_dir="$ac_dir"
26264     as_dirs=
26265     while test ! -d "$as_dir"; do
26266       as_dirs="$as_dir $as_dirs"
26267       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26269          X"$as_dir" : 'X\(//\)[^/]' \| \
26270          X"$as_dir" : 'X\(//\)$' \| \
26271          X"$as_dir" : 'X\(/\)' \| \
26272          .     : '\(.\)' 2>/dev/null ||
26273 echo X"$as_dir" |
26274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26275           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26276           /^X\(\/\/\)$/{ s//\1/; q; }
26277           /^X\(\/\).*/{ s//\1/; q; }
26278           s/.*/./; q'`
26279     done
26280     test ! -n "$as_dirs" || mkdir $as_dirs
26281   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26282 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26283    { (exit 1); exit 1; }; }; }
26284
26285   ac_builddir=.
26286
26287 if test "$ac_dir" != .; then
26288   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26289   # A "../" for each directory in $ac_dir_suffix.
26290   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26291 else
26292   ac_dir_suffix= ac_top_builddir=
26293 fi
26294
26295 case $srcdir in
26296   .)  # No --srcdir option.  We are building in place.
26297     ac_srcdir=.
26298     if test -z "$ac_top_builddir"; then
26299        ac_top_srcdir=.
26300     else
26301        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26302     fi ;;
26303   [\\/]* | ?:[\\/]* )  # Absolute path.
26304     ac_srcdir=$srcdir$ac_dir_suffix;
26305     ac_top_srcdir=$srcdir ;;
26306   *) # Relative path.
26307     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26308     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26309 esac
26310
26311 # Do not use `cd foo && pwd` to compute absolute paths, because
26312 # the directories may not exist.
26313 case `pwd` in
26314 .) ac_abs_builddir="$ac_dir";;
26315 *)
26316   case "$ac_dir" in
26317   .) ac_abs_builddir=`pwd`;;
26318   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26319   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26320   esac;;
26321 esac
26322 case $ac_abs_builddir in
26323 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26324 *)
26325   case ${ac_top_builddir}. in
26326   .) ac_abs_top_builddir=$ac_abs_builddir;;
26327   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26328   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26329   esac;;
26330 esac
26331 case $ac_abs_builddir in
26332 .) ac_abs_srcdir=$ac_srcdir;;
26333 *)
26334   case $ac_srcdir in
26335   .) ac_abs_srcdir=$ac_abs_builddir;;
26336   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26337   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26338   esac;;
26339 esac
26340 case $ac_abs_builddir in
26341 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26342 *)
26343   case $ac_top_srcdir in
26344   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26345   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26346   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26347   esac;;
26348 esac
26349
26350
26351
26352   # Let's still pretend it is `configure' which instantiates (i.e., don't
26353   # use $as_me), people would be surprised to read:
26354   #    /* config.h.  Generated by config.status.  */
26355   if test x"$ac_file" = x-; then
26356     configure_input=
26357   else
26358     configure_input="$ac_file.  "
26359   fi
26360   configure_input=$configure_input"Generated from `echo $ac_file_in |
26361                                      sed 's,.*/,,'` by configure."
26362
26363   # First look for the input files in the build tree, otherwise in the
26364   # src tree.
26365   ac_file_inputs=`IFS=:
26366     for f in $ac_file_in; do
26367       case $f in
26368       -) echo $tmp/stdin ;;
26369       [\\/$]*)
26370          # Absolute (can't be DOS-style, as IFS=:)
26371          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26372 echo "$as_me: error: cannot find input file: $f" >&2;}
26373    { (exit 1); exit 1; }; }
26374          echo "$f";;
26375       *) # Relative
26376          if test -f "$f"; then
26377            # Build tree
26378            echo "$f"
26379          elif test -f "$srcdir/$f"; then
26380            # Source tree
26381            echo "$srcdir/$f"
26382          else
26383            # /dev/null tree
26384            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26385 echo "$as_me: error: cannot find input file: $f" >&2;}
26386    { (exit 1); exit 1; }; }
26387          fi;;
26388       esac
26389     done` || { (exit 1); exit 1; }
26390
26391   if test x"$ac_file" != x-; then
26392     { echo "$as_me:$LINENO: creating $ac_file" >&5
26393 echo "$as_me: creating $ac_file" >&6;}
26394     rm -f "$ac_file"
26395   fi
26396 _ACEOF
26397 cat >>$CONFIG_STATUS <<_ACEOF
26398   sed "$ac_vpsub
26399 $extrasub
26400 _ACEOF
26401 cat >>$CONFIG_STATUS <<\_ACEOF
26402 :t
26403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26404 s,@configure_input@,$configure_input,;t t
26405 s,@srcdir@,$ac_srcdir,;t t
26406 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26407 s,@top_srcdir@,$ac_top_srcdir,;t t
26408 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26409 s,@builddir@,$ac_builddir,;t t
26410 s,@abs_builddir@,$ac_abs_builddir,;t t
26411 s,@top_builddir@,$ac_top_builddir,;t t
26412 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26413 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26414   rm -f $tmp/stdin
26415   if test x"$ac_file" != x-; then
26416     mv $tmp/out $ac_file
26417   else
26418     cat $tmp/out
26419     rm -f $tmp/out
26420   fi
26421
26422 done
26423 _ACEOF
26424 cat >>$CONFIG_STATUS <<\_ACEOF
26425
26426 #
26427 # CONFIG_HEADER section.
26428 #
26429
26430 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26431 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26432 #
26433 # ac_d sets the value in "#define NAME VALUE" lines.
26434 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
26435 ac_dB='[         ].*$,\1#\2'
26436 ac_dC=' '
26437 ac_dD=',;t'
26438 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26439 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26440 ac_uB='$,\1#\2define\3'
26441 ac_uC=' '
26442 ac_uD=',;t'
26443
26444 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26445   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26446   case $ac_file in
26447   - | *:- | *:-:* ) # input from stdin
26448         cat >$tmp/stdin
26449         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26450         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26451   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26452         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26453   * )   ac_file_in=$ac_file.in ;;
26454   esac
26455
26456   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26457 echo "$as_me: creating $ac_file" >&6;}
26458
26459   # First look for the input files in the build tree, otherwise in the
26460   # src tree.
26461   ac_file_inputs=`IFS=:
26462     for f in $ac_file_in; do
26463       case $f in
26464       -) echo $tmp/stdin ;;
26465       [\\/$]*)
26466          # Absolute (can't be DOS-style, as IFS=:)
26467          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26468 echo "$as_me: error: cannot find input file: $f" >&2;}
26469    { (exit 1); exit 1; }; }
26470          # Do quote $f, to prevent DOS paths from being IFS'd.
26471          echo "$f";;
26472       *) # Relative
26473          if test -f "$f"; then
26474            # Build tree
26475            echo "$f"
26476          elif test -f "$srcdir/$f"; then
26477            # Source tree
26478            echo "$srcdir/$f"
26479          else
26480            # /dev/null tree
26481            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26482 echo "$as_me: error: cannot find input file: $f" >&2;}
26483    { (exit 1); exit 1; }; }
26484          fi;;
26485       esac
26486     done` || { (exit 1); exit 1; }
26487   # Remove the trailing spaces.
26488   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
26489
26490 _ACEOF
26491
26492 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26493 # `conftest.undefs', that substitutes the proper values into
26494 # config.h.in to produce config.h.  The first handles `#define'
26495 # templates, and the second `#undef' templates.
26496 # And first: Protect against being on the right side of a sed subst in
26497 # config.status.  Protect against being in an unquoted here document
26498 # in config.status.
26499 rm -f conftest.defines conftest.undefs
26500 # Using a here document instead of a string reduces the quoting nightmare.
26501 # Putting comments in sed scripts is not portable.
26502 #
26503 # `end' is used to avoid that the second main sed command (meant for
26504 # 0-ary CPP macros) applies to n-ary macro definitions.
26505 # See the Autoconf documentation for `clear'.
26506 cat >confdef2sed.sed <<\_ACEOF
26507 s/[\\&,]/\\&/g
26508 s,[\\$`],\\&,g
26509 t clear
26510 : clear
26511 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26512 t end
26513 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26514 : end
26515 _ACEOF
26516 # If some macros were called several times there might be several times
26517 # the same #defines, which is useless.  Nevertheless, we may not want to
26518 # sort them, since we want the *last* AC-DEFINE to be honored.
26519 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26520 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26521 rm -f confdef2sed.sed
26522
26523 # This sed command replaces #undef with comments.  This is necessary, for
26524 # example, in the case of _POSIX_SOURCE, which is predefined and required
26525 # on some systems where configure will not decide to define it.
26526 cat >>conftest.undefs <<\_ACEOF
26527 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26528 _ACEOF
26529
26530 # Break up conftest.defines because some shells have a limit on the size
26531 # of here documents, and old seds have small limits too (100 cmds).
26532 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26533 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26534 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26535 echo '  :' >>$CONFIG_STATUS
26536 rm -f conftest.tail
26537 while grep . conftest.defines >/dev/null
26538 do
26539   # Write a limited-size here document to $tmp/defines.sed.
26540   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26541   # Speed up: don't consider the non `#define' lines.
26542   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
26543   # Work around the forget-to-reset-the-flag bug.
26544   echo 't clr' >>$CONFIG_STATUS
26545   echo ': clr' >>$CONFIG_STATUS
26546   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26547   echo 'CEOF
26548   sed -f $tmp/defines.sed $tmp/in >$tmp/out
26549   rm -f $tmp/in
26550   mv $tmp/out $tmp/in
26551 ' >>$CONFIG_STATUS
26552   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26553   rm -f conftest.defines
26554   mv conftest.tail conftest.defines
26555 done
26556 rm -f conftest.defines
26557 echo '  fi # grep' >>$CONFIG_STATUS
26558 echo >>$CONFIG_STATUS
26559
26560 # Break up conftest.undefs because some shells have a limit on the size
26561 # of here documents, and old seds have small limits too (100 cmds).
26562 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26563 rm -f conftest.tail
26564 while grep . conftest.undefs >/dev/null
26565 do
26566   # Write a limited-size here document to $tmp/undefs.sed.
26567   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26568   # Speed up: don't consider the non `#undef'
26569   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26570   # Work around the forget-to-reset-the-flag bug.
26571   echo 't clr' >>$CONFIG_STATUS
26572   echo ': clr' >>$CONFIG_STATUS
26573   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26574   echo 'CEOF
26575   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26576   rm -f $tmp/in
26577   mv $tmp/out $tmp/in
26578 ' >>$CONFIG_STATUS
26579   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26580   rm -f conftest.undefs
26581   mv conftest.tail conftest.undefs
26582 done
26583 rm -f conftest.undefs
26584
26585 cat >>$CONFIG_STATUS <<\_ACEOF
26586   # Let's still pretend it is `configure' which instantiates (i.e., don't
26587   # use $as_me), people would be surprised to read:
26588   #    /* config.h.  Generated by config.status.  */
26589   if test x"$ac_file" = x-; then
26590     echo "/* Generated by configure.  */" >$tmp/config.h
26591   else
26592     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26593   fi
26594   cat $tmp/in >>$tmp/config.h
26595   rm -f $tmp/in
26596   if test x"$ac_file" != x-; then
26597     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26598       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26599 echo "$as_me: $ac_file is unchanged" >&6;}
26600     else
26601       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26602 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26603          X"$ac_file" : 'X\(//\)[^/]' \| \
26604          X"$ac_file" : 'X\(//\)$' \| \
26605          X"$ac_file" : 'X\(/\)' \| \
26606          .     : '\(.\)' 2>/dev/null ||
26607 echo X"$ac_file" |
26608     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26609           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26610           /^X\(\/\/\)$/{ s//\1/; q; }
26611           /^X\(\/\).*/{ s//\1/; q; }
26612           s/.*/./; q'`
26613       { if $as_mkdir_p; then
26614     mkdir -p "$ac_dir"
26615   else
26616     as_dir="$ac_dir"
26617     as_dirs=
26618     while test ! -d "$as_dir"; do
26619       as_dirs="$as_dir $as_dirs"
26620       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26622          X"$as_dir" : 'X\(//\)[^/]' \| \
26623          X"$as_dir" : 'X\(//\)$' \| \
26624          X"$as_dir" : 'X\(/\)' \| \
26625          .     : '\(.\)' 2>/dev/null ||
26626 echo X"$as_dir" |
26627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26628           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26629           /^X\(\/\/\)$/{ s//\1/; q; }
26630           /^X\(\/\).*/{ s//\1/; q; }
26631           s/.*/./; q'`
26632     done
26633     test ! -n "$as_dirs" || mkdir $as_dirs
26634   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26635 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26636    { (exit 1); exit 1; }; }; }
26637
26638       rm -f $ac_file
26639       mv $tmp/config.h $ac_file
26640     fi
26641   else
26642     cat $tmp/config.h
26643     rm -f $tmp/config.h
26644   fi
26645 done
26646 _ACEOF
26647 cat >>$CONFIG_STATUS <<\_ACEOF
26648
26649 #
26650 # CONFIG_COMMANDS section.
26651 #
26652 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26653   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26654   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26655   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26656 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26657          X"$ac_dest" : 'X\(//\)[^/]' \| \
26658          X"$ac_dest" : 'X\(//\)$' \| \
26659          X"$ac_dest" : 'X\(/\)' \| \
26660          .     : '\(.\)' 2>/dev/null ||
26661 echo X"$ac_dest" |
26662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26663           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26664           /^X\(\/\/\)$/{ s//\1/; q; }
26665           /^X\(\/\).*/{ s//\1/; q; }
26666           s/.*/./; q'`
26667   { if $as_mkdir_p; then
26668     mkdir -p "$ac_dir"
26669   else
26670     as_dir="$ac_dir"
26671     as_dirs=
26672     while test ! -d "$as_dir"; do
26673       as_dirs="$as_dir $as_dirs"
26674       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26676          X"$as_dir" : 'X\(//\)[^/]' \| \
26677          X"$as_dir" : 'X\(//\)$' \| \
26678          X"$as_dir" : 'X\(/\)' \| \
26679          .     : '\(.\)' 2>/dev/null ||
26680 echo X"$as_dir" |
26681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26682           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26683           /^X\(\/\/\)$/{ s//\1/; q; }
26684           /^X\(\/\).*/{ s//\1/; q; }
26685           s/.*/./; q'`
26686     done
26687     test ! -n "$as_dirs" || mkdir $as_dirs
26688   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26689 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26690    { (exit 1); exit 1; }; }; }
26691
26692   ac_builddir=.
26693
26694 if test "$ac_dir" != .; then
26695   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26696   # A "../" for each directory in $ac_dir_suffix.
26697   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26698 else
26699   ac_dir_suffix= ac_top_builddir=
26700 fi
26701
26702 case $srcdir in
26703   .)  # No --srcdir option.  We are building in place.
26704     ac_srcdir=.
26705     if test -z "$ac_top_builddir"; then
26706        ac_top_srcdir=.
26707     else
26708        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26709     fi ;;
26710   [\\/]* | ?:[\\/]* )  # Absolute path.
26711     ac_srcdir=$srcdir$ac_dir_suffix;
26712     ac_top_srcdir=$srcdir ;;
26713   *) # Relative path.
26714     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26715     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26716 esac
26717
26718 # Do not use `cd foo && pwd` to compute absolute paths, because
26719 # the directories may not exist.
26720 case `pwd` in
26721 .) ac_abs_builddir="$ac_dir";;
26722 *)
26723   case "$ac_dir" in
26724   .) ac_abs_builddir=`pwd`;;
26725   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26726   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26727   esac;;
26728 esac
26729 case $ac_abs_builddir in
26730 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26731 *)
26732   case ${ac_top_builddir}. in
26733   .) ac_abs_top_builddir=$ac_abs_builddir;;
26734   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26735   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26736   esac;;
26737 esac
26738 case $ac_abs_builddir in
26739 .) ac_abs_srcdir=$ac_srcdir;;
26740 *)
26741   case $ac_srcdir in
26742   .) ac_abs_srcdir=$ac_abs_builddir;;
26743   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26744   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26745   esac;;
26746 esac
26747 case $ac_abs_builddir in
26748 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26749 *)
26750   case $ac_top_srcdir in
26751   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26752   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26753   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26754   esac;;
26755 esac
26756
26757
26758   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26759 echo "$as_me: executing $ac_dest commands" >&6;}
26760   case $ac_dest in
26761     stamp-h ) echo timestamp > src/include/stamp-h ;;
26762     build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26763     main-chmod ) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26764     scripts-chmod ) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26765   esac
26766 done
26767 _ACEOF
26768
26769 cat >>$CONFIG_STATUS <<\_ACEOF
26770
26771 { (exit 0); exit 0; }
26772 _ACEOF
26773 chmod +x $CONFIG_STATUS
26774 ac_clean_files=$ac_clean_files_save
26775
26776
26777 # configure is writing to config.log, and then calls config.status.
26778 # config.status does its own redirection, appending to config.log.
26779 # Unfortunately, on DOS this fails, as config.log is still kept open
26780 # by configure, so config.status won't be able to write to it; its
26781 # output is simply discarded.  So we exec the FD to /dev/null,
26782 # effectively closing config.log, so it can be properly (re)opened and
26783 # appended to by config.status.  When coming back to configure, we
26784 # need to make the FD available again.
26785 if test "$no_create" != yes; then
26786   ac_cs_success=:
26787   ac_config_status_args=
26788   test "$silent" = yes &&
26789     ac_config_status_args="$ac_config_status_args --quiet"
26790   exec 5>/dev/null
26791   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26792   exec 5>>config.log
26793   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26794   # would make configure fail if this is the last instruction.
26795   $ac_cs_success || { (exit 1); exit 1; }
26796 fi
26797
26798 #
26799 # CONFIG_SUBDIRS section.
26800 #
26801 if test "$no_recursion" != yes; then
26802
26803   # Remove --cache-file and --srcdir arguments so they do not pile up.
26804   ac_sub_configure_args=
26805   ac_prev=
26806   for ac_arg in $ac_configure_args; do
26807     if test -n "$ac_prev"; then
26808       ac_prev=
26809       continue
26810     fi
26811     case $ac_arg in
26812     -cache-file | --cache-file | --cache-fil | --cache-fi \
26813     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26814       ac_prev=cache_file ;;
26815     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26816     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26817     | --c=*)
26818       ;;
26819     --config-cache | -C)
26820       ;;
26821     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26822       ac_prev=srcdir ;;
26823     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26824       ;;
26825     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26826       ac_prev=prefix ;;
26827     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26828       ;;
26829     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26830     esac
26831   done
26832
26833   # Always prepend --prefix to ensure using the same prefix
26834   # in subdir configurations.
26835   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26836
26837   ac_popdir=`pwd`
26838   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26839
26840     # Do not complain, so a configure script can configure whichever
26841     # parts of a large source tree are present.
26842     test -d $srcdir/$ac_dir || continue
26843
26844     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26845 echo "$as_me: configuring in $ac_dir" >&6;}
26846     { if $as_mkdir_p; then
26847     mkdir -p "$ac_dir"
26848   else
26849     as_dir="$ac_dir"
26850     as_dirs=
26851     while test ! -d "$as_dir"; do
26852       as_dirs="$as_dir $as_dirs"
26853       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26855          X"$as_dir" : 'X\(//\)[^/]' \| \
26856          X"$as_dir" : 'X\(//\)$' \| \
26857          X"$as_dir" : 'X\(/\)' \| \
26858          .     : '\(.\)' 2>/dev/null ||
26859 echo X"$as_dir" |
26860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26861           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26862           /^X\(\/\/\)$/{ s//\1/; q; }
26863           /^X\(\/\).*/{ s//\1/; q; }
26864           s/.*/./; q'`
26865     done
26866     test ! -n "$as_dirs" || mkdir $as_dirs
26867   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26868 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26869    { (exit 1); exit 1; }; }; }
26870
26871     ac_builddir=.
26872
26873 if test "$ac_dir" != .; then
26874   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26875   # A "../" for each directory in $ac_dir_suffix.
26876   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26877 else
26878   ac_dir_suffix= ac_top_builddir=
26879 fi
26880
26881 case $srcdir in
26882   .)  # No --srcdir option.  We are building in place.
26883     ac_srcdir=.
26884     if test -z "$ac_top_builddir"; then
26885        ac_top_srcdir=.
26886     else
26887        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26888     fi ;;
26889   [\\/]* | ?:[\\/]* )  # Absolute path.
26890     ac_srcdir=$srcdir$ac_dir_suffix;
26891     ac_top_srcdir=$srcdir ;;
26892   *) # Relative path.
26893     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26894     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26895 esac
26896
26897 # Do not use `cd foo && pwd` to compute absolute paths, because
26898 # the directories may not exist.
26899 case `pwd` in
26900 .) ac_abs_builddir="$ac_dir";;
26901 *)
26902   case "$ac_dir" in
26903   .) ac_abs_builddir=`pwd`;;
26904   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26905   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26906   esac;;
26907 esac
26908 case $ac_abs_builddir in
26909 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26910 *)
26911   case ${ac_top_builddir}. in
26912   .) ac_abs_top_builddir=$ac_abs_builddir;;
26913   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26914   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26915   esac;;
26916 esac
26917 case $ac_abs_builddir in
26918 .) ac_abs_srcdir=$ac_srcdir;;
26919 *)
26920   case $ac_srcdir in
26921   .) ac_abs_srcdir=$ac_abs_builddir;;
26922   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26923   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26924   esac;;
26925 esac
26926 case $ac_abs_builddir in
26927 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26928 *)
26929   case $ac_top_srcdir in
26930   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26931   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26932   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26933   esac;;
26934 esac
26935
26936
26937     cd $ac_dir
26938
26939     # Check for guested configure; otherwise get Cygnus style configure.
26940     if test -f $ac_srcdir/configure.gnu; then
26941       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26942     elif test -f $ac_srcdir/configure; then
26943       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26944     elif test -f $ac_srcdir/configure.in; then
26945       ac_sub_configure=$ac_configure
26946     else
26947       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26949       ac_sub_configure=
26950     fi
26951
26952     # The recursion is here.
26953     if test -n "$ac_sub_configure"; then
26954       # Make the cache file name correct relative to the subdirectory.
26955       case $cache_file in
26956       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26957       *) # Relative path.
26958         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26959       esac
26960
26961       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26962 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26963       # The eval makes quoting arguments work.
26964       eval $ac_sub_configure $ac_sub_configure_args \
26965            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26966         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26967 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26968    { (exit 1); exit 1; }; }
26969     fi
26970
26971     cd "$ac_popdir"
26972   done
26973 fi
26974