regenerate
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.232 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
290        echo_test_string=`eval $cmd` &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="src/main/radiusd.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subdirs_all="$ac_subdirs_all $LTDL_SUBDIRS $mysubdirs"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP RANLIB ac_ct_RANLIB GMAKE MAKE LTDL_SUBDIRS LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 docdir logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS PCAP_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_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
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-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1044   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1045   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1046   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1047   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1048   --with-threads          Use threads, if available.  (default=yes)
1049   --with-snmp             Compile in SNMP support. (default=yes)
1050   --with-static-modules=QUOTED-MODULE-LIST
1051  --with-modules=QUOTED-MODULE-LIST
1052   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1053   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1054   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1055   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1056   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1057   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1058
1059 Some influential environment variables:
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1063               nonstandard directory <lib dir>
1064   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065               headers in a nonstandard directory <include dir>
1066   CXX         C++ compiler command
1067   CXXFLAGS    C++ compiler flags
1068   CPP         C preprocessor
1069   CXXCPP      C++ preprocessor
1070   F77         Fortran 77 compiler command
1071   FFLAGS      Fortran 77 compiler flags
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 _ACEOF
1077 fi
1078
1079 if test "$ac_init_help" = "recursive"; then
1080   # If there are subdirs, report their specific --help.
1081   ac_popdir=`pwd`
1082   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083     test -d $ac_dir || continue
1084     ac_builddir=.
1085
1086 if test "$ac_dir" != .; then
1087   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088   # A "../" for each directory in $ac_dir_suffix.
1089   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 else
1091   ac_dir_suffix= ac_top_builddir=
1092 fi
1093
1094 case $srcdir in
1095   .)  # No --srcdir option.  We are building in place.
1096     ac_srcdir=.
1097     if test -z "$ac_top_builddir"; then
1098        ac_top_srcdir=.
1099     else
1100        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101     fi ;;
1102   [\\/]* | ?:[\\/]* )  # Absolute path.
1103     ac_srcdir=$srcdir$ac_dir_suffix;
1104     ac_top_srcdir=$srcdir ;;
1105   *) # Relative path.
1106     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 esac
1109
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1112 case `pwd` in
1113 .) ac_abs_builddir="$ac_dir";;
1114 *)
1115   case "$ac_dir" in
1116   .) ac_abs_builddir=`pwd`;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119   esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *)
1124   case ${ac_top_builddir}. in
1125   .) ac_abs_top_builddir=$ac_abs_builddir;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1132 *)
1133   case $ac_srcdir in
1134   .) ac_abs_srcdir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137   esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *)
1142   case $ac_top_srcdir in
1143   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146   esac;;
1147 esac
1148
1149     cd $ac_dir
1150     # Check for guested configure; otherwise get Cygnus style configure.
1151     if test -f $ac_srcdir/configure.gnu; then
1152       echo
1153       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1154     elif test -f $ac_srcdir/configure; then
1155       echo
1156       $SHELL $ac_srcdir/configure  --help=recursive
1157     elif test -f $ac_srcdir/configure.ac ||
1158            test -f $ac_srcdir/configure.in; then
1159       echo
1160       $ac_configure --help
1161     else
1162       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163     fi
1164     cd $ac_popdir
1165   done
1166 fi
1167
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1170   cat <<\_ACEOF
1171
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1175 _ACEOF
1176   exit 0
1177 fi
1178 exec 5>config.log
1179 cat >&5 <<_ACEOF
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1182
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59.  Invocation command line was
1185
1186   $ $0 $@
1187
1188 _ACEOF
1189 {
1190 cat <<_ASUNAME
1191 ## --------- ##
1192 ## Platform. ##
1193 ## --------- ##
1194
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1203
1204 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1205 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1208 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1209 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1210 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1211
1212 _ASUNAME
1213
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 for as_dir in $PATH
1216 do
1217   IFS=$as_save_IFS
1218   test -z "$as_dir" && as_dir=.
1219   echo "PATH: $as_dir"
1220 done
1221
1222 } >&5
1223
1224 cat >&5 <<_ACEOF
1225
1226
1227 ## ----------- ##
1228 ## Core tests. ##
1229 ## ----------- ##
1230
1231 _ACEOF
1232
1233
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_configure_args=
1240 ac_configure_args0=
1241 ac_configure_args1=
1242 ac_sep=
1243 ac_must_keep_next=false
1244 for ac_pass in 1 2
1245 do
1246   for ac_arg
1247   do
1248     case $ac_arg in
1249     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251     | -silent | --silent | --silen | --sile | --sil)
1252       continue ;;
1253     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255     esac
1256     case $ac_pass in
1257     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258     2)
1259       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260       if test $ac_must_keep_next = true; then
1261         ac_must_keep_next=false # Got value, back to normal.
1262       else
1263         case $ac_arg in
1264           *=* | --config-cache | -C | -disable-* | --disable-* \
1265           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267           | -with-* | --with-* | -without-* | --without-* | --x)
1268             case "$ac_configure_args0 " in
1269               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270             esac
1271             ;;
1272           -* ) ac_must_keep_next=true ;;
1273         esac
1274       fi
1275       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276       # Get rid of the leading space.
1277       ac_sep=" "
1278       ;;
1279     esac
1280   done
1281 done
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log.  We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291   # Save into config.log some information that might help in debugging.
1292   {
1293     echo
1294
1295     cat <<\_ASBOX
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1299 _ASBOX
1300     echo
1301     # The following way of writing the cache mishandles newlines in values,
1302 {
1303   (set) 2>&1 |
1304     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305     *ac_space=\ *)
1306       sed -n \
1307         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309       ;;
1310     *)
1311       sed -n \
1312         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313       ;;
1314     esac;
1315 }
1316     echo
1317
1318     cat <<\_ASBOX
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1322 _ASBOX
1323     echo
1324     for ac_var in $ac_subst_vars
1325     do
1326       eval ac_val=$`echo $ac_var`
1327       echo "$ac_var='"'"'$ac_val'"'"'"
1328     done | sort
1329     echo
1330
1331     if test -n "$ac_subst_files"; then
1332       cat <<\_ASBOX
1333 ## ------------- ##
1334 ## Output files. ##
1335 ## ------------- ##
1336 _ASBOX
1337       echo
1338       for ac_var in $ac_subst_files
1339       do
1340         eval ac_val=$`echo $ac_var`
1341         echo "$ac_var='"'"'$ac_val'"'"'"
1342       done | sort
1343       echo
1344     fi
1345
1346     if test -s confdefs.h; then
1347       cat <<\_ASBOX
1348 ## ----------- ##
1349 ## confdefs.h. ##
1350 ## ----------- ##
1351 _ASBOX
1352       echo
1353       sed "/^$/d" confdefs.h | sort
1354       echo
1355     fi
1356     test "$ac_signal" != 0 &&
1357       echo "$as_me: caught signal $ac_signal"
1358     echo "$as_me: exit $exit_status"
1359   } >&5
1360   rm -f core *.core &&
1361   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362     exit $exit_status
1363      ' 0
1364 for ac_signal in 1 2 13 15; do
1365   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 done
1367 ac_signal=0
1368
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 echo >confdefs.h
1373
1374 # Predefined preprocessor variables.
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 _ACEOF
1399
1400
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404   if test "x$prefix" != xNONE; then
1405     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406   else
1407     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408   fi
1409 fi
1410 for ac_site_file in $CONFIG_SITE; do
1411   if test -r "$ac_site_file"; then
1412     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414     sed 's/^/| /' "$ac_site_file" >&5
1415     . "$ac_site_file"
1416   fi
1417 done
1418
1419 if test -r "$cache_file"; then
1420   # Some versions of bash will fail to source /dev/null (special
1421   # files actually), so we avoid doing that.
1422   if test -f "$cache_file"; then
1423     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1425     case $cache_file in
1426       [\\/]* | ?:[\\/]* ) . $cache_file;;
1427       *)                      . ./$cache_file;;
1428     esac
1429   fi
1430 else
1431   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1433   >$cache_file
1434 fi
1435
1436 # Check that the precious variables saved in the cache have kept the same
1437 # value.
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442   eval ac_new_set=\$ac_env_${ac_var}_set
1443   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444   eval ac_new_val="\$ac_env_${ac_var}_value"
1445   case $ac_old_set,$ac_new_set in
1446     set,)
1447       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449       ac_cache_corrupted=: ;;
1450     ,set)
1451       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453       ac_cache_corrupted=: ;;
1454     ,);;
1455     *)
1456       if test "x$ac_old_val" != "x$ac_new_val"; then
1457         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1460 echo "$as_me:   former value:  $ac_old_val" >&2;}
1461         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1462 echo "$as_me:   current value: $ac_new_val" >&2;}
1463         ac_cache_corrupted=:
1464       fi;;
1465   esac
1466   # Pass precious variables to config.status.
1467   if test "$ac_new_set" = set; then
1468     case $ac_new_val in
1469     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     *) ac_arg=$ac_var=$ac_new_val ;;
1472     esac
1473     case " $ac_configure_args " in
1474       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1475       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476     esac
1477   fi
1478 done
1479 if $ac_cache_corrupted; then
1480   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484    { (exit 1); exit 1; }; }
1485 fi
1486
1487 ac_ext=c
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1512
1513
1514 RADIUSD_MAJOR_VERSION=2
1515 RADIUSD_MINOR_VERSION=0.0-pre0
1516 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1517 PACKAGE=freeradius
1518
1519
1520 ac_ext=c
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 if test -n "$ac_tool_prefix"; then
1526   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   if test -n "$CC"; then
1534   ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   for ac_exec_ext in '' $ac_executable_extensions; do
1542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545     break 2
1546   fi
1547 done
1548 done
1549
1550 fi
1551 fi
1552 CC=$ac_cv_prog_CC
1553 if test -n "$CC"; then
1554   echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1556 else
1557   echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 fi
1560
1561 fi
1562 if test -z "$ac_cv_prog_CC"; then
1563   ac_ct_CC=$CC
1564   # Extract the first word of "gcc", so it can be a program name with args.
1565 set dummy gcc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   if test -n "$ac_ct_CC"; then
1572   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577   IFS=$as_save_IFS
1578   test -z "$as_dir" && as_dir=.
1579   for ac_exec_ext in '' $ac_executable_extensions; do
1580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581     ac_cv_prog_ac_ct_CC="gcc"
1582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583     break 2
1584   fi
1585 done
1586 done
1587
1588 fi
1589 fi
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1594 else
1595   echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 fi
1598
1599   CC=$ac_ct_CC
1600 else
1601   CC="$ac_cv_prog_CC"
1602 fi
1603
1604 if test -z "$CC"; then
1605   if test -n "$ac_tool_prefix"; then
1606   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   if test -n "$CC"; then
1614   ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   for ac_exec_ext in '' $ac_executable_extensions; do
1622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623     ac_cv_prog_CC="${ac_tool_prefix}cc"
1624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625     break 2
1626   fi
1627 done
1628 done
1629
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634   echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637   echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$ac_cv_prog_CC"; then
1643   ac_ct_CC=$CC
1644   # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   if test -n "$ac_ct_CC"; then
1652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   test -z "$as_dir" && as_dir=.
1659   for ac_exec_ext in '' $ac_executable_extensions; do
1660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661     ac_cv_prog_ac_ct_CC="cc"
1662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663     break 2
1664   fi
1665 done
1666 done
1667
1668 fi
1669 fi
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675   echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 fi
1678
1679   CC=$ac_ct_CC
1680 else
1681   CC="$ac_cv_prog_CC"
1682 fi
1683
1684 fi
1685 if test -z "$CC"; then
1686   # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691   echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693   if test -n "$CC"; then
1694   ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696   ac_prog_rejected=no
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700   IFS=$as_save_IFS
1701   test -z "$as_dir" && as_dir=.
1702   for ac_exec_ext in '' $ac_executable_extensions; do
1703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1705        ac_prog_rejected=yes
1706        continue
1707      fi
1708     ac_cv_prog_CC="cc"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 if test $ac_prog_rejected = yes; then
1716   # We found a bogon in the path, so make sure we never use it.
1717   set dummy $ac_cv_prog_CC
1718   shift
1719   if test $# != 0; then
1720     # We chose a different compiler from the bogus one.
1721     # However, it has the same basename, so the bogon will be chosen
1722     # first if we set CC to just the basename; use the full file name.
1723     shift
1724     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1725   fi
1726 fi
1727 fi
1728 fi
1729 CC=$ac_cv_prog_CC
1730 if test -n "$CC"; then
1731   echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 fi
1739 if test -z "$CC"; then
1740   if test -n "$ac_tool_prefix"; then
1741   for ac_prog in cl
1742   do
1743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   if test -n "$CC"; then
1751   ac_cv_prog_CC="$CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756   IFS=$as_save_IFS
1757   test -z "$as_dir" && as_dir=.
1758   for ac_exec_ext in '' $ac_executable_extensions; do
1759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762     break 2
1763   fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 CC=$ac_cv_prog_CC
1770 if test -n "$CC"; then
1771   echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1773 else
1774   echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778     test -n "$CC" && break
1779   done
1780 fi
1781 if test -z "$CC"; then
1782   ac_ct_CC=$CC
1783   for ac_prog in cl
1784 do
1785   # Extract the first word of "$ac_prog", so it can be a program name with args.
1786 set dummy $ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   if test -n "$ac_ct_CC"; then
1793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 else
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 for as_dir in $PATH
1797 do
1798   IFS=$as_save_IFS
1799   test -z "$as_dir" && as_dir=.
1800   for ac_exec_ext in '' $ac_executable_extensions; do
1801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802     ac_cv_prog_ac_ct_CC="$ac_prog"
1803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804     break 2
1805   fi
1806 done
1807 done
1808
1809 fi
1810 fi
1811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812 if test -n "$ac_ct_CC"; then
1813   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814 echo "${ECHO_T}$ac_ct_CC" >&6
1815 else
1816   echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820   test -n "$ac_ct_CC" && break
1821 done
1822
1823   CC=$ac_ct_CC
1824 fi
1825
1826 fi
1827
1828
1829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&2;}
1833    { (exit 1); exit 1; }; }
1834
1835 # Provide some information about the compiler.
1836 echo "$as_me:$LINENO:" \
1837      "checking for C compiler version" >&5
1838 ac_compiler=`set X $ac_compile; echo $2`
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1840   (eval $ac_compiler --version </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1845   (eval $ac_compiler -v </dev/null >&5) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1850   (eval $ac_compiler -V </dev/null >&5) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }
1854
1855 cat >conftest.$ac_ext <<_ACEOF
1856 /* confdefs.h.  */
1857 _ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h.  */
1861
1862 int
1863 main ()
1864 {
1865
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1874 # of exeext.
1875 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1876 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879   (eval $ac_link_default) 2>&5
1880   ac_status=$?
1881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882   (exit $ac_status); }; then
1883   # Find the output, starting from the most likely.  This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1885 # resort.
1886
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 ac_cv_exeext=
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896         ;;
1897     conftest.$ac_ext )
1898         # This is the source file.
1899         ;;
1900     [ab].out )
1901         # We found the default executable, but exeext='' is most
1902         # certainly right.
1903         break;;
1904     *.* )
1905         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906         # FIXME: I believe we export ac_cv_exeext for Libtool,
1907         # but it would be cool to find out if it's true.  Does anybody
1908         # maintain Libtool? --akim.
1909         export ac_cv_exeext
1910         break;;
1911     * )
1912         break;;
1913   esac
1914 done
1915 else
1916   echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923    { (exit 77); exit 77; }; }
1924 fi
1925
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1929
1930 # Check the compiler produces executables we can run.  If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937   if { ac_try='./$ac_file'
1938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939   (eval $ac_try) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; }; then
1943     cross_compiling=no
1944   else
1945     if test "$cross_compiling" = maybe; then
1946         cross_compiling=yes
1947     else
1948         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954    { (exit 1); exit 1; }; }
1955     fi
1956   fi
1957 fi
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1960
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run.  If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1969
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973   (eval $ac_link) 2>&5
1974   ac_status=$?
1975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976   (exit $ac_status); }; then
1977   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 # `rm'.
1981 for ac_file in conftest.exe conftest conftest.*; do
1982   test -f "$ac_file" || continue
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986           export ac_cv_exeext
1987           break;;
1988     * ) break;;
1989   esac
1990 done
1991 else
1992   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2002
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2005 ac_exeext=$EXEEXT
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 /* confdefs.h.  */
2013 _ACEOF
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h.  */
2017
2018 int
2019 main ()
2020 {
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 rm -f conftest.o conftest.obj
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028   (eval $ac_compile) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; then
2032   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033   case $ac_file in
2034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2035     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2036        break;;
2037   esac
2038 done
2039 else
2040   echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&2;}
2047    { (exit 1); exit 1; }; }
2048 fi
2049
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 fi
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2055 ac_objext=$OBJEXT
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 /* confdefs.h.  */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h.  */
2067
2068 int
2069 main ()
2070 {
2071 #ifndef __GNUC__
2072        choke me
2073 #endif
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081   (eval $ac_compile) 2>conftest.er1
2082   ac_status=$?
2083   grep -v '^ *+' conftest.er1 >conftest.err
2084   rm -f conftest.er1
2085   cat conftest.err >&5
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); } &&
2088          { ac_try='test -z "$ac_c_werror_flag"
2089                          || test ! -s conftest.err'
2090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091   (eval $ac_try) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }; } &&
2095          { ac_try='test -s conftest.$ac_objext'
2096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097   (eval $ac_try) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }; }; then
2101   ac_compiler_gnu=yes
2102 else
2103   echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2105
2106 ac_compiler_gnu=no
2107 fi
2108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2110
2111 fi
2112 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2113 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2114 GCC=`test $ac_compiler_gnu = yes && echo yes`
2115 ac_test_CFLAGS=${CFLAGS+set}
2116 ac_save_CFLAGS=$CFLAGS
2117 CFLAGS="-g"
2118 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2119 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_g+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129
2130 int
2131 main ()
2132 {
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140   (eval $ac_compile) 2>conftest.er1
2141   ac_status=$?
2142   grep -v '^ *+' conftest.er1 >conftest.err
2143   rm -f conftest.er1
2144   cat conftest.err >&5
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); } &&
2147          { ac_try='test -z "$ac_c_werror_flag"
2148                          || test ! -s conftest.err'
2149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150   (eval $ac_try) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }; } &&
2154          { ac_try='test -s conftest.$ac_objext'
2155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156   (eval $ac_try) 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }; }; then
2160   ac_cv_prog_cc_g=yes
2161 else
2162   echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2164
2165 ac_cv_prog_cc_g=no
2166 fi
2167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2168 fi
2169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2170 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2171 if test "$ac_test_CFLAGS" = set; then
2172   CFLAGS=$ac_save_CFLAGS
2173 elif test $ac_cv_prog_cc_g = yes; then
2174   if test "$GCC" = yes; then
2175     CFLAGS="-g -O2"
2176   else
2177     CFLAGS="-g"
2178   fi
2179 else
2180   if test "$GCC" = yes; then
2181     CFLAGS="-O2"
2182   else
2183     CFLAGS=
2184   fi
2185 fi
2186 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2187 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2188 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   ac_cv_prog_cc_stdc=no
2192 ac_save_CC=$CC
2193 cat >conftest.$ac_ext <<_ACEOF
2194 /* confdefs.h.  */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h.  */
2199 #include <stdarg.h>
2200 #include <stdio.h>
2201 #include <sys/types.h>
2202 #include <sys/stat.h>
2203 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2204 struct buf { int x; };
2205 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2206 static char *e (p, i)
2207      char **p;
2208      int i;
2209 {
2210   return p[i];
2211 }
2212 static char *f (char * (*g) (char **, int), char **p, ...)
2213 {
2214   char *s;
2215   va_list v;
2216   va_start (v,p);
2217   s = g (p, va_arg (v,int));
2218   va_end (v);
2219   return s;
2220 }
2221
2222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2223    function prototypes and stuff, but not '\xHH' hex character constants.
2224    These don't provoke an error unfortunately, instead are silently treated
2225    as 'x'.  The following induces an error, until -std1 is added to get
2226    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2227    array size at least.  It's necessary to write '\x00'==0 to get something
2228    that's true only with -std1.  */
2229 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2230
2231 int test (int i, double x);
2232 struct s1 {int (*f) (int a);};
2233 struct s2 {int (*f) (double a);};
2234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2235 int argc;
2236 char **argv;
2237 int
2238 main ()
2239 {
2240 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 # Don't try gcc -ansi; that turns off useful extensions and
2246 # breaks some systems' header files.
2247 # AIX                   -qlanglvl=ansi
2248 # Ultrix and OSF/1      -std1
2249 # HP-UX 10.20 and later -Ae
2250 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2251 # SVR4                  -Xc -D__EXTENSIONS__
2252 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2253 do
2254   CC="$ac_save_CC $ac_arg"
2255   rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257   (eval $ac_compile) 2>conftest.er1
2258   ac_status=$?
2259   grep -v '^ *+' conftest.er1 >conftest.err
2260   rm -f conftest.er1
2261   cat conftest.err >&5
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -z "$ac_c_werror_flag"
2265                          || test ! -s conftest.err'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   ac_cv_prog_cc_stdc=$ac_arg
2278 break
2279 else
2280   echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 fi
2284 rm -f conftest.err conftest.$ac_objext
2285 done
2286 rm -f conftest.$ac_ext conftest.$ac_objext
2287 CC=$ac_save_CC
2288
2289 fi
2290
2291 case "x$ac_cv_prog_cc_stdc" in
2292   x|xno)
2293     echo "$as_me:$LINENO: result: none needed" >&5
2294 echo "${ECHO_T}none needed" >&6 ;;
2295   *)
2296     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298     CC="$CC $ac_cv_prog_cc_stdc" ;;
2299 esac
2300
2301 # Some people use a C++ compiler to compile C.  Since we use `exit',
2302 # in C++ we need to declare it.  In case someone uses the same compiler
2303 # for both compiling C and C++ we need to have the C++ compiler decide
2304 # the declaration of exit, since it's the most demanding environment.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #ifndef __cplusplus
2307   choke me
2308 #endif
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312   (eval $ac_compile) 2>conftest.er1
2313   ac_status=$?
2314   grep -v '^ *+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -z "$ac_c_werror_flag"
2320                          || test ! -s conftest.err'
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); }; } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   for ac_declaration in \
2333    '' \
2334    'extern "C" void std::exit (int) throw (); using std::exit;' \
2335    'extern "C" void std::exit (int); using std::exit;' \
2336    'extern "C" void exit (int) throw ();' \
2337    'extern "C" void exit (int);' \
2338    'void exit (int);'
2339 do
2340   cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h.  */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h.  */
2346 $ac_declaration
2347 #include <stdlib.h>
2348 int
2349 main ()
2350 {
2351 exit (42);
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358   (eval $ac_compile) 2>conftest.er1
2359   ac_status=$?
2360   grep -v '^ *+' conftest.er1 >conftest.err
2361   rm -f conftest.er1
2362   cat conftest.err >&5
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); } &&
2365          { ac_try='test -z "$ac_c_werror_flag"
2366                          || test ! -s conftest.err'
2367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368   (eval $ac_try) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; } &&
2372          { ac_try='test -s conftest.$ac_objext'
2373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374   (eval $ac_try) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; }; then
2378   :
2379 else
2380   echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 continue
2384 fi
2385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386   cat >conftest.$ac_ext <<_ACEOF
2387 /* confdefs.h.  */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h.  */
2392 $ac_declaration
2393 int
2394 main ()
2395 {
2396 exit (42);
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403   (eval $ac_compile) 2>conftest.er1
2404   ac_status=$?
2405   grep -v '^ *+' conftest.er1 >conftest.err
2406   rm -f conftest.er1
2407   cat conftest.err >&5
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); } &&
2410          { ac_try='test -z "$ac_c_werror_flag"
2411                          || test ! -s conftest.err'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; } &&
2417          { ac_try='test -s conftest.$ac_objext'
2418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419   (eval $ac_try) 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; }; then
2423   break
2424 else
2425   echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428 fi
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 done
2431 rm -f conftest*
2432 if test -n "$ac_declaration"; then
2433   echo '#ifdef __cplusplus' >>confdefs.h
2434   echo $ac_declaration      >>confdefs.h
2435   echo '#endif'             >>confdefs.h
2436 fi
2437
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 fi
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2450 ac_ext=cc
2451 ac_cpp='$CXXCPP $CPPFLAGS'
2452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2455 if test -n "$ac_tool_prefix"; then
2456   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2457   do
2458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2460 echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462 if test "${ac_cv_prog_CXX+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   if test -n "$CXX"; then
2466   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473   for ac_exec_ext in '' $ac_executable_extensions; do
2474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2475     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481
2482 fi
2483 fi
2484 CXX=$ac_cv_prog_CXX
2485 if test -n "$CXX"; then
2486   echo "$as_me:$LINENO: result: $CXX" >&5
2487 echo "${ECHO_T}$CXX" >&6
2488 else
2489   echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6
2491 fi
2492
2493     test -n "$CXX" && break
2494   done
2495 fi
2496 if test -z "$CXX"; then
2497   ac_ct_CXX=$CXX
2498   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2499 do
2500   # Extract the first word of "$ac_prog", so it can be a program name with args.
2501 set dummy $ac_prog; ac_word=$2
2502 echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2504 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$ac_ct_CXX"; then
2508   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517     ac_cv_prog_ac_ct_CXX="$ac_prog"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523
2524 fi
2525 fi
2526 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2527 if test -n "$ac_ct_CXX"; then
2528   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2529 echo "${ECHO_T}$ac_ct_CXX" >&6
2530 else
2531   echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2533 fi
2534
2535   test -n "$ac_ct_CXX" && break
2536 done
2537 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2538
2539   CXX=$ac_ct_CXX
2540 fi
2541
2542
2543 # Provide some information about the compiler.
2544 echo "$as_me:$LINENO:" \
2545      "checking for C++ compiler version" >&5
2546 ac_compiler=`set X $ac_compile; echo $2`
2547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2548   (eval $ac_compiler --version </dev/null >&5) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }
2552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2553   (eval $ac_compiler -v </dev/null >&5) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }
2557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2558   (eval $ac_compiler -V </dev/null >&5) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }
2562
2563 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2564 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   cat >conftest.$ac_ext <<_ACEOF
2569 /* confdefs.h.  */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h.  */
2574
2575 int
2576 main ()
2577 {
2578 #ifndef __GNUC__
2579        choke me
2580 #endif
2581
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588   (eval $ac_compile) 2>conftest.er1
2589   ac_status=$?
2590   grep -v '^ *+' conftest.er1 >conftest.err
2591   rm -f conftest.er1
2592   cat conftest.err >&5
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); } &&
2595          { ac_try='test -z "$ac_cxx_werror_flag"
2596                          || test ! -s conftest.err'
2597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598   (eval $ac_try) 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; } &&
2602          { ac_try='test -s conftest.$ac_objext'
2603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604   (eval $ac_try) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   ac_compiler_gnu=yes
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613 ac_compiler_gnu=no
2614 fi
2615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2617
2618 fi
2619 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2620 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2621 GXX=`test $ac_compiler_gnu = yes && echo yes`
2622 ac_test_CXXFLAGS=${CXXFLAGS+set}
2623 ac_save_CXXFLAGS=$CXXFLAGS
2624 CXXFLAGS="-g"
2625 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2626 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2627 if test "${ac_cv_prog_cxx_g+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636
2637 int
2638 main ()
2639 {
2640
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647   (eval $ac_compile) 2>conftest.er1
2648   ac_status=$?
2649   grep -v '^ *+' conftest.er1 >conftest.err
2650   rm -f conftest.er1
2651   cat conftest.err >&5
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); } &&
2654          { ac_try='test -z "$ac_cxx_werror_flag"
2655                          || test ! -s conftest.err'
2656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657   (eval $ac_try) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }; } &&
2661          { ac_try='test -s conftest.$ac_objext'
2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663   (eval $ac_try) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; }; then
2667   ac_cv_prog_cxx_g=yes
2668 else
2669   echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 ac_cv_prog_cxx_g=no
2673 fi
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 fi
2676 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2677 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2678 if test "$ac_test_CXXFLAGS" = set; then
2679   CXXFLAGS=$ac_save_CXXFLAGS
2680 elif test $ac_cv_prog_cxx_g = yes; then
2681   if test "$GXX" = yes; then
2682     CXXFLAGS="-g -O2"
2683   else
2684     CXXFLAGS="-g"
2685   fi
2686 else
2687   if test "$GXX" = yes; then
2688     CXXFLAGS="-O2"
2689   else
2690     CXXFLAGS=
2691   fi
2692 fi
2693 for ac_declaration in \
2694    '' \
2695    'extern "C" void std::exit (int) throw (); using std::exit;' \
2696    'extern "C" void std::exit (int); using std::exit;' \
2697    'extern "C" void exit (int) throw ();' \
2698    'extern "C" void exit (int);' \
2699    'void exit (int);'
2700 do
2701   cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707 $ac_declaration
2708 #include <stdlib.h>
2709 int
2710 main ()
2711 {
2712 exit (42);
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719   (eval $ac_compile) 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } &&
2726          { ac_try='test -z "$ac_cxx_werror_flag"
2727                          || test ! -s conftest.err'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; } &&
2733          { ac_try='test -s conftest.$ac_objext'
2734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735   (eval $ac_try) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; }; then
2739   :
2740 else
2741   echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 continue
2745 fi
2746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2747   cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753 $ac_declaration
2754 int
2755 main ()
2756 {
2757 exit (42);
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764   (eval $ac_compile) 2>conftest.er1
2765   ac_status=$?
2766   grep -v '^ *+' conftest.er1 >conftest.err
2767   rm -f conftest.er1
2768   cat conftest.err >&5
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -z "$ac_cxx_werror_flag"
2772                          || test ! -s conftest.err'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; } &&
2778          { ac_try='test -s conftest.$ac_objext'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; }; then
2784   break
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 fi
2790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791 done
2792 rm -f conftest*
2793 if test -n "$ac_declaration"; then
2794   echo '#ifdef __cplusplus' >>confdefs.h
2795   echo $ac_declaration      >>confdefs.h
2796   echo '#endif'             >>confdefs.h
2797 fi
2798
2799 ac_ext=c
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804
2805
2806
2807 ac_ext=c
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2813 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2814 # On Suns, sometimes $CPP names a directory.
2815 if test -n "$CPP" && test -d "$CPP"; then
2816   CPP=
2817 fi
2818 if test -z "$CPP"; then
2819   if test "${ac_cv_prog_CPP+set}" = set; then
2820   echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822       # Double quotes because CPP needs to be expanded
2823     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2824     do
2825       ac_preproc_ok=false
2826 for ac_c_preproc_warn_flag in '' yes
2827 do
2828   # Use a header file that comes with gcc, so configuring glibc
2829   # with a fresh cross-compiler works.
2830   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2831   # <limits.h> exists even on freestanding compilers.
2832   # On the NeXT, cc -E runs the code through the compiler's parser,
2833   # not just through cpp. "Syntax error" is here to catch this case.
2834   cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840 #ifdef __STDC__
2841 # include <limits.h>
2842 #else
2843 # include <assert.h>
2844 #endif
2845                      Syntax error
2846 _ACEOF
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2849   ac_status=$?
2850   grep -v '^ *+' conftest.er1 >conftest.err
2851   rm -f conftest.er1
2852   cat conftest.err >&5
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } >/dev/null; then
2855   if test -s conftest.err; then
2856     ac_cpp_err=$ac_c_preproc_warn_flag
2857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2858   else
2859     ac_cpp_err=
2860   fi
2861 else
2862   ac_cpp_err=yes
2863 fi
2864 if test -z "$ac_cpp_err"; then
2865   :
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870   # Broken: fails on valid input.
2871 continue
2872 fi
2873 rm -f conftest.err conftest.$ac_ext
2874
2875   # OK, works on sane cases.  Now check whether non-existent headers
2876   # can be detected and how.
2877   cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h.  */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h.  */
2883 #include <ac_nonexistent.h>
2884 _ACEOF
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } >/dev/null; then
2893   if test -s conftest.err; then
2894     ac_cpp_err=$ac_c_preproc_warn_flag
2895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2896   else
2897     ac_cpp_err=
2898   fi
2899 else
2900   ac_cpp_err=yes
2901 fi
2902 if test -z "$ac_cpp_err"; then
2903   # Broken: success on invalid input.
2904 continue
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909   # Passes both tests.
2910 ac_preproc_ok=:
2911 break
2912 fi
2913 rm -f conftest.err conftest.$ac_ext
2914
2915 done
2916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2917 rm -f conftest.err conftest.$ac_ext
2918 if $ac_preproc_ok; then
2919   break
2920 fi
2921
2922     done
2923     ac_cv_prog_CPP=$CPP
2924
2925 fi
2926   CPP=$ac_cv_prog_CPP
2927 else
2928   ac_cv_prog_CPP=$CPP
2929 fi
2930 echo "$as_me:$LINENO: result: $CPP" >&5
2931 echo "${ECHO_T}$CPP" >&6
2932 ac_preproc_ok=false
2933 for ac_c_preproc_warn_flag in '' yes
2934 do
2935   # Use a header file that comes with gcc, so configuring glibc
2936   # with a fresh cross-compiler works.
2937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938   # <limits.h> exists even on freestanding compilers.
2939   # On the NeXT, cc -E runs the code through the compiler's parser,
2940   # not just through cpp. "Syntax error" is here to catch this case.
2941   cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947 #ifdef __STDC__
2948 # include <limits.h>
2949 #else
2950 # include <assert.h>
2951 #endif
2952                      Syntax error
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null; then
2962   if test -s conftest.err; then
2963     ac_cpp_err=$ac_c_preproc_warn_flag
2964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965   else
2966     ac_cpp_err=
2967   fi
2968 else
2969   ac_cpp_err=yes
2970 fi
2971 if test -z "$ac_cpp_err"; then
2972   :
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977   # Broken: fails on valid input.
2978 continue
2979 fi
2980 rm -f conftest.err conftest.$ac_ext
2981
2982   # OK, works on sane cases.  Now check whether non-existent headers
2983   # can be detected and how.
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990 #include <ac_nonexistent.h>
2991 _ACEOF
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2994   ac_status=$?
2995   grep -v '^ *+' conftest.er1 >conftest.err
2996   rm -f conftest.er1
2997   cat conftest.err >&5
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } >/dev/null; then
3000   if test -s conftest.err; then
3001     ac_cpp_err=$ac_c_preproc_warn_flag
3002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003   else
3004     ac_cpp_err=
3005   fi
3006 else
3007   ac_cpp_err=yes
3008 fi
3009 if test -z "$ac_cpp_err"; then
3010   # Broken: success on invalid input.
3011 continue
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016   # Passes both tests.
3017 ac_preproc_ok=:
3018 break
3019 fi
3020 rm -f conftest.err conftest.$ac_ext
3021
3022 done
3023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024 rm -f conftest.err conftest.$ac_ext
3025 if $ac_preproc_ok; then
3026   :
3027 else
3028   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3031 See \`config.log' for more details." >&2;}
3032    { (exit 1); exit 1; }; }
3033 fi
3034
3035 ac_ext=c
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040
3041
3042 echo "$as_me:$LINENO: checking for egrep" >&5
3043 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3044 if test "${ac_cv_prog_egrep+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3048     then ac_cv_prog_egrep='grep -E'
3049     else ac_cv_prog_egrep='egrep'
3050     fi
3051 fi
3052 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3053 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3054  EGREP=$ac_cv_prog_egrep
3055
3056
3057
3058 echo "$as_me:$LINENO: checking for AIX" >&5
3059 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066 #ifdef _AIX
3067   yes
3068 #endif
3069
3070 _ACEOF
3071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3072   $EGREP "yes" >/dev/null 2>&1; then
3073   echo "$as_me:$LINENO: result: yes" >&5
3074 echo "${ECHO_T}yes" >&6
3075 cat >>confdefs.h <<\_ACEOF
3076 #define _ALL_SOURCE 1
3077 _ACEOF
3078
3079 else
3080   echo "$as_me:$LINENO: result: no" >&5
3081 echo "${ECHO_T}no" >&6
3082 fi
3083 rm -f conftest*
3084
3085
3086
3087 if test $ac_cv_c_compiler_gnu = yes; then
3088     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3089 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3090 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093     ac_pattern="Autoconf.*'x'"
3094   cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h.  */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h.  */
3100 #include <sgtty.h>
3101 Autoconf TIOCGETP
3102 _ACEOF
3103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3104   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3105   ac_cv_prog_gcc_traditional=yes
3106 else
3107   ac_cv_prog_gcc_traditional=no
3108 fi
3109 rm -f conftest*
3110
3111
3112   if test $ac_cv_prog_gcc_traditional = no; then
3113     cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119 #include <termio.h>
3120 Autoconf TCGETA
3121 _ACEOF
3122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3123   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3124   ac_cv_prog_gcc_traditional=yes
3125 fi
3126 rm -f conftest*
3127
3128   fi
3129 fi
3130 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3131 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3132   if test $ac_cv_prog_gcc_traditional = yes; then
3133     CC="$CC -traditional"
3134   fi
3135 fi
3136
3137 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3138 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
3139 if test "${ac_cv_prog_suncc+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   cat > conftest.c <<EOF
3143 #ifdef __SUNPRO_C
3144   yes;
3145 #endif
3146 EOF
3147 if { ac_try='${CC-cc} -E conftest.c'
3148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149   (eval $ac_try) 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3153   ac_cv_prog_suncc=yes
3154 else
3155   ac_cv_prog_suncc=no
3156 fi
3157 fi
3158 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3159 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
3160 if test -n "$ac_tool_prefix"; then
3161   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_RANLIB+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   if test -n "$RANLIB"; then
3169   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176   for ac_exec_ext in '' $ac_executable_extensions; do
3177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183 done
3184
3185 fi
3186 fi
3187 RANLIB=$ac_cv_prog_RANLIB
3188 if test -n "$RANLIB"; then
3189   echo "$as_me:$LINENO: result: $RANLIB" >&5
3190 echo "${ECHO_T}$RANLIB" >&6
3191 else
3192   echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3194 fi
3195
3196 fi
3197 if test -z "$ac_cv_prog_RANLIB"; then
3198   ac_ct_RANLIB=$RANLIB
3199   # Extract the first word of "ranlib", so it can be a program name with args.
3200 set dummy ranlib; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   if test -n "$ac_ct_RANLIB"; then
3207   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214   for ac_exec_ext in '' $ac_executable_extensions; do
3215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216     ac_cv_prog_ac_ct_RANLIB="ranlib"
3217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221 done
3222
3223   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3224 fi
3225 fi
3226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227 if test -n "$ac_ct_RANLIB"; then
3228   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3230 else
3231   echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3233 fi
3234
3235   RANLIB=$ac_ct_RANLIB
3236 else
3237   RANLIB="$ac_cv_prog_RANLIB"
3238 fi
3239
3240
3241 # Check whether --enable-largefile or --disable-largefile was given.
3242 if test "${enable_largefile+set}" = set; then
3243   enableval="$enable_largefile"
3244
3245 fi;
3246 if test "$enable_largefile" != no; then
3247
3248   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3249 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3250 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   ac_cv_sys_largefile_CC=no
3254      if test "$GCC" != yes; then
3255        ac_save_CC=$CC
3256        while :; do
3257          # IRIX 6.2 and later do not support large files by default,
3258          # so use the C compiler's -n32 option if that helps.
3259          cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265 #include <sys/types.h>
3266  /* Check that off_t can represent 2**63 - 1 correctly.
3267     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3268     since some C++ compilers masquerading as C compilers
3269     incorrectly reject 9223372036854775807.  */
3270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3271   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3272                        && LARGE_OFF_T % 2147483647 == 1)
3273                       ? 1 : -1];
3274 int
3275 main ()
3276 {
3277
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282          rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284   (eval $ac_compile) 2>conftest.er1
3285   ac_status=$?
3286   grep -v '^ *+' conftest.er1 >conftest.err
3287   rm -f conftest.er1
3288   cat conftest.err >&5
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); } &&
3291          { ac_try='test -z "$ac_c_werror_flag"
3292                          || test ! -s conftest.err'
3293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294   (eval $ac_try) 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); }; } &&
3298          { ac_try='test -s conftest.$ac_objext'
3299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300   (eval $ac_try) 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }; }; then
3304   break
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 fi
3310 rm -f conftest.err conftest.$ac_objext
3311          CC="$CC -n32"
3312          rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314   (eval $ac_compile) 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } &&
3321          { ac_try='test -z "$ac_c_werror_flag"
3322                          || test ! -s conftest.err'
3323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324   (eval $ac_try) 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); }; } &&
3328          { ac_try='test -s conftest.$ac_objext'
3329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330   (eval $ac_try) 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; }; then
3334   ac_cv_sys_largefile_CC=' -n32'; break
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 fi
3340 rm -f conftest.err conftest.$ac_objext
3341          break
3342        done
3343        CC=$ac_save_CC
3344        rm -f conftest.$ac_ext
3345     fi
3346 fi
3347 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3348 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3349   if test "$ac_cv_sys_largefile_CC" != no; then
3350     CC=$CC$ac_cv_sys_largefile_CC
3351   fi
3352
3353   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3354 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3355 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358   while :; do
3359   ac_cv_sys_file_offset_bits=no
3360   cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h.  */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h.  */
3366 #include <sys/types.h>
3367  /* Check that off_t can represent 2**63 - 1 correctly.
3368     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3369     since some C++ compilers masquerading as C compilers
3370     incorrectly reject 9223372036854775807.  */
3371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3372   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3373                        && LARGE_OFF_T % 2147483647 == 1)
3374                       ? 1 : -1];
3375 int
3376 main ()
3377 {
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385   (eval $ac_compile) 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } &&
3392          { ac_try='test -z "$ac_c_werror_flag"
3393                          || test ! -s conftest.err'
3394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395   (eval $ac_try) 2>&5
3396   ac_status=$?
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); }; } &&
3399          { ac_try='test -s conftest.$ac_objext'
3400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401   (eval $ac_try) 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; }; then
3405   break
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 fi
3411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #define _FILE_OFFSET_BITS 64
3419 #include <sys/types.h>
3420  /* Check that off_t can represent 2**63 - 1 correctly.
3421     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3422     since some C++ compilers masquerading as C compilers
3423     incorrectly reject 9223372036854775807.  */
3424 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3425   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3426                        && LARGE_OFF_T % 2147483647 == 1)
3427                       ? 1 : -1];
3428 int
3429 main ()
3430 {
3431
3432   ;
3433   return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438   (eval $ac_compile) 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } &&
3445          { ac_try='test -z "$ac_c_werror_flag"
3446                          || test ! -s conftest.err'
3447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448   (eval $ac_try) 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); }; } &&
3452          { ac_try='test -s conftest.$ac_objext'
3453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454   (eval $ac_try) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); }; }; then
3458   ac_cv_sys_file_offset_bits=64; break
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 fi
3464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3465   break
3466 done
3467 fi
3468 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3469 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3470 if test "$ac_cv_sys_file_offset_bits" != no; then
3471
3472 cat >>confdefs.h <<_ACEOF
3473 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3474 _ACEOF
3475
3476 fi
3477 rm -f conftest*
3478   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3479 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3480 if test "${ac_cv_sys_large_files+set}" = set; then
3481   echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483   while :; do
3484   ac_cv_sys_large_files=no
3485   cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491 #include <sys/types.h>
3492  /* Check that off_t can represent 2**63 - 1 correctly.
3493     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3494     since some C++ compilers masquerading as C compilers
3495     incorrectly reject 9223372036854775807.  */
3496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3497   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3498                        && LARGE_OFF_T % 2147483647 == 1)
3499                       ? 1 : -1];
3500 int
3501 main ()
3502 {
3503
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510   (eval $ac_compile) 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } &&
3517          { ac_try='test -z "$ac_c_werror_flag"
3518                          || test ! -s conftest.err'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; } &&
3524          { ac_try='test -s conftest.$ac_objext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   break
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 fi
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #define _LARGE_FILES 1
3544 #include <sys/types.h>
3545  /* Check that off_t can represent 2**63 - 1 correctly.
3546     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3547     since some C++ compilers masquerading as C compilers
3548     incorrectly reject 9223372036854775807.  */
3549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3550   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3551                        && LARGE_OFF_T % 2147483647 == 1)
3552                       ? 1 : -1];
3553 int
3554 main ()
3555 {
3556
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563   (eval $ac_compile) 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } &&
3570          { ac_try='test -z "$ac_c_werror_flag"
3571                          || test ! -s conftest.err'
3572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573   (eval $ac_try) 2>&5
3574   ac_status=$?
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); }; } &&
3577          { ac_try='test -s conftest.$ac_objext'
3578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579   (eval $ac_try) 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); }; }; then
3583   ac_cv_sys_large_files=1; break
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 fi
3589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3590   break
3591 done
3592 fi
3593 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3594 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3595 if test "$ac_cv_sys_large_files" != no; then
3596
3597 cat >>confdefs.h <<_ACEOF
3598 #define _LARGE_FILES $ac_cv_sys_large_files
3599 _ACEOF
3600
3601 fi
3602 rm -f conftest*
3603 fi
3604
3605
3606 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3607 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3608 if test "${ac_cv_c_bigendian+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611   # See if sys/param.h defines the BYTE_ORDER macro.
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h.  */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h.  */
3618 #include <sys/types.h>
3619 #include <sys/param.h>
3620
3621 int
3622 main ()
3623 {
3624 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3625  bogus endian macros
3626 #endif
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634   (eval $ac_compile) 2>conftest.er1
3635   ac_status=$?
3636   grep -v '^ *+' conftest.er1 >conftest.err
3637   rm -f conftest.er1
3638   cat conftest.err >&5
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); } &&
3641          { ac_try='test -z "$ac_c_werror_flag"
3642                          || test ! -s conftest.err'
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); }; } &&
3648          { ac_try='test -s conftest.$ac_objext'
3649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650   (eval $ac_try) 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); }; }; then
3654   # It does; now see whether it defined to BIG_ENDIAN or not.
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #include <sys/types.h>
3662 #include <sys/param.h>
3663
3664 int
3665 main ()
3666 {
3667 #if BYTE_ORDER != BIG_ENDIAN
3668  not big endian
3669 #endif
3670
3671   ;
3672   return 0;
3673 }
3674 _ACEOF
3675 rm -f conftest.$ac_objext
3676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3677   (eval $ac_compile) 2>conftest.er1
3678   ac_status=$?
3679   grep -v '^ *+' conftest.er1 >conftest.err
3680   rm -f conftest.er1
3681   cat conftest.err >&5
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } &&
3684          { ac_try='test -z "$ac_c_werror_flag"
3685                          || test ! -s conftest.err'
3686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687   (eval $ac_try) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; } &&
3691          { ac_try='test -s conftest.$ac_objext'
3692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693   (eval $ac_try) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; }; then
3697   ac_cv_c_bigendian=yes
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 ac_cv_c_bigendian=no
3703 fi
3704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705 else
3706   echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709 # It does not; compile a test program.
3710 if test "$cross_compiling" = yes; then
3711   # try to guess the endianness by grepping values into an object file
3712   ac_cv_c_bigendian=unknown
3713   cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h.  */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h.  */
3719 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3720 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3721 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3722 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3723 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3724 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3725 int
3726 main ()
3727 {
3728  _ascii (); _ebcdic ();
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735   (eval $ac_compile) 2>conftest.er1
3736   ac_status=$?
3737   grep -v '^ *+' conftest.er1 >conftest.err
3738   rm -f conftest.er1
3739   cat conftest.err >&5
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); } &&
3742          { ac_try='test -z "$ac_c_werror_flag"
3743                          || test ! -s conftest.err'
3744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745   (eval $ac_try) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }; } &&
3749          { ac_try='test -s conftest.$ac_objext'
3750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751   (eval $ac_try) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }; }; then
3755   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3756   ac_cv_c_bigendian=yes
3757 fi
3758 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3759   if test "$ac_cv_c_bigendian" = unknown; then
3760     ac_cv_c_bigendian=no
3761   else
3762     # finding both strings is unlikely to happen, but who knows?
3763     ac_cv_c_bigendian=unknown
3764   fi
3765 fi
3766 else
3767   echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 fi
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772 else
3773   cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779 int
3780 main ()
3781 {
3782   /* Are we little or big endian?  From Harbison&Steele.  */
3783   union
3784   {
3785     long l;
3786     char c[sizeof (long)];
3787   } u;
3788   u.l = 1;
3789   exit (u.c[sizeof (long) - 1] == 1);
3790 }
3791 _ACEOF
3792 rm -f conftest$ac_exeext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794   (eval $ac_link) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799   (eval $ac_try) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); }; }; then
3803   ac_cv_c_bigendian=no
3804 else
3805   echo "$as_me: program exited with status $ac_status" >&5
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809 ( exit $ac_status )
3810 ac_cv_c_bigendian=yes
3811 fi
3812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3813 fi
3814 fi
3815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 fi
3817 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3818 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3819 case $ac_cv_c_bigendian in
3820   yes)
3821
3822 cat >>confdefs.h <<\_ACEOF
3823 #define WORDS_BIGENDIAN 1
3824 _ACEOF
3825  ;;
3826   no)
3827      ;;
3828   *)
3829     { { echo "$as_me:$LINENO: error: unknown endianness
3830 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3831 echo "$as_me: error: unknown endianness
3832 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3833    { (exit 1); exit 1; }; } ;;
3834 esac
3835
3836
3837 # Extract the first word of "gmake", so it can be a program name with args.
3838 set dummy gmake; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_prog_GMAKE+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   if test -n "$GMAKE"; then
3845   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3846 else
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 ac_exec_ext in '' $ac_executable_extensions; do
3853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854     ac_cv_prog_GMAKE="yes"
3855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856     break 2
3857   fi
3858 done
3859 done
3860
3861   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3862 fi
3863 fi
3864 GMAKE=$ac_cv_prog_GMAKE
3865 if test -n "$GMAKE"; then
3866   echo "$as_me:$LINENO: result: $GMAKE" >&5
3867 echo "${ECHO_T}$GMAKE" >&6
3868 else
3869   echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3871 fi
3872
3873 if test $GMAKE = no; then
3874   # Extract the first word of "make", so it can be a program name with args.
3875 set dummy make; ac_word=$2
3876 echo "$as_me:$LINENO: checking for $ac_word" >&5
3877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878 if test "${ac_cv_path_MAKE+set}" = set; then
3879   echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881   case $MAKE in
3882   [\\/]* | ?:[\\/]*)
3883   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3884   ;;
3885   *)
3886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889   IFS=$as_save_IFS
3890   test -z "$as_dir" && as_dir=.
3891   for ac_exec_ext in '' $ac_executable_extensions; do
3892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895     break 2
3896   fi
3897 done
3898 done
3899
3900   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3901   ;;
3902 esac
3903 fi
3904 MAKE=$ac_cv_path_MAKE
3905
3906 if test -n "$MAKE"; then
3907   echo "$as_me:$LINENO: result: $MAKE" >&5
3908 echo "${ECHO_T}$MAKE" >&6
3909 else
3910   echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3912 fi
3913
3914 else
3915   # Extract the first word of "gmake", so it can be a program name with args.
3916 set dummy gmake; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_path_MAKE+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   case $MAKE in
3923   [\\/]* | ?:[\\/]*)
3924   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3925   ;;
3926   *)
3927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932   for ac_exec_ext in '' $ac_executable_extensions; do
3933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939 done
3940
3941   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3942   ;;
3943 esac
3944 fi
3945 MAKE=$ac_cv_path_MAKE
3946
3947 if test -n "$MAKE"; then
3948   echo "$as_me:$LINENO: result: $MAKE" >&5
3949 echo "${ECHO_T}$MAKE" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3953 fi
3954
3955 fi
3956 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3957 if test -z "$makever"; then
3958   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3959                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3960 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3961                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3962    { (exit 1); exit 1; }; }
3963 fi
3964
3965   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3966 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3967 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   ac_check_lib_save_LIBS=$LIBS
3971 LIBS="-lltdl  $LIBS"
3972 cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h.  */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h.  */
3978
3979 /* Override any gcc2 internal prototype to avoid an error.  */
3980 #ifdef __cplusplus
3981 extern "C"
3982 #endif
3983 /* We use char because int might match the return type of a gcc2
3984    builtin and then its argument prototype would still apply.  */
3985 char lt_dlinit ();
3986 int
3987 main ()
3988 {
3989 lt_dlinit ();
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3996   (eval $ac_link) 2>conftest.er1
3997   ac_status=$?
3998   grep -v '^ *+' conftest.er1 >conftest.err
3999   rm -f conftest.er1
4000   cat conftest.err >&5
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); } &&
4003          { ac_try='test -z "$ac_c_werror_flag"
4004                          || test ! -s conftest.err'
4005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006   (eval $ac_try) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }; } &&
4010          { ac_try='test -s conftest$ac_exeext'
4011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012   (eval $ac_try) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); }; }; then
4016   ac_cv_lib_ltdl_lt_dlinit=yes
4017 else
4018   echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021 ac_cv_lib_ltdl_lt_dlinit=no
4022 fi
4023 rm -f conftest.err conftest.$ac_objext \
4024       conftest$ac_exeext conftest.$ac_ext
4025 LIBS=$ac_check_lib_save_LIBS
4026 fi
4027 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4028 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
4029 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4030   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4031 else
4032   if test x"$enable_ltdl_install" = xno; then
4033      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4034 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4035    else
4036      enable_ltdl_install=yes
4037    fi
4038
4039 fi
4040
4041   if test x"$enable_ltdl_install" = x"yes"; then
4042     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4043     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4044     LTDLINCL='-I${top_srcdir}/''libltdl'
4045   else
4046     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4047     LIBLTDL="-lltdl"
4048     LTDLINCL=
4049   fi
4050   # For backwards non-gettext consistent compatibility...
4051   INCLTDL="$LTDLINCL"
4052
4053
4054 if test x"$enable_ltdl_install" = x"yes"; then
4055   LTDL_SUBDIRS=libltdl
4056 fi
4057
4058
4059 # Check whether --enable-shared or --disable-shared was given.
4060 if test "${enable_shared+set}" = set; then
4061   enableval="$enable_shared"
4062   p=${PACKAGE-default}
4063     case $enableval in
4064     yes) enable_shared=yes ;;
4065     no) enable_shared=no ;;
4066     *)
4067       enable_shared=no
4068       # Look at the argument we got.  We use all the common list separators.
4069       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4070       for pkg in $enableval; do
4071         IFS="$lt_save_ifs"
4072         if test "X$pkg" = "X$p"; then
4073           enable_shared=yes
4074         fi
4075       done
4076       IFS="$lt_save_ifs"
4077       ;;
4078     esac
4079 else
4080   enable_shared=yes
4081 fi;
4082
4083 # Check whether --enable-static or --disable-static was given.
4084 if test "${enable_static+set}" = set; then
4085   enableval="$enable_static"
4086   p=${PACKAGE-default}
4087     case $enableval in
4088     yes) enable_static=yes ;;
4089     no) enable_static=no ;;
4090     *)
4091      enable_static=no
4092       # Look at the argument we got.  We use all the common list separators.
4093       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094       for pkg in $enableval; do
4095         IFS="$lt_save_ifs"
4096         if test "X$pkg" = "X$p"; then
4097           enable_static=yes
4098         fi
4099       done
4100       IFS="$lt_save_ifs"
4101       ;;
4102     esac
4103 else
4104   enable_static=yes
4105 fi;
4106
4107 # Check whether --enable-fast-install or --disable-fast-install was given.
4108 if test "${enable_fast_install+set}" = set; then
4109   enableval="$enable_fast_install"
4110   p=${PACKAGE-default}
4111     case $enableval in
4112     yes) enable_fast_install=yes ;;
4113     no) enable_fast_install=no ;;
4114     *)
4115       enable_fast_install=no
4116       # Look at the argument we got.  We use all the common list separators.
4117       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4118       for pkg in $enableval; do
4119         IFS="$lt_save_ifs"
4120         if test "X$pkg" = "X$p"; then
4121           enable_fast_install=yes
4122         fi
4123       done
4124       IFS="$lt_save_ifs"
4125       ;;
4126     esac
4127 else
4128   enable_fast_install=yes
4129 fi;
4130
4131 ac_aux_dir=
4132 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4133   if test -f $ac_dir/install-sh; then
4134     ac_aux_dir=$ac_dir
4135     ac_install_sh="$ac_aux_dir/install-sh -c"
4136     break
4137   elif test -f $ac_dir/install.sh; then
4138     ac_aux_dir=$ac_dir
4139     ac_install_sh="$ac_aux_dir/install.sh -c"
4140     break
4141   elif test -f $ac_dir/shtool; then
4142     ac_aux_dir=$ac_dir
4143     ac_install_sh="$ac_aux_dir/shtool install -c"
4144     break
4145   fi
4146 done
4147 if test -z "$ac_aux_dir"; then
4148   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4149 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4150    { (exit 1); exit 1; }; }
4151 fi
4152 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4153 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4154 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4155
4156 # Make sure we can run config.sub.
4157 $ac_config_sub sun4 >/dev/null 2>&1 ||
4158   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4159 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4160    { (exit 1); exit 1; }; }
4161
4162 echo "$as_me:$LINENO: checking build system type" >&5
4163 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4164 if test "${ac_cv_build+set}" = set; then
4165   echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167   ac_cv_build_alias=$build_alias
4168 test -z "$ac_cv_build_alias" &&
4169   ac_cv_build_alias=`$ac_config_guess`
4170 test -z "$ac_cv_build_alias" &&
4171   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4172 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4173    { (exit 1); exit 1; }; }
4174 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4175   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4176 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4177    { (exit 1); exit 1; }; }
4178
4179 fi
4180 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4181 echo "${ECHO_T}$ac_cv_build" >&6
4182 build=$ac_cv_build
4183 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4184 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4185 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4186
4187
4188 echo "$as_me:$LINENO: checking host system type" >&5
4189 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4190 if test "${ac_cv_host+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   ac_cv_host_alias=$host_alias
4194 test -z "$ac_cv_host_alias" &&
4195   ac_cv_host_alias=$ac_cv_build_alias
4196 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4197   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4198 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4199    { (exit 1); exit 1; }; }
4200
4201 fi
4202 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4203 echo "${ECHO_T}$ac_cv_host" >&6
4204 host=$ac_cv_host
4205 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4206 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4207 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4208
4209
4210 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4211 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4212 if test "${lt_cv_path_SED+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   # Loop through the user's path and test for sed and gsed.
4216 # Then use that list of sed's as ones to test for truncation.
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222   for lt_ac_prog in sed gsed; do
4223     for ac_exec_ext in '' $ac_executable_extensions; do
4224       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4225         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4226       fi
4227     done
4228   done
4229 done
4230 lt_ac_max=0
4231 lt_ac_count=0
4232 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4233 # along with /bin/sed that truncates output.
4234 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4235   test ! -f $lt_ac_sed && continue
4236   cat /dev/null > conftest.in
4237   lt_ac_count=0
4238   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4239   # Check for GNU sed and select it if it is found.
4240   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4241     lt_cv_path_SED=$lt_ac_sed
4242     break
4243   fi
4244   while true; do
4245     cat conftest.in conftest.in >conftest.tmp
4246     mv conftest.tmp conftest.in
4247     cp conftest.in conftest.nl
4248     echo >>conftest.nl
4249     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4250     cmp -s conftest.out conftest.nl || break
4251     # 10000 chars as input seems more than enough
4252     test $lt_ac_count -gt 10 && break
4253     lt_ac_count=`expr $lt_ac_count + 1`
4254     if test $lt_ac_count -gt $lt_ac_max; then
4255       lt_ac_max=$lt_ac_count
4256       lt_cv_path_SED=$lt_ac_sed
4257     fi
4258   done
4259 done
4260
4261 fi
4262
4263 SED=$lt_cv_path_SED
4264 echo "$as_me:$LINENO: result: $SED" >&5
4265 echo "${ECHO_T}$SED" >&6
4266
4267
4268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4269 if test "${with_gnu_ld+set}" = set; then
4270   withval="$with_gnu_ld"
4271   test "$withval" = no || with_gnu_ld=yes
4272 else
4273   with_gnu_ld=no
4274 fi;
4275 ac_prog=ld
4276 if test "$GCC" = yes; then
4277   # Check if gcc -print-prog-name=ld gives a path.
4278   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4280   case $host in
4281   *-*-mingw*)
4282     # gcc leaves a trailing carriage return which upsets mingw
4283     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4284   *)
4285     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4286   esac
4287   case $ac_prog in
4288     # Accept absolute paths.
4289     [\\/]* | ?:[\\/]*)
4290       re_direlt='/[^/][^/]*/\.\./'
4291       # Canonicalize the pathname of ld
4292       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4293       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4294         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4295       done
4296       test -z "$LD" && LD="$ac_prog"
4297       ;;
4298   "")
4299     # If it fails, then pretend we aren't using GCC.
4300     ac_prog=ld
4301     ;;
4302   *)
4303     # If it is relative, then search for the first ld in PATH.
4304     with_gnu_ld=unknown
4305     ;;
4306   esac
4307 elif test "$with_gnu_ld" = yes; then
4308   echo "$as_me:$LINENO: checking for GNU ld" >&5
4309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4310 else
4311   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4313 fi
4314 if test "${lt_cv_path_LD+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317   if test -z "$LD"; then
4318   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4319   for ac_dir in $PATH; do
4320     IFS="$lt_save_ifs"
4321     test -z "$ac_dir" && ac_dir=.
4322     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4323       lt_cv_path_LD="$ac_dir/$ac_prog"
4324       # Check to see if the program is GNU ld.  I'd rather use --version,
4325       # but apparently some variants of GNU ld only accept -v.
4326       # Break only if it was the GNU/non-GNU ld that we prefer.
4327       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4328       *GNU* | *'with BFD'*)
4329         test "$with_gnu_ld" != no && break
4330         ;;
4331       *)
4332         test "$with_gnu_ld" != yes && break
4333         ;;
4334       esac
4335     fi
4336   done
4337   IFS="$lt_save_ifs"
4338 else
4339   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4340 fi
4341 fi
4342
4343 LD="$lt_cv_path_LD"
4344 if test -n "$LD"; then
4345   echo "$as_me:$LINENO: result: $LD" >&5
4346 echo "${ECHO_T}$LD" >&6
4347 else
4348   echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350 fi
4351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4353    { (exit 1); exit 1; }; }
4354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4360 case `$LD -v 2>&1 </dev/null` in
4361 *GNU* | *'with BFD'*)
4362   lt_cv_prog_gnu_ld=yes
4363   ;;
4364 *)
4365   lt_cv_prog_gnu_ld=no
4366   ;;
4367 esac
4368 fi
4369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4371 with_gnu_ld=$lt_cv_prog_gnu_ld
4372
4373
4374 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4375 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4376 if test "${lt_cv_ld_reload_flag+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   lt_cv_ld_reload_flag='-r'
4380 fi
4381 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4382 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4383 reload_flag=$lt_cv_ld_reload_flag
4384 case $reload_flag in
4385 "" | " "*) ;;
4386 *) reload_flag=" $reload_flag" ;;
4387 esac
4388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4389 case $host_os in
4390   darwin*)
4391     if test "$GCC" = yes; then
4392       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4393     else
4394       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4395     fi
4396     ;;
4397 esac
4398
4399 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4400 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4401 if test "${lt_cv_path_NM+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   if test -n "$NM"; then
4405   # Let the user override the test.
4406   lt_cv_path_NM="$NM"
4407 else
4408   lt_nm_to_check="${ac_tool_prefix}nm"
4409   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4410     lt_nm_to_check="$lt_nm_to_check nm"
4411   fi
4412   for lt_tmp_nm in $lt_nm_to_check; do
4413     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4414     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4415       IFS="$lt_save_ifs"
4416       test -z "$ac_dir" && ac_dir=.
4417       tmp_nm="$ac_dir/$lt_tmp_nm"
4418       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4419         # Check to see if the nm accepts a BSD-compat flag.
4420         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4421         #   nm: unknown option "B" ignored
4422         # Tru64's nm complains that /dev/null is an invalid object file
4423         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4424         */dev/null* | *'Invalid file or object type'*)
4425           lt_cv_path_NM="$tmp_nm -B"
4426           break
4427           ;;
4428         *)
4429           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4430           */dev/null*)
4431             lt_cv_path_NM="$tmp_nm -p"
4432             break
4433             ;;
4434           *)
4435             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4436             continue # so that we can try to find one that supports BSD flags
4437             ;;
4438           esac
4439           ;;
4440         esac
4441       fi
4442     done
4443     IFS="$lt_save_ifs"
4444   done
4445   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4446 fi
4447 fi
4448 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4449 echo "${ECHO_T}$lt_cv_path_NM" >&6
4450 NM="$lt_cv_path_NM"
4451
4452 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4453 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4454 LN_S=$as_ln_s
4455 if test "$LN_S" = "ln -s"; then
4456   echo "$as_me:$LINENO: result: yes" >&5
4457 echo "${ECHO_T}yes" >&6
4458 else
4459   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4460 echo "${ECHO_T}no, using $LN_S" >&6
4461 fi
4462
4463 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4464 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4465 if test "${lt_cv_deplibs_check_method+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   lt_cv_file_magic_cmd='$MAGIC_CMD'
4469 lt_cv_file_magic_test_file=
4470 lt_cv_deplibs_check_method='unknown'
4471 # Need to set the preceding variable on all platforms that support
4472 # interlibrary dependencies.
4473 # 'none' -- dependencies not supported.
4474 # `unknown' -- same as none, but documents that we really don't know.
4475 # 'pass_all' -- all dependencies passed with no checks.
4476 # 'test_compile' -- check by making test program.
4477 # 'file_magic [[regex]]' -- check by looking for files in library path
4478 # which responds to the $file_magic_cmd with a given extended regex.
4479 # If you have `file' or equivalent on your system and you're not sure
4480 # whether `pass_all' will *always* work, you probably want this one.
4481
4482 case $host_os in
4483 aix4* | aix5*)
4484   lt_cv_deplibs_check_method=pass_all
4485   ;;
4486
4487 beos*)
4488   lt_cv_deplibs_check_method=pass_all
4489   ;;
4490
4491 bsdi[45]*)
4492   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4493   lt_cv_file_magic_cmd='/usr/bin/file -L'
4494   lt_cv_file_magic_test_file=/shlib/libc.so
4495   ;;
4496
4497 cygwin*)
4498   # func_win32_libid is a shell function defined in ltmain.sh
4499   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4500   lt_cv_file_magic_cmd='func_win32_libid'
4501   ;;
4502
4503 mingw* | pw32*)
4504   # Base MSYS/MinGW do not provide the 'file' command needed by
4505   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4506   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4507   lt_cv_file_magic_cmd='$OBJDUMP -f'
4508   ;;
4509
4510 darwin* | rhapsody*)
4511   lt_cv_deplibs_check_method=pass_all
4512   ;;
4513
4514 freebsd* | kfreebsd*-gnu | dragonfly*)
4515   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4516     case $host_cpu in
4517     i*86 )
4518       # Not sure whether the presence of OpenBSD here was a mistake.
4519       # Let's accept both of them until this is cleared up.
4520       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4521       lt_cv_file_magic_cmd=/usr/bin/file
4522       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4523       ;;
4524     esac
4525   else
4526     lt_cv_deplibs_check_method=pass_all
4527   fi
4528   ;;
4529
4530 gnu*)
4531   lt_cv_deplibs_check_method=pass_all
4532   ;;
4533
4534 hpux10.20* | hpux11*)
4535   lt_cv_file_magic_cmd=/usr/bin/file
4536   case $host_cpu in
4537   ia64*)
4538     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4539     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4540     ;;
4541   hppa*64*)
4542     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]'
4543     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4544     ;;
4545   *)
4546     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4547     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4548     ;;
4549   esac
4550   ;;
4551
4552 interix3*)
4553   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4554   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4555   ;;
4556
4557 irix5* | irix6* | nonstopux*)
4558   case $LD in
4559   *-32|*"-32 ") libmagic=32-bit;;
4560   *-n32|*"-n32 ") libmagic=N32;;
4561   *-64|*"-64 ") libmagic=64-bit;;
4562   *) libmagic=never-match;;
4563   esac
4564   lt_cv_deplibs_check_method=pass_all
4565   ;;
4566
4567 # This must be Linux ELF.
4568 linux*)
4569   lt_cv_deplibs_check_method=pass_all
4570   ;;
4571
4572 netbsd*)
4573   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4575   else
4576     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4577   fi
4578   ;;
4579
4580 newos6*)
4581   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4582   lt_cv_file_magic_cmd=/usr/bin/file
4583   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4584   ;;
4585
4586 nto-qnx*)
4587   lt_cv_deplibs_check_method=unknown
4588   ;;
4589
4590 openbsd*)
4591   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4593   else
4594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4595   fi
4596   ;;
4597
4598 osf3* | osf4* | osf5*)
4599   lt_cv_deplibs_check_method=pass_all
4600   ;;
4601
4602 solaris*)
4603   lt_cv_deplibs_check_method=pass_all
4604   ;;
4605
4606 sysv4 | sysv4.3*)
4607   case $host_vendor in
4608   motorola)
4609     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]'
4610     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4611     ;;
4612   ncr)
4613     lt_cv_deplibs_check_method=pass_all
4614     ;;
4615   sequent)
4616     lt_cv_file_magic_cmd='/bin/file'
4617     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4618     ;;
4619   sni)
4620     lt_cv_file_magic_cmd='/bin/file'
4621     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4622     lt_cv_file_magic_test_file=/lib/libc.so
4623     ;;
4624   siemens)
4625     lt_cv_deplibs_check_method=pass_all
4626     ;;
4627   pc)
4628     lt_cv_deplibs_check_method=pass_all
4629     ;;
4630   esac
4631   ;;
4632
4633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4634   lt_cv_deplibs_check_method=pass_all
4635   ;;
4636 esac
4637
4638 fi
4639 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4640 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4641 file_magic_cmd=$lt_cv_file_magic_cmd
4642 deplibs_check_method=$lt_cv_deplibs_check_method
4643 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4644
4645
4646
4647
4648 # If no C compiler was specified, use CC.
4649 LTCC=${LTCC-"$CC"}
4650
4651 # If no C compiler flags were specified, use CFLAGS.
4652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4653
4654 # Allow CC to be a program name with arguments.
4655 compiler=$CC
4656
4657 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4658 if test "${enable_libtool_lock+set}" = set; then
4659   enableval="$enable_libtool_lock"
4660
4661 fi;
4662 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4663
4664 # Some flags need to be propagated to the compiler or linker for good
4665 # libtool support.
4666 case $host in
4667 ia64-*-hpux*)
4668   # Find out which ABI we are using.
4669   echo 'int i;' > conftest.$ac_ext
4670   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671   (eval $ac_compile) 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; then
4675     case `/usr/bin/file conftest.$ac_objext` in
4676     *ELF-32*)
4677       HPUX_IA64_MODE="32"
4678       ;;
4679     *ELF-64*)
4680       HPUX_IA64_MODE="64"
4681       ;;
4682     esac
4683   fi
4684   rm -rf conftest*
4685   ;;
4686 *-*-irix6*)
4687   # Find out which ABI we are using.
4688   echo '#line 4688 "configure"' > conftest.$ac_ext
4689   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690   (eval $ac_compile) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; then
4694    if test "$lt_cv_prog_gnu_ld" = yes; then
4695     case `/usr/bin/file conftest.$ac_objext` in
4696     *32-bit*)
4697       LD="${LD-ld} -melf32bsmip"
4698       ;;
4699     *N32*)
4700       LD="${LD-ld} -melf32bmipn32"
4701       ;;
4702     *64-bit*)
4703       LD="${LD-ld} -melf64bmip"
4704       ;;
4705     esac
4706    else
4707     case `/usr/bin/file conftest.$ac_objext` in
4708     *32-bit*)
4709       LD="${LD-ld} -32"
4710       ;;
4711     *N32*)
4712       LD="${LD-ld} -n32"
4713       ;;
4714     *64-bit*)
4715       LD="${LD-ld} -64"
4716       ;;
4717     esac
4718    fi
4719   fi
4720   rm -rf conftest*
4721   ;;
4722
4723 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4724   # Find out which ABI we are using.
4725   echo 'int i;' > conftest.$ac_ext
4726   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727   (eval $ac_compile) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; then
4731     case `/usr/bin/file conftest.o` in
4732     *32-bit*)
4733       case $host in
4734         x86_64-*linux*)
4735           LD="${LD-ld} -m elf_i386"
4736           ;;
4737         ppc64-*linux*|powerpc64-*linux*)
4738           LD="${LD-ld} -m elf32ppclinux"
4739           ;;
4740         s390x-*linux*)
4741           LD="${LD-ld} -m elf_s390"
4742           ;;
4743         sparc64-*linux*)
4744           LD="${LD-ld} -m elf32_sparc"
4745           ;;
4746       esac
4747       ;;
4748     *64-bit*)
4749       case $host in
4750         x86_64-*linux*)
4751           LD="${LD-ld} -m elf_x86_64"
4752           ;;
4753         ppc*-*linux*|powerpc*-*linux*)
4754           LD="${LD-ld} -m elf64ppc"
4755           ;;
4756         s390*-*linux*)
4757           LD="${LD-ld} -m elf64_s390"
4758           ;;
4759         sparc*-*linux*)
4760           LD="${LD-ld} -m elf64_sparc"
4761           ;;
4762       esac
4763       ;;
4764     esac
4765   fi
4766   rm -rf conftest*
4767   ;;
4768
4769 *-*-sco3.2v5*)
4770   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4771   SAVE_CFLAGS="$CFLAGS"
4772   CFLAGS="$CFLAGS -belf"
4773   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4774 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4775 if test "${lt_cv_cc_needs_belf+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   ac_ext=c
4779 ac_cpp='$CPP $CPPFLAGS'
4780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4783
4784      cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h.  */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h.  */
4790
4791 int
4792 main ()
4793 {
4794
4795   ;
4796   return 0;
4797 }
4798 _ACEOF
4799 rm -f conftest.$ac_objext conftest$ac_exeext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801   (eval $ac_link) 2>conftest.er1
4802   ac_status=$?
4803   grep -v '^ *+' conftest.er1 >conftest.err
4804   rm -f conftest.er1
4805   cat conftest.err >&5
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); } &&
4808          { ac_try='test -z "$ac_c_werror_flag"
4809                          || test ! -s conftest.err'
4810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811   (eval $ac_try) 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); }; } &&
4815          { ac_try='test -s conftest$ac_exeext'
4816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817   (eval $ac_try) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; }; then
4821   lt_cv_cc_needs_belf=yes
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 lt_cv_cc_needs_belf=no
4827 fi
4828 rm -f conftest.err conftest.$ac_objext \
4829       conftest$ac_exeext conftest.$ac_ext
4830      ac_ext=c
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835
4836 fi
4837 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4838 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4839   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4840     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4841     CFLAGS="$SAVE_CFLAGS"
4842   fi
4843   ;;
4844 sparc*-*solaris*)
4845   # Find out which ABI we are using.
4846   echo 'int i;' > conftest.$ac_ext
4847   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848   (eval $ac_compile) 2>&5
4849   ac_status=$?
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); }; then
4852     case `/usr/bin/file conftest.o` in
4853     *64-bit*)
4854       case $lt_cv_prog_gnu_ld in
4855       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4856       *)    LD="${LD-ld} -64" ;;
4857       esac
4858       ;;
4859     esac
4860   fi
4861   rm -rf conftest*
4862   ;;
4863
4864
4865 esac
4866
4867 need_locks="$enable_libtool_lock"
4868
4869
4870 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4872 if test "${ac_cv_header_stdc+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h.  */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h.  */
4881 #include <stdlib.h>
4882 #include <stdarg.h>
4883 #include <string.h>
4884 #include <float.h>
4885
4886 int
4887 main ()
4888 {
4889
4890   ;
4891   return 0;
4892 }
4893 _ACEOF
4894 rm -f conftest.$ac_objext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896   (eval $ac_compile) 2>conftest.er1
4897   ac_status=$?
4898   grep -v '^ *+' conftest.er1 >conftest.err
4899   rm -f conftest.er1
4900   cat conftest.err >&5
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); } &&
4903          { ac_try='test -z "$ac_c_werror_flag"
4904                          || test ! -s conftest.err'
4905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906   (eval $ac_try) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }; } &&
4910          { ac_try='test -s conftest.$ac_objext'
4911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912   (eval $ac_try) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); }; }; then
4916   ac_cv_header_stdc=yes
4917 else
4918   echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 ac_cv_header_stdc=no
4922 fi
4923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4924
4925 if test $ac_cv_header_stdc = yes; then
4926   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4927   cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933 #include <string.h>
4934
4935 _ACEOF
4936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4937   $EGREP "memchr" >/dev/null 2>&1; then
4938   :
4939 else
4940   ac_cv_header_stdc=no
4941 fi
4942 rm -f conftest*
4943
4944 fi
4945
4946 if test $ac_cv_header_stdc = yes; then
4947   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4948   cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h.  */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h.  */
4954 #include <stdlib.h>
4955
4956 _ACEOF
4957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958   $EGREP "free" >/dev/null 2>&1; then
4959   :
4960 else
4961   ac_cv_header_stdc=no
4962 fi
4963 rm -f conftest*
4964
4965 fi
4966
4967 if test $ac_cv_header_stdc = yes; then
4968   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4969   if test "$cross_compiling" = yes; then
4970   :
4971 else
4972   cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978 #include <ctype.h>
4979 #if ((' ' & 0x0FF) == 0x020)
4980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4982 #else
4983 # define ISLOWER(c) \
4984                    (('a' <= (c) && (c) <= 'i') \
4985                      || ('j' <= (c) && (c) <= 'r') \
4986                      || ('s' <= (c) && (c) <= 'z'))
4987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4988 #endif
4989
4990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4991 int
4992 main ()
4993 {
4994   int i;
4995   for (i = 0; i < 256; i++)
4996     if (XOR (islower (i), ISLOWER (i))
4997         || toupper (i) != TOUPPER (i))
4998       exit(2);
4999   exit (0);
5000 }
5001 _ACEOF
5002 rm -f conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004   (eval $ac_link) 2>&5
5005   ac_status=$?
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009   (eval $ac_try) 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); }; }; then
5013   :
5014 else
5015   echo "$as_me: program exited with status $ac_status" >&5
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 ( exit $ac_status )
5020 ac_cv_header_stdc=no
5021 fi
5022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5023 fi
5024 fi
5025 fi
5026 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5027 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5028 if test $ac_cv_header_stdc = yes; then
5029
5030 cat >>confdefs.h <<\_ACEOF
5031 #define STDC_HEADERS 1
5032 _ACEOF
5033
5034 fi
5035
5036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5047                   inttypes.h stdint.h unistd.h
5048 do
5049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5050 echo "$as_me:$LINENO: checking for $ac_header" >&5
5051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5053   echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055   cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h.  */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h.  */
5061 $ac_includes_default
5062
5063 #include <$ac_header>
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067   (eval $ac_compile) 2>conftest.er1
5068   ac_status=$?
5069   grep -v '^ *+' conftest.er1 >conftest.err
5070   rm -f conftest.er1
5071   cat conftest.err >&5
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); } &&
5074          { ac_try='test -z "$ac_c_werror_flag"
5075                          || test ! -s conftest.err'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; } &&
5081          { ac_try='test -s conftest.$ac_objext'
5082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083   (eval $ac_try) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); }; }; then
5087   eval "$as_ac_Header=yes"
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 eval "$as_ac_Header=no"
5093 fi
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 fi
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5099   cat >>confdefs.h <<_ACEOF
5100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5101 _ACEOF
5102
5103 fi
5104
5105 done
5106
5107
5108
5109 for ac_header in dlfcn.h
5110 do
5111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5113   echo "$as_me:$LINENO: checking for $ac_header" >&5
5114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5116   echo $ECHO_N "(cached) $ECHO_C" >&6
5117 fi
5118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5120 else
5121   # Is the header compilable?
5122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130 $ac_includes_default
5131 #include <$ac_header>
5132 _ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135   (eval $ac_compile) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } &&
5142          { ac_try='test -z "$ac_c_werror_flag"
5143                          || test ! -s conftest.err'
5144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145   (eval $ac_try) 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }; } &&
5149          { ac_try='test -s conftest.$ac_objext'
5150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151   (eval $ac_try) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; }; then
5155   ac_header_compiler=yes
5156 else
5157   echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 ac_header_compiler=no
5161 fi
5162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5164 echo "${ECHO_T}$ac_header_compiler" >&6
5165
5166 # Is the header present?
5167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h.  */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h.  */
5175 #include <$ac_header>
5176 _ACEOF
5177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5179   ac_status=$?
5180   grep -v '^ *+' conftest.er1 >conftest.err
5181   rm -f conftest.er1
5182   cat conftest.err >&5
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); } >/dev/null; then
5185   if test -s conftest.err; then
5186     ac_cpp_err=$ac_c_preproc_warn_flag
5187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5188   else
5189     ac_cpp_err=
5190   fi
5191 else
5192   ac_cpp_err=yes
5193 fi
5194 if test -z "$ac_cpp_err"; then
5195   ac_header_preproc=yes
5196 else
5197   echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200   ac_header_preproc=no
5201 fi
5202 rm -f conftest.err conftest.$ac_ext
5203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5204 echo "${ECHO_T}$ac_header_preproc" >&6
5205
5206 # So?  What about this header?
5207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5208   yes:no: )
5209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5213     ac_header_preproc=yes
5214     ;;
5215   no:yes:* )
5216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5218     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5219 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5220     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5222     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5223 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5226     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5228     (
5229       cat <<\_ASBOX
5230 ## ------------------------------------------ ##
5231 ## Report this to the AC_PACKAGE_NAME lists.  ##
5232 ## ------------------------------------------ ##
5233 _ASBOX
5234     ) |
5235       sed "s/^/$as_me: WARNING:     /" >&2
5236     ;;
5237 esac
5238 echo "$as_me:$LINENO: checking for $ac_header" >&5
5239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   eval "$as_ac_Header=\$ac_header_preproc"
5244 fi
5245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5247
5248 fi
5249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5250   cat >>confdefs.h <<_ACEOF
5251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5252 _ACEOF
5253
5254 fi
5255
5256 done
5257
5258
5259
5260 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5261     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5262     (test "X$CXX" != "Xg++"))) ; then
5263   ac_ext=cc
5264 ac_cpp='$CXXCPP $CPPFLAGS'
5265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5268 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5269 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5270 if test -z "$CXXCPP"; then
5271   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274       # Double quotes because CXXCPP needs to be expanded
5275     for CXXCPP in "$CXX -E" "/lib/cpp"
5276     do
5277       ac_preproc_ok=false
5278 for ac_cxx_preproc_warn_flag in '' yes
5279 do
5280   # Use a header file that comes with gcc, so configuring glibc
5281   # with a fresh cross-compiler works.
5282   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5283   # <limits.h> exists even on freestanding compilers.
5284   # On the NeXT, cc -E runs the code through the compiler's parser,
5285   # not just through cpp. "Syntax error" is here to catch this case.
5286   cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h.  */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h.  */
5292 #ifdef __STDC__
5293 # include <limits.h>
5294 #else
5295 # include <assert.h>
5296 #endif
5297                      Syntax error
5298 _ACEOF
5299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } >/dev/null; then
5307   if test -s conftest.err; then
5308     ac_cpp_err=$ac_cxx_preproc_warn_flag
5309     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5310   else
5311     ac_cpp_err=
5312   fi
5313 else
5314   ac_cpp_err=yes
5315 fi
5316 if test -z "$ac_cpp_err"; then
5317   :
5318 else
5319   echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322   # Broken: fails on valid input.
5323 continue
5324 fi
5325 rm -f conftest.err conftest.$ac_ext
5326
5327   # OK, works on sane cases.  Now check whether non-existent headers
5328   # can be detected and how.
5329   cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 #include <ac_nonexistent.h>
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   # Broken: success on invalid input.
5356 continue
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361   # Passes both tests.
5362 ac_preproc_ok=:
5363 break
5364 fi
5365 rm -f conftest.err conftest.$ac_ext
5366
5367 done
5368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369 rm -f conftest.err conftest.$ac_ext
5370 if $ac_preproc_ok; then
5371   break
5372 fi
5373
5374     done
5375     ac_cv_prog_CXXCPP=$CXXCPP
5376
5377 fi
5378   CXXCPP=$ac_cv_prog_CXXCPP
5379 else
5380   ac_cv_prog_CXXCPP=$CXXCPP
5381 fi
5382 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5383 echo "${ECHO_T}$CXXCPP" >&6
5384 ac_preproc_ok=false
5385 for ac_cxx_preproc_warn_flag in '' yes
5386 do
5387   # Use a header file that comes with gcc, so configuring glibc
5388   # with a fresh cross-compiler works.
5389   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390   # <limits.h> exists even on freestanding compilers.
5391   # On the NeXT, cc -E runs the code through the compiler's parser,
5392   # not just through cpp. "Syntax error" is here to catch this case.
5393   cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h.  */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h.  */
5399 #ifdef __STDC__
5400 # include <limits.h>
5401 #else
5402 # include <assert.h>
5403 #endif
5404                      Syntax error
5405 _ACEOF
5406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5408   ac_status=$?
5409   grep -v '^ *+' conftest.er1 >conftest.err
5410   rm -f conftest.er1
5411   cat conftest.err >&5
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); } >/dev/null; then
5414   if test -s conftest.err; then
5415     ac_cpp_err=$ac_cxx_preproc_warn_flag
5416     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5417   else
5418     ac_cpp_err=
5419   fi
5420 else
5421   ac_cpp_err=yes
5422 fi
5423 if test -z "$ac_cpp_err"; then
5424   :
5425 else
5426   echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429   # Broken: fails on valid input.
5430 continue
5431 fi
5432 rm -f conftest.err conftest.$ac_ext
5433
5434   # OK, works on sane cases.  Now check whether non-existent headers
5435   # can be detected and how.
5436   cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h.  */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h.  */
5442 #include <ac_nonexistent.h>
5443 _ACEOF
5444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5446   ac_status=$?
5447   grep -v '^ *+' conftest.er1 >conftest.err
5448   rm -f conftest.er1
5449   cat conftest.err >&5
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); } >/dev/null; then
5452   if test -s conftest.err; then
5453     ac_cpp_err=$ac_cxx_preproc_warn_flag
5454     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5455   else
5456     ac_cpp_err=
5457   fi
5458 else
5459   ac_cpp_err=yes
5460 fi
5461 if test -z "$ac_cpp_err"; then
5462   # Broken: success on invalid input.
5463 continue
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468   # Passes both tests.
5469 ac_preproc_ok=:
5470 break
5471 fi
5472 rm -f conftest.err conftest.$ac_ext
5473
5474 done
5475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5476 rm -f conftest.err conftest.$ac_ext
5477 if $ac_preproc_ok; then
5478   :
5479 else
5480   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5481 See \`config.log' for more details." >&5
5482 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5483 See \`config.log' for more details." >&2;}
5484    { (exit 1); exit 1; }; }
5485 fi
5486
5487 ac_ext=cc
5488 ac_cpp='$CXXCPP $CPPFLAGS'
5489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5492
5493 fi
5494
5495
5496 ac_ext=f
5497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5500 if test -n "$ac_tool_prefix"; then
5501   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5502   do
5503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_F77+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   if test -n "$F77"; then
5511   ac_cv_prog_F77="$F77" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518   for ac_exec_ext in '' $ac_executable_extensions; do
5519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525 done
5526
5527 fi
5528 fi
5529 F77=$ac_cv_prog_F77
5530 if test -n "$F77"; then
5531   echo "$as_me:$LINENO: result: $F77" >&5
5532 echo "${ECHO_T}$F77" >&6
5533 else
5534   echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6
5536 fi
5537
5538     test -n "$F77" && break
5539   done
5540 fi
5541 if test -z "$F77"; then
5542   ac_ct_F77=$F77
5543   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5544 do
5545   # Extract the first word of "$ac_prog", so it can be a program name with args.
5546 set dummy $ac_prog; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   if test -n "$ac_ct_F77"; then
5553   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558   IFS=$as_save_IFS
5559   test -z "$as_dir" && as_dir=.
5560   for ac_exec_ext in '' $ac_executable_extensions; do
5561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562     ac_cv_prog_ac_ct_F77="$ac_prog"
5563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564     break 2
5565   fi
5566 done
5567 done
5568
5569 fi
5570 fi
5571 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5572 if test -n "$ac_ct_F77"; then
5573   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5574 echo "${ECHO_T}$ac_ct_F77" >&6
5575 else
5576   echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5578 fi
5579
5580   test -n "$ac_ct_F77" && break
5581 done
5582
5583   F77=$ac_ct_F77
5584 fi
5585
5586
5587 # Provide some information about the compiler.
5588 echo "$as_me:5588:" \
5589      "checking for Fortran 77 compiler version" >&5
5590 ac_compiler=`set X $ac_compile; echo $2`
5591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5592   (eval $ac_compiler --version </dev/null >&5) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); }
5596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5597   (eval $ac_compiler -v </dev/null >&5) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }
5601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5602   (eval $ac_compiler -V </dev/null >&5) 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); }
5606 rm -f a.out
5607
5608 # If we don't use `.F' as extension, the preprocessor is not run on the
5609 # input file.  (Note that this only needs to work for GNU compilers.)
5610 ac_save_ext=$ac_ext
5611 ac_ext=F
5612 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5613 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5614 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   cat >conftest.$ac_ext <<_ACEOF
5618       program main
5619 #ifndef __GNUC__
5620        choke me
5621 #endif
5622
5623       end
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627   (eval $ac_compile) 2>conftest.er1
5628   ac_status=$?
5629   grep -v '^ *+' conftest.er1 >conftest.err
5630   rm -f conftest.er1
5631   cat conftest.err >&5
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } &&
5634          { ac_try='test -z "$ac_f77_werror_flag"
5635                          || test ! -s conftest.err'
5636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637   (eval $ac_try) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }; } &&
5641          { ac_try='test -s conftest.$ac_objext'
5642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643   (eval $ac_try) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }; }; then
5647   ac_compiler_gnu=yes
5648 else
5649   echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5651
5652 ac_compiler_gnu=no
5653 fi
5654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5655 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5656
5657 fi
5658 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5659 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5660 ac_ext=$ac_save_ext
5661 ac_test_FFLAGS=${FFLAGS+set}
5662 ac_save_FFLAGS=$FFLAGS
5663 FFLAGS=
5664 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5665 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5666 if test "${ac_cv_prog_f77_g+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   FFLAGS=-g
5670 cat >conftest.$ac_ext <<_ACEOF
5671       program main
5672
5673       end
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677   (eval $ac_compile) 2>conftest.er1
5678   ac_status=$?
5679   grep -v '^ *+' conftest.er1 >conftest.err
5680   rm -f conftest.er1
5681   cat conftest.err >&5
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } &&
5684          { ac_try='test -z "$ac_f77_werror_flag"
5685                          || test ! -s conftest.err'
5686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687   (eval $ac_try) 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; } &&
5691          { ac_try='test -s conftest.$ac_objext'
5692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693   (eval $ac_try) 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; }; then
5697   ac_cv_prog_f77_g=yes
5698 else
5699   echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702 ac_cv_prog_f77_g=no
5703 fi
5704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5705
5706 fi
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5708 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5709 if test "$ac_test_FFLAGS" = set; then
5710   FFLAGS=$ac_save_FFLAGS
5711 elif test $ac_cv_prog_f77_g = yes; then
5712   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5713     FFLAGS="-g -O2"
5714   else
5715     FFLAGS="-g"
5716   fi
5717 else
5718   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5719     FFLAGS="-O2"
5720   else
5721     FFLAGS=
5722   fi
5723 fi
5724
5725 G77=`test $ac_compiler_gnu = yes && echo yes`
5726 ac_ext=c
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732
5733
5734 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5735
5736 # find the maximum length of command line arguments
5737 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5738 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5739 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742     i=0
5743   teststring="ABCD"
5744
5745   case $build_os in
5746   msdosdjgpp*)
5747     # On DJGPP, this test can blow up pretty badly due to problems in libc
5748     # (any single argument exceeding 2000 bytes causes a buffer overrun
5749     # during glob expansion).  Even if it were fixed, the result of this
5750     # check would be larger than it should be.
5751     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5752     ;;
5753
5754   gnu*)
5755     # Under GNU Hurd, this test is not required because there is
5756     # no limit to the length of command line arguments.
5757     # Libtool will interpret -1 as no limit whatsoever
5758     lt_cv_sys_max_cmd_len=-1;
5759     ;;
5760
5761   cygwin* | mingw*)
5762     # On Win9x/ME, this test blows up -- it succeeds, but takes
5763     # about 5 minutes as the teststring grows exponentially.
5764     # Worse, since 9x/ME are not pre-emptively multitasking,
5765     # you end up with a "frozen" computer, even though with patience
5766     # the test eventually succeeds (with a max line length of 256k).
5767     # Instead, let's just punt: use the minimum linelength reported by
5768     # all of the supported platforms: 8192 (on NT/2K/XP).
5769     lt_cv_sys_max_cmd_len=8192;
5770     ;;
5771
5772   amigaos*)
5773     # On AmigaOS with pdksh, this test takes hours, literally.
5774     # So we just punt and use a minimum line length of 8192.
5775     lt_cv_sys_max_cmd_len=8192;
5776     ;;
5777
5778   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5779     # This has been around since 386BSD, at least.  Likely further.
5780     if test -x /sbin/sysctl; then
5781       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5782     elif test -x /usr/sbin/sysctl; then
5783       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5784     else
5785       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5786     fi
5787     # And add a safety zone
5788     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5789     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5790     ;;
5791
5792   interix*)
5793     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5794     lt_cv_sys_max_cmd_len=196608
5795     ;;
5796
5797   osf*)
5798     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5799     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5800     # nice to cause kernel panics so lets avoid the loop below.
5801     # First set a reasonable default.
5802     lt_cv_sys_max_cmd_len=16384
5803     #
5804     if test -x /sbin/sysconfig; then
5805       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5806         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5807       esac
5808     fi
5809     ;;
5810   sco3.2v5*)
5811     lt_cv_sys_max_cmd_len=102400
5812     ;;
5813   sysv5* | sco5v6* | sysv4.2uw2*)
5814     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5815     if test -n "$kargmax"; then
5816       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5817     else
5818       lt_cv_sys_max_cmd_len=32768
5819     fi
5820     ;;
5821   *)
5822     # If test is not a shell built-in, we'll probably end up computing a
5823     # maximum length that is only half of the actual maximum length, but
5824     # we can't tell.
5825     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5826     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5827                = "XX$teststring") >/dev/null 2>&1 &&
5828             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5829             lt_cv_sys_max_cmd_len=$new_result &&
5830             test $i != 17 # 1/2 MB should be enough
5831     do
5832       i=`expr $i + 1`
5833       teststring=$teststring$teststring
5834     done
5835     teststring=
5836     # Add a significant safety factor because C++ compilers can tack on massive
5837     # amounts of additional arguments before passing them to the linker.
5838     # It appears as though 1/2 is a usable value.
5839     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5840     ;;
5841   esac
5842
5843 fi
5844
5845 if test -n $lt_cv_sys_max_cmd_len ; then
5846   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5847 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5848 else
5849   echo "$as_me:$LINENO: result: none" >&5
5850 echo "${ECHO_T}none" >&6
5851 fi
5852
5853
5854
5855
5856 # Check for command to grab the raw symbol name followed by C symbol from nm.
5857 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5858 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5859 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862
5863 # These are sane defaults that work on at least a few old systems.
5864 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5865
5866 # Character class describing NM global symbol codes.
5867 symcode='[BCDEGRST]'
5868
5869 # Regexp to match symbols that can be accessed directly from C.
5870 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5871
5872 # Transform an extracted symbol line into a proper C declaration
5873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5874
5875 # Transform an extracted symbol line into symbol name and symbol address
5876 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'"
5877
5878 # Define system-specific variables.
5879 case $host_os in
5880 aix*)
5881   symcode='[BCDT]'
5882   ;;
5883 cygwin* | mingw* | pw32*)
5884   symcode='[ABCDGISTW]'
5885   ;;
5886 hpux*) # Its linker distinguishes data from code symbols
5887   if test "$host_cpu" = ia64; then
5888     symcode='[ABCDEGRST]'
5889   fi
5890   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5891   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'"
5892   ;;
5893 linux*)
5894   if test "$host_cpu" = ia64; then
5895     symcode='[ABCDGIRSTW]'
5896     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5897     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'"
5898   fi
5899   ;;
5900 irix* | nonstopux*)
5901   symcode='[BCDEGRST]'
5902   ;;
5903 osf*)
5904   symcode='[BCDEGQRST]'
5905   ;;
5906 solaris*)
5907   symcode='[BDRT]'
5908   ;;
5909 sco3.2v5*)
5910   symcode='[DT]'
5911   ;;
5912 sysv4.2uw2*)
5913   symcode='[DT]'
5914   ;;
5915 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5916   symcode='[ABDT]'
5917   ;;
5918 sysv4)
5919   symcode='[DFNSTU]'
5920   ;;
5921 esac
5922
5923 # Handle CRLF in mingw tool chain
5924 opt_cr=
5925 case $build_os in
5926 mingw*)
5927   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5928   ;;
5929 esac
5930
5931 # If we're using GNU nm, then use its standard symbol codes.
5932 case `$NM -V 2>&1` in
5933 *GNU* | *'with BFD'*)
5934   symcode='[ABCDGIRSTW]' ;;
5935 esac
5936
5937 # Try without a prefix undercore, then with it.
5938 for ac_symprfx in "" "_"; do
5939
5940   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5941   symxfrm="\\1 $ac_symprfx\\2 \\2"
5942
5943   # Write the raw and C identifiers.
5944   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5945
5946   # Check to see that the pipe works correctly.
5947   pipe_works=no
5948
5949   rm -f conftest*
5950   cat > conftest.$ac_ext <<EOF
5951 #ifdef __cplusplus
5952 extern "C" {
5953 #endif
5954 char nm_test_var;
5955 void nm_test_func(){}
5956 #ifdef __cplusplus
5957 }
5958 #endif
5959 int main(){nm_test_var='a';nm_test_func();return(0);}
5960 EOF
5961
5962   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963   (eval $ac_compile) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }; then
5967     # Now try to grab the symbols.
5968     nlist=conftest.nm
5969     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5970   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); } && test -s "$nlist"; then
5974       # Try sorting and uniquifying the output.
5975       if sort "$nlist" | uniq > "$nlist"T; then
5976         mv -f "$nlist"T "$nlist"
5977       else
5978         rm -f "$nlist"T
5979       fi
5980
5981       # Make sure that we snagged all the symbols we need.
5982       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5983         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5984           cat <<EOF > conftest.$ac_ext
5985 #ifdef __cplusplus
5986 extern "C" {
5987 #endif
5988
5989 EOF
5990           # Now generate the symbol file.
5991           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5992
5993           cat <<EOF >> conftest.$ac_ext
5994 #if defined (__STDC__) && __STDC__
5995 # define lt_ptr_t void *
5996 #else
5997 # define lt_ptr_t char *
5998 # define const
5999 #endif
6000
6001 /* The mapping between symbol names and symbols. */
6002 const struct {
6003   const char *name;
6004   lt_ptr_t address;
6005 }
6006 lt_preloaded_symbols[] =
6007 {
6008 EOF
6009           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6010           cat <<\EOF >> conftest.$ac_ext
6011   {0, (lt_ptr_t) 0}
6012 };
6013
6014 #ifdef __cplusplus
6015 }
6016 #endif
6017 EOF
6018           # Now try linking the two files.
6019           mv conftest.$ac_objext conftstm.$ac_objext
6020           lt_save_LIBS="$LIBS"
6021           lt_save_CFLAGS="$CFLAGS"
6022           LIBS="conftstm.$ac_objext"
6023           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6024           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025   (eval $ac_link) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6029             pipe_works=yes
6030           fi
6031           LIBS="$lt_save_LIBS"
6032           CFLAGS="$lt_save_CFLAGS"
6033         else
6034           echo "cannot find nm_test_func in $nlist" >&5
6035         fi
6036       else
6037         echo "cannot find nm_test_var in $nlist" >&5
6038       fi
6039     else
6040       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6041     fi
6042   else
6043     echo "$progname: failed program was:" >&5
6044     cat conftest.$ac_ext >&5
6045   fi
6046   rm -f conftest* conftst*
6047
6048   # Do not use the global_symbol_pipe unless it works.
6049   if test "$pipe_works" = yes; then
6050     break
6051   else
6052     lt_cv_sys_global_symbol_pipe=
6053   fi
6054 done
6055
6056 fi
6057
6058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6059   lt_cv_sys_global_symbol_to_cdecl=
6060 fi
6061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6062   echo "$as_me:$LINENO: result: failed" >&5
6063 echo "${ECHO_T}failed" >&6
6064 else
6065   echo "$as_me:$LINENO: result: ok" >&5
6066 echo "${ECHO_T}ok" >&6
6067 fi
6068
6069 echo "$as_me:$LINENO: checking for objdir" >&5
6070 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6071 if test "${lt_cv_objdir+set}" = set; then
6072   echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074   rm -f .libs 2>/dev/null
6075 mkdir .libs 2>/dev/null
6076 if test -d .libs; then
6077   lt_cv_objdir=.libs
6078 else
6079   # MS-DOS does not allow filenames that begin with a dot.
6080   lt_cv_objdir=_libs
6081 fi
6082 rmdir .libs 2>/dev/null
6083 fi
6084 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6085 echo "${ECHO_T}$lt_cv_objdir" >&6
6086 objdir=$lt_cv_objdir
6087
6088
6089
6090
6091
6092 case $host_os in
6093 aix3*)
6094   # AIX sometimes has problems with the GCC collect2 program.  For some
6095   # reason, if we set the COLLECT_NAMES environment variable, the problems
6096   # vanish in a puff of smoke.
6097   if test "X${COLLECT_NAMES+set}" != Xset; then
6098     COLLECT_NAMES=
6099     export COLLECT_NAMES
6100   fi
6101   ;;
6102 esac
6103
6104 # Sed substitution that helps us do robust quoting.  It backslashifies
6105 # metacharacters that are still active within double-quoted strings.
6106 Xsed='sed -e 1s/^X//'
6107 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6108
6109 # Same as above, but do not quote variable references.
6110 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6111
6112 # Sed substitution to delay expansion of an escaped shell variable in a
6113 # double_quote_subst'ed string.
6114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6115
6116 # Sed substitution to avoid accidental globbing in evaled expressions
6117 no_glob_subst='s/\*/\\\*/g'
6118
6119 # Constants:
6120 rm="rm -f"
6121
6122 # Global variables:
6123 default_ofile=libtool
6124 can_build_shared=yes
6125
6126 # All known linkers require a `.a' archive for static linking (except MSVC,
6127 # which needs '.lib').
6128 libext=a
6129 ltmain="$ac_aux_dir/ltmain.sh"
6130 ofile="$default_ofile"
6131 with_gnu_ld="$lt_cv_prog_gnu_ld"
6132
6133 if test -n "$ac_tool_prefix"; then
6134   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}ar; ac_word=$2
6136 echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6138 if test "${ac_cv_prog_AR+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   if test -n "$AR"; then
6142   ac_cv_prog_AR="$AR" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149   for ac_exec_ext in '' $ac_executable_extensions; do
6150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151     ac_cv_prog_AR="${ac_tool_prefix}ar"
6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156 done
6157
6158 fi
6159 fi
6160 AR=$ac_cv_prog_AR
6161 if test -n "$AR"; then
6162   echo "$as_me:$LINENO: result: $AR" >&5
6163 echo "${ECHO_T}$AR" >&6
6164 else
6165   echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6167 fi
6168
6169 fi
6170 if test -z "$ac_cv_prog_AR"; then
6171   ac_ct_AR=$AR
6172   # Extract the first word of "ar", so it can be a program name with args.
6173 set dummy ar; ac_word=$2
6174 echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   if test -n "$ac_ct_AR"; then
6180   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185   IFS=$as_save_IFS
6186   test -z "$as_dir" && as_dir=.
6187   for ac_exec_ext in '' $ac_executable_extensions; do
6188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189     ac_cv_prog_ac_ct_AR="ar"
6190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191     break 2
6192   fi
6193 done
6194 done
6195
6196   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6197 fi
6198 fi
6199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6200 if test -n "$ac_ct_AR"; then
6201   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6202 echo "${ECHO_T}$ac_ct_AR" >&6
6203 else
6204   echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6
6206 fi
6207
6208   AR=$ac_ct_AR
6209 else
6210   AR="$ac_cv_prog_AR"
6211 fi
6212
6213 if test -n "$ac_tool_prefix"; then
6214   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6216 echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6218 if test "${ac_cv_prog_RANLIB+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   if test -n "$RANLIB"; then
6222   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6226 do
6227   IFS=$as_save_IFS
6228   test -z "$as_dir" && as_dir=.
6229   for ac_exec_ext in '' $ac_executable_extensions; do
6230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233     break 2
6234   fi
6235 done
6236 done
6237
6238 fi
6239 fi
6240 RANLIB=$ac_cv_prog_RANLIB
6241 if test -n "$RANLIB"; then
6242   echo "$as_me:$LINENO: result: $RANLIB" >&5
6243 echo "${ECHO_T}$RANLIB" >&6
6244 else
6245   echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6
6247 fi
6248
6249 fi
6250 if test -z "$ac_cv_prog_RANLIB"; then
6251   ac_ct_RANLIB=$RANLIB
6252   # Extract the first word of "ranlib", so it can be a program name with args.
6253 set dummy ranlib; ac_word=$2
6254 echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   if test -n "$ac_ct_RANLIB"; then
6260   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267   for ac_exec_ext in '' $ac_executable_extensions; do
6268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269     ac_cv_prog_ac_ct_RANLIB="ranlib"
6270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274 done
6275
6276   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6277 fi
6278 fi
6279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6280 if test -n "$ac_ct_RANLIB"; then
6281   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6283 else
6284   echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6286 fi
6287
6288   RANLIB=$ac_ct_RANLIB
6289 else
6290   RANLIB="$ac_cv_prog_RANLIB"
6291 fi
6292
6293 if test -n "$ac_tool_prefix"; then
6294   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6295 set dummy ${ac_tool_prefix}strip; ac_word=$2
6296 echo "$as_me:$LINENO: checking for $ac_word" >&5
6297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298 if test "${ac_cv_prog_STRIP+set}" = set; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   if test -n "$STRIP"; then
6302   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307   IFS=$as_save_IFS
6308   test -z "$as_dir" && as_dir=.
6309   for ac_exec_ext in '' $ac_executable_extensions; do
6310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313     break 2
6314   fi
6315 done
6316 done
6317
6318 fi
6319 fi
6320 STRIP=$ac_cv_prog_STRIP
6321 if test -n "$STRIP"; then
6322   echo "$as_me:$LINENO: result: $STRIP" >&5
6323 echo "${ECHO_T}$STRIP" >&6
6324 else
6325   echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6327 fi
6328
6329 fi
6330 if test -z "$ac_cv_prog_STRIP"; then
6331   ac_ct_STRIP=$STRIP
6332   # Extract the first word of "strip", so it can be a program name with args.
6333 set dummy strip; ac_word=$2
6334 echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   if test -n "$ac_ct_STRIP"; then
6340   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347   for ac_exec_ext in '' $ac_executable_extensions; do
6348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349     ac_cv_prog_ac_ct_STRIP="strip"
6350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354 done
6355
6356   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6357 fi
6358 fi
6359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360 if test -n "$ac_ct_STRIP"; then
6361   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6362 echo "${ECHO_T}$ac_ct_STRIP" >&6
6363 else
6364   echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6
6366 fi
6367
6368   STRIP=$ac_ct_STRIP
6369 else
6370   STRIP="$ac_cv_prog_STRIP"
6371 fi
6372
6373
6374 old_CC="$CC"
6375 old_CFLAGS="$CFLAGS"
6376
6377 # Set sane defaults for various variables
6378 test -z "$AR" && AR=ar
6379 test -z "$AR_FLAGS" && AR_FLAGS=cru
6380 test -z "$AS" && AS=as
6381 test -z "$CC" && CC=cc
6382 test -z "$LTCC" && LTCC=$CC
6383 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6384 test -z "$DLLTOOL" && DLLTOOL=dlltool
6385 test -z "$LD" && LD=ld
6386 test -z "$LN_S" && LN_S="ln -s"
6387 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6388 test -z "$NM" && NM=nm
6389 test -z "$SED" && SED=sed
6390 test -z "$OBJDUMP" && OBJDUMP=objdump
6391 test -z "$RANLIB" && RANLIB=:
6392 test -z "$STRIP" && STRIP=:
6393 test -z "$ac_objext" && ac_objext=o
6394
6395 # Determine commands to create old-style static archives.
6396 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6397 old_postinstall_cmds='chmod 644 $oldlib'
6398 old_postuninstall_cmds=
6399
6400 if test -n "$RANLIB"; then
6401   case $host_os in
6402   openbsd*)
6403     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6404     ;;
6405   *)
6406     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6407     ;;
6408   esac
6409   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6410 fi
6411
6412 for cc_temp in $compiler""; do
6413   case $cc_temp in
6414     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6415     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6416     \-*) ;;
6417     *) break;;
6418   esac
6419 done
6420 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6421
6422
6423 # Only perform the check for file, if the check method requires it
6424 case $deplibs_check_method in
6425 file_magic*)
6426   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6427     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6428 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6429 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   case $MAGIC_CMD in
6433 [\\/*] |  ?:[\\/]*)
6434   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6435   ;;
6436 *)
6437   lt_save_MAGIC_CMD="$MAGIC_CMD"
6438   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6439   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6440   for ac_dir in $ac_dummy; do
6441     IFS="$lt_save_ifs"
6442     test -z "$ac_dir" && ac_dir=.
6443     if test -f $ac_dir/${ac_tool_prefix}file; then
6444       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6445       if test -n "$file_magic_test_file"; then
6446         case $deplibs_check_method in
6447         "file_magic "*)
6448           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6449           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6450           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6451             $EGREP "$file_magic_regex" > /dev/null; then
6452             :
6453           else
6454             cat <<EOF 1>&2
6455
6456 *** Warning: the command libtool uses to detect shared libraries,
6457 *** $file_magic_cmd, produces output that libtool cannot recognize.
6458 *** The result is that libtool may fail to recognize shared libraries
6459 *** as such.  This will affect the creation of libtool libraries that
6460 *** depend on shared libraries, but programs linked with such libtool
6461 *** libraries will work regardless of this problem.  Nevertheless, you
6462 *** may want to report the problem to your system manager and/or to
6463 *** bug-libtool@gnu.org
6464
6465 EOF
6466           fi ;;
6467         esac
6468       fi
6469       break
6470     fi
6471   done
6472   IFS="$lt_save_ifs"
6473   MAGIC_CMD="$lt_save_MAGIC_CMD"
6474   ;;
6475 esac
6476 fi
6477
6478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6479 if test -n "$MAGIC_CMD"; then
6480   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6481 echo "${ECHO_T}$MAGIC_CMD" >&6
6482 else
6483   echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6
6485 fi
6486
6487 if test -z "$lt_cv_path_MAGIC_CMD"; then
6488   if test -n "$ac_tool_prefix"; then
6489     echo "$as_me:$LINENO: checking for file" >&5
6490 echo $ECHO_N "checking for file... $ECHO_C" >&6
6491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   case $MAGIC_CMD in
6495 [\\/*] |  ?:[\\/]*)
6496   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6497   ;;
6498 *)
6499   lt_save_MAGIC_CMD="$MAGIC_CMD"
6500   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6501   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6502   for ac_dir in $ac_dummy; do
6503     IFS="$lt_save_ifs"
6504     test -z "$ac_dir" && ac_dir=.
6505     if test -f $ac_dir/file; then
6506       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6507       if test -n "$file_magic_test_file"; then
6508         case $deplibs_check_method in
6509         "file_magic "*)
6510           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6511           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6513             $EGREP "$file_magic_regex" > /dev/null; then
6514             :
6515           else
6516             cat <<EOF 1>&2
6517
6518 *** Warning: the command libtool uses to detect shared libraries,
6519 *** $file_magic_cmd, produces output that libtool cannot recognize.
6520 *** The result is that libtool may fail to recognize shared libraries
6521 *** as such.  This will affect the creation of libtool libraries that
6522 *** depend on shared libraries, but programs linked with such libtool
6523 *** libraries will work regardless of this problem.  Nevertheless, you
6524 *** may want to report the problem to your system manager and/or to
6525 *** bug-libtool@gnu.org
6526
6527 EOF
6528           fi ;;
6529         esac
6530       fi
6531       break
6532     fi
6533   done
6534   IFS="$lt_save_ifs"
6535   MAGIC_CMD="$lt_save_MAGIC_CMD"
6536   ;;
6537 esac
6538 fi
6539
6540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6541 if test -n "$MAGIC_CMD"; then
6542   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6543 echo "${ECHO_T}$MAGIC_CMD" >&6
6544 else
6545   echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6
6547 fi
6548
6549   else
6550     MAGIC_CMD=:
6551   fi
6552 fi
6553
6554   fi
6555   ;;
6556 esac
6557
6558 enable_dlopen=yes
6559 enable_win32_dll=no
6560
6561 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6562 if test "${enable_libtool_lock+set}" = set; then
6563   enableval="$enable_libtool_lock"
6564
6565 fi;
6566 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6567
6568
6569 # Check whether --with-pic or --without-pic was given.
6570 if test "${with_pic+set}" = set; then
6571   withval="$with_pic"
6572   pic_mode="$withval"
6573 else
6574   pic_mode=default
6575 fi;
6576 test -z "$pic_mode" && pic_mode=default
6577
6578 # Use C for the default configuration in the libtool script
6579 tagname=
6580 lt_save_CC="$CC"
6581 ac_ext=c
6582 ac_cpp='$CPP $CPPFLAGS'
6583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586
6587
6588 # Source file extension for C test sources.
6589 ac_ext=c
6590
6591 # Object file extension for compiled C test sources.
6592 objext=o
6593 objext=$objext
6594
6595 # Code to be used in simple compile tests
6596 lt_simple_compile_test_code="int some_variable = 0;\n"
6597
6598 # Code to be used in simple link tests
6599 lt_simple_link_test_code='int main(){return(0);}\n'
6600
6601
6602 # If no C compiler was specified, use CC.
6603 LTCC=${LTCC-"$CC"}
6604
6605 # If no C compiler flags were specified, use CFLAGS.
6606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6607
6608 # Allow CC to be a program name with arguments.
6609 compiler=$CC
6610
6611
6612 # save warnings/boilerplate of simple test code
6613 ac_outfile=conftest.$ac_objext
6614 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6616 _lt_compiler_boilerplate=`cat conftest.err`
6617 $rm conftest*
6618
6619 ac_outfile=conftest.$ac_objext
6620 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6622 _lt_linker_boilerplate=`cat conftest.err`
6623 $rm conftest*
6624
6625
6626 ## CAVEAT EMPTOR:
6627 ## There is no encapsulation within the following macros, do not change
6628 ## the running order or otherwise move them around unless you know exactly
6629 ## what you are doing...
6630
6631 lt_prog_compiler_no_builtin_flag=
6632
6633 if test "$GCC" = yes; then
6634   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6635
6636
6637 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6638 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6639 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   lt_cv_prog_compiler_rtti_exceptions=no
6643   ac_outfile=conftest.$ac_objext
6644    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6645    lt_compiler_flag="-fno-rtti -fno-exceptions"
6646    # Insert the option either (1) after the last *FLAGS variable, or
6647    # (2) before a word containing "conftest.", or (3) at the end.
6648    # Note that $ac_compile itself does not contain backslashes and begins
6649    # with a dollar sign (not a hyphen), so the echo should work correctly.
6650    # The option is referenced via a variable to avoid confusing sed.
6651    lt_compile=`echo "$ac_compile" | $SED \
6652    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6653    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6654    -e 's:$: $lt_compiler_flag:'`
6655    (eval echo "\"\$as_me:6655: $lt_compile\"" >&5)
6656    (eval "$lt_compile" 2>conftest.err)
6657    ac_status=$?
6658    cat conftest.err >&5
6659    echo "$as_me:6659: \$? = $ac_status" >&5
6660    if (exit $ac_status) && test -s "$ac_outfile"; then
6661      # The compiler can only warn and ignore the option if not recognized
6662      # So say no if there are warnings other than the usual output.
6663      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6664      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6665      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6666        lt_cv_prog_compiler_rtti_exceptions=yes
6667      fi
6668    fi
6669    $rm conftest*
6670
6671 fi
6672 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6673 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6674
6675 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6676     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6677 else
6678     :
6679 fi
6680
6681 fi
6682
6683 lt_prog_compiler_wl=
6684 lt_prog_compiler_pic=
6685 lt_prog_compiler_static=
6686
6687 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6689
6690   if test "$GCC" = yes; then
6691     lt_prog_compiler_wl='-Wl,'
6692     lt_prog_compiler_static='-static'
6693
6694     case $host_os in
6695       aix*)
6696       # All AIX code is PIC.
6697       if test "$host_cpu" = ia64; then
6698         # AIX 5 now supports IA64 processor
6699         lt_prog_compiler_static='-Bstatic'
6700       fi
6701       ;;
6702
6703     amigaos*)
6704       # FIXME: we need at least 68020 code to build shared libraries, but
6705       # adding the `-m68020' flag to GCC prevents building anything better,
6706       # like `-m68040'.
6707       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6708       ;;
6709
6710     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6711       # PIC is the default for these OSes.
6712       ;;
6713
6714     mingw* | pw32* | os2*)
6715       # This hack is so that the source file can tell whether it is being
6716       # built for inclusion in a dll (and should export symbols for example).
6717       lt_prog_compiler_pic='-DDLL_EXPORT'
6718       ;;
6719
6720     darwin* | rhapsody*)
6721       # PIC is the default on this platform
6722       # Common symbols not allowed in MH_DYLIB files
6723       lt_prog_compiler_pic='-fno-common'
6724       ;;
6725
6726     interix3*)
6727       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6728       # Instead, we relocate shared libraries at runtime.
6729       ;;
6730
6731     msdosdjgpp*)
6732       # Just because we use GCC doesn't mean we suddenly get shared libraries
6733       # on systems that don't support them.
6734       lt_prog_compiler_can_build_shared=no
6735       enable_shared=no
6736       ;;
6737
6738     sysv4*MP*)
6739       if test -d /usr/nec; then
6740         lt_prog_compiler_pic=-Kconform_pic
6741       fi
6742       ;;
6743
6744     hpux*)
6745       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6746       # not for PA HP-UX.
6747       case $host_cpu in
6748       hppa*64*|ia64*)
6749         # +Z the default
6750         ;;
6751       *)
6752         lt_prog_compiler_pic='-fPIC'
6753         ;;
6754       esac
6755       ;;
6756
6757     *)
6758       lt_prog_compiler_pic='-fPIC'
6759       ;;
6760     esac
6761   else
6762     # PORTME Check for flag to pass linker flags through the system compiler.
6763     case $host_os in
6764     aix*)
6765       lt_prog_compiler_wl='-Wl,'
6766       if test "$host_cpu" = ia64; then
6767         # AIX 5 now supports IA64 processor
6768         lt_prog_compiler_static='-Bstatic'
6769       else
6770         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6771       fi
6772       ;;
6773       darwin*)
6774         # PIC is the default on this platform
6775         # Common symbols not allowed in MH_DYLIB files
6776        case $cc_basename in
6777          xlc*)
6778          lt_prog_compiler_pic='-qnocommon'
6779          lt_prog_compiler_wl='-Wl,'
6780          ;;
6781        esac
6782        ;;
6783
6784     mingw* | pw32* | os2*)
6785       # This hack is so that the source file can tell whether it is being
6786       # built for inclusion in a dll (and should export symbols for example).
6787       lt_prog_compiler_pic='-DDLL_EXPORT'
6788       ;;
6789
6790     hpux9* | hpux10* | hpux11*)
6791       lt_prog_compiler_wl='-Wl,'
6792       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6793       # not for PA HP-UX.
6794       case $host_cpu in
6795       hppa*64*|ia64*)
6796         # +Z the default
6797         ;;
6798       *)
6799         lt_prog_compiler_pic='+Z'
6800         ;;
6801       esac
6802       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6803       lt_prog_compiler_static='${wl}-a ${wl}archive'
6804       ;;
6805
6806     irix5* | irix6* | nonstopux*)
6807       lt_prog_compiler_wl='-Wl,'
6808       # PIC (with -KPIC) is the default.
6809       lt_prog_compiler_static='-non_shared'
6810       ;;
6811
6812     newsos6)
6813       lt_prog_compiler_pic='-KPIC'
6814       lt_prog_compiler_static='-Bstatic'
6815       ;;
6816
6817     linux*)
6818       case $cc_basename in
6819       icc* | ecc*)
6820         lt_prog_compiler_wl='-Wl,'
6821         lt_prog_compiler_pic='-KPIC'
6822         lt_prog_compiler_static='-static'
6823         ;;
6824       pgcc* | pgf77* | pgf90* | pgf95*)
6825         # Portland Group compilers (*not* the Pentium gcc compiler,
6826         # which looks to be a dead project)
6827         lt_prog_compiler_wl='-Wl,'
6828         lt_prog_compiler_pic='-fpic'
6829         lt_prog_compiler_static='-Bstatic'
6830         ;;
6831       ccc*)
6832         lt_prog_compiler_wl='-Wl,'
6833         # All Alpha code is PIC.
6834         lt_prog_compiler_static='-non_shared'
6835         ;;
6836       esac
6837       ;;
6838
6839     osf3* | osf4* | osf5*)
6840       lt_prog_compiler_wl='-Wl,'
6841       # All OSF/1 code is PIC.
6842       lt_prog_compiler_static='-non_shared'
6843       ;;
6844
6845     solaris*)
6846       lt_prog_compiler_pic='-KPIC'
6847       lt_prog_compiler_static='-Bstatic'
6848       case $cc_basename in
6849       f77* | f90* | f95*)
6850         lt_prog_compiler_wl='-Qoption ld ';;
6851       *)
6852         lt_prog_compiler_wl='-Wl,';;
6853       esac
6854       ;;
6855
6856     sunos4*)
6857       lt_prog_compiler_wl='-Qoption ld '
6858       lt_prog_compiler_pic='-PIC'
6859       lt_prog_compiler_static='-Bstatic'
6860       ;;
6861
6862     sysv4 | sysv4.2uw2* | sysv4.3*)
6863       lt_prog_compiler_wl='-Wl,'
6864       lt_prog_compiler_pic='-KPIC'
6865       lt_prog_compiler_static='-Bstatic'
6866       ;;
6867
6868     sysv4*MP*)
6869       if test -d /usr/nec ;then
6870         lt_prog_compiler_pic='-Kconform_pic'
6871         lt_prog_compiler_static='-Bstatic'
6872       fi
6873       ;;
6874
6875     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6876       lt_prog_compiler_wl='-Wl,'
6877       lt_prog_compiler_pic='-KPIC'
6878       lt_prog_compiler_static='-Bstatic'
6879       ;;
6880
6881     unicos*)
6882       lt_prog_compiler_wl='-Wl,'
6883       lt_prog_compiler_can_build_shared=no
6884       ;;
6885
6886     uts4*)
6887       lt_prog_compiler_pic='-pic'
6888       lt_prog_compiler_static='-Bstatic'
6889       ;;
6890
6891     *)
6892       lt_prog_compiler_can_build_shared=no
6893       ;;
6894     esac
6895   fi
6896
6897 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6898 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6899
6900 #
6901 # Check to make sure the PIC flag actually works.
6902 #
6903 if test -n "$lt_prog_compiler_pic"; then
6904
6905 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6906 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6907 if test "${lt_prog_compiler_pic_works+set}" = set; then
6908   echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910   lt_prog_compiler_pic_works=no
6911   ac_outfile=conftest.$ac_objext
6912    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6913    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6914    # Insert the option either (1) after the last *FLAGS variable, or
6915    # (2) before a word containing "conftest.", or (3) at the end.
6916    # Note that $ac_compile itself does not contain backslashes and begins
6917    # with a dollar sign (not a hyphen), so the echo should work correctly.
6918    # The option is referenced via a variable to avoid confusing sed.
6919    lt_compile=`echo "$ac_compile" | $SED \
6920    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6921    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6922    -e 's:$: $lt_compiler_flag:'`
6923    (eval echo "\"\$as_me:6923: $lt_compile\"" >&5)
6924    (eval "$lt_compile" 2>conftest.err)
6925    ac_status=$?
6926    cat conftest.err >&5
6927    echo "$as_me:6927: \$? = $ac_status" >&5
6928    if (exit $ac_status) && test -s "$ac_outfile"; then
6929      # The compiler can only warn and ignore the option if not recognized
6930      # So say no if there are warnings other than the usual output.
6931      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6932      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6933      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6934        lt_prog_compiler_pic_works=yes
6935      fi
6936    fi
6937    $rm conftest*
6938
6939 fi
6940 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6941 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6942
6943 if test x"$lt_prog_compiler_pic_works" = xyes; then
6944     case $lt_prog_compiler_pic in
6945      "" | " "*) ;;
6946      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6947      esac
6948 else
6949     lt_prog_compiler_pic=
6950      lt_prog_compiler_can_build_shared=no
6951 fi
6952
6953 fi
6954 case $host_os in
6955   # For platforms which do not support PIC, -DPIC is meaningless:
6956   *djgpp*)
6957     lt_prog_compiler_pic=
6958     ;;
6959   *)
6960     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6961     ;;
6962 esac
6963
6964 #
6965 # Check to make sure the static flag actually works.
6966 #
6967 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6968 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6969 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6970 if test "${lt_prog_compiler_static_works+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973   lt_prog_compiler_static_works=no
6974    save_LDFLAGS="$LDFLAGS"
6975    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6976    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6977    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6978      # The linker can only warn and ignore the option if not recognized
6979      # So say no if there are warnings
6980      if test -s conftest.err; then
6981        # Append any errors to the config.log.
6982        cat conftest.err 1>&5
6983        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6984        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6985        if diff conftest.exp conftest.er2 >/dev/null; then
6986          lt_prog_compiler_static_works=yes
6987        fi
6988      else
6989        lt_prog_compiler_static_works=yes
6990      fi
6991    fi
6992    $rm conftest*
6993    LDFLAGS="$save_LDFLAGS"
6994
6995 fi
6996 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6997 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6998
6999 if test x"$lt_prog_compiler_static_works" = xyes; then
7000     :
7001 else
7002     lt_prog_compiler_static=
7003 fi
7004
7005
7006 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7007 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7008 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7009   echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011   lt_cv_prog_compiler_c_o=no
7012    $rm -r conftest 2>/dev/null
7013    mkdir conftest
7014    cd conftest
7015    mkdir out
7016    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7017
7018    lt_compiler_flag="-o out/conftest2.$ac_objext"
7019    # Insert the option either (1) after the last *FLAGS variable, or
7020    # (2) before a word containing "conftest.", or (3) at the end.
7021    # Note that $ac_compile itself does not contain backslashes and begins
7022    # with a dollar sign (not a hyphen), so the echo should work correctly.
7023    lt_compile=`echo "$ac_compile" | $SED \
7024    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7026    -e 's:$: $lt_compiler_flag:'`
7027    (eval echo "\"\$as_me:7027: $lt_compile\"" >&5)
7028    (eval "$lt_compile" 2>out/conftest.err)
7029    ac_status=$?
7030    cat out/conftest.err >&5
7031    echo "$as_me:7031: \$? = $ac_status" >&5
7032    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7033    then
7034      # The compiler can only warn and ignore the option if not recognized
7035      # So say no if there are warnings
7036      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7037      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7038      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7039        lt_cv_prog_compiler_c_o=yes
7040      fi
7041    fi
7042    chmod u+w . 2>&5
7043    $rm conftest*
7044    # SGI C++ compiler will create directory out/ii_files/ for
7045    # template instantiation
7046    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7047    $rm out/* && rmdir out
7048    cd ..
7049    rmdir conftest
7050    $rm conftest*
7051
7052 fi
7053 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7055
7056
7057 hard_links="nottested"
7058 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7059   # do not overwrite the value of need_locks provided by the user
7060   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7061 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7062   hard_links=yes
7063   $rm conftest*
7064   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7065   touch conftest.a
7066   ln conftest.a conftest.b 2>&5 || hard_links=no
7067   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7068   echo "$as_me:$LINENO: result: $hard_links" >&5
7069 echo "${ECHO_T}$hard_links" >&6
7070   if test "$hard_links" = no; then
7071     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7072 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7073     need_locks=warn
7074   fi
7075 else
7076   need_locks=no
7077 fi
7078
7079 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7081
7082   runpath_var=
7083   allow_undefined_flag=
7084   enable_shared_with_static_runtimes=no
7085   archive_cmds=
7086   archive_expsym_cmds=
7087   old_archive_From_new_cmds=
7088   old_archive_from_expsyms_cmds=
7089   export_dynamic_flag_spec=
7090   whole_archive_flag_spec=
7091   thread_safe_flag_spec=
7092   hardcode_libdir_flag_spec=
7093   hardcode_libdir_flag_spec_ld=
7094   hardcode_libdir_separator=
7095   hardcode_direct=no
7096   hardcode_minus_L=no
7097   hardcode_shlibpath_var=unsupported
7098   link_all_deplibs=unknown
7099   hardcode_automatic=no
7100   module_cmds=
7101   module_expsym_cmds=
7102   always_export_symbols=no
7103   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7104   # include_expsyms should be a list of space-separated symbols to be *always*
7105   # included in the symbol list
7106   include_expsyms=
7107   # exclude_expsyms can be an extended regexp of symbols to exclude
7108   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7109   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7110   # as well as any symbol that contains `d'.
7111   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7112   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7113   # platforms (ab)use it in PIC code, but their linkers get confused if
7114   # the symbol is explicitly referenced.  Since portable code cannot
7115   # rely on this symbol name, it's probably fine to never include it in
7116   # preloaded symbol tables.
7117   extract_expsyms_cmds=
7118   # Just being paranoid about ensuring that cc_basename is set.
7119   for cc_temp in $compiler""; do
7120   case $cc_temp in
7121     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7122     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7123     \-*) ;;
7124     *) break;;
7125   esac
7126 done
7127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7128
7129   case $host_os in
7130   cygwin* | mingw* | pw32*)
7131     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7132     # When not using gcc, we currently assume that we are using
7133     # Microsoft Visual C++.
7134     if test "$GCC" != yes; then
7135       with_gnu_ld=no
7136     fi
7137     ;;
7138   interix*)
7139     # we just hope/assume this is gcc and not c89 (= MSVC++)
7140     with_gnu_ld=yes
7141     ;;
7142   openbsd*)
7143     with_gnu_ld=no
7144     ;;
7145   esac
7146
7147   ld_shlibs=yes
7148   if test "$with_gnu_ld" = yes; then
7149     # If archive_cmds runs LD, not CC, wlarc should be empty
7150     wlarc='${wl}'
7151
7152     # Set some defaults for GNU ld with shared library support. These
7153     # are reset later if shared libraries are not supported. Putting them
7154     # here allows them to be overridden if necessary.
7155     runpath_var=LD_RUN_PATH
7156     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7157     export_dynamic_flag_spec='${wl}--export-dynamic'
7158     # ancient GNU ld didn't support --whole-archive et. al.
7159     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7160         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7161       else
7162         whole_archive_flag_spec=
7163     fi
7164     supports_anon_versioning=no
7165     case `$LD -v 2>/dev/null` in
7166       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7167       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7168       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7169       *\ 2.11.*) ;; # other 2.11 versions
7170       *) supports_anon_versioning=yes ;;
7171     esac
7172
7173     # See if GNU ld supports shared libraries.
7174     case $host_os in
7175     aix3* | aix4* | aix5*)
7176       # On AIX/PPC, the GNU linker is very broken
7177       if test "$host_cpu" != ia64; then
7178         ld_shlibs=no
7179         cat <<EOF 1>&2
7180
7181 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7182 *** to be unable to reliably create shared libraries on AIX.
7183 *** Therefore, libtool is disabling shared libraries support.  If you
7184 *** really care for shared libraries, you may want to modify your PATH
7185 *** so that a non-GNU linker is found, and then restart.
7186
7187 EOF
7188       fi
7189       ;;
7190
7191     amigaos*)
7192       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)'
7193       hardcode_libdir_flag_spec='-L$libdir'
7194       hardcode_minus_L=yes
7195
7196       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7197       # that the semantics of dynamic libraries on AmigaOS, at least up
7198       # to version 4, is to share data among multiple programs linked
7199       # with the same dynamic library.  Since this doesn't match the
7200       # behavior of shared libraries on other platforms, we can't use
7201       # them.
7202       ld_shlibs=no
7203       ;;
7204
7205     beos*)
7206       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7207         allow_undefined_flag=unsupported
7208         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7209         # support --undefined.  This deserves some investigation.  FIXME
7210         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7211       else
7212         ld_shlibs=no
7213       fi
7214       ;;
7215
7216     cygwin* | mingw* | pw32*)
7217       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7218       # as there is no search path for DLLs.
7219       hardcode_libdir_flag_spec='-L$libdir'
7220       allow_undefined_flag=unsupported
7221       always_export_symbols=no
7222       enable_shared_with_static_runtimes=yes
7223       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7224
7225       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7226         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7227         # If the export-symbols file already is a .def file (1st line
7228         # is EXPORTS), use it as is; otherwise, prepend...
7229         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7230           cp $export_symbols $output_objdir/$soname.def;
7231         else
7232           echo EXPORTS > $output_objdir/$soname.def;
7233           cat $export_symbols >> $output_objdir/$soname.def;
7234         fi~
7235         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7236       else
7237         ld_shlibs=no
7238       fi
7239       ;;
7240
7241     interix3*)
7242       hardcode_direct=no
7243       hardcode_shlibpath_var=no
7244       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7245       export_dynamic_flag_spec='${wl}-E'
7246       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7247       # Instead, shared libraries are loaded at an image base (0x10000000 by
7248       # default) and relocated if they conflict, which is a slow very memory
7249       # consuming and fragmenting process.  To avoid this, we pick a random,
7250       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7251       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7252       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7253       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7254       ;;
7255
7256     linux*)
7257       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7258         tmp_addflag=
7259         case $cc_basename,$host_cpu in
7260         pgcc*)                          # Portland Group C compiler
7261           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7262           tmp_addflag=' $pic_flag'
7263           ;;
7264         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7265           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7266           tmp_addflag=' $pic_flag -Mnomain' ;;
7267         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7268           tmp_addflag=' -i_dynamic' ;;
7269         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7270           tmp_addflag=' -i_dynamic -nofor_main' ;;
7271         ifc* | ifort*)                  # Intel Fortran compiler
7272           tmp_addflag=' -nofor_main' ;;
7273         esac
7274         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7275
7276         if test $supports_anon_versioning = yes; then
7277           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7278   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7279   $echo "local: *; };" >> $output_objdir/$libname.ver~
7280           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7281         fi
7282       else
7283         ld_shlibs=no
7284       fi
7285       ;;
7286
7287     netbsd*)
7288       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7289         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7290         wlarc=
7291       else
7292         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7293         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7294       fi
7295       ;;
7296
7297     solaris*)
7298       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7299         ld_shlibs=no
7300         cat <<EOF 1>&2
7301
7302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7303 *** create shared libraries on Solaris systems.  Therefore, libtool
7304 *** is disabling shared libraries support.  We urge you to upgrade GNU
7305 *** binutils to release 2.9.1 or newer.  Another option is to modify
7306 *** your PATH or compiler configuration so that the native linker is
7307 *** used, and then restart.
7308
7309 EOF
7310       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7311         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7312         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7313       else
7314         ld_shlibs=no
7315       fi
7316       ;;
7317
7318     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7319       case `$LD -v 2>&1` in
7320         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7321         ld_shlibs=no
7322         cat <<_LT_EOF 1>&2
7323
7324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7325 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7326 *** is disabling shared libraries support.  We urge you to upgrade GNU
7327 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7328 *** your PATH or compiler configuration so that the native linker is
7329 *** used, and then restart.
7330
7331 _LT_EOF
7332         ;;
7333         *)
7334           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7335             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7336             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7337             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7338           else
7339             ld_shlibs=no
7340           fi
7341         ;;
7342       esac
7343       ;;
7344
7345     sunos4*)
7346       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7347       wlarc=
7348       hardcode_direct=yes
7349       hardcode_shlibpath_var=no
7350       ;;
7351
7352     *)
7353       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7354         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7355         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7356       else
7357         ld_shlibs=no
7358       fi
7359       ;;
7360     esac
7361
7362     if test "$ld_shlibs" = no; then
7363       runpath_var=
7364       hardcode_libdir_flag_spec=
7365       export_dynamic_flag_spec=
7366       whole_archive_flag_spec=
7367     fi
7368   else
7369     # PORTME fill in a description of your system's linker (not GNU ld)
7370     case $host_os in
7371     aix3*)
7372       allow_undefined_flag=unsupported
7373       always_export_symbols=yes
7374       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'
7375       # Note: this linker hardcodes the directories in LIBPATH if there
7376       # are no directories specified by -L.
7377       hardcode_minus_L=yes
7378       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7379         # Neither direct hardcoding nor static linking is supported with a
7380         # broken collect2.
7381         hardcode_direct=unsupported
7382       fi
7383       ;;
7384
7385     aix4* | aix5*)
7386       if test "$host_cpu" = ia64; then
7387         # On IA64, the linker does run time linking by default, so we don't
7388         # have to do anything special.
7389         aix_use_runtimelinking=no
7390         exp_sym_flag='-Bexport'
7391         no_entry_flag=""
7392       else
7393         # If we're using GNU nm, then we don't want the "-C" option.
7394         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7395         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7396           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'
7397         else
7398           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'
7399         fi
7400         aix_use_runtimelinking=no
7401
7402         # Test if we are trying to use run time linking or normal
7403         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7404         # need to do runtime linking.
7405         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7406           for ld_flag in $LDFLAGS; do
7407           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7408             aix_use_runtimelinking=yes
7409             break
7410           fi
7411           done
7412           ;;
7413         esac
7414
7415         exp_sym_flag='-bexport'
7416         no_entry_flag='-bnoentry'
7417       fi
7418
7419       # When large executables or shared objects are built, AIX ld can
7420       # have problems creating the table of contents.  If linking a library
7421       # or program results in "error TOC overflow" add -mminimal-toc to
7422       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7423       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7424
7425       archive_cmds=''
7426       hardcode_direct=yes
7427       hardcode_libdir_separator=':'
7428       link_all_deplibs=yes
7429
7430       if test "$GCC" = yes; then
7431         case $host_os in aix4.[012]|aix4.[012].*)
7432         # We only want to do this on AIX 4.2 and lower, the check
7433         # below for broken collect2 doesn't work under 4.3+
7434           collect2name=`${CC} -print-prog-name=collect2`
7435           if test -f "$collect2name" && \
7436            strings "$collect2name" | grep resolve_lib_name >/dev/null
7437           then
7438           # We have reworked collect2
7439           hardcode_direct=yes
7440           else
7441           # We have old collect2
7442           hardcode_direct=unsupported
7443           # It fails to find uninstalled libraries when the uninstalled
7444           # path is not listed in the libpath.  Setting hardcode_minus_L
7445           # to unsupported forces relinking
7446           hardcode_minus_L=yes
7447           hardcode_libdir_flag_spec='-L$libdir'
7448           hardcode_libdir_separator=
7449           fi
7450           ;;
7451         esac
7452         shared_flag='-shared'
7453         if test "$aix_use_runtimelinking" = yes; then
7454           shared_flag="$shared_flag "'${wl}-G'
7455         fi
7456       else
7457         # not using gcc
7458         if test "$host_cpu" = ia64; then
7459         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7460         # chokes on -Wl,-G. The following line is correct:
7461           shared_flag='-G'
7462         else
7463           if test "$aix_use_runtimelinking" = yes; then
7464             shared_flag='${wl}-G'
7465           else
7466             shared_flag='${wl}-bM:SRE'
7467           fi
7468         fi
7469       fi
7470
7471       # It seems that -bexpall does not export symbols beginning with
7472       # underscore (_), so it is better to generate a list of symbols to export.
7473       always_export_symbols=yes
7474       if test "$aix_use_runtimelinking" = yes; then
7475         # Warning - without using the other runtime loading flags (-brtl),
7476         # -berok will link without error, but may produce a broken library.
7477         allow_undefined_flag='-berok'
7478        # Determine the default libpath from the value encoded in an empty executable.
7479        cat >conftest.$ac_ext <<_ACEOF
7480 /* confdefs.h.  */
7481 _ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h.  */
7485
7486 int
7487 main ()
7488 {
7489
7490   ;
7491   return 0;
7492 }
7493 _ACEOF
7494 rm -f conftest.$ac_objext conftest$ac_exeext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7496   (eval $ac_link) 2>conftest.er1
7497   ac_status=$?
7498   grep -v '^ *+' conftest.er1 >conftest.err
7499   rm -f conftest.er1
7500   cat conftest.err >&5
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); } &&
7503          { ac_try='test -z "$ac_c_werror_flag"
7504                          || test ! -s conftest.err'
7505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506   (eval $ac_try) 2>&5
7507   ac_status=$?
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); }; } &&
7510          { ac_try='test -s conftest$ac_exeext'
7511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512   (eval $ac_try) 2>&5
7513   ac_status=$?
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); }; }; then
7516
7517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7518 }'`
7519 # Check for a 64-bit object if we didn't find anything.
7520 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; }
7521 }'`; fi
7522 else
7523   echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 fi
7527 rm -f conftest.err conftest.$ac_objext \
7528       conftest$ac_exeext conftest.$ac_ext
7529 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7530
7531        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7532         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7533        else
7534         if test "$host_cpu" = ia64; then
7535           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7536           allow_undefined_flag="-z nodefs"
7537           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7538         else
7539          # Determine the default libpath from the value encoded in an empty executable.
7540          cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546
7547 int
7548 main ()
7549 {
7550
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557   (eval $ac_link) 2>conftest.er1
7558   ac_status=$?
7559   grep -v '^ *+' conftest.er1 >conftest.err
7560   rm -f conftest.er1
7561   cat conftest.err >&5
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } &&
7564          { ac_try='test -z "$ac_c_werror_flag"
7565                          || test ! -s conftest.err'
7566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567   (eval $ac_try) 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); }; } &&
7571          { ac_try='test -s conftest$ac_exeext'
7572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573   (eval $ac_try) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); }; }; then
7577
7578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7579 }'`
7580 # Check for a 64-bit object if we didn't find anything.
7581 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; }
7582 }'`; fi
7583 else
7584   echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 fi
7588 rm -f conftest.err conftest.$ac_objext \
7589       conftest$ac_exeext conftest.$ac_ext
7590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7591
7592          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7593           # Warning - without using the other run time loading flags,
7594           # -berok will link without error, but may produce a broken library.
7595           no_undefined_flag=' ${wl}-bernotok'
7596           allow_undefined_flag=' ${wl}-berok'
7597           # Exported symbols can be pulled into shared objects from archives
7598           whole_archive_flag_spec='$convenience'
7599           archive_cmds_need_lc=yes
7600           # This is similar to how AIX traditionally builds its shared libraries.
7601           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7602         fi
7603       fi
7604       ;;
7605
7606     amigaos*)
7607       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)'
7608       hardcode_libdir_flag_spec='-L$libdir'
7609       hardcode_minus_L=yes
7610       # see comment about different semantics on the GNU ld section
7611       ld_shlibs=no
7612       ;;
7613
7614     bsdi[45]*)
7615       export_dynamic_flag_spec=-rdynamic
7616       ;;
7617
7618     cygwin* | mingw* | pw32*)
7619       # When not using gcc, we currently assume that we are using
7620       # Microsoft Visual C++.
7621       # hardcode_libdir_flag_spec is actually meaningless, as there is
7622       # no search path for DLLs.
7623       hardcode_libdir_flag_spec=' '
7624       allow_undefined_flag=unsupported
7625       # Tell ltmain to make .lib files, not .a files.
7626       libext=lib
7627       # Tell ltmain to make .dll files, not .so files.
7628       shrext_cmds=".dll"
7629       # FIXME: Setting linknames here is a bad hack.
7630       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7631       # The linker will automatically build a .lib file if we build a DLL.
7632       old_archive_From_new_cmds='true'
7633       # FIXME: Should let the user specify the lib program.
7634       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7635       fix_srcfile_path='`cygpath -w "$srcfile"`'
7636       enable_shared_with_static_runtimes=yes
7637       ;;
7638
7639     darwin* | rhapsody*)
7640       case $host_os in
7641         rhapsody* | darwin1.[012])
7642          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7643          ;;
7644        *) # Darwin 1.3 on
7645          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7646            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7647          else
7648            case ${MACOSX_DEPLOYMENT_TARGET} in
7649              10.[012])
7650                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7651                ;;
7652              10.*)
7653                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7654                ;;
7655            esac
7656          fi
7657          ;;
7658       esac
7659       archive_cmds_need_lc=no
7660       hardcode_direct=no
7661       hardcode_automatic=yes
7662       hardcode_shlibpath_var=unsupported
7663       whole_archive_flag_spec=''
7664       link_all_deplibs=yes
7665     if test "$GCC" = yes ; then
7666         output_verbose_link_cmd='echo'
7667         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7668       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7669       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7670       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}'
7671       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}'
7672     else
7673       case $cc_basename in
7674         xlc*)
7675          output_verbose_link_cmd='echo'
7676          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7677          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7678           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7679          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7680           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}'
7681           ;;
7682        *)
7683          ld_shlibs=no
7684           ;;
7685       esac
7686     fi
7687       ;;
7688
7689     dgux*)
7690       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7691       hardcode_libdir_flag_spec='-L$libdir'
7692       hardcode_shlibpath_var=no
7693       ;;
7694
7695     freebsd1*)
7696       ld_shlibs=no
7697       ;;
7698
7699     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7700     # support.  Future versions do this automatically, but an explicit c++rt0.o
7701     # does not break anything, and helps significantly (at the cost of a little
7702     # extra space).
7703     freebsd2.2*)
7704       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7705       hardcode_libdir_flag_spec='-R$libdir'
7706       hardcode_direct=yes
7707       hardcode_shlibpath_var=no
7708       ;;
7709
7710     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7711     freebsd2*)
7712       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7713       hardcode_direct=yes
7714       hardcode_minus_L=yes
7715       hardcode_shlibpath_var=no
7716       ;;
7717
7718     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7719     freebsd* | kfreebsd*-gnu | dragonfly*)
7720       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7721       hardcode_libdir_flag_spec='-R$libdir'
7722       hardcode_direct=yes
7723       hardcode_shlibpath_var=no
7724       ;;
7725
7726     hpux9*)
7727       if test "$GCC" = yes; then
7728         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'
7729       else
7730         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'
7731       fi
7732       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7733       hardcode_libdir_separator=:
7734       hardcode_direct=yes
7735
7736       # hardcode_minus_L: Not really in the search PATH,
7737       # but as the default location of the library.
7738       hardcode_minus_L=yes
7739       export_dynamic_flag_spec='${wl}-E'
7740       ;;
7741
7742     hpux10*)
7743       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7744         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7745       else
7746         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7747       fi
7748       if test "$with_gnu_ld" = no; then
7749         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7750         hardcode_libdir_separator=:
7751
7752         hardcode_direct=yes
7753         export_dynamic_flag_spec='${wl}-E'
7754
7755         # hardcode_minus_L: Not really in the search PATH,
7756         # but as the default location of the library.
7757         hardcode_minus_L=yes
7758       fi
7759       ;;
7760
7761     hpux11*)
7762       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7763         case $host_cpu in
7764         hppa*64*)
7765           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7766           ;;
7767         ia64*)
7768           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7769           ;;
7770         *)
7771           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7772           ;;
7773         esac
7774       else
7775         case $host_cpu in
7776         hppa*64*)
7777           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7778           ;;
7779         ia64*)
7780           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7781           ;;
7782         *)
7783           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7784           ;;
7785         esac
7786       fi
7787       if test "$with_gnu_ld" = no; then
7788         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7789         hardcode_libdir_separator=:
7790
7791         case $host_cpu in
7792         hppa*64*|ia64*)
7793           hardcode_libdir_flag_spec_ld='+b $libdir'
7794           hardcode_direct=no
7795           hardcode_shlibpath_var=no
7796           ;;
7797         *)
7798           hardcode_direct=yes
7799           export_dynamic_flag_spec='${wl}-E'
7800
7801           # hardcode_minus_L: Not really in the search PATH,
7802           # but as the default location of the library.
7803           hardcode_minus_L=yes
7804           ;;
7805         esac
7806       fi
7807       ;;
7808
7809     irix5* | irix6* | nonstopux*)
7810       if test "$GCC" = yes; then
7811         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'
7812       else
7813         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'
7814         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7815       fi
7816       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7817       hardcode_libdir_separator=:
7818       link_all_deplibs=yes
7819       ;;
7820
7821     netbsd*)
7822       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7823         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7824       else
7825         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7826       fi
7827       hardcode_libdir_flag_spec='-R$libdir'
7828       hardcode_direct=yes
7829       hardcode_shlibpath_var=no
7830       ;;
7831
7832     newsos6)
7833       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7834       hardcode_direct=yes
7835       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7836       hardcode_libdir_separator=:
7837       hardcode_shlibpath_var=no
7838       ;;
7839
7840     openbsd*)
7841       hardcode_direct=yes
7842       hardcode_shlibpath_var=no
7843       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7844         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7845         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7846         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7847         export_dynamic_flag_spec='${wl}-E'
7848       else
7849        case $host_os in
7850          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7851            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7852            hardcode_libdir_flag_spec='-R$libdir'
7853            ;;
7854          *)
7855            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7856            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7857            ;;
7858        esac
7859       fi
7860       ;;
7861
7862     os2*)
7863       hardcode_libdir_flag_spec='-L$libdir'
7864       hardcode_minus_L=yes
7865       allow_undefined_flag=unsupported
7866       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'
7867       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7868       ;;
7869
7870     osf3*)
7871       if test "$GCC" = yes; then
7872         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7873         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'
7874       else
7875         allow_undefined_flag=' -expect_unresolved \*'
7876         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'
7877       fi
7878       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7879       hardcode_libdir_separator=:
7880       ;;
7881
7882     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7883       if test "$GCC" = yes; then
7884         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7885         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'
7886         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7887       else
7888         allow_undefined_flag=' -expect_unresolved \*'
7889         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'
7890         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7891         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7892
7893         # Both c and cxx compiler support -rpath directly
7894         hardcode_libdir_flag_spec='-rpath $libdir'
7895       fi
7896       hardcode_libdir_separator=:
7897       ;;
7898
7899     solaris*)
7900       no_undefined_flag=' -z text'
7901       if test "$GCC" = yes; then
7902         wlarc='${wl}'
7903         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7904         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7905           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7906       else
7907         wlarc=''
7908         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7909         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7910         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7911       fi
7912       hardcode_libdir_flag_spec='-R$libdir'
7913       hardcode_shlibpath_var=no
7914       case $host_os in
7915       solaris2.[0-5] | solaris2.[0-5].*) ;;
7916       *)
7917         # The compiler driver will combine linker options so we
7918         # cannot just pass the convience library names through
7919         # without $wl, iff we do not link with $LD.
7920         # Luckily, gcc supports the same syntax we need for Sun Studio.
7921         # Supported since Solaris 2.6 (maybe 2.5.1?)
7922         case $wlarc in
7923         '')
7924           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7925         *)
7926           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7927         esac ;;
7928       esac
7929       link_all_deplibs=yes
7930       ;;
7931
7932     sunos4*)
7933       if test "x$host_vendor" = xsequent; then
7934         # Use $CC to link under sequent, because it throws in some extra .o
7935         # files that make .init and .fini sections work.
7936         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7937       else
7938         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7939       fi
7940       hardcode_libdir_flag_spec='-L$libdir'
7941       hardcode_direct=yes
7942       hardcode_minus_L=yes
7943       hardcode_shlibpath_var=no
7944       ;;
7945
7946     sysv4)
7947       case $host_vendor in
7948         sni)
7949           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7950           hardcode_direct=yes # is this really true???
7951         ;;
7952         siemens)
7953           ## LD is ld it makes a PLAMLIB
7954           ## CC just makes a GrossModule.
7955           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7956           reload_cmds='$CC -r -o $output$reload_objs'
7957           hardcode_direct=no
7958         ;;
7959         motorola)
7960           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7961           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7962         ;;
7963       esac
7964       runpath_var='LD_RUN_PATH'
7965       hardcode_shlibpath_var=no
7966       ;;
7967
7968     sysv4.3*)
7969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7970       hardcode_shlibpath_var=no
7971       export_dynamic_flag_spec='-Bexport'
7972       ;;
7973
7974     sysv4*MP*)
7975       if test -d /usr/nec; then
7976         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7977         hardcode_shlibpath_var=no
7978         runpath_var=LD_RUN_PATH
7979         hardcode_runpath_var=yes
7980         ld_shlibs=yes
7981       fi
7982       ;;
7983
7984     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7985       no_undefined_flag='${wl}-z,text'
7986       archive_cmds_need_lc=no
7987       hardcode_shlibpath_var=no
7988       runpath_var='LD_RUN_PATH'
7989
7990       if test "$GCC" = yes; then
7991         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7992         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7993       else
7994         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7995         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7996       fi
7997       ;;
7998
7999     sysv5* | sco3.2v5* | sco5v6*)
8000       # Note: We can NOT use -z defs as we might desire, because we do not
8001       # link with -lc, and that would cause any symbols used from libc to
8002       # always be unresolved, which means just about no library would
8003       # ever link correctly.  If we're not using GNU ld we use -z text
8004       # though, which does catch some bad symbols but isn't as heavy-handed
8005       # as -z defs.
8006       no_undefined_flag='${wl}-z,text'
8007       allow_undefined_flag='${wl}-z,nodefs'
8008       archive_cmds_need_lc=no
8009       hardcode_shlibpath_var=no
8010       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8011       hardcode_libdir_separator=':'
8012       link_all_deplibs=yes
8013       export_dynamic_flag_spec='${wl}-Bexport'
8014       runpath_var='LD_RUN_PATH'
8015
8016       if test "$GCC" = yes; then
8017         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8018         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8019       else
8020         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8021         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8022       fi
8023       ;;
8024
8025     uts4*)
8026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8027       hardcode_libdir_flag_spec='-L$libdir'
8028       hardcode_shlibpath_var=no
8029       ;;
8030
8031     *)
8032       ld_shlibs=no
8033       ;;
8034     esac
8035   fi
8036
8037 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8038 echo "${ECHO_T}$ld_shlibs" >&6
8039 test "$ld_shlibs" = no && can_build_shared=no
8040
8041 #
8042 # Do we need to explicitly link libc?
8043 #
8044 case "x$archive_cmds_need_lc" in
8045 x|xyes)
8046   # Assume -lc should be added
8047   archive_cmds_need_lc=yes
8048
8049   if test "$enable_shared" = yes && test "$GCC" = yes; then
8050     case $archive_cmds in
8051     *'~'*)
8052       # FIXME: we may have to deal with multi-command sequences.
8053       ;;
8054     '$CC '*)
8055       # Test whether the compiler implicitly links with -lc since on some
8056       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8057       # to ld, don't add -lc before -lgcc.
8058       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8059 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8060       $rm conftest*
8061       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8062
8063       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064   (eval $ac_compile) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } 2>conftest.err; then
8068         soname=conftest
8069         lib=conftest
8070         libobjs=conftest.$ac_objext
8071         deplibs=
8072         wl=$lt_prog_compiler_wl
8073         pic_flag=$lt_prog_compiler_pic
8074         compiler_flags=-v
8075         linker_flags=-v
8076         verstring=
8077         output_objdir=.
8078         libname=conftest
8079         lt_save_allow_undefined_flag=$allow_undefined_flag
8080         allow_undefined_flag=
8081         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8082   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }
8086         then
8087           archive_cmds_need_lc=no
8088         else
8089           archive_cmds_need_lc=yes
8090         fi
8091         allow_undefined_flag=$lt_save_allow_undefined_flag
8092       else
8093         cat conftest.err 1>&5
8094       fi
8095       $rm conftest*
8096       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8097 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8098       ;;
8099     esac
8100   fi
8101   ;;
8102 esac
8103
8104 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8105 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8106 library_names_spec=
8107 libname_spec='lib$name'
8108 soname_spec=
8109 shrext_cmds=".so"
8110 postinstall_cmds=
8111 postuninstall_cmds=
8112 finish_cmds=
8113 finish_eval=
8114 shlibpath_var=
8115 shlibpath_overrides_runpath=unknown
8116 version_type=none
8117 dynamic_linker="$host_os ld.so"
8118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8119 if test "$GCC" = yes; then
8120   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8121   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8122     # if the path contains ";" then we assume it to be the separator
8123     # otherwise default to the standard path separator (i.e. ":") - it is
8124     # assumed that no part of a normal pathname contains ";" but that should
8125     # okay in the real world where ";" in dirpaths is itself problematic.
8126     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8127   else
8128     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8129   fi
8130 else
8131   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8132 fi
8133 need_lib_prefix=unknown
8134 hardcode_into_libs=no
8135
8136 # when you set need_version to no, make sure it does not cause -set_version
8137 # flags to be left without arguments
8138 need_version=unknown
8139
8140 case $host_os in
8141 aix3*)
8142   version_type=linux
8143   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8144   shlibpath_var=LIBPATH
8145
8146   # AIX 3 has no versioning support, so we append a major version to the name.
8147   soname_spec='${libname}${release}${shared_ext}$major'
8148   ;;
8149
8150 aix4* | aix5*)
8151   version_type=linux
8152   need_lib_prefix=no
8153   need_version=no
8154   hardcode_into_libs=yes
8155   if test "$host_cpu" = ia64; then
8156     # AIX 5 supports IA64
8157     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8158     shlibpath_var=LD_LIBRARY_PATH
8159   else
8160     # With GCC up to 2.95.x, collect2 would create an import file
8161     # for dependence libraries.  The import file would start with
8162     # the line `#! .'.  This would cause the generated library to
8163     # depend on `.', always an invalid library.  This was fixed in
8164     # development snapshots of GCC prior to 3.0.
8165     case $host_os in
8166       aix4 | aix4.[01] | aix4.[01].*)
8167       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8168            echo ' yes '
8169            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8170         :
8171       else
8172         can_build_shared=no
8173       fi
8174       ;;
8175     esac
8176     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8177     # soname into executable. Probably we can add versioning support to
8178     # collect2, so additional links can be useful in future.
8179     if test "$aix_use_runtimelinking" = yes; then
8180       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8181       # instead of lib<name>.a to let people know that these are not
8182       # typical AIX shared libraries.
8183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8184     else
8185       # We preserve .a as extension for shared libraries through AIX4.2
8186       # and later when we are not doing run time linking.
8187       library_names_spec='${libname}${release}.a $libname.a'
8188       soname_spec='${libname}${release}${shared_ext}$major'
8189     fi
8190     shlibpath_var=LIBPATH
8191   fi
8192   ;;
8193
8194 amigaos*)
8195   library_names_spec='$libname.ixlibrary $libname.a'
8196   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8197   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'
8198   ;;
8199
8200 beos*)
8201   library_names_spec='${libname}${shared_ext}'
8202   dynamic_linker="$host_os ld.so"
8203   shlibpath_var=LIBRARY_PATH
8204   ;;
8205
8206 bsdi[45]*)
8207   version_type=linux
8208   need_version=no
8209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8210   soname_spec='${libname}${release}${shared_ext}$major'
8211   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8212   shlibpath_var=LD_LIBRARY_PATH
8213   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8214   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8215   # the default ld.so.conf also contains /usr/contrib/lib and
8216   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8217   # libtool to hard-code these into programs
8218   ;;
8219
8220 cygwin* | mingw* | pw32*)
8221   version_type=windows
8222   shrext_cmds=".dll"
8223   need_version=no
8224   need_lib_prefix=no
8225
8226   case $GCC,$host_os in
8227   yes,cygwin* | yes,mingw* | yes,pw32*)
8228     library_names_spec='$libname.dll.a'
8229     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8230     postinstall_cmds='base_file=`basename \${file}`~
8231       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8232       dldir=$destdir/`dirname \$dlpath`~
8233       test -d \$dldir || mkdir -p \$dldir~
8234       $install_prog $dir/$dlname \$dldir/$dlname~
8235       chmod a+x \$dldir/$dlname'
8236     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8237       dlpath=$dir/\$dldll~
8238        $rm \$dlpath'
8239     shlibpath_overrides_runpath=yes
8240
8241     case $host_os in
8242     cygwin*)
8243       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8244       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8245       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8246       ;;
8247     mingw*)
8248       # MinGW DLLs use traditional 'lib' prefix
8249       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8250       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8251       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8252         # It is most probably a Windows format PATH printed by
8253         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8254         # path with ; separators, and with drive letters. We can handle the
8255         # drive letters (cygwin fileutils understands them), so leave them,
8256         # especially as we might pass files found there to a mingw objdump,
8257         # which wouldn't understand a cygwinified path. Ahh.
8258         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8259       else
8260         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8261       fi
8262       ;;
8263     pw32*)
8264       # pw32 DLLs use 'pw' prefix rather than 'lib'
8265       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8266       ;;
8267     esac
8268     ;;
8269
8270   *)
8271     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8272     ;;
8273   esac
8274   dynamic_linker='Win32 ld.exe'
8275   # FIXME: first we should search . and the directory the executable is in
8276   shlibpath_var=PATH
8277   ;;
8278
8279 darwin* | rhapsody*)
8280   dynamic_linker="$host_os dyld"
8281   version_type=darwin
8282   need_lib_prefix=no
8283   need_version=no
8284   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8285   soname_spec='${libname}${release}${major}$shared_ext'
8286   shlibpath_overrides_runpath=yes
8287   shlibpath_var=DYLD_LIBRARY_PATH
8288   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8289   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8290   if test "$GCC" = yes; then
8291     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"`
8292   else
8293     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8294   fi
8295   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8296   ;;
8297
8298 dgux*)
8299   version_type=linux
8300   need_lib_prefix=no
8301   need_version=no
8302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8303   soname_spec='${libname}${release}${shared_ext}$major'
8304   shlibpath_var=LD_LIBRARY_PATH
8305   ;;
8306
8307 freebsd1*)
8308   dynamic_linker=no
8309   ;;
8310
8311 kfreebsd*-gnu)
8312   version_type=linux
8313   need_lib_prefix=no
8314   need_version=no
8315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8316   soname_spec='${libname}${release}${shared_ext}$major'
8317   shlibpath_var=LD_LIBRARY_PATH
8318   shlibpath_overrides_runpath=no
8319   hardcode_into_libs=yes
8320   dynamic_linker='GNU ld.so'
8321   ;;
8322
8323 freebsd* | dragonfly*)
8324   # DragonFly does not have aout.  When/if they implement a new
8325   # versioning mechanism, adjust this.
8326   if test -x /usr/bin/objformat; then
8327     objformat=`/usr/bin/objformat`
8328   else
8329     case $host_os in
8330     freebsd[123]*) objformat=aout ;;
8331     *) objformat=elf ;;
8332     esac
8333   fi
8334   version_type=freebsd-$objformat
8335   case $version_type in
8336     freebsd-elf*)
8337       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8338       need_version=no
8339       need_lib_prefix=no
8340       ;;
8341     freebsd-*)
8342       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8343       need_version=yes
8344       ;;
8345   esac
8346   shlibpath_var=LD_LIBRARY_PATH
8347   case $host_os in
8348   freebsd2*)
8349     shlibpath_overrides_runpath=yes
8350     ;;
8351   freebsd3.[01]* | freebsdelf3.[01]*)
8352     shlibpath_overrides_runpath=yes
8353     hardcode_into_libs=yes
8354     ;;
8355   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8356   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8357     shlibpath_overrides_runpath=no
8358     hardcode_into_libs=yes
8359     ;;
8360   freebsd*) # from 4.6 on
8361     shlibpath_overrides_runpath=yes
8362     hardcode_into_libs=yes
8363     ;;
8364   esac
8365   ;;
8366
8367 gnu*)
8368   version_type=linux
8369   need_lib_prefix=no
8370   need_version=no
8371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8372   soname_spec='${libname}${release}${shared_ext}$major'
8373   shlibpath_var=LD_LIBRARY_PATH
8374   hardcode_into_libs=yes
8375   ;;
8376
8377 hpux9* | hpux10* | hpux11*)
8378   # Give a soname corresponding to the major version so that dld.sl refuses to
8379   # link against other versions.
8380   version_type=sunos
8381   need_lib_prefix=no
8382   need_version=no
8383   case $host_cpu in
8384   ia64*)
8385     shrext_cmds='.so'
8386     hardcode_into_libs=yes
8387     dynamic_linker="$host_os dld.so"
8388     shlibpath_var=LD_LIBRARY_PATH
8389     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8391     soname_spec='${libname}${release}${shared_ext}$major'
8392     if test "X$HPUX_IA64_MODE" = X32; then
8393       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8394     else
8395       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8396     fi
8397     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8398     ;;
8399    hppa*64*)
8400      shrext_cmds='.sl'
8401      hardcode_into_libs=yes
8402      dynamic_linker="$host_os dld.sl"
8403      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8404      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8405      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8406      soname_spec='${libname}${release}${shared_ext}$major'
8407      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8408      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8409      ;;
8410    *)
8411     shrext_cmds='.sl'
8412     dynamic_linker="$host_os dld.sl"
8413     shlibpath_var=SHLIB_PATH
8414     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8416     soname_spec='${libname}${release}${shared_ext}$major'
8417     ;;
8418   esac
8419   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8420   postinstall_cmds='chmod 555 $lib'
8421   ;;
8422
8423 interix3*)
8424   version_type=linux
8425   need_lib_prefix=no
8426   need_version=no
8427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8428   soname_spec='${libname}${release}${shared_ext}$major'
8429   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8430   shlibpath_var=LD_LIBRARY_PATH
8431   shlibpath_overrides_runpath=no
8432   hardcode_into_libs=yes
8433   ;;
8434
8435 irix5* | irix6* | nonstopux*)
8436   case $host_os in
8437     nonstopux*) version_type=nonstopux ;;
8438     *)
8439         if test "$lt_cv_prog_gnu_ld" = yes; then
8440                 version_type=linux
8441         else
8442                 version_type=irix
8443         fi ;;
8444   esac
8445   need_lib_prefix=no
8446   need_version=no
8447   soname_spec='${libname}${release}${shared_ext}$major'
8448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8449   case $host_os in
8450   irix5* | nonstopux*)
8451     libsuff= shlibsuff=
8452     ;;
8453   *)
8454     case $LD in # libtool.m4 will add one of these switches to LD
8455     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8456       libsuff= shlibsuff= libmagic=32-bit;;
8457     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8458       libsuff=32 shlibsuff=N32 libmagic=N32;;
8459     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8460       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8461     *) libsuff= shlibsuff= libmagic=never-match;;
8462     esac
8463     ;;
8464   esac
8465   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8466   shlibpath_overrides_runpath=no
8467   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8468   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8469   hardcode_into_libs=yes
8470   ;;
8471
8472 # No shared lib support for Linux oldld, aout, or coff.
8473 linux*oldld* | linux*aout* | linux*coff*)
8474   dynamic_linker=no
8475   ;;
8476
8477 # This must be Linux ELF.
8478 linux*)
8479   version_type=linux
8480   need_lib_prefix=no
8481   need_version=no
8482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8483   soname_spec='${libname}${release}${shared_ext}$major'
8484   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8485   shlibpath_var=LD_LIBRARY_PATH
8486   shlibpath_overrides_runpath=no
8487   # This implies no fast_install, which is unacceptable.
8488   # Some rework will be needed to allow for fast_install
8489   # before this can be enabled.
8490   hardcode_into_libs=yes
8491
8492   # Append ld.so.conf contents to the search path
8493   if test -f /etc/ld.so.conf; then
8494     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8495     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8496   fi
8497
8498   # We used to test for /lib/ld.so.1 and disable shared libraries on
8499   # powerpc, because MkLinux only supported shared libraries with the
8500   # GNU dynamic linker.  Since this was broken with cross compilers,
8501   # most powerpc-linux boxes support dynamic linking these days and
8502   # people can always --disable-shared, the test was removed, and we
8503   # assume the GNU/Linux dynamic linker is in use.
8504   dynamic_linker='GNU/Linux ld.so'
8505   ;;
8506
8507 knetbsd*-gnu)
8508   version_type=linux
8509   need_lib_prefix=no
8510   need_version=no
8511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8512   soname_spec='${libname}${release}${shared_ext}$major'
8513   shlibpath_var=LD_LIBRARY_PATH
8514   shlibpath_overrides_runpath=no
8515   hardcode_into_libs=yes
8516   dynamic_linker='GNU ld.so'
8517   ;;
8518
8519 netbsd*)
8520   version_type=sunos
8521   need_lib_prefix=no
8522   need_version=no
8523   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8525     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8526     dynamic_linker='NetBSD (a.out) ld.so'
8527   else
8528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8529     soname_spec='${libname}${release}${shared_ext}$major'
8530     dynamic_linker='NetBSD ld.elf_so'
8531   fi
8532   shlibpath_var=LD_LIBRARY_PATH
8533   shlibpath_overrides_runpath=yes
8534   hardcode_into_libs=yes
8535   ;;
8536
8537 newsos6)
8538   version_type=linux
8539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540   shlibpath_var=LD_LIBRARY_PATH
8541   shlibpath_overrides_runpath=yes
8542   ;;
8543
8544 nto-qnx*)
8545   version_type=linux
8546   need_lib_prefix=no
8547   need_version=no
8548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8549   soname_spec='${libname}${release}${shared_ext}$major'
8550   shlibpath_var=LD_LIBRARY_PATH
8551   shlibpath_overrides_runpath=yes
8552   ;;
8553
8554 openbsd*)
8555   version_type=sunos
8556   sys_lib_dlsearch_path_spec="/usr/lib"
8557   need_lib_prefix=no
8558   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8559   case $host_os in
8560     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8561     *)                         need_version=no  ;;
8562   esac
8563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8564   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8565   shlibpath_var=LD_LIBRARY_PATH
8566   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8567     case $host_os in
8568       openbsd2.[89] | openbsd2.[89].*)
8569         shlibpath_overrides_runpath=no
8570         ;;
8571       *)
8572         shlibpath_overrides_runpath=yes
8573         ;;
8574       esac
8575   else
8576     shlibpath_overrides_runpath=yes
8577   fi
8578   ;;
8579
8580 os2*)
8581   libname_spec='$name'
8582   shrext_cmds=".dll"
8583   need_lib_prefix=no
8584   library_names_spec='$libname${shared_ext} $libname.a'
8585   dynamic_linker='OS/2 ld.exe'
8586   shlibpath_var=LIBPATH
8587   ;;
8588
8589 osf3* | osf4* | osf5*)
8590   version_type=osf
8591   need_lib_prefix=no
8592   need_version=no
8593   soname_spec='${libname}${release}${shared_ext}$major'
8594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595   shlibpath_var=LD_LIBRARY_PATH
8596   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8597   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8598   ;;
8599
8600 solaris*)
8601   version_type=linux
8602   need_lib_prefix=no
8603   need_version=no
8604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605   soname_spec='${libname}${release}${shared_ext}$major'
8606   shlibpath_var=LD_LIBRARY_PATH
8607   shlibpath_overrides_runpath=yes
8608   hardcode_into_libs=yes
8609   # ldd complains unless libraries are executable
8610   postinstall_cmds='chmod +x $lib'
8611   ;;
8612
8613 sunos4*)
8614   version_type=sunos
8615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8616   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8617   shlibpath_var=LD_LIBRARY_PATH
8618   shlibpath_overrides_runpath=yes
8619   if test "$with_gnu_ld" = yes; then
8620     need_lib_prefix=no
8621   fi
8622   need_version=yes
8623   ;;
8624
8625 sysv4 | sysv4.3*)
8626   version_type=linux
8627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8628   soname_spec='${libname}${release}${shared_ext}$major'
8629   shlibpath_var=LD_LIBRARY_PATH
8630   case $host_vendor in
8631     sni)
8632       shlibpath_overrides_runpath=no
8633       need_lib_prefix=no
8634       export_dynamic_flag_spec='${wl}-Blargedynsym'
8635       runpath_var=LD_RUN_PATH
8636       ;;
8637     siemens)
8638       need_lib_prefix=no
8639       ;;
8640     motorola)
8641       need_lib_prefix=no
8642       need_version=no
8643       shlibpath_overrides_runpath=no
8644       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8645       ;;
8646   esac
8647   ;;
8648
8649 sysv4*MP*)
8650   if test -d /usr/nec ;then
8651     version_type=linux
8652     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8653     soname_spec='$libname${shared_ext}.$major'
8654     shlibpath_var=LD_LIBRARY_PATH
8655   fi
8656   ;;
8657
8658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8659   version_type=freebsd-elf
8660   need_lib_prefix=no
8661   need_version=no
8662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8663   soname_spec='${libname}${release}${shared_ext}$major'
8664   shlibpath_var=LD_LIBRARY_PATH
8665   hardcode_into_libs=yes
8666   if test "$with_gnu_ld" = yes; then
8667     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8668     shlibpath_overrides_runpath=no
8669   else
8670     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8671     shlibpath_overrides_runpath=yes
8672     case $host_os in
8673       sco3.2v5*)
8674         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8675         ;;
8676     esac
8677   fi
8678   sys_lib_dlsearch_path_spec='/usr/lib'
8679   ;;
8680
8681 uts4*)
8682   version_type=linux
8683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8684   soname_spec='${libname}${release}${shared_ext}$major'
8685   shlibpath_var=LD_LIBRARY_PATH
8686   ;;
8687
8688 *)
8689   dynamic_linker=no
8690   ;;
8691 esac
8692 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8693 echo "${ECHO_T}$dynamic_linker" >&6
8694 test "$dynamic_linker" = no && can_build_shared=no
8695
8696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8697 if test "$GCC" = yes; then
8698   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8699 fi
8700
8701 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8702 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8703 hardcode_action=
8704 if test -n "$hardcode_libdir_flag_spec" || \
8705    test -n "$runpath_var" || \
8706    test "X$hardcode_automatic" = "Xyes" ; then
8707
8708   # We can hardcode non-existant directories.
8709   if test "$hardcode_direct" != no &&
8710      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8711      # have to relink, otherwise we might link with an installed library
8712      # when we should be linking with a yet-to-be-installed one
8713      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8714      test "$hardcode_minus_L" != no; then
8715     # Linking always hardcodes the temporary library directory.
8716     hardcode_action=relink
8717   else
8718     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8719     hardcode_action=immediate
8720   fi
8721 else
8722   # We cannot hardcode anything, or else we can only hardcode existing
8723   # directories.
8724   hardcode_action=unsupported
8725 fi
8726 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8727 echo "${ECHO_T}$hardcode_action" >&6
8728
8729 if test "$hardcode_action" = relink; then
8730   # Fast installation is not supported
8731   enable_fast_install=no
8732 elif test "$shlibpath_overrides_runpath" = yes ||
8733      test "$enable_shared" = no; then
8734   # Fast installation is not necessary
8735   enable_fast_install=needless
8736 fi
8737
8738 striplib=
8739 old_striplib=
8740 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8741 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8742 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8743   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8744   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8745   echo "$as_me:$LINENO: result: yes" >&5
8746 echo "${ECHO_T}yes" >&6
8747 else
8748 # FIXME - insert some real tests, host_os isn't really good enough
8749   case $host_os in
8750    darwin*)
8751        if test -n "$STRIP" ; then
8752          striplib="$STRIP -x"
8753          echo "$as_me:$LINENO: result: yes" >&5
8754 echo "${ECHO_T}yes" >&6
8755        else
8756   echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8758 fi
8759        ;;
8760    *)
8761   echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6
8763     ;;
8764   esac
8765 fi
8766
8767 if test "x$enable_dlopen" != xyes; then
8768   enable_dlopen=unknown
8769   enable_dlopen_self=unknown
8770   enable_dlopen_self_static=unknown
8771 else
8772   lt_cv_dlopen=no
8773   lt_cv_dlopen_libs=
8774
8775   case $host_os in
8776   beos*)
8777     lt_cv_dlopen="load_add_on"
8778     lt_cv_dlopen_libs=
8779     lt_cv_dlopen_self=yes
8780     ;;
8781
8782   mingw* | pw32*)
8783     lt_cv_dlopen="LoadLibrary"
8784     lt_cv_dlopen_libs=
8785    ;;
8786
8787   cygwin*)
8788     lt_cv_dlopen="dlopen"
8789     lt_cv_dlopen_libs=
8790    ;;
8791
8792   darwin*)
8793   # if libdl is installed we need to link against it
8794     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   ac_check_lib_save_LIBS=$LIBS
8800 LIBS="-ldl  $LIBS"
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807
8808 /* Override any gcc2 internal prototype to avoid an error.  */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813    builtin and then its argument prototype would still apply.  */
8814 char dlopen ();
8815 int
8816 main ()
8817 {
8818 dlopen ();
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825   (eval $ac_link) 2>conftest.er1
8826   ac_status=$?
8827   grep -v '^ *+' conftest.er1 >conftest.err
8828   rm -f conftest.er1
8829   cat conftest.err >&5
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); } &&
8832          { ac_try='test -z "$ac_c_werror_flag"
8833                          || test ! -s conftest.err'
8834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835   (eval $ac_try) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; } &&
8839          { ac_try='test -s conftest$ac_exeext'
8840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841   (eval $ac_try) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; }; then
8845   ac_cv_lib_dl_dlopen=yes
8846 else
8847   echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 ac_cv_lib_dl_dlopen=no
8851 fi
8852 rm -f conftest.err conftest.$ac_objext \
8853       conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8855 fi
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8857 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8858 if test $ac_cv_lib_dl_dlopen = yes; then
8859   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8860 else
8861
8862     lt_cv_dlopen="dyld"
8863     lt_cv_dlopen_libs=
8864     lt_cv_dlopen_self=yes
8865
8866 fi
8867
8868    ;;
8869
8870   *)
8871     echo "$as_me:$LINENO: checking for shl_load" >&5
8872 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8873 if test "${ac_cv_func_shl_load+set}" = set; then
8874   echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876   cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h.  */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h.  */
8882 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8884 #define shl_load innocuous_shl_load
8885
8886 /* System header to define __stub macros and hopefully few prototypes,
8887     which can conflict with char shl_load (); below.
8888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8889     <limits.h> exists even on freestanding compilers.  */
8890
8891 #ifdef __STDC__
8892 # include <limits.h>
8893 #else
8894 # include <assert.h>
8895 #endif
8896
8897 #undef shl_load
8898
8899 /* Override any gcc2 internal prototype to avoid an error.  */
8900 #ifdef __cplusplus
8901 extern "C"
8902 {
8903 #endif
8904 /* We use char because int might match the return type of a gcc2
8905    builtin and then its argument prototype would still apply.  */
8906 char shl_load ();
8907 /* The GNU C library defines this for functions which it implements
8908     to always fail with ENOSYS.  Some functions are actually named
8909     something starting with __ and the normal name is an alias.  */
8910 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8911 choke me
8912 #else
8913 char (*f) () = shl_load;
8914 #endif
8915 #ifdef __cplusplus
8916 }
8917 #endif
8918
8919 int
8920 main ()
8921 {
8922 return f != shl_load;
8923   ;
8924   return 0;
8925 }
8926 _ACEOF
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929   (eval $ac_link) 2>conftest.er1
8930   ac_status=$?
8931   grep -v '^ *+' conftest.er1 >conftest.err
8932   rm -f conftest.er1
8933   cat conftest.err >&5
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } &&
8936          { ac_try='test -z "$ac_c_werror_flag"
8937                          || test ! -s conftest.err'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; } &&
8943          { ac_try='test -s conftest$ac_exeext'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; }; then
8949   ac_cv_func_shl_load=yes
8950 else
8951   echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8953
8954 ac_cv_func_shl_load=no
8955 fi
8956 rm -f conftest.err conftest.$ac_objext \
8957       conftest$ac_exeext conftest.$ac_ext
8958 fi
8959 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8960 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8961 if test $ac_cv_func_shl_load = yes; then
8962   lt_cv_dlopen="shl_load"
8963 else
8964   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8965 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8966 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8967   echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969   ac_check_lib_save_LIBS=$LIBS
8970 LIBS="-ldld  $LIBS"
8971 cat >conftest.$ac_ext <<_ACEOF
8972 /* confdefs.h.  */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h.  */
8977
8978 /* Override any gcc2 internal prototype to avoid an error.  */
8979 #ifdef __cplusplus
8980 extern "C"
8981 #endif
8982 /* We use char because int might match the return type of a gcc2
8983    builtin and then its argument prototype would still apply.  */
8984 char shl_load ();
8985 int
8986 main ()
8987 {
8988 shl_load ();
8989   ;
8990   return 0;
8991 }
8992 _ACEOF
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995   (eval $ac_link) 2>conftest.er1
8996   ac_status=$?
8997   grep -v '^ *+' conftest.er1 >conftest.err
8998   rm -f conftest.er1
8999   cat conftest.err >&5
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); } &&
9002          { ac_try='test -z "$ac_c_werror_flag"
9003                          || test ! -s conftest.err'
9004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005   (eval $ac_try) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }; } &&
9009          { ac_try='test -s conftest$ac_exeext'
9010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011   (eval $ac_try) 2>&5
9012   ac_status=$?
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   (exit $ac_status); }; }; then
9015   ac_cv_lib_dld_shl_load=yes
9016 else
9017   echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9019
9020 ac_cv_lib_dld_shl_load=no
9021 fi
9022 rm -f conftest.err conftest.$ac_objext \
9023       conftest$ac_exeext conftest.$ac_ext
9024 LIBS=$ac_check_lib_save_LIBS
9025 fi
9026 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9027 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9028 if test $ac_cv_lib_dld_shl_load = yes; then
9029   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9030 else
9031   echo "$as_me:$LINENO: checking for dlopen" >&5
9032 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9033 if test "${ac_cv_func_dlopen+set}" = set; then
9034   echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036   cat >conftest.$ac_ext <<_ACEOF
9037 /* confdefs.h.  */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h.  */
9042 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9044 #define dlopen innocuous_dlopen
9045
9046 /* System header to define __stub macros and hopefully few prototypes,
9047     which can conflict with char dlopen (); below.
9048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9049     <limits.h> exists even on freestanding compilers.  */
9050
9051 #ifdef __STDC__
9052 # include <limits.h>
9053 #else
9054 # include <assert.h>
9055 #endif
9056
9057 #undef dlopen
9058
9059 /* Override any gcc2 internal prototype to avoid an error.  */
9060 #ifdef __cplusplus
9061 extern "C"
9062 {
9063 #endif
9064 /* We use char because int might match the return type of a gcc2
9065    builtin and then its argument prototype would still apply.  */
9066 char dlopen ();
9067 /* The GNU C library defines this for functions which it implements
9068     to always fail with ENOSYS.  Some functions are actually named
9069     something starting with __ and the normal name is an alias.  */
9070 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9071 choke me
9072 #else
9073 char (*f) () = dlopen;
9074 #endif
9075 #ifdef __cplusplus
9076 }
9077 #endif
9078
9079 int
9080 main ()
9081 {
9082 return f != dlopen;
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089   (eval $ac_link) 2>conftest.er1
9090   ac_status=$?
9091   grep -v '^ *+' conftest.er1 >conftest.err
9092   rm -f conftest.er1
9093   cat conftest.err >&5
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); } &&
9096          { ac_try='test -z "$ac_c_werror_flag"
9097                          || test ! -s conftest.err'
9098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099   (eval $ac_try) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); }; } &&
9103          { ac_try='test -s conftest$ac_exeext'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   ac_cv_func_dlopen=yes
9110 else
9111   echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 ac_cv_func_dlopen=no
9115 fi
9116 rm -f conftest.err conftest.$ac_objext \
9117       conftest$ac_exeext conftest.$ac_ext
9118 fi
9119 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9120 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9121 if test $ac_cv_func_dlopen = yes; then
9122   lt_cv_dlopen="dlopen"
9123 else
9124   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9125 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9126 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9127   echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129   ac_check_lib_save_LIBS=$LIBS
9130 LIBS="-ldl  $LIBS"
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137
9138 /* Override any gcc2 internal prototype to avoid an error.  */
9139 #ifdef __cplusplus
9140 extern "C"
9141 #endif
9142 /* We use char because int might match the return type of a gcc2
9143    builtin and then its argument prototype would still apply.  */
9144 char dlopen ();
9145 int
9146 main ()
9147 {
9148 dlopen ();
9149   ;
9150   return 0;
9151 }
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155   (eval $ac_link) 2>conftest.er1
9156   ac_status=$?
9157   grep -v '^ *+' conftest.er1 >conftest.err
9158   rm -f conftest.er1
9159   cat conftest.err >&5
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); } &&
9162          { ac_try='test -z "$ac_c_werror_flag"
9163                          || test ! -s conftest.err'
9164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165   (eval $ac_try) 2>&5
9166   ac_status=$?
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); }; } &&
9169          { ac_try='test -s conftest$ac_exeext'
9170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171   (eval $ac_try) 2>&5
9172   ac_status=$?
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); }; }; then
9175   ac_cv_lib_dl_dlopen=yes
9176 else
9177   echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9179
9180 ac_cv_lib_dl_dlopen=no
9181 fi
9182 rm -f conftest.err conftest.$ac_objext \
9183       conftest$ac_exeext conftest.$ac_ext
9184 LIBS=$ac_check_lib_save_LIBS
9185 fi
9186 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9187 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9188 if test $ac_cv_lib_dl_dlopen = yes; then
9189   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9190 else
9191   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9192 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9193 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   ac_check_lib_save_LIBS=$LIBS
9197 LIBS="-lsvld  $LIBS"
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h.  */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h.  */
9204
9205 /* Override any gcc2 internal prototype to avoid an error.  */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 /* We use char because int might match the return type of a gcc2
9210    builtin and then its argument prototype would still apply.  */
9211 char dlopen ();
9212 int
9213 main ()
9214 {
9215 dlopen ();
9216   ;
9217   return 0;
9218 }
9219 _ACEOF
9220 rm -f conftest.$ac_objext conftest$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222   (eval $ac_link) 2>conftest.er1
9223   ac_status=$?
9224   grep -v '^ *+' conftest.er1 >conftest.err
9225   rm -f conftest.er1
9226   cat conftest.err >&5
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); } &&
9229          { ac_try='test -z "$ac_c_werror_flag"
9230                          || test ! -s conftest.err'
9231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232   (eval $ac_try) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; } &&
9236          { ac_try='test -s conftest$ac_exeext'
9237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238   (eval $ac_try) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); }; }; then
9242   ac_cv_lib_svld_dlopen=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 ac_cv_lib_svld_dlopen=no
9248 fi
9249 rm -f conftest.err conftest.$ac_objext \
9250       conftest$ac_exeext conftest.$ac_ext
9251 LIBS=$ac_check_lib_save_LIBS
9252 fi
9253 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9254 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9255 if test $ac_cv_lib_svld_dlopen = yes; then
9256   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9257 else
9258   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9259 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9260 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263   ac_check_lib_save_LIBS=$LIBS
9264 LIBS="-ldld  $LIBS"
9265 cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271
9272 /* Override any gcc2 internal prototype to avoid an error.  */
9273 #ifdef __cplusplus
9274 extern "C"
9275 #endif
9276 /* We use char because int might match the return type of a gcc2
9277    builtin and then its argument prototype would still apply.  */
9278 char dld_link ();
9279 int
9280 main ()
9281 {
9282 dld_link ();
9283   ;
9284   return 0;
9285 }
9286 _ACEOF
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289   (eval $ac_link) 2>conftest.er1
9290   ac_status=$?
9291   grep -v '^ *+' conftest.er1 >conftest.err
9292   rm -f conftest.er1
9293   cat conftest.err >&5
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); } &&
9296          { ac_try='test -z "$ac_c_werror_flag"
9297                          || test ! -s conftest.err'
9298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299   (eval $ac_try) 2>&5
9300   ac_status=$?
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); }; } &&
9303          { ac_try='test -s conftest$ac_exeext'
9304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305   (eval $ac_try) 2>&5
9306   ac_status=$?
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); }; }; then
9309   ac_cv_lib_dld_dld_link=yes
9310 else
9311   echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9313
9314 ac_cv_lib_dld_dld_link=no
9315 fi
9316 rm -f conftest.err conftest.$ac_objext \
9317       conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9319 fi
9320 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9321 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9322 if test $ac_cv_lib_dld_dld_link = yes; then
9323   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9324 fi
9325
9326
9327 fi
9328
9329
9330 fi
9331
9332
9333 fi
9334
9335
9336 fi
9337
9338
9339 fi
9340
9341     ;;
9342   esac
9343
9344   if test "x$lt_cv_dlopen" != xno; then
9345     enable_dlopen=yes
9346   else
9347     enable_dlopen=no
9348   fi
9349
9350   case $lt_cv_dlopen in
9351   dlopen)
9352     save_CPPFLAGS="$CPPFLAGS"
9353     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9354
9355     save_LDFLAGS="$LDFLAGS"
9356     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9357
9358     save_LIBS="$LIBS"
9359     LIBS="$lt_cv_dlopen_libs $LIBS"
9360
9361     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9362 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9363 if test "${lt_cv_dlopen_self+set}" = set; then
9364   echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366           if test "$cross_compiling" = yes; then :
9367   lt_cv_dlopen_self=cross
9368 else
9369   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9370   lt_status=$lt_dlunknown
9371   cat > conftest.$ac_ext <<EOF
9372 #line 9372 "configure"
9373 #include "confdefs.h"
9374
9375 #if HAVE_DLFCN_H
9376 #include <dlfcn.h>
9377 #endif
9378
9379 #include <stdio.h>
9380
9381 #ifdef RTLD_GLOBAL
9382 #  define LT_DLGLOBAL           RTLD_GLOBAL
9383 #else
9384 #  ifdef DL_GLOBAL
9385 #    define LT_DLGLOBAL         DL_GLOBAL
9386 #  else
9387 #    define LT_DLGLOBAL         0
9388 #  endif
9389 #endif
9390
9391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9392    find out it does not work in some platform. */
9393 #ifndef LT_DLLAZY_OR_NOW
9394 #  ifdef RTLD_LAZY
9395 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9396 #  else
9397 #    ifdef DL_LAZY
9398 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9399 #    else
9400 #      ifdef RTLD_NOW
9401 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9402 #      else
9403 #        ifdef DL_NOW
9404 #          define LT_DLLAZY_OR_NOW      DL_NOW
9405 #        else
9406 #          define LT_DLLAZY_OR_NOW      0
9407 #        endif
9408 #      endif
9409 #    endif
9410 #  endif
9411 #endif
9412
9413 #ifdef __cplusplus
9414 extern "C" void exit (int);
9415 #endif
9416
9417 void fnord() { int i=42;}
9418 int main ()
9419 {
9420   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9421   int status = $lt_dlunknown;
9422
9423   if (self)
9424     {
9425       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9426       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9427       /* dlclose (self); */
9428     }
9429   else
9430     puts (dlerror ());
9431
9432     exit (status);
9433 }
9434 EOF
9435   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436   (eval $ac_link) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9440     (./conftest; exit; ) >&5 2>/dev/null
9441     lt_status=$?
9442     case x$lt_status in
9443       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9444       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9445       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9446     esac
9447   else :
9448     # compilation failed
9449     lt_cv_dlopen_self=no
9450   fi
9451 fi
9452 rm -fr conftest*
9453
9454
9455 fi
9456 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9457 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9458
9459     if test "x$lt_cv_dlopen_self" = xyes; then
9460       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9461       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9462 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9463 if test "${lt_cv_dlopen_self_static+set}" = set; then
9464   echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466           if test "$cross_compiling" = yes; then :
9467   lt_cv_dlopen_self_static=cross
9468 else
9469   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9470   lt_status=$lt_dlunknown
9471   cat > conftest.$ac_ext <<EOF
9472 #line 9472 "configure"
9473 #include "confdefs.h"
9474
9475 #if HAVE_DLFCN_H
9476 #include <dlfcn.h>
9477 #endif
9478
9479 #include <stdio.h>
9480
9481 #ifdef RTLD_GLOBAL
9482 #  define LT_DLGLOBAL           RTLD_GLOBAL
9483 #else
9484 #  ifdef DL_GLOBAL
9485 #    define LT_DLGLOBAL         DL_GLOBAL
9486 #  else
9487 #    define LT_DLGLOBAL         0
9488 #  endif
9489 #endif
9490
9491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9492    find out it does not work in some platform. */
9493 #ifndef LT_DLLAZY_OR_NOW
9494 #  ifdef RTLD_LAZY
9495 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9496 #  else
9497 #    ifdef DL_LAZY
9498 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9499 #    else
9500 #      ifdef RTLD_NOW
9501 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9502 #      else
9503 #        ifdef DL_NOW
9504 #          define LT_DLLAZY_OR_NOW      DL_NOW
9505 #        else
9506 #          define LT_DLLAZY_OR_NOW      0
9507 #        endif
9508 #      endif
9509 #    endif
9510 #  endif
9511 #endif
9512
9513 #ifdef __cplusplus
9514 extern "C" void exit (int);
9515 #endif
9516
9517 void fnord() { int i=42;}
9518 int main ()
9519 {
9520   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9521   int status = $lt_dlunknown;
9522
9523   if (self)
9524     {
9525       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9526       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9527       /* dlclose (self); */
9528     }
9529   else
9530     puts (dlerror ());
9531
9532     exit (status);
9533 }
9534 EOF
9535   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536   (eval $ac_link) 2>&5
9537   ac_status=$?
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9540     (./conftest; exit; ) >&5 2>/dev/null
9541     lt_status=$?
9542     case x$lt_status in
9543       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9544       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9545       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9546     esac
9547   else :
9548     # compilation failed
9549     lt_cv_dlopen_self_static=no
9550   fi
9551 fi
9552 rm -fr conftest*
9553
9554
9555 fi
9556 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9557 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9558     fi
9559
9560     CPPFLAGS="$save_CPPFLAGS"
9561     LDFLAGS="$save_LDFLAGS"
9562     LIBS="$save_LIBS"
9563     ;;
9564   esac
9565
9566   case $lt_cv_dlopen_self in
9567   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9568   *) enable_dlopen_self=unknown ;;
9569   esac
9570
9571   case $lt_cv_dlopen_self_static in
9572   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9573   *) enable_dlopen_self_static=unknown ;;
9574   esac
9575 fi
9576
9577
9578 # Report which library types will actually be built
9579 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9580 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9581 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9582 echo "${ECHO_T}$can_build_shared" >&6
9583
9584 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9585 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9586 test "$can_build_shared" = "no" && enable_shared=no
9587
9588 # On AIX, shared libraries and static libraries use the same namespace, and
9589 # are all built from PIC.
9590 case $host_os in
9591 aix3*)
9592   test "$enable_shared" = yes && enable_static=no
9593   if test -n "$RANLIB"; then
9594     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9595     postinstall_cmds='$RANLIB $lib'
9596   fi
9597   ;;
9598
9599 aix4* | aix5*)
9600   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9601     test "$enable_shared" = yes && enable_static=no
9602   fi
9603     ;;
9604 esac
9605 echo "$as_me:$LINENO: result: $enable_shared" >&5
9606 echo "${ECHO_T}$enable_shared" >&6
9607
9608 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9609 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9610 # Make sure either enable_shared or enable_static is yes.
9611 test "$enable_shared" = yes || enable_static=yes
9612 echo "$as_me:$LINENO: result: $enable_static" >&5
9613 echo "${ECHO_T}$enable_static" >&6
9614
9615 # The else clause should only fire when bootstrapping the
9616 # libtool distribution, otherwise you forgot to ship ltmain.sh
9617 # with your package, and you will get complaints that there are
9618 # no rules to generate ltmain.sh.
9619 if test -f "$ltmain"; then
9620   # See if we are running on zsh, and set the options which allow our commands through
9621   # without removal of \ escapes.
9622   if test -n "${ZSH_VERSION+set}" ; then
9623     setopt NO_GLOB_SUBST
9624   fi
9625   # Now quote all the things that may contain metacharacters while being
9626   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9627   # variables and quote the copies for generation of the libtool script.
9628   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9629     SED SHELL STRIP \
9630     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9631     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9632     deplibs_check_method reload_flag reload_cmds need_locks \
9633     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9634     lt_cv_sys_global_symbol_to_c_name_address \
9635     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9636     old_postinstall_cmds old_postuninstall_cmds \
9637     compiler \
9638     CC \
9639     LD \
9640     lt_prog_compiler_wl \
9641     lt_prog_compiler_pic \
9642     lt_prog_compiler_static \
9643     lt_prog_compiler_no_builtin_flag \
9644     export_dynamic_flag_spec \
9645     thread_safe_flag_spec \
9646     whole_archive_flag_spec \
9647     enable_shared_with_static_runtimes \
9648     old_archive_cmds \
9649     old_archive_from_new_cmds \
9650     predep_objects \
9651     postdep_objects \
9652     predeps \
9653     postdeps \
9654     compiler_lib_search_path \
9655     archive_cmds \
9656     archive_expsym_cmds \
9657     postinstall_cmds \
9658     postuninstall_cmds \
9659     old_archive_from_expsyms_cmds \
9660     allow_undefined_flag \
9661     no_undefined_flag \
9662     export_symbols_cmds \
9663     hardcode_libdir_flag_spec \
9664     hardcode_libdir_flag_spec_ld \
9665     hardcode_libdir_separator \
9666     hardcode_automatic \
9667     module_cmds \
9668     module_expsym_cmds \
9669     lt_cv_prog_compiler_c_o \
9670     exclude_expsyms \
9671     include_expsyms; do
9672
9673     case $var in
9674     old_archive_cmds | \
9675     old_archive_from_new_cmds | \
9676     archive_cmds | \
9677     archive_expsym_cmds | \
9678     module_cmds | \
9679     module_expsym_cmds | \
9680     old_archive_from_expsyms_cmds | \
9681     export_symbols_cmds | \
9682     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9683     postinstall_cmds | postuninstall_cmds | \
9684     old_postinstall_cmds | old_postuninstall_cmds | \
9685     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9686       # Double-quote double-evaled strings.
9687       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9688       ;;
9689     *)
9690       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9691       ;;
9692     esac
9693   done
9694
9695   case $lt_echo in
9696   *'\$0 --fallback-echo"')
9697     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9698     ;;
9699   esac
9700
9701 cfgfile="${ofile}T"
9702   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9703   $rm -f "$cfgfile"
9704   { echo "$as_me:$LINENO: creating $ofile" >&5
9705 echo "$as_me: creating $ofile" >&6;}
9706
9707   cat <<__EOF__ >> "$cfgfile"
9708 #! $SHELL
9709
9710 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9711 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9712 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9713 #
9714 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9715 # Free Software Foundation, Inc.
9716 #
9717 # This file is part of GNU Libtool:
9718 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9719 #
9720 # This program is free software; you can redistribute it and/or modify
9721 # it under the terms of the GNU General Public License as published by
9722 # the Free Software Foundation; either version 2 of the License, or
9723 # (at your option) any later version.
9724 #
9725 # This program is distributed in the hope that it will be useful, but
9726 # WITHOUT ANY WARRANTY; without even the implied warranty of
9727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9728 # General Public License for more details.
9729 #
9730 # You should have received a copy of the GNU General Public License
9731 # along with this program; if not, write to the Free Software
9732 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9733 #
9734 # As a special exception to the GNU General Public License, if you
9735 # distribute this file as part of a program that contains a
9736 # configuration script generated by Autoconf, you may include it under
9737 # the same distribution terms that you use for the rest of that program.
9738
9739 # A sed program that does not truncate output.
9740 SED=$lt_SED
9741
9742 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9743 Xsed="$SED -e 1s/^X//"
9744
9745 # The HP-UX ksh and POSIX shell print the target directory to stdout
9746 # if CDPATH is set.
9747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9748
9749 # The names of the tagged configurations supported by this script.
9750 available_tags=
9751
9752 # ### BEGIN LIBTOOL CONFIG
9753
9754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9755
9756 # Shell to use when invoking shell scripts.
9757 SHELL=$lt_SHELL
9758
9759 # Whether or not to build shared libraries.
9760 build_libtool_libs=$enable_shared
9761
9762 # Whether or not to build static libraries.
9763 build_old_libs=$enable_static
9764
9765 # Whether or not to add -lc for building shared libraries.
9766 build_libtool_need_lc=$archive_cmds_need_lc
9767
9768 # Whether or not to disallow shared libs when runtime libs are static
9769 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9770
9771 # Whether or not to optimize for fast installation.
9772 fast_install=$enable_fast_install
9773
9774 # The host system.
9775 host_alias=$host_alias
9776 host=$host
9777 host_os=$host_os
9778
9779 # The build system.
9780 build_alias=$build_alias
9781 build=$build
9782 build_os=$build_os
9783
9784 # An echo program that does not interpret backslashes.
9785 echo=$lt_echo
9786
9787 # The archiver.
9788 AR=$lt_AR
9789 AR_FLAGS=$lt_AR_FLAGS
9790
9791 # A C compiler.
9792 LTCC=$lt_LTCC
9793
9794 # LTCC compiler flags.
9795 LTCFLAGS=$lt_LTCFLAGS
9796
9797 # A language-specific compiler.
9798 CC=$lt_compiler
9799
9800 # Is the compiler the GNU C compiler?
9801 with_gcc=$GCC
9802
9803 # An ERE matcher.
9804 EGREP=$lt_EGREP
9805
9806 # The linker used to build libraries.
9807 LD=$lt_LD
9808
9809 # Whether we need hard or soft links.
9810 LN_S=$lt_LN_S
9811
9812 # A BSD-compatible nm program.
9813 NM=$lt_NM
9814
9815 # A symbol stripping program
9816 STRIP=$lt_STRIP
9817
9818 # Used to examine libraries when file_magic_cmd begins "file"
9819 MAGIC_CMD=$MAGIC_CMD
9820
9821 # Used on cygwin: DLL creation program.
9822 DLLTOOL="$DLLTOOL"
9823
9824 # Used on cygwin: object dumper.
9825 OBJDUMP="$OBJDUMP"
9826
9827 # Used on cygwin: assembler.
9828 AS="$AS"
9829
9830 # The name of the directory that contains temporary libtool files.
9831 objdir=$objdir
9832
9833 # How to create reloadable object files.
9834 reload_flag=$lt_reload_flag
9835 reload_cmds=$lt_reload_cmds
9836
9837 # How to pass a linker flag through the compiler.
9838 wl=$lt_lt_prog_compiler_wl
9839
9840 # Object file suffix (normally "o").
9841 objext="$ac_objext"
9842
9843 # Old archive suffix (normally "a").
9844 libext="$libext"
9845
9846 # Shared library suffix (normally ".so").
9847 shrext_cmds='$shrext_cmds'
9848
9849 # Executable file suffix (normally "").
9850 exeext="$exeext"
9851
9852 # Additional compiler flags for building library objects.
9853 pic_flag=$lt_lt_prog_compiler_pic
9854 pic_mode=$pic_mode
9855
9856 # What is the maximum length of a command?
9857 max_cmd_len=$lt_cv_sys_max_cmd_len
9858
9859 # Does compiler simultaneously support -c and -o options?
9860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9861
9862 # Must we lock files when doing compilation?
9863 need_locks=$lt_need_locks
9864
9865 # Do we need the lib prefix for modules?
9866 need_lib_prefix=$need_lib_prefix
9867
9868 # Do we need a version for libraries?
9869 need_version=$need_version
9870
9871 # Whether dlopen is supported.
9872 dlopen_support=$enable_dlopen
9873
9874 # Whether dlopen of programs is supported.
9875 dlopen_self=$enable_dlopen_self
9876
9877 # Whether dlopen of statically linked programs is supported.
9878 dlopen_self_static=$enable_dlopen_self_static
9879
9880 # Compiler flag to prevent dynamic linking.
9881 link_static_flag=$lt_lt_prog_compiler_static
9882
9883 # Compiler flag to turn off builtin functions.
9884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9885
9886 # Compiler flag to allow reflexive dlopens.
9887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9888
9889 # Compiler flag to generate shared objects directly from archives.
9890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9891
9892 # Compiler flag to generate thread-safe objects.
9893 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9894
9895 # Library versioning type.
9896 version_type=$version_type
9897
9898 # Format of library name prefix.
9899 libname_spec=$lt_libname_spec
9900
9901 # List of archive names.  First name is the real one, the rest are links.
9902 # The last name is the one that the linker finds with -lNAME.
9903 library_names_spec=$lt_library_names_spec
9904
9905 # The coded name of the library, if different from the real name.
9906 soname_spec=$lt_soname_spec
9907
9908 # Commands used to build and install an old-style archive.
9909 RANLIB=$lt_RANLIB
9910 old_archive_cmds=$lt_old_archive_cmds
9911 old_postinstall_cmds=$lt_old_postinstall_cmds
9912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9913
9914 # Create an old-style archive from a shared archive.
9915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9916
9917 # Create a temporary old-style archive to link instead of a shared archive.
9918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9919
9920 # Commands used to build and install a shared archive.
9921 archive_cmds=$lt_archive_cmds
9922 archive_expsym_cmds=$lt_archive_expsym_cmds
9923 postinstall_cmds=$lt_postinstall_cmds
9924 postuninstall_cmds=$lt_postuninstall_cmds
9925
9926 # Commands used to build a loadable module (assumed same as above if empty)
9927 module_cmds=$lt_module_cmds
9928 module_expsym_cmds=$lt_module_expsym_cmds
9929
9930 # Commands to strip libraries.
9931 old_striplib=$lt_old_striplib
9932 striplib=$lt_striplib
9933
9934 # Dependencies to place before the objects being linked to create a
9935 # shared library.
9936 predep_objects=$lt_predep_objects
9937
9938 # Dependencies to place after the objects being linked to create a
9939 # shared library.
9940 postdep_objects=$lt_postdep_objects
9941
9942 # Dependencies to place before the objects being linked to create a
9943 # shared library.
9944 predeps=$lt_predeps
9945
9946 # Dependencies to place after the objects being linked to create a
9947 # shared library.
9948 postdeps=$lt_postdeps
9949
9950 # The library search path used internally by the compiler when linking
9951 # a shared library.
9952 compiler_lib_search_path=$lt_compiler_lib_search_path
9953
9954 # Method to check whether dependent libraries are shared objects.
9955 deplibs_check_method=$lt_deplibs_check_method
9956
9957 # Command to use when deplibs_check_method == file_magic.
9958 file_magic_cmd=$lt_file_magic_cmd
9959
9960 # Flag that allows shared libraries with undefined symbols to be built.
9961 allow_undefined_flag=$lt_allow_undefined_flag
9962
9963 # Flag that forces no undefined symbols.
9964 no_undefined_flag=$lt_no_undefined_flag
9965
9966 # Commands used to finish a libtool library installation in a directory.
9967 finish_cmds=$lt_finish_cmds
9968
9969 # Same as above, but a single script fragment to be evaled but not shown.
9970 finish_eval=$lt_finish_eval
9971
9972 # Take the output of nm and produce a listing of raw symbols and C names.
9973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9974
9975 # Transform the output of nm in a proper C declaration
9976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9977
9978 # Transform the output of nm in a C name address pair
9979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9980
9981 # This is the shared library runtime path variable.
9982 runpath_var=$runpath_var
9983
9984 # This is the shared library path variable.
9985 shlibpath_var=$shlibpath_var
9986
9987 # Is shlibpath searched before the hard-coded library search path?
9988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9989
9990 # How to hardcode a shared library path into an executable.
9991 hardcode_action=$hardcode_action
9992
9993 # Whether we should hardcode library paths into libraries.
9994 hardcode_into_libs=$hardcode_into_libs
9995
9996 # Flag to hardcode \$libdir into a binary during linking.
9997 # This must work even if \$libdir does not exist.
9998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9999
10000 # If ld is used when linking, flag to hardcode \$libdir into
10001 # a binary during linking. This must work even if \$libdir does
10002 # not exist.
10003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10004
10005 # Whether we need a single -rpath flag with a separated argument.
10006 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10007
10008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10009 # resulting binary.
10010 hardcode_direct=$hardcode_direct
10011
10012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10013 # resulting binary.
10014 hardcode_minus_L=$hardcode_minus_L
10015
10016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10017 # the resulting binary.
10018 hardcode_shlibpath_var=$hardcode_shlibpath_var
10019
10020 # Set to yes if building a shared library automatically hardcodes DIR into the library
10021 # and all subsequent libraries and executables linked against it.
10022 hardcode_automatic=$hardcode_automatic
10023
10024 # Variables whose values should be saved in libtool wrapper scripts and
10025 # restored at relink time.
10026 variables_saved_for_relink="$variables_saved_for_relink"
10027
10028 # Whether libtool must link a program against all its dependency libraries.
10029 link_all_deplibs=$link_all_deplibs
10030
10031 # Compile-time system search path for libraries
10032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10033
10034 # Run-time system search path for libraries
10035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10036
10037 # Fix the shell variable \$srcfile for the compiler.
10038 fix_srcfile_path="$fix_srcfile_path"
10039
10040 # Set to yes if exported symbols are required.
10041 always_export_symbols=$always_export_symbols
10042
10043 # The commands to list exported symbols.
10044 export_symbols_cmds=$lt_export_symbols_cmds
10045
10046 # The commands to extract the exported symbol list from a shared archive.
10047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10048
10049 # Symbols that should not be listed in the preloaded symbols.
10050 exclude_expsyms=$lt_exclude_expsyms
10051
10052 # Symbols that must always be exported.
10053 include_expsyms=$lt_include_expsyms
10054
10055 # ### END LIBTOOL CONFIG
10056
10057 __EOF__
10058
10059
10060   case $host_os in
10061   aix3*)
10062     cat <<\EOF >> "$cfgfile"
10063
10064 # AIX sometimes has problems with the GCC collect2 program.  For some
10065 # reason, if we set the COLLECT_NAMES environment variable, the problems
10066 # vanish in a puff of smoke.
10067 if test "X${COLLECT_NAMES+set}" != Xset; then
10068   COLLECT_NAMES=
10069   export COLLECT_NAMES
10070 fi
10071 EOF
10072     ;;
10073   esac
10074
10075   # We use sed instead of cat because bash on DJGPP gets confused if
10076   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10077   # text mode, it properly converts lines to CR/LF.  This bash problem
10078   # is reportedly fixed, but why not run on old versions too?
10079   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10080
10081   mv -f "$cfgfile" "$ofile" || \
10082     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10083   chmod +x "$ofile"
10084
10085 else
10086   # If there is no Makefile yet, we rely on a make rule to execute
10087   # `config.status --recheck' to rerun these tests and create the
10088   # libtool script then.
10089   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10090   if test -f "$ltmain_in"; then
10091     test -f Makefile && make "$ltmain"
10092   fi
10093 fi
10094
10095
10096 ac_ext=c
10097 ac_cpp='$CPP $CPPFLAGS'
10098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10101
10102 CC="$lt_save_CC"
10103
10104
10105 # Check whether --with-tags or --without-tags was given.
10106 if test "${with_tags+set}" = set; then
10107   withval="$with_tags"
10108   tagnames="$withval"
10109 fi;
10110
10111 if test -f "$ltmain" && test -n "$tagnames"; then
10112   if test ! -f "${ofile}"; then
10113     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10114 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10115   fi
10116
10117   if test -z "$LTCC"; then
10118     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10119     if test -z "$LTCC"; then
10120       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10121 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10122     else
10123       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10124 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10125     fi
10126   fi
10127   if test -z "$LTCFLAGS"; then
10128     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10129   fi
10130
10131   # Extract list of available tagged configurations in $ofile.
10132   # Note that this assumes the entire list is on one line.
10133   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10134
10135   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10136   for tagname in $tagnames; do
10137     IFS="$lt_save_ifs"
10138     # Check whether tagname contains only valid characters
10139     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10140     "") ;;
10141     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10142 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10143    { (exit 1); exit 1; }; }
10144         ;;
10145     esac
10146
10147     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10148     then
10149       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10150 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10151    { (exit 1); exit 1; }; }
10152     fi
10153
10154     # Update the list of available tags.
10155     if test -n "$tagname"; then
10156       echo appending configuration tag \"$tagname\" to $ofile
10157
10158       case $tagname in
10159       CXX)
10160         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10161             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10162             (test "X$CXX" != "Xg++"))) ; then
10163           ac_ext=cc
10164 ac_cpp='$CXXCPP $CPPFLAGS'
10165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10168
10169
10170
10171
10172 archive_cmds_need_lc_CXX=no
10173 allow_undefined_flag_CXX=
10174 always_export_symbols_CXX=no
10175 archive_expsym_cmds_CXX=
10176 export_dynamic_flag_spec_CXX=
10177 hardcode_direct_CXX=no
10178 hardcode_libdir_flag_spec_CXX=
10179 hardcode_libdir_flag_spec_ld_CXX=
10180 hardcode_libdir_separator_CXX=
10181 hardcode_minus_L_CXX=no
10182 hardcode_shlibpath_var_CXX=unsupported
10183 hardcode_automatic_CXX=no
10184 module_cmds_CXX=
10185 module_expsym_cmds_CXX=
10186 link_all_deplibs_CXX=unknown
10187 old_archive_cmds_CXX=$old_archive_cmds
10188 no_undefined_flag_CXX=
10189 whole_archive_flag_spec_CXX=
10190 enable_shared_with_static_runtimes_CXX=no
10191
10192 # Dependencies to place before and after the object being linked:
10193 predep_objects_CXX=
10194 postdep_objects_CXX=
10195 predeps_CXX=
10196 postdeps_CXX=
10197 compiler_lib_search_path_CXX=
10198
10199 # Source file extension for C++ test sources.
10200 ac_ext=cpp
10201
10202 # Object file extension for compiled C++ test sources.
10203 objext=o
10204 objext_CXX=$objext
10205
10206 # Code to be used in simple compile tests
10207 lt_simple_compile_test_code="int some_variable = 0;\n"
10208
10209 # Code to be used in simple link tests
10210 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10211
10212 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10213
10214 # If no C compiler was specified, use CC.
10215 LTCC=${LTCC-"$CC"}
10216
10217 # If no C compiler flags were specified, use CFLAGS.
10218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10219
10220 # Allow CC to be a program name with arguments.
10221 compiler=$CC
10222
10223
10224 # save warnings/boilerplate of simple test code
10225 ac_outfile=conftest.$ac_objext
10226 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10228 _lt_compiler_boilerplate=`cat conftest.err`
10229 $rm conftest*
10230
10231 ac_outfile=conftest.$ac_objext
10232 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10234 _lt_linker_boilerplate=`cat conftest.err`
10235 $rm conftest*
10236
10237
10238 # Allow CC to be a program name with arguments.
10239 lt_save_CC=$CC
10240 lt_save_LD=$LD
10241 lt_save_GCC=$GCC
10242 GCC=$GXX
10243 lt_save_with_gnu_ld=$with_gnu_ld
10244 lt_save_path_LD=$lt_cv_path_LD
10245 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10246   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10247 else
10248   $as_unset lt_cv_prog_gnu_ld
10249 fi
10250 if test -n "${lt_cv_path_LDCXX+set}"; then
10251   lt_cv_path_LD=$lt_cv_path_LDCXX
10252 else
10253   $as_unset lt_cv_path_LD
10254 fi
10255 test -z "${LDCXX+set}" || LD=$LDCXX
10256 CC=${CXX-"c++"}
10257 compiler=$CC
10258 compiler_CXX=$CC
10259 for cc_temp in $compiler""; do
10260   case $cc_temp in
10261     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10262     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10263     \-*) ;;
10264     *) break;;
10265   esac
10266 done
10267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10268
10269
10270 # We don't want -fno-exception wen compiling C++ code, so set the
10271 # no_builtin_flag separately
10272 if test "$GXX" = yes; then
10273   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10274 else
10275   lt_prog_compiler_no_builtin_flag_CXX=
10276 fi
10277
10278 if test "$GXX" = yes; then
10279   # Set up default GNU C++ configuration
10280
10281
10282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10283 if test "${with_gnu_ld+set}" = set; then
10284   withval="$with_gnu_ld"
10285   test "$withval" = no || with_gnu_ld=yes
10286 else
10287   with_gnu_ld=no
10288 fi;
10289 ac_prog=ld
10290 if test "$GCC" = yes; then
10291   # Check if gcc -print-prog-name=ld gives a path.
10292   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10294   case $host in
10295   *-*-mingw*)
10296     # gcc leaves a trailing carriage return which upsets mingw
10297     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10298   *)
10299     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10300   esac
10301   case $ac_prog in
10302     # Accept absolute paths.
10303     [\\/]* | ?:[\\/]*)
10304       re_direlt='/[^/][^/]*/\.\./'
10305       # Canonicalize the pathname of ld
10306       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10307       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10308         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10309       done
10310       test -z "$LD" && LD="$ac_prog"
10311       ;;
10312   "")
10313     # If it fails, then pretend we aren't using GCC.
10314     ac_prog=ld
10315     ;;
10316   *)
10317     # If it is relative, then search for the first ld in PATH.
10318     with_gnu_ld=unknown
10319     ;;
10320   esac
10321 elif test "$with_gnu_ld" = yes; then
10322   echo "$as_me:$LINENO: checking for GNU ld" >&5
10323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10324 else
10325   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10327 fi
10328 if test "${lt_cv_path_LD+set}" = set; then
10329   echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331   if test -z "$LD"; then
10332   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10333   for ac_dir in $PATH; do
10334     IFS="$lt_save_ifs"
10335     test -z "$ac_dir" && ac_dir=.
10336     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10337       lt_cv_path_LD="$ac_dir/$ac_prog"
10338       # Check to see if the program is GNU ld.  I'd rather use --version,
10339       # but apparently some variants of GNU ld only accept -v.
10340       # Break only if it was the GNU/non-GNU ld that we prefer.
10341       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10342       *GNU* | *'with BFD'*)
10343         test "$with_gnu_ld" != no && break
10344         ;;
10345       *)
10346         test "$with_gnu_ld" != yes && break
10347         ;;
10348       esac
10349     fi
10350   done
10351   IFS="$lt_save_ifs"
10352 else
10353   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10354 fi
10355 fi
10356
10357 LD="$lt_cv_path_LD"
10358 if test -n "$LD"; then
10359   echo "$as_me:$LINENO: result: $LD" >&5
10360 echo "${ECHO_T}$LD" >&6
10361 else
10362   echo "$as_me:$LINENO: result: no" >&5
10363 echo "${ECHO_T}no" >&6
10364 fi
10365 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10366 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10367    { (exit 1); exit 1; }; }
10368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10370 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10371   echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10374 case `$LD -v 2>&1 </dev/null` in
10375 *GNU* | *'with BFD'*)
10376   lt_cv_prog_gnu_ld=yes
10377   ;;
10378 *)
10379   lt_cv_prog_gnu_ld=no
10380   ;;
10381 esac
10382 fi
10383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10385 with_gnu_ld=$lt_cv_prog_gnu_ld
10386
10387
10388
10389   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10390   # archiving commands below assume that GNU ld is being used.
10391   if test "$with_gnu_ld" = yes; then
10392     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10393     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'
10394
10395     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10396     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10397
10398     # If archive_cmds runs LD, not CC, wlarc should be empty
10399     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10400     #     investigate it a little bit more. (MM)
10401     wlarc='${wl}'
10402
10403     # ancient GNU ld didn't support --whole-archive et. al.
10404     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10405         grep 'no-whole-archive' > /dev/null; then
10406       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10407     else
10408       whole_archive_flag_spec_CXX=
10409     fi
10410   else
10411     with_gnu_ld=no
10412     wlarc=
10413
10414     # A generic and very simple default shared library creation
10415     # command for GNU C++ for the case where it uses the native
10416     # linker, instead of GNU ld.  If possible, this setting should
10417     # overridden to take advantage of the native linker features on
10418     # the platform it is being used on.
10419     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10420   fi
10421
10422   # Commands to make compiler produce verbose output that lists
10423   # what "hidden" libraries, object files and flags are used when
10424   # linking a shared library.
10425   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10426
10427 else
10428   GXX=no
10429   with_gnu_ld=no
10430   wlarc=
10431 fi
10432
10433 # PORTME: fill in a description of your system's C++ link characteristics
10434 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10435 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10436 ld_shlibs_CXX=yes
10437 case $host_os in
10438   aix3*)
10439     # FIXME: insert proper C++ library support
10440     ld_shlibs_CXX=no
10441     ;;
10442   aix4* | aix5*)
10443     if test "$host_cpu" = ia64; then
10444       # On IA64, the linker does run time linking by default, so we don't
10445       # have to do anything special.
10446       aix_use_runtimelinking=no
10447       exp_sym_flag='-Bexport'
10448       no_entry_flag=""
10449     else
10450       aix_use_runtimelinking=no
10451
10452       # Test if we are trying to use run time linking or normal
10453       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10454       # need to do runtime linking.
10455       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10456         for ld_flag in $LDFLAGS; do
10457           case $ld_flag in
10458           *-brtl*)
10459             aix_use_runtimelinking=yes
10460             break
10461             ;;
10462           esac
10463         done
10464         ;;
10465       esac
10466
10467       exp_sym_flag='-bexport'
10468       no_entry_flag='-bnoentry'
10469     fi
10470
10471     # When large executables or shared objects are built, AIX ld can
10472     # have problems creating the table of contents.  If linking a library
10473     # or program results in "error TOC overflow" add -mminimal-toc to
10474     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10475     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10476
10477     archive_cmds_CXX=''
10478     hardcode_direct_CXX=yes
10479     hardcode_libdir_separator_CXX=':'
10480     link_all_deplibs_CXX=yes
10481
10482     if test "$GXX" = yes; then
10483       case $host_os in aix4.[012]|aix4.[012].*)
10484       # We only want to do this on AIX 4.2 and lower, the check
10485       # below for broken collect2 doesn't work under 4.3+
10486         collect2name=`${CC} -print-prog-name=collect2`
10487         if test -f "$collect2name" && \
10488            strings "$collect2name" | grep resolve_lib_name >/dev/null
10489         then
10490           # We have reworked collect2
10491           hardcode_direct_CXX=yes
10492         else
10493           # We have old collect2
10494           hardcode_direct_CXX=unsupported
10495           # It fails to find uninstalled libraries when the uninstalled
10496           # path is not listed in the libpath.  Setting hardcode_minus_L
10497           # to unsupported forces relinking
10498           hardcode_minus_L_CXX=yes
10499           hardcode_libdir_flag_spec_CXX='-L$libdir'
10500           hardcode_libdir_separator_CXX=
10501         fi
10502         ;;
10503       esac
10504       shared_flag='-shared'
10505       if test "$aix_use_runtimelinking" = yes; then
10506         shared_flag="$shared_flag "'${wl}-G'
10507       fi
10508     else
10509       # not using gcc
10510       if test "$host_cpu" = ia64; then
10511         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10512         # chokes on -Wl,-G. The following line is correct:
10513         shared_flag='-G'
10514       else
10515         if test "$aix_use_runtimelinking" = yes; then
10516           shared_flag='${wl}-G'
10517         else
10518           shared_flag='${wl}-bM:SRE'
10519         fi
10520       fi
10521     fi
10522
10523     # It seems that -bexpall does not export symbols beginning with
10524     # underscore (_), so it is better to generate a list of symbols to export.
10525     always_export_symbols_CXX=yes
10526     if test "$aix_use_runtimelinking" = yes; then
10527       # Warning - without using the other runtime loading flags (-brtl),
10528       # -berok will link without error, but may produce a broken library.
10529       allow_undefined_flag_CXX='-berok'
10530       # Determine the default libpath from the value encoded in an empty executable.
10531       cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537
10538 int
10539 main ()
10540 {
10541
10542   ;
10543   return 0;
10544 }
10545 _ACEOF
10546 rm -f conftest.$ac_objext conftest$ac_exeext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10548   (eval $ac_link) 2>conftest.er1
10549   ac_status=$?
10550   grep -v '^ *+' conftest.er1 >conftest.err
10551   rm -f conftest.er1
10552   cat conftest.err >&5
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } &&
10555          { ac_try='test -z "$ac_cxx_werror_flag"
10556                          || test ! -s conftest.err'
10557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558   (eval $ac_try) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; } &&
10562          { ac_try='test -s conftest$ac_exeext'
10563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564   (eval $ac_try) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }; then
10568
10569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10570 }'`
10571 # Check for a 64-bit object if we didn't find anything.
10572 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; }
10573 }'`; fi
10574 else
10575   echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578 fi
10579 rm -f conftest.err conftest.$ac_objext \
10580       conftest$ac_exeext conftest.$ac_ext
10581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10582
10583       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10584
10585       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10586      else
10587       if test "$host_cpu" = ia64; then
10588         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10589         allow_undefined_flag_CXX="-z nodefs"
10590         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10591       else
10592         # Determine the default libpath from the value encoded in an empty executable.
10593         cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h.  */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h.  */
10599
10600 int
10601 main ()
10602 {
10603
10604   ;
10605   return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610   (eval $ac_link) 2>conftest.er1
10611   ac_status=$?
10612   grep -v '^ *+' conftest.er1 >conftest.err
10613   rm -f conftest.er1
10614   cat conftest.err >&5
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } &&
10617          { ac_try='test -z "$ac_cxx_werror_flag"
10618                          || test ! -s conftest.err'
10619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620   (eval $ac_try) 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); }; } &&
10624          { ac_try='test -s conftest$ac_exeext'
10625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626   (eval $ac_try) 2>&5
10627   ac_status=$?
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); }; }; then
10630
10631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10632 }'`
10633 # Check for a 64-bit object if we didn't find anything.
10634 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; }
10635 }'`; fi
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640 fi
10641 rm -f conftest.err conftest.$ac_objext \
10642       conftest$ac_exeext conftest.$ac_ext
10643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10644
10645         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10646         # Warning - without using the other run time loading flags,
10647         # -berok will link without error, but may produce a broken library.
10648         no_undefined_flag_CXX=' ${wl}-bernotok'
10649         allow_undefined_flag_CXX=' ${wl}-berok'
10650         # Exported symbols can be pulled into shared objects from archives
10651         whole_archive_flag_spec_CXX='$convenience'
10652         archive_cmds_need_lc_CXX=yes
10653         # This is similar to how AIX traditionally builds its shared libraries.
10654         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10655       fi
10656     fi
10657     ;;
10658
10659   beos*)
10660     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10661       allow_undefined_flag_CXX=unsupported
10662       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10663       # support --undefined.  This deserves some investigation.  FIXME
10664       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10665     else
10666       ld_shlibs_CXX=no
10667     fi
10668     ;;
10669
10670   chorus*)
10671     case $cc_basename in
10672       *)
10673         # FIXME: insert proper C++ library support
10674         ld_shlibs_CXX=no
10675         ;;
10676     esac
10677     ;;
10678
10679   cygwin* | mingw* | pw32*)
10680     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10681     # as there is no search path for DLLs.
10682     hardcode_libdir_flag_spec_CXX='-L$libdir'
10683     allow_undefined_flag_CXX=unsupported
10684     always_export_symbols_CXX=no
10685     enable_shared_with_static_runtimes_CXX=yes
10686
10687     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10688       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10689       # If the export-symbols file already is a .def file (1st line
10690       # is EXPORTS), use it as is; otherwise, prepend...
10691       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10692         cp $export_symbols $output_objdir/$soname.def;
10693       else
10694         echo EXPORTS > $output_objdir/$soname.def;
10695         cat $export_symbols >> $output_objdir/$soname.def;
10696       fi~
10697       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10698     else
10699       ld_shlibs_CXX=no
10700     fi
10701   ;;
10702       darwin* | rhapsody*)
10703         case $host_os in
10704         rhapsody* | darwin1.[012])
10705          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10706          ;;
10707        *) # Darwin 1.3 on
10708          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10709            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10710          else
10711            case ${MACOSX_DEPLOYMENT_TARGET} in
10712              10.[012])
10713                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10714                ;;
10715              10.*)
10716                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10717                ;;
10718            esac
10719          fi
10720          ;;
10721         esac
10722       archive_cmds_need_lc_CXX=no
10723       hardcode_direct_CXX=no
10724       hardcode_automatic_CXX=yes
10725       hardcode_shlibpath_var_CXX=unsupported
10726       whole_archive_flag_spec_CXX=''
10727       link_all_deplibs_CXX=yes
10728
10729     if test "$GXX" = yes ; then
10730       lt_int_apple_cc_single_mod=no
10731       output_verbose_link_cmd='echo'
10732       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10733        lt_int_apple_cc_single_mod=yes
10734       fi
10735       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10736        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10737       else
10738           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10739         fi
10740         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10741         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10742           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10743             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}'
10744           else
10745             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10746           fi
10747             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}'
10748       else
10749       case $cc_basename in
10750         xlc*)
10751          output_verbose_link_cmd='echo'
10752           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10753           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10754           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10755           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10756           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}'
10757           ;;
10758        *)
10759          ld_shlibs_CXX=no
10760           ;;
10761       esac
10762       fi
10763         ;;
10764
10765   dgux*)
10766     case $cc_basename in
10767       ec++*)
10768         # FIXME: insert proper C++ library support
10769         ld_shlibs_CXX=no
10770         ;;
10771       ghcx*)
10772         # Green Hills C++ Compiler
10773         # FIXME: insert proper C++ library support
10774         ld_shlibs_CXX=no
10775         ;;
10776       *)
10777         # FIXME: insert proper C++ library support
10778         ld_shlibs_CXX=no
10779         ;;
10780     esac
10781     ;;
10782   freebsd[12]*)
10783     # C++ shared libraries reported to be fairly broken before switch to ELF
10784     ld_shlibs_CXX=no
10785     ;;
10786   freebsd-elf*)
10787     archive_cmds_need_lc_CXX=no
10788     ;;
10789   freebsd* | kfreebsd*-gnu | dragonfly*)
10790     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10791     # conventions
10792     ld_shlibs_CXX=yes
10793     ;;
10794   gnu*)
10795     ;;
10796   hpux9*)
10797     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10798     hardcode_libdir_separator_CXX=:
10799     export_dynamic_flag_spec_CXX='${wl}-E'
10800     hardcode_direct_CXX=yes
10801     hardcode_minus_L_CXX=yes # Not in the search PATH,
10802                                 # but as the default
10803                                 # location of the library.
10804
10805     case $cc_basename in
10806     CC*)
10807       # FIXME: insert proper C++ library support
10808       ld_shlibs_CXX=no
10809       ;;
10810     aCC*)
10811       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'
10812       # Commands to make compiler produce verbose output that lists
10813       # what "hidden" libraries, object files and flags are used when
10814       # linking a shared library.
10815       #
10816       # There doesn't appear to be a way to prevent this compiler from
10817       # explicitly linking system object files so we need to strip them
10818       # from the output so that they don't get included in the library
10819       # dependencies.
10820       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'
10821       ;;
10822     *)
10823       if test "$GXX" = yes; then
10824         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'
10825       else
10826         # FIXME: insert proper C++ library support
10827         ld_shlibs_CXX=no
10828       fi
10829       ;;
10830     esac
10831     ;;
10832   hpux10*|hpux11*)
10833     if test $with_gnu_ld = no; then
10834       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10835       hardcode_libdir_separator_CXX=:
10836
10837       case $host_cpu in
10838       hppa*64*|ia64*)
10839         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10840         ;;
10841       *)
10842         export_dynamic_flag_spec_CXX='${wl}-E'
10843         ;;
10844       esac
10845     fi
10846     case $host_cpu in
10847     hppa*64*|ia64*)
10848       hardcode_direct_CXX=no
10849       hardcode_shlibpath_var_CXX=no
10850       ;;
10851     *)
10852       hardcode_direct_CXX=yes
10853       hardcode_minus_L_CXX=yes # Not in the search PATH,
10854                                               # but as the default
10855                                               # location of the library.
10856       ;;
10857     esac
10858
10859     case $cc_basename in
10860       CC*)
10861         # FIXME: insert proper C++ library support
10862         ld_shlibs_CXX=no
10863         ;;
10864       aCC*)
10865         case $host_cpu in
10866         hppa*64*)
10867           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10868           ;;
10869         ia64*)
10870           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10871           ;;
10872         *)
10873           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10874           ;;
10875         esac
10876         # Commands to make compiler produce verbose output that lists
10877         # what "hidden" libraries, object files and flags are used when
10878         # linking a shared library.
10879         #
10880         # There doesn't appear to be a way to prevent this compiler from
10881         # explicitly linking system object files so we need to strip them
10882         # from the output so that they don't get included in the library
10883         # dependencies.
10884         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'
10885         ;;
10886       *)
10887         if test "$GXX" = yes; then
10888           if test $with_gnu_ld = no; then
10889             case $host_cpu in
10890             hppa*64*)
10891               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10892               ;;
10893             ia64*)
10894               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10895               ;;
10896             *)
10897               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'
10898               ;;
10899             esac
10900           fi
10901         else
10902           # FIXME: insert proper C++ library support
10903           ld_shlibs_CXX=no
10904         fi
10905         ;;
10906     esac
10907     ;;
10908   interix3*)
10909     hardcode_direct_CXX=no
10910     hardcode_shlibpath_var_CXX=no
10911     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10912     export_dynamic_flag_spec_CXX='${wl}-E'
10913     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10914     # Instead, shared libraries are loaded at an image base (0x10000000 by
10915     # default) and relocated if they conflict, which is a slow very memory
10916     # consuming and fragmenting process.  To avoid this, we pick a random,
10917     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10918     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10919     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10920     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10921     ;;
10922   irix5* | irix6*)
10923     case $cc_basename in
10924       CC*)
10925         # SGI C++
10926         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10927
10928         # Archives containing C++ object files must be created using
10929         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10930         # necessary to make sure instantiated templates are included
10931         # in the archive.
10932         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10933         ;;
10934       *)
10935         if test "$GXX" = yes; then
10936           if test "$with_gnu_ld" = no; then
10937             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10938           else
10939             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'
10940           fi
10941         fi
10942         link_all_deplibs_CXX=yes
10943         ;;
10944     esac
10945     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10946     hardcode_libdir_separator_CXX=:
10947     ;;
10948   linux*)
10949     case $cc_basename in
10950       KCC*)
10951         # Kuck and Associates, Inc. (KAI) C++ Compiler
10952
10953         # KCC will only create a shared library if the output file
10954         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10955         # to its proper name (with version) after linking.
10956         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'
10957         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'
10958         # Commands to make compiler produce verbose output that lists
10959         # what "hidden" libraries, object files and flags are used when
10960         # linking a shared library.
10961         #
10962         # There doesn't appear to be a way to prevent this compiler from
10963         # explicitly linking system object files so we need to strip them
10964         # from the output so that they don't get included in the library
10965         # dependencies.
10966         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'
10967
10968         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10969         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10970
10971         # Archives containing C++ object files must be created using
10972         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10973         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10974         ;;
10975       icpc*)
10976         # Intel C++
10977         with_gnu_ld=yes
10978         # version 8.0 and above of icpc choke on multiply defined symbols
10979         # if we add $predep_objects and $postdep_objects, however 7.1 and
10980         # earlier do not add the objects themselves.
10981         case `$CC -V 2>&1` in
10982         *"Version 7."*)
10983           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984           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'
10985           ;;
10986         *)  # Version 8.0 or newer
10987           tmp_idyn=
10988           case $host_cpu in
10989             ia64*) tmp_idyn=' -i_dynamic';;
10990           esac
10991           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10992           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10993           ;;
10994         esac
10995         archive_cmds_need_lc_CXX=no
10996         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10997         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10998         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10999         ;;
11000       pgCC*)
11001         # Portland Group C++ compiler
11002         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11003         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11004
11005         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11006         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11007         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11008         ;;
11009       cxx*)
11010         # Compaq C++
11011         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11012         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'
11013
11014         runpath_var=LD_RUN_PATH
11015         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11016         hardcode_libdir_separator_CXX=:
11017
11018         # Commands to make compiler produce verbose output that lists
11019         # what "hidden" libraries, object files and flags are used when
11020         # linking a shared library.
11021         #
11022         # There doesn't appear to be a way to prevent this compiler from
11023         # explicitly linking system object files so we need to strip them
11024         # from the output so that they don't get included in the library
11025         # dependencies.
11026         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'
11027         ;;
11028     esac
11029     ;;
11030   lynxos*)
11031     # FIXME: insert proper C++ library support
11032     ld_shlibs_CXX=no
11033     ;;
11034   m88k*)
11035     # FIXME: insert proper C++ library support
11036     ld_shlibs_CXX=no
11037     ;;
11038   mvs*)
11039     case $cc_basename in
11040       cxx*)
11041         # FIXME: insert proper C++ library support
11042         ld_shlibs_CXX=no
11043         ;;
11044       *)
11045         # FIXME: insert proper C++ library support
11046         ld_shlibs_CXX=no
11047         ;;
11048     esac
11049     ;;
11050   netbsd*)
11051     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11052       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11053       wlarc=
11054       hardcode_libdir_flag_spec_CXX='-R$libdir'
11055       hardcode_direct_CXX=yes
11056       hardcode_shlibpath_var_CXX=no
11057     fi
11058     # Workaround some broken pre-1.5 toolchains
11059     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11060     ;;
11061   openbsd2*)
11062     # C++ shared libraries are fairly broken
11063     ld_shlibs_CXX=no
11064     ;;
11065   openbsd*)
11066     hardcode_direct_CXX=yes
11067     hardcode_shlibpath_var_CXX=no
11068     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11069     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11070     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11071       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11072       export_dynamic_flag_spec_CXX='${wl}-E'
11073       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11074     fi
11075     output_verbose_link_cmd='echo'
11076     ;;
11077   osf3*)
11078     case $cc_basename in
11079       KCC*)
11080         # Kuck and Associates, Inc. (KAI) C++ Compiler
11081
11082         # KCC will only create a shared library if the output file
11083         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11084         # to its proper name (with version) after linking.
11085         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'
11086
11087         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11088         hardcode_libdir_separator_CXX=:
11089
11090         # Archives containing C++ object files must be created using
11091         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11092         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11093
11094         ;;
11095       RCC*)
11096         # Rational C++ 2.4.1
11097         # FIXME: insert proper C++ library support
11098         ld_shlibs_CXX=no
11099         ;;
11100       cxx*)
11101         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11102         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11103
11104         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11105         hardcode_libdir_separator_CXX=:
11106
11107         # Commands to make compiler produce verbose output that lists
11108         # what "hidden" libraries, object files and flags are used when
11109         # linking a shared library.
11110         #
11111         # There doesn't appear to be a way to prevent this compiler from
11112         # explicitly linking system object files so we need to strip them
11113         # from the output so that they don't get included in the library
11114         # dependencies.
11115         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'
11116         ;;
11117       *)
11118         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11119           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11120           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11121
11122           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11123           hardcode_libdir_separator_CXX=:
11124
11125           # Commands to make compiler produce verbose output that lists
11126           # what "hidden" libraries, object files and flags are used when
11127           # linking a shared library.
11128           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11129
11130         else
11131           # FIXME: insert proper C++ library support
11132           ld_shlibs_CXX=no
11133         fi
11134         ;;
11135     esac
11136     ;;
11137   osf4* | osf5*)
11138     case $cc_basename in
11139       KCC*)
11140         # Kuck and Associates, Inc. (KAI) C++ Compiler
11141
11142         # KCC will only create a shared library if the output file
11143         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11144         # to its proper name (with version) after linking.
11145         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'
11146
11147         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11148         hardcode_libdir_separator_CXX=:
11149
11150         # Archives containing C++ object files must be created using
11151         # the KAI C++ compiler.
11152         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11153         ;;
11154       RCC*)
11155         # Rational C++ 2.4.1
11156         # FIXME: insert proper C++ library support
11157         ld_shlibs_CXX=no
11158         ;;
11159       cxx*)
11160         allow_undefined_flag_CXX=' -expect_unresolved \*'
11161         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11162         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11163           echo "-hidden">> $lib.exp~
11164           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11165           $rm $lib.exp'
11166
11167         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11168         hardcode_libdir_separator_CXX=:
11169
11170         # Commands to make compiler produce verbose output that lists
11171         # what "hidden" libraries, object files and flags are used when
11172         # linking a shared library.
11173         #
11174         # There doesn't appear to be a way to prevent this compiler from
11175         # explicitly linking system object files so we need to strip them
11176         # from the output so that they don't get included in the library
11177         # dependencies.
11178         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'
11179         ;;
11180       *)
11181         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11182           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11183          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11184
11185           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11186           hardcode_libdir_separator_CXX=:
11187
11188           # Commands to make compiler produce verbose output that lists
11189           # what "hidden" libraries, object files and flags are used when
11190           # linking a shared library.
11191           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11192
11193         else
11194           # FIXME: insert proper C++ library support
11195           ld_shlibs_CXX=no
11196         fi
11197         ;;
11198     esac
11199     ;;
11200   psos*)
11201     # FIXME: insert proper C++ library support
11202     ld_shlibs_CXX=no
11203     ;;
11204   sunos4*)
11205     case $cc_basename in
11206       CC*)
11207         # Sun C++ 4.x
11208         # FIXME: insert proper C++ library support
11209         ld_shlibs_CXX=no
11210         ;;
11211       lcc*)
11212         # Lucid
11213         # FIXME: insert proper C++ library support
11214         ld_shlibs_CXX=no
11215         ;;
11216       *)
11217         # FIXME: insert proper C++ library support
11218         ld_shlibs_CXX=no
11219         ;;
11220     esac
11221     ;;
11222   solaris*)
11223     case $cc_basename in
11224       CC*)
11225         # Sun C++ 4.2, 5.x and Centerline C++
11226         archive_cmds_need_lc_CXX=yes
11227         no_undefined_flag_CXX=' -zdefs'
11228         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11229         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11230         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11231
11232         hardcode_libdir_flag_spec_CXX='-R$libdir'
11233         hardcode_shlibpath_var_CXX=no
11234         case $host_os in
11235           solaris2.[0-5] | solaris2.[0-5].*) ;;
11236           *)
11237             # The C++ compiler is used as linker so we must use $wl
11238             # flag to pass the commands to the underlying system
11239             # linker. We must also pass each convience library through
11240             # to the system linker between allextract/defaultextract.
11241             # The C++ compiler will combine linker options so we
11242             # cannot just pass the convience library names through
11243             # without $wl.
11244             # Supported since Solaris 2.6 (maybe 2.5.1?)
11245             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11246             ;;
11247         esac
11248         link_all_deplibs_CXX=yes
11249
11250         output_verbose_link_cmd='echo'
11251
11252         # Archives containing C++ object files must be created using
11253         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11254         # necessary to make sure instantiated templates are included
11255         # in the archive.
11256         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11257         ;;
11258       gcx*)
11259         # Green Hills C++ Compiler
11260         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11261
11262         # The C++ compiler must be used to create the archive.
11263         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11264         ;;
11265       *)
11266         # GNU C++ compiler with Solaris linker
11267         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11268           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11269           if $CC --version | grep -v '^2\.7' > /dev/null; then
11270             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11271             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11272                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11273
11274             # Commands to make compiler produce verbose output that lists
11275             # what "hidden" libraries, object files and flags are used when
11276             # linking a shared library.
11277             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11278           else
11279             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11280             # platform.
11281             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11282             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11283                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11284
11285             # Commands to make compiler produce verbose output that lists
11286             # what "hidden" libraries, object files and flags are used when
11287             # linking a shared library.
11288             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11289           fi
11290
11291           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11292         fi
11293         ;;
11294     esac
11295     ;;
11296   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11297     no_undefined_flag_CXX='${wl}-z,text'
11298     archive_cmds_need_lc_CXX=no
11299     hardcode_shlibpath_var_CXX=no
11300     runpath_var='LD_RUN_PATH'
11301
11302     case $cc_basename in
11303       CC*)
11304         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11305         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306         ;;
11307       *)
11308         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310         ;;
11311     esac
11312     ;;
11313   sysv5* | sco3.2v5* | sco5v6*)
11314     # Note: We can NOT use -z defs as we might desire, because we do not
11315     # link with -lc, and that would cause any symbols used from libc to
11316     # always be unresolved, which means just about no library would
11317     # ever link correctly.  If we're not using GNU ld we use -z text
11318     # though, which does catch some bad symbols but isn't as heavy-handed
11319     # as -z defs.
11320     # For security reasons, it is highly recommended that you always
11321     # use absolute paths for naming shared libraries, and exclude the
11322     # DT_RUNPATH tag from executables and libraries.  But doing so
11323     # requires that you compile everything twice, which is a pain.
11324     # So that behaviour is only enabled if SCOABSPATH is set to a
11325     # non-empty value in the environment.  Most likely only useful for
11326     # creating official distributions of packages.
11327     # This is a hack until libtool officially supports absolute path
11328     # names for shared libraries.
11329     no_undefined_flag_CXX='${wl}-z,text'
11330     allow_undefined_flag_CXX='${wl}-z,nodefs'
11331     archive_cmds_need_lc_CXX=no
11332     hardcode_shlibpath_var_CXX=no
11333     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11334     hardcode_libdir_separator_CXX=':'
11335     link_all_deplibs_CXX=yes
11336     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11337     runpath_var='LD_RUN_PATH'
11338
11339     case $cc_basename in
11340       CC*)
11341         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11342         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11343         ;;
11344       *)
11345         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11346         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11347         ;;
11348     esac
11349     ;;
11350   tandem*)
11351     case $cc_basename in
11352       NCC*)
11353         # NonStop-UX NCC 3.20
11354         # FIXME: insert proper C++ library support
11355         ld_shlibs_CXX=no
11356         ;;
11357       *)
11358         # FIXME: insert proper C++ library support
11359         ld_shlibs_CXX=no
11360         ;;
11361     esac
11362     ;;
11363   vxworks*)
11364     # FIXME: insert proper C++ library support
11365     ld_shlibs_CXX=no
11366     ;;
11367   *)
11368     # FIXME: insert proper C++ library support
11369     ld_shlibs_CXX=no
11370     ;;
11371 esac
11372 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11373 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11374 test "$ld_shlibs_CXX" = no && can_build_shared=no
11375
11376 GCC_CXX="$GXX"
11377 LD_CXX="$LD"
11378
11379 ## CAVEAT EMPTOR:
11380 ## There is no encapsulation within the following macros, do not change
11381 ## the running order or otherwise move them around unless you know exactly
11382 ## what you are doing...
11383
11384 cat > conftest.$ac_ext <<EOF
11385 class Foo
11386 {
11387 public:
11388   Foo (void) { a = 0; }
11389 private:
11390   int a;
11391 };
11392 EOF
11393
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395   (eval $ac_compile) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; then
11399   # Parse the compiler output and extract the necessary
11400   # objects, libraries and library flags.
11401
11402   # Sentinel used to keep track of whether or not we are before
11403   # the conftest object file.
11404   pre_test_object_deps_done=no
11405
11406   # The `*' in the case matches for architectures that use `case' in
11407   # $output_verbose_cmd can trigger glob expansion during the loop
11408   # eval without this substitution.
11409   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11410
11411   for p in `eval $output_verbose_link_cmd`; do
11412     case $p in
11413
11414     -L* | -R* | -l*)
11415        # Some compilers place space between "-{L,R}" and the path.
11416        # Remove the space.
11417        if test $p = "-L" \
11418           || test $p = "-R"; then
11419          prev=$p
11420          continue
11421        else
11422          prev=
11423        fi
11424
11425        if test "$pre_test_object_deps_done" = no; then
11426          case $p in
11427          -L* | -R*)
11428            # Internal compiler library paths should come after those
11429            # provided the user.  The postdeps already come after the
11430            # user supplied libs so there is no need to process them.
11431            if test -z "$compiler_lib_search_path_CXX"; then
11432              compiler_lib_search_path_CXX="${prev}${p}"
11433            else
11434              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11435            fi
11436            ;;
11437          # The "-l" case would never come before the object being
11438          # linked, so don't bother handling this case.
11439          esac
11440        else
11441          if test -z "$postdeps_CXX"; then
11442            postdeps_CXX="${prev}${p}"
11443          else
11444            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11445          fi
11446        fi
11447        ;;
11448
11449     *.$objext)
11450        # This assumes that the test object file only shows up
11451        # once in the compiler output.
11452        if test "$p" = "conftest.$objext"; then
11453          pre_test_object_deps_done=yes
11454          continue
11455        fi
11456
11457        if test "$pre_test_object_deps_done" = no; then
11458          if test -z "$predep_objects_CXX"; then
11459            predep_objects_CXX="$p"
11460          else
11461            predep_objects_CXX="$predep_objects_CXX $p"
11462          fi
11463        else
11464          if test -z "$postdep_objects_CXX"; then
11465            postdep_objects_CXX="$p"
11466          else
11467            postdep_objects_CXX="$postdep_objects_CXX $p"
11468          fi
11469        fi
11470        ;;
11471
11472     *) ;; # Ignore the rest.
11473
11474     esac
11475   done
11476
11477   # Clean up.
11478   rm -f a.out a.exe
11479 else
11480   echo "libtool.m4: error: problem compiling CXX test program"
11481 fi
11482
11483 $rm -f confest.$objext
11484
11485 # PORTME: override above test on systems where it is broken
11486 case $host_os in
11487 interix3*)
11488   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11489   # hack all around it, let's just trust "g++" to DTRT.
11490   predep_objects_CXX=
11491   postdep_objects_CXX=
11492   postdeps_CXX=
11493   ;;
11494
11495 solaris*)
11496   case $cc_basename in
11497   CC*)
11498     # Adding this requires a known-good setup of shared libraries for
11499     # Sun compiler versions before 5.6, else PIC objects from an old
11500     # archive will be linked into the output, leading to subtle bugs.
11501     postdeps_CXX='-lCstd -lCrun'
11502     ;;
11503   esac
11504   ;;
11505 esac
11506
11507
11508 case " $postdeps_CXX " in
11509 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11510 esac
11511
11512 lt_prog_compiler_wl_CXX=
11513 lt_prog_compiler_pic_CXX=
11514 lt_prog_compiler_static_CXX=
11515
11516 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11517 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11518
11519   # C++ specific cases for pic, static, wl, etc.
11520   if test "$GXX" = yes; then
11521     lt_prog_compiler_wl_CXX='-Wl,'
11522     lt_prog_compiler_static_CXX='-static'
11523
11524     case $host_os in
11525     aix*)
11526       # All AIX code is PIC.
11527       if test "$host_cpu" = ia64; then
11528         # AIX 5 now supports IA64 processor
11529         lt_prog_compiler_static_CXX='-Bstatic'
11530       fi
11531       ;;
11532     amigaos*)
11533       # FIXME: we need at least 68020 code to build shared libraries, but
11534       # adding the `-m68020' flag to GCC prevents building anything better,
11535       # like `-m68040'.
11536       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11537       ;;
11538     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11539       # PIC is the default for these OSes.
11540       ;;
11541     mingw* | os2* | pw32*)
11542       # This hack is so that the source file can tell whether it is being
11543       # built for inclusion in a dll (and should export symbols for example).
11544       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11545       ;;
11546     darwin* | rhapsody*)
11547       # PIC is the default on this platform
11548       # Common symbols not allowed in MH_DYLIB files
11549       lt_prog_compiler_pic_CXX='-fno-common'
11550       ;;
11551     *djgpp*)
11552       # DJGPP does not support shared libraries at all
11553       lt_prog_compiler_pic_CXX=
11554       ;;
11555     interix3*)
11556       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11557       # Instead, we relocate shared libraries at runtime.
11558       ;;
11559     sysv4*MP*)
11560       if test -d /usr/nec; then
11561         lt_prog_compiler_pic_CXX=-Kconform_pic
11562       fi
11563       ;;
11564     hpux*)
11565       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11566       # not for PA HP-UX.
11567       case $host_cpu in
11568       hppa*64*|ia64*)
11569         ;;
11570       *)
11571         lt_prog_compiler_pic_CXX='-fPIC'
11572         ;;
11573       esac
11574       ;;
11575     *)
11576       lt_prog_compiler_pic_CXX='-fPIC'
11577       ;;
11578     esac
11579   else
11580     case $host_os in
11581       aix4* | aix5*)
11582         # All AIX code is PIC.
11583         if test "$host_cpu" = ia64; then
11584           # AIX 5 now supports IA64 processor
11585           lt_prog_compiler_static_CXX='-Bstatic'
11586         else
11587           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11588         fi
11589         ;;
11590       chorus*)
11591         case $cc_basename in
11592         cxch68*)
11593           # Green Hills C++ Compiler
11594           # _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"
11595           ;;
11596         esac
11597         ;;
11598        darwin*)
11599          # PIC is the default on this platform
11600          # Common symbols not allowed in MH_DYLIB files
11601          case $cc_basename in
11602            xlc*)
11603            lt_prog_compiler_pic_CXX='-qnocommon'
11604            lt_prog_compiler_wl_CXX='-Wl,'
11605            ;;
11606          esac
11607        ;;
11608       dgux*)
11609         case $cc_basename in
11610           ec++*)
11611             lt_prog_compiler_pic_CXX='-KPIC'
11612             ;;
11613           ghcx*)
11614             # Green Hills C++ Compiler
11615             lt_prog_compiler_pic_CXX='-pic'
11616             ;;
11617           *)
11618             ;;
11619         esac
11620         ;;
11621       freebsd* | kfreebsd*-gnu | dragonfly*)
11622         # FreeBSD uses GNU C++
11623         ;;
11624       hpux9* | hpux10* | hpux11*)
11625         case $cc_basename in
11626           CC*)
11627             lt_prog_compiler_wl_CXX='-Wl,'
11628             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11629             if test "$host_cpu" != ia64; then
11630               lt_prog_compiler_pic_CXX='+Z'
11631             fi
11632             ;;
11633           aCC*)
11634             lt_prog_compiler_wl_CXX='-Wl,'
11635             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11636             case $host_cpu in
11637             hppa*64*|ia64*)
11638               # +Z the default
11639               ;;
11640             *)
11641               lt_prog_compiler_pic_CXX='+Z'
11642               ;;
11643             esac
11644             ;;
11645           *)
11646             ;;
11647         esac
11648         ;;
11649       interix*)
11650         # This is c89, which is MS Visual C++ (no shared libs)
11651         # Anyone wants to do a port?
11652         ;;
11653       irix5* | irix6* | nonstopux*)
11654         case $cc_basename in
11655           CC*)
11656             lt_prog_compiler_wl_CXX='-Wl,'
11657             lt_prog_compiler_static_CXX='-non_shared'
11658             # CC pic flag -KPIC is the default.
11659             ;;
11660           *)
11661             ;;
11662         esac
11663         ;;
11664       linux*)
11665         case $cc_basename in
11666           KCC*)
11667             # KAI C++ Compiler
11668             lt_prog_compiler_wl_CXX='--backend -Wl,'
11669             lt_prog_compiler_pic_CXX='-fPIC'
11670             ;;
11671           icpc* | ecpc*)
11672             # Intel C++
11673             lt_prog_compiler_wl_CXX='-Wl,'
11674             lt_prog_compiler_pic_CXX='-KPIC'
11675             lt_prog_compiler_static_CXX='-static'
11676             ;;
11677           pgCC*)
11678             # Portland Group C++ compiler.
11679             lt_prog_compiler_wl_CXX='-Wl,'
11680             lt_prog_compiler_pic_CXX='-fpic'
11681             lt_prog_compiler_static_CXX='-Bstatic'
11682             ;;
11683           cxx*)
11684             # Compaq C++
11685             # Make sure the PIC flag is empty.  It appears that all Alpha
11686             # Linux and Compaq Tru64 Unix objects are PIC.
11687             lt_prog_compiler_pic_CXX=
11688             lt_prog_compiler_static_CXX='-non_shared'
11689             ;;
11690           *)
11691             ;;
11692         esac
11693         ;;
11694       lynxos*)
11695         ;;
11696       m88k*)
11697         ;;
11698       mvs*)
11699         case $cc_basename in
11700           cxx*)
11701             lt_prog_compiler_pic_CXX='-W c,exportall'
11702             ;;
11703           *)
11704             ;;
11705         esac
11706         ;;
11707       netbsd*)
11708         ;;
11709       osf3* | osf4* | osf5*)
11710         case $cc_basename in
11711           KCC*)
11712             lt_prog_compiler_wl_CXX='--backend -Wl,'
11713             ;;
11714           RCC*)
11715             # Rational C++ 2.4.1
11716             lt_prog_compiler_pic_CXX='-pic'
11717             ;;
11718           cxx*)
11719             # Digital/Compaq C++
11720             lt_prog_compiler_wl_CXX='-Wl,'
11721             # Make sure the PIC flag is empty.  It appears that all Alpha
11722             # Linux and Compaq Tru64 Unix objects are PIC.
11723             lt_prog_compiler_pic_CXX=
11724             lt_prog_compiler_static_CXX='-non_shared'
11725             ;;
11726           *)
11727             ;;
11728         esac
11729         ;;
11730       psos*)
11731         ;;
11732       solaris*)
11733         case $cc_basename in
11734           CC*)
11735             # Sun C++ 4.2, 5.x and Centerline C++
11736             lt_prog_compiler_pic_CXX='-KPIC'
11737             lt_prog_compiler_static_CXX='-Bstatic'
11738             lt_prog_compiler_wl_CXX='-Qoption ld '
11739             ;;
11740           gcx*)
11741             # Green Hills C++ Compiler
11742             lt_prog_compiler_pic_CXX='-PIC'
11743             ;;
11744           *)
11745             ;;
11746         esac
11747         ;;
11748       sunos4*)
11749         case $cc_basename in
11750           CC*)
11751             # Sun C++ 4.x
11752             lt_prog_compiler_pic_CXX='-pic'
11753             lt_prog_compiler_static_CXX='-Bstatic'
11754             ;;
11755           lcc*)
11756             # Lucid
11757             lt_prog_compiler_pic_CXX='-pic'
11758             ;;
11759           *)
11760             ;;
11761         esac
11762         ;;
11763       tandem*)
11764         case $cc_basename in
11765           NCC*)
11766             # NonStop-UX NCC 3.20
11767             lt_prog_compiler_pic_CXX='-KPIC'
11768             ;;
11769           *)
11770             ;;
11771         esac
11772         ;;
11773       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11774         case $cc_basename in
11775           CC*)
11776             lt_prog_compiler_wl_CXX='-Wl,'
11777             lt_prog_compiler_pic_CXX='-KPIC'
11778             lt_prog_compiler_static_CXX='-Bstatic'
11779             ;;
11780         esac
11781         ;;
11782       vxworks*)
11783         ;;
11784       *)
11785         lt_prog_compiler_can_build_shared_CXX=no
11786         ;;
11787     esac
11788   fi
11789
11790 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11791 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11792
11793 #
11794 # Check to make sure the PIC flag actually works.
11795 #
11796 if test -n "$lt_prog_compiler_pic_CXX"; then
11797
11798 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11799 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11800 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   lt_prog_compiler_pic_works_CXX=no
11804   ac_outfile=conftest.$ac_objext
11805    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11806    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11807    # Insert the option either (1) after the last *FLAGS variable, or
11808    # (2) before a word containing "conftest.", or (3) at the end.
11809    # Note that $ac_compile itself does not contain backslashes and begins
11810    # with a dollar sign (not a hyphen), so the echo should work correctly.
11811    # The option is referenced via a variable to avoid confusing sed.
11812    lt_compile=`echo "$ac_compile" | $SED \
11813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11815    -e 's:$: $lt_compiler_flag:'`
11816    (eval echo "\"\$as_me:11816: $lt_compile\"" >&5)
11817    (eval "$lt_compile" 2>conftest.err)
11818    ac_status=$?
11819    cat conftest.err >&5
11820    echo "$as_me:11820: \$? = $ac_status" >&5
11821    if (exit $ac_status) && test -s "$ac_outfile"; then
11822      # The compiler can only warn and ignore the option if not recognized
11823      # So say no if there are warnings other than the usual output.
11824      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11825      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11826      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11827        lt_prog_compiler_pic_works_CXX=yes
11828      fi
11829    fi
11830    $rm conftest*
11831
11832 fi
11833 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11834 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11835
11836 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11837     case $lt_prog_compiler_pic_CXX in
11838      "" | " "*) ;;
11839      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11840      esac
11841 else
11842     lt_prog_compiler_pic_CXX=
11843      lt_prog_compiler_can_build_shared_CXX=no
11844 fi
11845
11846 fi
11847 case $host_os in
11848   # For platforms which do not support PIC, -DPIC is meaningless:
11849   *djgpp*)
11850     lt_prog_compiler_pic_CXX=
11851     ;;
11852   *)
11853     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11854     ;;
11855 esac
11856
11857 #
11858 # Check to make sure the static flag actually works.
11859 #
11860 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11861 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11862 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11863 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   lt_prog_compiler_static_works_CXX=no
11867    save_LDFLAGS="$LDFLAGS"
11868    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11869    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11870    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11871      # The linker can only warn and ignore the option if not recognized
11872      # So say no if there are warnings
11873      if test -s conftest.err; then
11874        # Append any errors to the config.log.
11875        cat conftest.err 1>&5
11876        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11877        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11878        if diff conftest.exp conftest.er2 >/dev/null; then
11879          lt_prog_compiler_static_works_CXX=yes
11880        fi
11881      else
11882        lt_prog_compiler_static_works_CXX=yes
11883      fi
11884    fi
11885    $rm conftest*
11886    LDFLAGS="$save_LDFLAGS"
11887
11888 fi
11889 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11890 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11891
11892 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11893     :
11894 else
11895     lt_prog_compiler_static_CXX=
11896 fi
11897
11898
11899 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11900 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11901 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11902   echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904   lt_cv_prog_compiler_c_o_CXX=no
11905    $rm -r conftest 2>/dev/null
11906    mkdir conftest
11907    cd conftest
11908    mkdir out
11909    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11910
11911    lt_compiler_flag="-o out/conftest2.$ac_objext"
11912    # Insert the option either (1) after the last *FLAGS variable, or
11913    # (2) before a word containing "conftest.", or (3) at the end.
11914    # Note that $ac_compile itself does not contain backslashes and begins
11915    # with a dollar sign (not a hyphen), so the echo should work correctly.
11916    lt_compile=`echo "$ac_compile" | $SED \
11917    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11918    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11919    -e 's:$: $lt_compiler_flag:'`
11920    (eval echo "\"\$as_me:11920: $lt_compile\"" >&5)
11921    (eval "$lt_compile" 2>out/conftest.err)
11922    ac_status=$?
11923    cat out/conftest.err >&5
11924    echo "$as_me:11924: \$? = $ac_status" >&5
11925    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11926    then
11927      # The compiler can only warn and ignore the option if not recognized
11928      # So say no if there are warnings
11929      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11930      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11931      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11932        lt_cv_prog_compiler_c_o_CXX=yes
11933      fi
11934    fi
11935    chmod u+w . 2>&5
11936    $rm conftest*
11937    # SGI C++ compiler will create directory out/ii_files/ for
11938    # template instantiation
11939    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11940    $rm out/* && rmdir out
11941    cd ..
11942    rmdir conftest
11943    $rm conftest*
11944
11945 fi
11946 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11947 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11948
11949
11950 hard_links="nottested"
11951 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11952   # do not overwrite the value of need_locks provided by the user
11953   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11954 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11955   hard_links=yes
11956   $rm conftest*
11957   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11958   touch conftest.a
11959   ln conftest.a conftest.b 2>&5 || hard_links=no
11960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11961   echo "$as_me:$LINENO: result: $hard_links" >&5
11962 echo "${ECHO_T}$hard_links" >&6
11963   if test "$hard_links" = no; then
11964     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11965 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11966     need_locks=warn
11967   fi
11968 else
11969   need_locks=no
11970 fi
11971
11972 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11973 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11974
11975   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11976   case $host_os in
11977   aix4* | aix5*)
11978     # If we're using GNU nm, then we don't want the "-C" option.
11979     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11980     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11981       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'
11982     else
11983       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'
11984     fi
11985     ;;
11986   pw32*)
11987     export_symbols_cmds_CXX="$ltdll_cmds"
11988   ;;
11989   cygwin* | mingw*)
11990     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11991   ;;
11992   *)
11993     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11994   ;;
11995   esac
11996
11997 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11998 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11999 test "$ld_shlibs_CXX" = no && can_build_shared=no
12000
12001 #
12002 # Do we need to explicitly link libc?
12003 #
12004 case "x$archive_cmds_need_lc_CXX" in
12005 x|xyes)
12006   # Assume -lc should be added
12007   archive_cmds_need_lc_CXX=yes
12008
12009   if test "$enable_shared" = yes && test "$GCC" = yes; then
12010     case $archive_cmds_CXX in
12011     *'~'*)
12012       # FIXME: we may have to deal with multi-command sequences.
12013       ;;
12014     '$CC '*)
12015       # Test whether the compiler implicitly links with -lc since on some
12016       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12017       # to ld, don't add -lc before -lgcc.
12018       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12019 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12020       $rm conftest*
12021       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12022
12023       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024   (eval $ac_compile) 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } 2>conftest.err; then
12028         soname=conftest
12029         lib=conftest
12030         libobjs=conftest.$ac_objext
12031         deplibs=
12032         wl=$lt_prog_compiler_wl_CXX
12033         pic_flag=$lt_prog_compiler_pic_CXX
12034         compiler_flags=-v
12035         linker_flags=-v
12036         verstring=
12037         output_objdir=.
12038         libname=conftest
12039         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12040         allow_undefined_flag_CXX=
12041         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12042   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }
12046         then
12047           archive_cmds_need_lc_CXX=no
12048         else
12049           archive_cmds_need_lc_CXX=yes
12050         fi
12051         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12052       else
12053         cat conftest.err 1>&5
12054       fi
12055       $rm conftest*
12056       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12057 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12058       ;;
12059     esac
12060   fi
12061   ;;
12062 esac
12063
12064 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12065 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12066 library_names_spec=
12067 libname_spec='lib$name'
12068 soname_spec=
12069 shrext_cmds=".so"
12070 postinstall_cmds=
12071 postuninstall_cmds=
12072 finish_cmds=
12073 finish_eval=
12074 shlibpath_var=
12075 shlibpath_overrides_runpath=unknown
12076 version_type=none
12077 dynamic_linker="$host_os ld.so"
12078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12079 if test "$GCC" = yes; then
12080   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12081   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12082     # if the path contains ";" then we assume it to be the separator
12083     # otherwise default to the standard path separator (i.e. ":") - it is
12084     # assumed that no part of a normal pathname contains ";" but that should
12085     # okay in the real world where ";" in dirpaths is itself problematic.
12086     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12087   else
12088     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12089   fi
12090 else
12091   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12092 fi
12093 need_lib_prefix=unknown
12094 hardcode_into_libs=no
12095
12096 # when you set need_version to no, make sure it does not cause -set_version
12097 # flags to be left without arguments
12098 need_version=unknown
12099
12100 case $host_os in
12101 aix3*)
12102   version_type=linux
12103   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12104   shlibpath_var=LIBPATH
12105
12106   # AIX 3 has no versioning support, so we append a major version to the name.
12107   soname_spec='${libname}${release}${shared_ext}$major'
12108   ;;
12109
12110 aix4* | aix5*)
12111   version_type=linux
12112   need_lib_prefix=no
12113   need_version=no
12114   hardcode_into_libs=yes
12115   if test "$host_cpu" = ia64; then
12116     # AIX 5 supports IA64
12117     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12118     shlibpath_var=LD_LIBRARY_PATH
12119   else
12120     # With GCC up to 2.95.x, collect2 would create an import file
12121     # for dependence libraries.  The import file would start with
12122     # the line `#! .'.  This would cause the generated library to
12123     # depend on `.', always an invalid library.  This was fixed in
12124     # development snapshots of GCC prior to 3.0.
12125     case $host_os in
12126       aix4 | aix4.[01] | aix4.[01].*)
12127       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12128            echo ' yes '
12129            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12130         :
12131       else
12132         can_build_shared=no
12133       fi
12134       ;;
12135     esac
12136     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12137     # soname into executable. Probably we can add versioning support to
12138     # collect2, so additional links can be useful in future.
12139     if test "$aix_use_runtimelinking" = yes; then
12140       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12141       # instead of lib<name>.a to let people know that these are not
12142       # typical AIX shared libraries.
12143       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12144     else
12145       # We preserve .a as extension for shared libraries through AIX4.2
12146       # and later when we are not doing run time linking.
12147       library_names_spec='${libname}${release}.a $libname.a'
12148       soname_spec='${libname}${release}${shared_ext}$major'
12149     fi
12150     shlibpath_var=LIBPATH
12151   fi
12152   ;;
12153
12154 amigaos*)
12155   library_names_spec='$libname.ixlibrary $libname.a'
12156   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12157   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'
12158   ;;
12159
12160 beos*)
12161   library_names_spec='${libname}${shared_ext}'
12162   dynamic_linker="$host_os ld.so"
12163   shlibpath_var=LIBRARY_PATH
12164   ;;
12165
12166 bsdi[45]*)
12167   version_type=linux
12168   need_version=no
12169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12170   soname_spec='${libname}${release}${shared_ext}$major'
12171   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12172   shlibpath_var=LD_LIBRARY_PATH
12173   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12174   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12175   # the default ld.so.conf also contains /usr/contrib/lib and
12176   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12177   # libtool to hard-code these into programs
12178   ;;
12179
12180 cygwin* | mingw* | pw32*)
12181   version_type=windows
12182   shrext_cmds=".dll"
12183   need_version=no
12184   need_lib_prefix=no
12185
12186   case $GCC,$host_os in
12187   yes,cygwin* | yes,mingw* | yes,pw32*)
12188     library_names_spec='$libname.dll.a'
12189     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12190     postinstall_cmds='base_file=`basename \${file}`~
12191       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12192       dldir=$destdir/`dirname \$dlpath`~
12193       test -d \$dldir || mkdir -p \$dldir~
12194       $install_prog $dir/$dlname \$dldir/$dlname~
12195       chmod a+x \$dldir/$dlname'
12196     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12197       dlpath=$dir/\$dldll~
12198        $rm \$dlpath'
12199     shlibpath_overrides_runpath=yes
12200
12201     case $host_os in
12202     cygwin*)
12203       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12204       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12205       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12206       ;;
12207     mingw*)
12208       # MinGW DLLs use traditional 'lib' prefix
12209       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12210       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12211       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12212         # It is most probably a Windows format PATH printed by
12213         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12214         # path with ; separators, and with drive letters. We can handle the
12215         # drive letters (cygwin fileutils understands them), so leave them,
12216         # especially as we might pass files found there to a mingw objdump,
12217         # which wouldn't understand a cygwinified path. Ahh.
12218         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12219       else
12220         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12221       fi
12222       ;;
12223     pw32*)
12224       # pw32 DLLs use 'pw' prefix rather than 'lib'
12225       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12226       ;;
12227     esac
12228     ;;
12229
12230   *)
12231     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12232     ;;
12233   esac
12234   dynamic_linker='Win32 ld.exe'
12235   # FIXME: first we should search . and the directory the executable is in
12236   shlibpath_var=PATH
12237   ;;
12238
12239 darwin* | rhapsody*)
12240   dynamic_linker="$host_os dyld"
12241   version_type=darwin
12242   need_lib_prefix=no
12243   need_version=no
12244   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12245   soname_spec='${libname}${release}${major}$shared_ext'
12246   shlibpath_overrides_runpath=yes
12247   shlibpath_var=DYLD_LIBRARY_PATH
12248   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12249   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12250   if test "$GCC" = yes; then
12251     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"`
12252   else
12253     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12254   fi
12255   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12256   ;;
12257
12258 dgux*)
12259   version_type=linux
12260   need_lib_prefix=no
12261   need_version=no
12262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12263   soname_spec='${libname}${release}${shared_ext}$major'
12264   shlibpath_var=LD_LIBRARY_PATH
12265   ;;
12266
12267 freebsd1*)
12268   dynamic_linker=no
12269   ;;
12270
12271 kfreebsd*-gnu)
12272   version_type=linux
12273   need_lib_prefix=no
12274   need_version=no
12275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12276   soname_spec='${libname}${release}${shared_ext}$major'
12277   shlibpath_var=LD_LIBRARY_PATH
12278   shlibpath_overrides_runpath=no
12279   hardcode_into_libs=yes
12280   dynamic_linker='GNU ld.so'
12281   ;;
12282
12283 freebsd* | dragonfly*)
12284   # DragonFly does not have aout.  When/if they implement a new
12285   # versioning mechanism, adjust this.
12286   if test -x /usr/bin/objformat; then
12287     objformat=`/usr/bin/objformat`
12288   else
12289     case $host_os in
12290     freebsd[123]*) objformat=aout ;;
12291     *) objformat=elf ;;
12292     esac
12293   fi
12294   version_type=freebsd-$objformat
12295   case $version_type in
12296     freebsd-elf*)
12297       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12298       need_version=no
12299       need_lib_prefix=no
12300       ;;
12301     freebsd-*)
12302       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12303       need_version=yes
12304       ;;
12305   esac
12306   shlibpath_var=LD_LIBRARY_PATH
12307   case $host_os in
12308   freebsd2*)
12309     shlibpath_overrides_runpath=yes
12310     ;;
12311   freebsd3.[01]* | freebsdelf3.[01]*)
12312     shlibpath_overrides_runpath=yes
12313     hardcode_into_libs=yes
12314     ;;
12315   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12316   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12317     shlibpath_overrides_runpath=no
12318     hardcode_into_libs=yes
12319     ;;
12320   freebsd*) # from 4.6 on
12321     shlibpath_overrides_runpath=yes
12322     hardcode_into_libs=yes
12323     ;;
12324   esac
12325   ;;
12326
12327 gnu*)
12328   version_type=linux
12329   need_lib_prefix=no
12330   need_version=no
12331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12332   soname_spec='${libname}${release}${shared_ext}$major'
12333   shlibpath_var=LD_LIBRARY_PATH
12334   hardcode_into_libs=yes
12335   ;;
12336
12337 hpux9* | hpux10* | hpux11*)
12338   # Give a soname corresponding to the major version so that dld.sl refuses to
12339   # link against other versions.
12340   version_type=sunos
12341   need_lib_prefix=no
12342   need_version=no
12343   case $host_cpu in
12344   ia64*)
12345     shrext_cmds='.so'
12346     hardcode_into_libs=yes
12347     dynamic_linker="$host_os dld.so"
12348     shlibpath_var=LD_LIBRARY_PATH
12349     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351     soname_spec='${libname}${release}${shared_ext}$major'
12352     if test "X$HPUX_IA64_MODE" = X32; then
12353       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12354     else
12355       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12356     fi
12357     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12358     ;;
12359    hppa*64*)
12360      shrext_cmds='.sl'
12361      hardcode_into_libs=yes
12362      dynamic_linker="$host_os dld.sl"
12363      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12364      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12365      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366      soname_spec='${libname}${release}${shared_ext}$major'
12367      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12368      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12369      ;;
12370    *)
12371     shrext_cmds='.sl'
12372     dynamic_linker="$host_os dld.sl"
12373     shlibpath_var=SHLIB_PATH
12374     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376     soname_spec='${libname}${release}${shared_ext}$major'
12377     ;;
12378   esac
12379   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12380   postinstall_cmds='chmod 555 $lib'
12381   ;;
12382
12383 interix3*)
12384   version_type=linux
12385   need_lib_prefix=no
12386   need_version=no
12387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12388   soname_spec='${libname}${release}${shared_ext}$major'
12389   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12390   shlibpath_var=LD_LIBRARY_PATH
12391   shlibpath_overrides_runpath=no
12392   hardcode_into_libs=yes
12393   ;;
12394
12395 irix5* | irix6* | nonstopux*)
12396   case $host_os in
12397     nonstopux*) version_type=nonstopux ;;
12398     *)
12399         if test "$lt_cv_prog_gnu_ld" = yes; then
12400                 version_type=linux
12401         else
12402                 version_type=irix
12403         fi ;;
12404   esac
12405   need_lib_prefix=no
12406   need_version=no
12407   soname_spec='${libname}${release}${shared_ext}$major'
12408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12409   case $host_os in
12410   irix5* | nonstopux*)
12411     libsuff= shlibsuff=
12412     ;;
12413   *)
12414     case $LD in # libtool.m4 will add one of these switches to LD
12415     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12416       libsuff= shlibsuff= libmagic=32-bit;;
12417     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12418       libsuff=32 shlibsuff=N32 libmagic=N32;;
12419     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12420       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12421     *) libsuff= shlibsuff= libmagic=never-match;;
12422     esac
12423     ;;
12424   esac
12425   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12426   shlibpath_overrides_runpath=no
12427   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12428   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12429   hardcode_into_libs=yes
12430   ;;
12431
12432 # No shared lib support for Linux oldld, aout, or coff.
12433 linux*oldld* | linux*aout* | linux*coff*)
12434   dynamic_linker=no
12435   ;;
12436
12437 # This must be Linux ELF.
12438 linux*)
12439   version_type=linux
12440   need_lib_prefix=no
12441   need_version=no
12442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443   soname_spec='${libname}${release}${shared_ext}$major'
12444   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12445   shlibpath_var=LD_LIBRARY_PATH
12446   shlibpath_overrides_runpath=no
12447   # This implies no fast_install, which is unacceptable.
12448   # Some rework will be needed to allow for fast_install
12449   # before this can be enabled.
12450   hardcode_into_libs=yes
12451
12452   # Append ld.so.conf contents to the search path
12453   if test -f /etc/ld.so.conf; then
12454     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12455     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12456   fi
12457
12458   # We used to test for /lib/ld.so.1 and disable shared libraries on
12459   # powerpc, because MkLinux only supported shared libraries with the
12460   # GNU dynamic linker.  Since this was broken with cross compilers,
12461   # most powerpc-linux boxes support dynamic linking these days and
12462   # people can always --disable-shared, the test was removed, and we
12463   # assume the GNU/Linux dynamic linker is in use.
12464   dynamic_linker='GNU/Linux ld.so'
12465   ;;
12466
12467 knetbsd*-gnu)
12468   version_type=linux
12469   need_lib_prefix=no
12470   need_version=no
12471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12472   soname_spec='${libname}${release}${shared_ext}$major'
12473   shlibpath_var=LD_LIBRARY_PATH
12474   shlibpath_overrides_runpath=no
12475   hardcode_into_libs=yes
12476   dynamic_linker='GNU ld.so'
12477   ;;
12478
12479 netbsd*)
12480   version_type=sunos
12481   need_lib_prefix=no
12482   need_version=no
12483   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12485     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12486     dynamic_linker='NetBSD (a.out) ld.so'
12487   else
12488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12489     soname_spec='${libname}${release}${shared_ext}$major'
12490     dynamic_linker='NetBSD ld.elf_so'
12491   fi
12492   shlibpath_var=LD_LIBRARY_PATH
12493   shlibpath_overrides_runpath=yes
12494   hardcode_into_libs=yes
12495   ;;
12496
12497 newsos6)
12498   version_type=linux
12499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12500   shlibpath_var=LD_LIBRARY_PATH
12501   shlibpath_overrides_runpath=yes
12502   ;;
12503
12504 nto-qnx*)
12505   version_type=linux
12506   need_lib_prefix=no
12507   need_version=no
12508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12509   soname_spec='${libname}${release}${shared_ext}$major'
12510   shlibpath_var=LD_LIBRARY_PATH
12511   shlibpath_overrides_runpath=yes
12512   ;;
12513
12514 openbsd*)
12515   version_type=sunos
12516   sys_lib_dlsearch_path_spec="/usr/lib"
12517   need_lib_prefix=no
12518   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12519   case $host_os in
12520     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12521     *)                         need_version=no  ;;
12522   esac
12523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12524   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12525   shlibpath_var=LD_LIBRARY_PATH
12526   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12527     case $host_os in
12528       openbsd2.[89] | openbsd2.[89].*)
12529         shlibpath_overrides_runpath=no
12530         ;;
12531       *)
12532         shlibpath_overrides_runpath=yes
12533         ;;
12534       esac
12535   else
12536     shlibpath_overrides_runpath=yes
12537   fi
12538   ;;
12539
12540 os2*)
12541   libname_spec='$name'
12542   shrext_cmds=".dll"
12543   need_lib_prefix=no
12544   library_names_spec='$libname${shared_ext} $libname.a'
12545   dynamic_linker='OS/2 ld.exe'
12546   shlibpath_var=LIBPATH
12547   ;;
12548
12549 osf3* | osf4* | osf5*)
12550   version_type=osf
12551   need_lib_prefix=no
12552   need_version=no
12553   soname_spec='${libname}${release}${shared_ext}$major'
12554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555   shlibpath_var=LD_LIBRARY_PATH
12556   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12557   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12558   ;;
12559
12560 solaris*)
12561   version_type=linux
12562   need_lib_prefix=no
12563   need_version=no
12564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565   soname_spec='${libname}${release}${shared_ext}$major'
12566   shlibpath_var=LD_LIBRARY_PATH
12567   shlibpath_overrides_runpath=yes
12568   hardcode_into_libs=yes
12569   # ldd complains unless libraries are executable
12570   postinstall_cmds='chmod +x $lib'
12571   ;;
12572
12573 sunos4*)
12574   version_type=sunos
12575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12576   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12577   shlibpath_var=LD_LIBRARY_PATH
12578   shlibpath_overrides_runpath=yes
12579   if test "$with_gnu_ld" = yes; then
12580     need_lib_prefix=no
12581   fi
12582   need_version=yes
12583   ;;
12584
12585 sysv4 | sysv4.3*)
12586   version_type=linux
12587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588   soname_spec='${libname}${release}${shared_ext}$major'
12589   shlibpath_var=LD_LIBRARY_PATH
12590   case $host_vendor in
12591     sni)
12592       shlibpath_overrides_runpath=no
12593       need_lib_prefix=no
12594       export_dynamic_flag_spec='${wl}-Blargedynsym'
12595       runpath_var=LD_RUN_PATH
12596       ;;
12597     siemens)
12598       need_lib_prefix=no
12599       ;;
12600     motorola)
12601       need_lib_prefix=no
12602       need_version=no
12603       shlibpath_overrides_runpath=no
12604       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12605       ;;
12606   esac
12607   ;;
12608
12609 sysv4*MP*)
12610   if test -d /usr/nec ;then
12611     version_type=linux
12612     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12613     soname_spec='$libname${shared_ext}.$major'
12614     shlibpath_var=LD_LIBRARY_PATH
12615   fi
12616   ;;
12617
12618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12619   version_type=freebsd-elf
12620   need_lib_prefix=no
12621   need_version=no
12622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12623   soname_spec='${libname}${release}${shared_ext}$major'
12624   shlibpath_var=LD_LIBRARY_PATH
12625   hardcode_into_libs=yes
12626   if test "$with_gnu_ld" = yes; then
12627     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12628     shlibpath_overrides_runpath=no
12629   else
12630     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12631     shlibpath_overrides_runpath=yes
12632     case $host_os in
12633       sco3.2v5*)
12634         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12635         ;;
12636     esac
12637   fi
12638   sys_lib_dlsearch_path_spec='/usr/lib'
12639   ;;
12640
12641 uts4*)
12642   version_type=linux
12643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12644   soname_spec='${libname}${release}${shared_ext}$major'
12645   shlibpath_var=LD_LIBRARY_PATH
12646   ;;
12647
12648 *)
12649   dynamic_linker=no
12650   ;;
12651 esac
12652 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12653 echo "${ECHO_T}$dynamic_linker" >&6
12654 test "$dynamic_linker" = no && can_build_shared=no
12655
12656 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12657 if test "$GCC" = yes; then
12658   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12659 fi
12660
12661 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12662 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12663 hardcode_action_CXX=
12664 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12665    test -n "$runpath_var_CXX" || \
12666    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12667
12668   # We can hardcode non-existant directories.
12669   if test "$hardcode_direct_CXX" != no &&
12670      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12671      # have to relink, otherwise we might link with an installed library
12672      # when we should be linking with a yet-to-be-installed one
12673      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12674      test "$hardcode_minus_L_CXX" != no; then
12675     # Linking always hardcodes the temporary library directory.
12676     hardcode_action_CXX=relink
12677   else
12678     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12679     hardcode_action_CXX=immediate
12680   fi
12681 else
12682   # We cannot hardcode anything, or else we can only hardcode existing
12683   # directories.
12684   hardcode_action_CXX=unsupported
12685 fi
12686 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12687 echo "${ECHO_T}$hardcode_action_CXX" >&6
12688
12689 if test "$hardcode_action_CXX" = relink; then
12690   # Fast installation is not supported
12691   enable_fast_install=no
12692 elif test "$shlibpath_overrides_runpath" = yes ||
12693      test "$enable_shared" = no; then
12694   # Fast installation is not necessary
12695   enable_fast_install=needless
12696 fi
12697
12698
12699 # The else clause should only fire when bootstrapping the
12700 # libtool distribution, otherwise you forgot to ship ltmain.sh
12701 # with your package, and you will get complaints that there are
12702 # no rules to generate ltmain.sh.
12703 if test -f "$ltmain"; then
12704   # See if we are running on zsh, and set the options which allow our commands through
12705   # without removal of \ escapes.
12706   if test -n "${ZSH_VERSION+set}" ; then
12707     setopt NO_GLOB_SUBST
12708   fi
12709   # Now quote all the things that may contain metacharacters while being
12710   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12711   # variables and quote the copies for generation of the libtool script.
12712   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12713     SED SHELL STRIP \
12714     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12715     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12716     deplibs_check_method reload_flag reload_cmds need_locks \
12717     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12718     lt_cv_sys_global_symbol_to_c_name_address \
12719     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12720     old_postinstall_cmds old_postuninstall_cmds \
12721     compiler_CXX \
12722     CC_CXX \
12723     LD_CXX \
12724     lt_prog_compiler_wl_CXX \
12725     lt_prog_compiler_pic_CXX \
12726     lt_prog_compiler_static_CXX \
12727     lt_prog_compiler_no_builtin_flag_CXX \
12728     export_dynamic_flag_spec_CXX \
12729     thread_safe_flag_spec_CXX \
12730     whole_archive_flag_spec_CXX \
12731     enable_shared_with_static_runtimes_CXX \
12732     old_archive_cmds_CXX \
12733     old_archive_from_new_cmds_CXX \
12734     predep_objects_CXX \
12735     postdep_objects_CXX \
12736     predeps_CXX \
12737     postdeps_CXX \
12738     compiler_lib_search_path_CXX \
12739     archive_cmds_CXX \
12740     archive_expsym_cmds_CXX \
12741     postinstall_cmds_CXX \
12742     postuninstall_cmds_CXX \
12743     old_archive_from_expsyms_cmds_CXX \
12744     allow_undefined_flag_CXX \
12745     no_undefined_flag_CXX \
12746     export_symbols_cmds_CXX \
12747     hardcode_libdir_flag_spec_CXX \
12748     hardcode_libdir_flag_spec_ld_CXX \
12749     hardcode_libdir_separator_CXX \
12750     hardcode_automatic_CXX \
12751     module_cmds_CXX \
12752     module_expsym_cmds_CXX \
12753     lt_cv_prog_compiler_c_o_CXX \
12754     exclude_expsyms_CXX \
12755     include_expsyms_CXX; do
12756
12757     case $var in
12758     old_archive_cmds_CXX | \
12759     old_archive_from_new_cmds_CXX | \
12760     archive_cmds_CXX | \
12761     archive_expsym_cmds_CXX | \
12762     module_cmds_CXX | \
12763     module_expsym_cmds_CXX | \
12764     old_archive_from_expsyms_cmds_CXX | \
12765     export_symbols_cmds_CXX | \
12766     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12767     postinstall_cmds | postuninstall_cmds | \
12768     old_postinstall_cmds | old_postuninstall_cmds | \
12769     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12770       # Double-quote double-evaled strings.
12771       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12772       ;;
12773     *)
12774       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12775       ;;
12776     esac
12777   done
12778
12779   case $lt_echo in
12780   *'\$0 --fallback-echo"')
12781     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12782     ;;
12783   esac
12784
12785 cfgfile="$ofile"
12786
12787   cat <<__EOF__ >> "$cfgfile"
12788 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12789
12790 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12791
12792 # Shell to use when invoking shell scripts.
12793 SHELL=$lt_SHELL
12794
12795 # Whether or not to build shared libraries.
12796 build_libtool_libs=$enable_shared
12797
12798 # Whether or not to build static libraries.
12799 build_old_libs=$enable_static
12800
12801 # Whether or not to add -lc for building shared libraries.
12802 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12803
12804 # Whether or not to disallow shared libs when runtime libs are static
12805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12806
12807 # Whether or not to optimize for fast installation.
12808 fast_install=$enable_fast_install
12809
12810 # The host system.
12811 host_alias=$host_alias
12812 host=$host
12813 host_os=$host_os
12814
12815 # The build system.
12816 build_alias=$build_alias
12817 build=$build
12818 build_os=$build_os
12819
12820 # An echo program that does not interpret backslashes.
12821 echo=$lt_echo
12822
12823 # The archiver.
12824 AR=$lt_AR
12825 AR_FLAGS=$lt_AR_FLAGS
12826
12827 # A C compiler.
12828 LTCC=$lt_LTCC
12829
12830 # LTCC compiler flags.
12831 LTCFLAGS=$lt_LTCFLAGS
12832
12833 # A language-specific compiler.
12834 CC=$lt_compiler_CXX
12835
12836 # Is the compiler the GNU C compiler?
12837 with_gcc=$GCC_CXX
12838
12839 # An ERE matcher.
12840 EGREP=$lt_EGREP
12841
12842 # The linker used to build libraries.
12843 LD=$lt_LD_CXX
12844
12845 # Whether we need hard or soft links.
12846 LN_S=$lt_LN_S
12847
12848 # A BSD-compatible nm program.
12849 NM=$lt_NM
12850
12851 # A symbol stripping program
12852 STRIP=$lt_STRIP
12853
12854 # Used to examine libraries when file_magic_cmd begins "file"
12855 MAGIC_CMD=$MAGIC_CMD
12856
12857 # Used on cygwin: DLL creation program.
12858 DLLTOOL="$DLLTOOL"
12859
12860 # Used on cygwin: object dumper.
12861 OBJDUMP="$OBJDUMP"
12862
12863 # Used on cygwin: assembler.
12864 AS="$AS"
12865
12866 # The name of the directory that contains temporary libtool files.
12867 objdir=$objdir
12868
12869 # How to create reloadable object files.
12870 reload_flag=$lt_reload_flag
12871 reload_cmds=$lt_reload_cmds
12872
12873 # How to pass a linker flag through the compiler.
12874 wl=$lt_lt_prog_compiler_wl_CXX
12875
12876 # Object file suffix (normally "o").
12877 objext="$ac_objext"
12878
12879 # Old archive suffix (normally "a").
12880 libext="$libext"
12881
12882 # Shared library suffix (normally ".so").
12883 shrext_cmds='$shrext_cmds'
12884
12885 # Executable file suffix (normally "").
12886 exeext="$exeext"
12887
12888 # Additional compiler flags for building library objects.
12889 pic_flag=$lt_lt_prog_compiler_pic_CXX
12890 pic_mode=$pic_mode
12891
12892 # What is the maximum length of a command?
12893 max_cmd_len=$lt_cv_sys_max_cmd_len
12894
12895 # Does compiler simultaneously support -c and -o options?
12896 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12897
12898 # Must we lock files when doing compilation?
12899 need_locks=$lt_need_locks
12900
12901 # Do we need the lib prefix for modules?
12902 need_lib_prefix=$need_lib_prefix
12903
12904 # Do we need a version for libraries?
12905 need_version=$need_version
12906
12907 # Whether dlopen is supported.
12908 dlopen_support=$enable_dlopen
12909
12910 # Whether dlopen of programs is supported.
12911 dlopen_self=$enable_dlopen_self
12912
12913 # Whether dlopen of statically linked programs is supported.
12914 dlopen_self_static=$enable_dlopen_self_static
12915
12916 # Compiler flag to prevent dynamic linking.
12917 link_static_flag=$lt_lt_prog_compiler_static_CXX
12918
12919 # Compiler flag to turn off builtin functions.
12920 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12921
12922 # Compiler flag to allow reflexive dlopens.
12923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12924
12925 # Compiler flag to generate shared objects directly from archives.
12926 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12927
12928 # Compiler flag to generate thread-safe objects.
12929 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12930
12931 # Library versioning type.
12932 version_type=$version_type
12933
12934 # Format of library name prefix.
12935 libname_spec=$lt_libname_spec
12936
12937 # List of archive names.  First name is the real one, the rest are links.
12938 # The last name is the one that the linker finds with -lNAME.
12939 library_names_spec=$lt_library_names_spec
12940
12941 # The coded name of the library, if different from the real name.
12942 soname_spec=$lt_soname_spec
12943
12944 # Commands used to build and install an old-style archive.
12945 RANLIB=$lt_RANLIB
12946 old_archive_cmds=$lt_old_archive_cmds_CXX
12947 old_postinstall_cmds=$lt_old_postinstall_cmds
12948 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12949
12950 # Create an old-style archive from a shared archive.
12951 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12952
12953 # Create a temporary old-style archive to link instead of a shared archive.
12954 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12955
12956 # Commands used to build and install a shared archive.
12957 archive_cmds=$lt_archive_cmds_CXX
12958 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12959 postinstall_cmds=$lt_postinstall_cmds
12960 postuninstall_cmds=$lt_postuninstall_cmds
12961
12962 # Commands used to build a loadable module (assumed same as above if empty)
12963 module_cmds=$lt_module_cmds_CXX
12964 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12965
12966 # Commands to strip libraries.
12967 old_striplib=$lt_old_striplib
12968 striplib=$lt_striplib
12969
12970 # Dependencies to place before the objects being linked to create a
12971 # shared library.
12972 predep_objects=$lt_predep_objects_CXX
12973
12974 # Dependencies to place after the objects being linked to create a
12975 # shared library.
12976 postdep_objects=$lt_postdep_objects_CXX
12977
12978 # Dependencies to place before the objects being linked to create a
12979 # shared library.
12980 predeps=$lt_predeps_CXX
12981
12982 # Dependencies to place after the objects being linked to create a
12983 # shared library.
12984 postdeps=$lt_postdeps_CXX
12985
12986 # The library search path used internally by the compiler when linking
12987 # a shared library.
12988 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12989
12990 # Method to check whether dependent libraries are shared objects.
12991 deplibs_check_method=$lt_deplibs_check_method
12992
12993 # Command to use when deplibs_check_method == file_magic.
12994 file_magic_cmd=$lt_file_magic_cmd
12995
12996 # Flag that allows shared libraries with undefined symbols to be built.
12997 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12998
12999 # Flag that forces no undefined symbols.
13000 no_undefined_flag=$lt_no_undefined_flag_CXX
13001
13002 # Commands used to finish a libtool library installation in a directory.
13003 finish_cmds=$lt_finish_cmds
13004
13005 # Same as above, but a single script fragment to be evaled but not shown.
13006 finish_eval=$lt_finish_eval
13007
13008 # Take the output of nm and produce a listing of raw symbols and C names.
13009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13010
13011 # Transform the output of nm in a proper C declaration
13012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13013
13014 # Transform the output of nm in a C name address pair
13015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13016
13017 # This is the shared library runtime path variable.
13018 runpath_var=$runpath_var
13019
13020 # This is the shared library path variable.
13021 shlibpath_var=$shlibpath_var
13022
13023 # Is shlibpath searched before the hard-coded library search path?
13024 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13025
13026 # How to hardcode a shared library path into an executable.
13027 hardcode_action=$hardcode_action_CXX
13028
13029 # Whether we should hardcode library paths into libraries.
13030 hardcode_into_libs=$hardcode_into_libs
13031
13032 # Flag to hardcode \$libdir into a binary during linking.
13033 # This must work even if \$libdir does not exist.
13034 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13035
13036 # If ld is used when linking, flag to hardcode \$libdir into
13037 # a binary during linking. This must work even if \$libdir does
13038 # not exist.
13039 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13040
13041 # Whether we need a single -rpath flag with a separated argument.
13042 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13043
13044 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13045 # resulting binary.
13046 hardcode_direct=$hardcode_direct_CXX
13047
13048 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13049 # resulting binary.
13050 hardcode_minus_L=$hardcode_minus_L_CXX
13051
13052 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13053 # the resulting binary.
13054 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13055
13056 # Set to yes if building a shared library automatically hardcodes DIR into the library
13057 # and all subsequent libraries and executables linked against it.
13058 hardcode_automatic=$hardcode_automatic_CXX
13059
13060 # Variables whose values should be saved in libtool wrapper scripts and
13061 # restored at relink time.
13062 variables_saved_for_relink="$variables_saved_for_relink"
13063
13064 # Whether libtool must link a program against all its dependency libraries.
13065 link_all_deplibs=$link_all_deplibs_CXX
13066
13067 # Compile-time system search path for libraries
13068 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13069
13070 # Run-time system search path for libraries
13071 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13072
13073 # Fix the shell variable \$srcfile for the compiler.
13074 fix_srcfile_path="$fix_srcfile_path_CXX"
13075
13076 # Set to yes if exported symbols are required.
13077 always_export_symbols=$always_export_symbols_CXX
13078
13079 # The commands to list exported symbols.
13080 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13081
13082 # The commands to extract the exported symbol list from a shared archive.
13083 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13084
13085 # Symbols that should not be listed in the preloaded symbols.
13086 exclude_expsyms=$lt_exclude_expsyms_CXX
13087
13088 # Symbols that must always be exported.
13089 include_expsyms=$lt_include_expsyms_CXX
13090
13091 # ### END LIBTOOL TAG CONFIG: $tagname
13092
13093 __EOF__
13094
13095
13096 else
13097   # If there is no Makefile yet, we rely on a make rule to execute
13098   # `config.status --recheck' to rerun these tests and create the
13099   # libtool script then.
13100   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13101   if test -f "$ltmain_in"; then
13102     test -f Makefile && make "$ltmain"
13103   fi
13104 fi
13105
13106
13107 ac_ext=c
13108 ac_cpp='$CPP $CPPFLAGS'
13109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13112
13113 CC=$lt_save_CC
13114 LDCXX=$LD
13115 LD=$lt_save_LD
13116 GCC=$lt_save_GCC
13117 with_gnu_ldcxx=$with_gnu_ld
13118 with_gnu_ld=$lt_save_with_gnu_ld
13119 lt_cv_path_LDCXX=$lt_cv_path_LD
13120 lt_cv_path_LD=$lt_save_path_LD
13121 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13122 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13123
13124         else
13125           tagname=""
13126         fi
13127         ;;
13128
13129       F77)
13130         if test -n "$F77" && test "X$F77" != "Xno"; then
13131
13132 ac_ext=f
13133 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13134 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13136
13137
13138 archive_cmds_need_lc_F77=no
13139 allow_undefined_flag_F77=
13140 always_export_symbols_F77=no
13141 archive_expsym_cmds_F77=
13142 export_dynamic_flag_spec_F77=
13143 hardcode_direct_F77=no
13144 hardcode_libdir_flag_spec_F77=
13145 hardcode_libdir_flag_spec_ld_F77=
13146 hardcode_libdir_separator_F77=
13147 hardcode_minus_L_F77=no
13148 hardcode_automatic_F77=no
13149 module_cmds_F77=
13150 module_expsym_cmds_F77=
13151 link_all_deplibs_F77=unknown
13152 old_archive_cmds_F77=$old_archive_cmds
13153 no_undefined_flag_F77=
13154 whole_archive_flag_spec_F77=
13155 enable_shared_with_static_runtimes_F77=no
13156
13157 # Source file extension for f77 test sources.
13158 ac_ext=f
13159
13160 # Object file extension for compiled f77 test sources.
13161 objext=o
13162 objext_F77=$objext
13163
13164 # Code to be used in simple compile tests
13165 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13166
13167 # Code to be used in simple link tests
13168 lt_simple_link_test_code="      program t\n      end\n"
13169
13170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13171
13172 # If no C compiler was specified, use CC.
13173 LTCC=${LTCC-"$CC"}
13174
13175 # If no C compiler flags were specified, use CFLAGS.
13176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13177
13178 # Allow CC to be a program name with arguments.
13179 compiler=$CC
13180
13181
13182 # save warnings/boilerplate of simple test code
13183 ac_outfile=conftest.$ac_objext
13184 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13185 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13186 _lt_compiler_boilerplate=`cat conftest.err`
13187 $rm conftest*
13188
13189 ac_outfile=conftest.$ac_objext
13190 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13191 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13192 _lt_linker_boilerplate=`cat conftest.err`
13193 $rm conftest*
13194
13195
13196 # Allow CC to be a program name with arguments.
13197 lt_save_CC="$CC"
13198 CC=${F77-"f77"}
13199 compiler=$CC
13200 compiler_F77=$CC
13201 for cc_temp in $compiler""; do
13202   case $cc_temp in
13203     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13204     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13205     \-*) ;;
13206     *) break;;
13207   esac
13208 done
13209 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13210
13211
13212 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13213 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13214 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13215 echo "${ECHO_T}$can_build_shared" >&6
13216
13217 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13218 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13219 test "$can_build_shared" = "no" && enable_shared=no
13220
13221 # On AIX, shared libraries and static libraries use the same namespace, and
13222 # are all built from PIC.
13223 case $host_os in
13224 aix3*)
13225   test "$enable_shared" = yes && enable_static=no
13226   if test -n "$RANLIB"; then
13227     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13228     postinstall_cmds='$RANLIB $lib'
13229   fi
13230   ;;
13231 aix4* | aix5*)
13232   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13233     test "$enable_shared" = yes && enable_static=no
13234   fi
13235   ;;
13236 esac
13237 echo "$as_me:$LINENO: result: $enable_shared" >&5
13238 echo "${ECHO_T}$enable_shared" >&6
13239
13240 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13241 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13242 # Make sure either enable_shared or enable_static is yes.
13243 test "$enable_shared" = yes || enable_static=yes
13244 echo "$as_me:$LINENO: result: $enable_static" >&5
13245 echo "${ECHO_T}$enable_static" >&6
13246
13247 GCC_F77="$G77"
13248 LD_F77="$LD"
13249
13250 lt_prog_compiler_wl_F77=
13251 lt_prog_compiler_pic_F77=
13252 lt_prog_compiler_static_F77=
13253
13254 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13255 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13256
13257   if test "$GCC" = yes; then
13258     lt_prog_compiler_wl_F77='-Wl,'
13259     lt_prog_compiler_static_F77='-static'
13260
13261     case $host_os in
13262       aix*)
13263       # All AIX code is PIC.
13264       if test "$host_cpu" = ia64; then
13265         # AIX 5 now supports IA64 processor
13266         lt_prog_compiler_static_F77='-Bstatic'
13267       fi
13268       ;;
13269
13270     amigaos*)
13271       # FIXME: we need at least 68020 code to build shared libraries, but
13272       # adding the `-m68020' flag to GCC prevents building anything better,
13273       # like `-m68040'.
13274       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13275       ;;
13276
13277     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13278       # PIC is the default for these OSes.
13279       ;;
13280
13281     mingw* | pw32* | os2*)
13282       # This hack is so that the source file can tell whether it is being
13283       # built for inclusion in a dll (and should export symbols for example).
13284       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13285       ;;
13286
13287     darwin* | rhapsody*)
13288       # PIC is the default on this platform
13289       # Common symbols not allowed in MH_DYLIB files
13290       lt_prog_compiler_pic_F77='-fno-common'
13291       ;;
13292
13293     interix3*)
13294       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13295       # Instead, we relocate shared libraries at runtime.
13296       ;;
13297
13298     msdosdjgpp*)
13299       # Just because we use GCC doesn't mean we suddenly get shared libraries
13300       # on systems that don't support them.
13301       lt_prog_compiler_can_build_shared_F77=no
13302       enable_shared=no
13303       ;;
13304
13305     sysv4*MP*)
13306       if test -d /usr/nec; then
13307         lt_prog_compiler_pic_F77=-Kconform_pic
13308       fi
13309       ;;
13310
13311     hpux*)
13312       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13313       # not for PA HP-UX.
13314       case $host_cpu in
13315       hppa*64*|ia64*)
13316         # +Z the default
13317         ;;
13318       *)
13319         lt_prog_compiler_pic_F77='-fPIC'
13320         ;;
13321       esac
13322       ;;
13323
13324     *)
13325       lt_prog_compiler_pic_F77='-fPIC'
13326       ;;
13327     esac
13328   else
13329     # PORTME Check for flag to pass linker flags through the system compiler.
13330     case $host_os in
13331     aix*)
13332       lt_prog_compiler_wl_F77='-Wl,'
13333       if test "$host_cpu" = ia64; then
13334         # AIX 5 now supports IA64 processor
13335         lt_prog_compiler_static_F77='-Bstatic'
13336       else
13337         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13338       fi
13339       ;;
13340       darwin*)
13341         # PIC is the default on this platform
13342         # Common symbols not allowed in MH_DYLIB files
13343        case $cc_basename in
13344          xlc*)
13345          lt_prog_compiler_pic_F77='-qnocommon'
13346          lt_prog_compiler_wl_F77='-Wl,'
13347          ;;
13348        esac
13349        ;;
13350
13351     mingw* | pw32* | os2*)
13352       # This hack is so that the source file can tell whether it is being
13353       # built for inclusion in a dll (and should export symbols for example).
13354       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13355       ;;
13356
13357     hpux9* | hpux10* | hpux11*)
13358       lt_prog_compiler_wl_F77='-Wl,'
13359       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13360       # not for PA HP-UX.
13361       case $host_cpu in
13362       hppa*64*|ia64*)
13363         # +Z the default
13364         ;;
13365       *)
13366         lt_prog_compiler_pic_F77='+Z'
13367         ;;
13368       esac
13369       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13370       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13371       ;;
13372
13373     irix5* | irix6* | nonstopux*)
13374       lt_prog_compiler_wl_F77='-Wl,'
13375       # PIC (with -KPIC) is the default.
13376       lt_prog_compiler_static_F77='-non_shared'
13377       ;;
13378
13379     newsos6)
13380       lt_prog_compiler_pic_F77='-KPIC'
13381       lt_prog_compiler_static_F77='-Bstatic'
13382       ;;
13383
13384     linux*)
13385       case $cc_basename in
13386       icc* | ecc*)
13387         lt_prog_compiler_wl_F77='-Wl,'
13388         lt_prog_compiler_pic_F77='-KPIC'
13389         lt_prog_compiler_static_F77='-static'
13390         ;;
13391       pgcc* | pgf77* | pgf90* | pgf95*)
13392         # Portland Group compilers (*not* the Pentium gcc compiler,
13393         # which looks to be a dead project)
13394         lt_prog_compiler_wl_F77='-Wl,'
13395         lt_prog_compiler_pic_F77='-fpic'
13396         lt_prog_compiler_static_F77='-Bstatic'
13397         ;;
13398       ccc*)
13399         lt_prog_compiler_wl_F77='-Wl,'
13400         # All Alpha code is PIC.
13401         lt_prog_compiler_static_F77='-non_shared'
13402         ;;
13403       esac
13404       ;;
13405
13406     osf3* | osf4* | osf5*)
13407       lt_prog_compiler_wl_F77='-Wl,'
13408       # All OSF/1 code is PIC.
13409       lt_prog_compiler_static_F77='-non_shared'
13410       ;;
13411
13412     solaris*)
13413       lt_prog_compiler_pic_F77='-KPIC'
13414       lt_prog_compiler_static_F77='-Bstatic'
13415       case $cc_basename in
13416       f77* | f90* | f95*)
13417         lt_prog_compiler_wl_F77='-Qoption ld ';;
13418       *)
13419         lt_prog_compiler_wl_F77='-Wl,';;
13420       esac
13421       ;;
13422
13423     sunos4*)
13424       lt_prog_compiler_wl_F77='-Qoption ld '
13425       lt_prog_compiler_pic_F77='-PIC'
13426       lt_prog_compiler_static_F77='-Bstatic'
13427       ;;
13428
13429     sysv4 | sysv4.2uw2* | sysv4.3*)
13430       lt_prog_compiler_wl_F77='-Wl,'
13431       lt_prog_compiler_pic_F77='-KPIC'
13432       lt_prog_compiler_static_F77='-Bstatic'
13433       ;;
13434
13435     sysv4*MP*)
13436       if test -d /usr/nec ;then
13437         lt_prog_compiler_pic_F77='-Kconform_pic'
13438         lt_prog_compiler_static_F77='-Bstatic'
13439       fi
13440       ;;
13441
13442     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13443       lt_prog_compiler_wl_F77='-Wl,'
13444       lt_prog_compiler_pic_F77='-KPIC'
13445       lt_prog_compiler_static_F77='-Bstatic'
13446       ;;
13447
13448     unicos*)
13449       lt_prog_compiler_wl_F77='-Wl,'
13450       lt_prog_compiler_can_build_shared_F77=no
13451       ;;
13452
13453     uts4*)
13454       lt_prog_compiler_pic_F77='-pic'
13455       lt_prog_compiler_static_F77='-Bstatic'
13456       ;;
13457
13458     *)
13459       lt_prog_compiler_can_build_shared_F77=no
13460       ;;
13461     esac
13462   fi
13463
13464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13465 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13466
13467 #
13468 # Check to make sure the PIC flag actually works.
13469 #
13470 if test -n "$lt_prog_compiler_pic_F77"; then
13471
13472 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13474 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   lt_prog_compiler_pic_works_F77=no
13478   ac_outfile=conftest.$ac_objext
13479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13480    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13481    # Insert the option either (1) after the last *FLAGS variable, or
13482    # (2) before a word containing "conftest.", or (3) at the end.
13483    # Note that $ac_compile itself does not contain backslashes and begins
13484    # with a dollar sign (not a hyphen), so the echo should work correctly.
13485    # The option is referenced via a variable to avoid confusing sed.
13486    lt_compile=`echo "$ac_compile" | $SED \
13487    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13489    -e 's:$: $lt_compiler_flag:'`
13490    (eval echo "\"\$as_me:13490: $lt_compile\"" >&5)
13491    (eval "$lt_compile" 2>conftest.err)
13492    ac_status=$?
13493    cat conftest.err >&5
13494    echo "$as_me:13494: \$? = $ac_status" >&5
13495    if (exit $ac_status) && test -s "$ac_outfile"; then
13496      # The compiler can only warn and ignore the option if not recognized
13497      # So say no if there are warnings other than the usual output.
13498      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13499      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13500      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13501        lt_prog_compiler_pic_works_F77=yes
13502      fi
13503    fi
13504    $rm conftest*
13505
13506 fi
13507 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13508 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13509
13510 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13511     case $lt_prog_compiler_pic_F77 in
13512      "" | " "*) ;;
13513      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13514      esac
13515 else
13516     lt_prog_compiler_pic_F77=
13517      lt_prog_compiler_can_build_shared_F77=no
13518 fi
13519
13520 fi
13521 case $host_os in
13522   # For platforms which do not support PIC, -DPIC is meaningless:
13523   *djgpp*)
13524     lt_prog_compiler_pic_F77=
13525     ;;
13526   *)
13527     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13528     ;;
13529 esac
13530
13531 #
13532 # Check to make sure the static flag actually works.
13533 #
13534 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13535 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13536 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13537 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   lt_prog_compiler_static_works_F77=no
13541    save_LDFLAGS="$LDFLAGS"
13542    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13543    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13544    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13545      # The linker can only warn and ignore the option if not recognized
13546      # So say no if there are warnings
13547      if test -s conftest.err; then
13548        # Append any errors to the config.log.
13549        cat conftest.err 1>&5
13550        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13551        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13552        if diff conftest.exp conftest.er2 >/dev/null; then
13553          lt_prog_compiler_static_works_F77=yes
13554        fi
13555      else
13556        lt_prog_compiler_static_works_F77=yes
13557      fi
13558    fi
13559    $rm conftest*
13560    LDFLAGS="$save_LDFLAGS"
13561
13562 fi
13563 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13564 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13565
13566 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13567     :
13568 else
13569     lt_prog_compiler_static_F77=
13570 fi
13571
13572
13573 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13575 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13576   echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578   lt_cv_prog_compiler_c_o_F77=no
13579    $rm -r conftest 2>/dev/null
13580    mkdir conftest
13581    cd conftest
13582    mkdir out
13583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13584
13585    lt_compiler_flag="-o out/conftest2.$ac_objext"
13586    # Insert the option either (1) after the last *FLAGS variable, or
13587    # (2) before a word containing "conftest.", or (3) at the end.
13588    # Note that $ac_compile itself does not contain backslashes and begins
13589    # with a dollar sign (not a hyphen), so the echo should work correctly.
13590    lt_compile=`echo "$ac_compile" | $SED \
13591    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13593    -e 's:$: $lt_compiler_flag:'`
13594    (eval echo "\"\$as_me:13594: $lt_compile\"" >&5)
13595    (eval "$lt_compile" 2>out/conftest.err)
13596    ac_status=$?
13597    cat out/conftest.err >&5
13598    echo "$as_me:13598: \$? = $ac_status" >&5
13599    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13600    then
13601      # The compiler can only warn and ignore the option if not recognized
13602      # So say no if there are warnings
13603      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13604      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13605      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13606        lt_cv_prog_compiler_c_o_F77=yes
13607      fi
13608    fi
13609    chmod u+w . 2>&5
13610    $rm conftest*
13611    # SGI C++ compiler will create directory out/ii_files/ for
13612    # template instantiation
13613    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13614    $rm out/* && rmdir out
13615    cd ..
13616    rmdir conftest
13617    $rm conftest*
13618
13619 fi
13620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13622
13623
13624 hard_links="nottested"
13625 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13626   # do not overwrite the value of need_locks provided by the user
13627   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13629   hard_links=yes
13630   $rm conftest*
13631   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13632   touch conftest.a
13633   ln conftest.a conftest.b 2>&5 || hard_links=no
13634   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13635   echo "$as_me:$LINENO: result: $hard_links" >&5
13636 echo "${ECHO_T}$hard_links" >&6
13637   if test "$hard_links" = no; then
13638     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13640     need_locks=warn
13641   fi
13642 else
13643   need_locks=no
13644 fi
13645
13646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13648
13649   runpath_var=
13650   allow_undefined_flag_F77=
13651   enable_shared_with_static_runtimes_F77=no
13652   archive_cmds_F77=
13653   archive_expsym_cmds_F77=
13654   old_archive_From_new_cmds_F77=
13655   old_archive_from_expsyms_cmds_F77=
13656   export_dynamic_flag_spec_F77=
13657   whole_archive_flag_spec_F77=
13658   thread_safe_flag_spec_F77=
13659   hardcode_libdir_flag_spec_F77=
13660   hardcode_libdir_flag_spec_ld_F77=
13661   hardcode_libdir_separator_F77=
13662   hardcode_direct_F77=no
13663   hardcode_minus_L_F77=no
13664   hardcode_shlibpath_var_F77=unsupported
13665   link_all_deplibs_F77=unknown
13666   hardcode_automatic_F77=no
13667   module_cmds_F77=
13668   module_expsym_cmds_F77=
13669   always_export_symbols_F77=no
13670   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13671   # include_expsyms should be a list of space-separated symbols to be *always*
13672   # included in the symbol list
13673   include_expsyms_F77=
13674   # exclude_expsyms can be an extended regexp of symbols to exclude
13675   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13676   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13677   # as well as any symbol that contains `d'.
13678   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13679   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13680   # platforms (ab)use it in PIC code, but their linkers get confused if
13681   # the symbol is explicitly referenced.  Since portable code cannot
13682   # rely on this symbol name, it's probably fine to never include it in
13683   # preloaded symbol tables.
13684   extract_expsyms_cmds=
13685   # Just being paranoid about ensuring that cc_basename is set.
13686   for cc_temp in $compiler""; do
13687   case $cc_temp in
13688     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13689     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13690     \-*) ;;
13691     *) break;;
13692   esac
13693 done
13694 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13695
13696   case $host_os in
13697   cygwin* | mingw* | pw32*)
13698     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13699     # When not using gcc, we currently assume that we are using
13700     # Microsoft Visual C++.
13701     if test "$GCC" != yes; then
13702       with_gnu_ld=no
13703     fi
13704     ;;
13705   interix*)
13706     # we just hope/assume this is gcc and not c89 (= MSVC++)
13707     with_gnu_ld=yes
13708     ;;
13709   openbsd*)
13710     with_gnu_ld=no
13711     ;;
13712   esac
13713
13714   ld_shlibs_F77=yes
13715   if test "$with_gnu_ld" = yes; then
13716     # If archive_cmds runs LD, not CC, wlarc should be empty
13717     wlarc='${wl}'
13718
13719     # Set some defaults for GNU ld with shared library support. These
13720     # are reset later if shared libraries are not supported. Putting them
13721     # here allows them to be overridden if necessary.
13722     runpath_var=LD_RUN_PATH
13723     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13724     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13725     # ancient GNU ld didn't support --whole-archive et. al.
13726     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13727         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13728       else
13729         whole_archive_flag_spec_F77=
13730     fi
13731     supports_anon_versioning=no
13732     case `$LD -v 2>/dev/null` in
13733       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13734       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13735       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13736       *\ 2.11.*) ;; # other 2.11 versions
13737       *) supports_anon_versioning=yes ;;
13738     esac
13739
13740     # See if GNU ld supports shared libraries.
13741     case $host_os in
13742     aix3* | aix4* | aix5*)
13743       # On AIX/PPC, the GNU linker is very broken
13744       if test "$host_cpu" != ia64; then
13745         ld_shlibs_F77=no
13746         cat <<EOF 1>&2
13747
13748 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13749 *** to be unable to reliably create shared libraries on AIX.
13750 *** Therefore, libtool is disabling shared libraries support.  If you
13751 *** really care for shared libraries, you may want to modify your PATH
13752 *** so that a non-GNU linker is found, and then restart.
13753
13754 EOF
13755       fi
13756       ;;
13757
13758     amigaos*)
13759       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)'
13760       hardcode_libdir_flag_spec_F77='-L$libdir'
13761       hardcode_minus_L_F77=yes
13762
13763       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13764       # that the semantics of dynamic libraries on AmigaOS, at least up
13765       # to version 4, is to share data among multiple programs linked
13766       # with the same dynamic library.  Since this doesn't match the
13767       # behavior of shared libraries on other platforms, we can't use
13768       # them.
13769       ld_shlibs_F77=no
13770       ;;
13771
13772     beos*)
13773       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13774         allow_undefined_flag_F77=unsupported
13775         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13776         # support --undefined.  This deserves some investigation.  FIXME
13777         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13778       else
13779         ld_shlibs_F77=no
13780       fi
13781       ;;
13782
13783     cygwin* | mingw* | pw32*)
13784       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13785       # as there is no search path for DLLs.
13786       hardcode_libdir_flag_spec_F77='-L$libdir'
13787       allow_undefined_flag_F77=unsupported
13788       always_export_symbols_F77=no
13789       enable_shared_with_static_runtimes_F77=yes
13790       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13791
13792       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13793         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13794         # If the export-symbols file already is a .def file (1st line
13795         # is EXPORTS), use it as is; otherwise, prepend...
13796         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13797           cp $export_symbols $output_objdir/$soname.def;
13798         else
13799           echo EXPORTS > $output_objdir/$soname.def;
13800           cat $export_symbols >> $output_objdir/$soname.def;
13801         fi~
13802         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13803       else
13804         ld_shlibs_F77=no
13805       fi
13806       ;;
13807
13808     interix3*)
13809       hardcode_direct_F77=no
13810       hardcode_shlibpath_var_F77=no
13811       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13812       export_dynamic_flag_spec_F77='${wl}-E'
13813       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13814       # Instead, shared libraries are loaded at an image base (0x10000000 by
13815       # default) and relocated if they conflict, which is a slow very memory
13816       # consuming and fragmenting process.  To avoid this, we pick a random,
13817       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13818       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13819       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13820       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13821       ;;
13822
13823     linux*)
13824       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13825         tmp_addflag=
13826         case $cc_basename,$host_cpu in
13827         pgcc*)                          # Portland Group C compiler
13828           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13829           tmp_addflag=' $pic_flag'
13830           ;;
13831         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13832           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13833           tmp_addflag=' $pic_flag -Mnomain' ;;
13834         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13835           tmp_addflag=' -i_dynamic' ;;
13836         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13837           tmp_addflag=' -i_dynamic -nofor_main' ;;
13838         ifc* | ifort*)                  # Intel Fortran compiler
13839           tmp_addflag=' -nofor_main' ;;
13840         esac
13841         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13842
13843         if test $supports_anon_versioning = yes; then
13844           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13845   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13846   $echo "local: *; };" >> $output_objdir/$libname.ver~
13847           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13848         fi
13849       else
13850         ld_shlibs_F77=no
13851       fi
13852       ;;
13853
13854     netbsd*)
13855       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13856         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13857         wlarc=
13858       else
13859         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13860         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13861       fi
13862       ;;
13863
13864     solaris*)
13865       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13866         ld_shlibs_F77=no
13867         cat <<EOF 1>&2
13868
13869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13870 *** create shared libraries on Solaris systems.  Therefore, libtool
13871 *** is disabling shared libraries support.  We urge you to upgrade GNU
13872 *** binutils to release 2.9.1 or newer.  Another option is to modify
13873 *** your PATH or compiler configuration so that the native linker is
13874 *** used, and then restart.
13875
13876 EOF
13877       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13878         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13879         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13880       else
13881         ld_shlibs_F77=no
13882       fi
13883       ;;
13884
13885     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13886       case `$LD -v 2>&1` in
13887         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13888         ld_shlibs_F77=no
13889         cat <<_LT_EOF 1>&2
13890
13891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13892 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13893 *** is disabling shared libraries support.  We urge you to upgrade GNU
13894 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13895 *** your PATH or compiler configuration so that the native linker is
13896 *** used, and then restart.
13897
13898 _LT_EOF
13899         ;;
13900         *)
13901           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13902             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13903             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13904             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13905           else
13906             ld_shlibs_F77=no
13907           fi
13908         ;;
13909       esac
13910       ;;
13911
13912     sunos4*)
13913       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13914       wlarc=
13915       hardcode_direct_F77=yes
13916       hardcode_shlibpath_var_F77=no
13917       ;;
13918
13919     *)
13920       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13921         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13922         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13923       else
13924         ld_shlibs_F77=no
13925       fi
13926       ;;
13927     esac
13928
13929     if test "$ld_shlibs_F77" = no; then
13930       runpath_var=
13931       hardcode_libdir_flag_spec_F77=
13932       export_dynamic_flag_spec_F77=
13933       whole_archive_flag_spec_F77=
13934     fi
13935   else
13936     # PORTME fill in a description of your system's linker (not GNU ld)
13937     case $host_os in
13938     aix3*)
13939       allow_undefined_flag_F77=unsupported
13940       always_export_symbols_F77=yes
13941       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'
13942       # Note: this linker hardcodes the directories in LIBPATH if there
13943       # are no directories specified by -L.
13944       hardcode_minus_L_F77=yes
13945       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13946         # Neither direct hardcoding nor static linking is supported with a
13947         # broken collect2.
13948         hardcode_direct_F77=unsupported
13949       fi
13950       ;;
13951
13952     aix4* | aix5*)
13953       if test "$host_cpu" = ia64; then
13954         # On IA64, the linker does run time linking by default, so we don't
13955         # have to do anything special.
13956         aix_use_runtimelinking=no
13957         exp_sym_flag='-Bexport'
13958         no_entry_flag=""
13959       else
13960         # If we're using GNU nm, then we don't want the "-C" option.
13961         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13962         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13963           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'
13964         else
13965           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'
13966         fi
13967         aix_use_runtimelinking=no
13968
13969         # Test if we are trying to use run time linking or normal
13970         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13971         # need to do runtime linking.
13972         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13973           for ld_flag in $LDFLAGS; do
13974           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13975             aix_use_runtimelinking=yes
13976             break
13977           fi
13978           done
13979           ;;
13980         esac
13981
13982         exp_sym_flag='-bexport'
13983         no_entry_flag='-bnoentry'
13984       fi
13985
13986       # When large executables or shared objects are built, AIX ld can
13987       # have problems creating the table of contents.  If linking a library
13988       # or program results in "error TOC overflow" add -mminimal-toc to
13989       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13990       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13991
13992       archive_cmds_F77=''
13993       hardcode_direct_F77=yes
13994       hardcode_libdir_separator_F77=':'
13995       link_all_deplibs_F77=yes
13996
13997       if test "$GCC" = yes; then
13998         case $host_os in aix4.[012]|aix4.[012].*)
13999         # We only want to do this on AIX 4.2 and lower, the check
14000         # below for broken collect2 doesn't work under 4.3+
14001           collect2name=`${CC} -print-prog-name=collect2`
14002           if test -f "$collect2name" && \
14003            strings "$collect2name" | grep resolve_lib_name >/dev/null
14004           then
14005           # We have reworked collect2
14006           hardcode_direct_F77=yes
14007           else
14008           # We have old collect2
14009           hardcode_direct_F77=unsupported
14010           # It fails to find uninstalled libraries when the uninstalled
14011           # path is not listed in the libpath.  Setting hardcode_minus_L
14012           # to unsupported forces relinking
14013           hardcode_minus_L_F77=yes
14014           hardcode_libdir_flag_spec_F77='-L$libdir'
14015           hardcode_libdir_separator_F77=
14016           fi
14017           ;;
14018         esac
14019         shared_flag='-shared'
14020         if test "$aix_use_runtimelinking" = yes; then
14021           shared_flag="$shared_flag "'${wl}-G'
14022         fi
14023       else
14024         # not using gcc
14025         if test "$host_cpu" = ia64; then
14026         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14027         # chokes on -Wl,-G. The following line is correct:
14028           shared_flag='-G'
14029         else
14030           if test "$aix_use_runtimelinking" = yes; then
14031             shared_flag='${wl}-G'
14032           else
14033             shared_flag='${wl}-bM:SRE'
14034           fi
14035         fi
14036       fi
14037
14038       # It seems that -bexpall does not export symbols beginning with
14039       # underscore (_), so it is better to generate a list of symbols to export.
14040       always_export_symbols_F77=yes
14041       if test "$aix_use_runtimelinking" = yes; then
14042         # Warning - without using the other runtime loading flags (-brtl),
14043         # -berok will link without error, but may produce a broken library.
14044         allow_undefined_flag_F77='-berok'
14045        # Determine the default libpath from the value encoded in an empty executable.
14046        cat >conftest.$ac_ext <<_ACEOF
14047       program main
14048
14049       end
14050 _ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053   (eval $ac_link) 2>conftest.er1
14054   ac_status=$?
14055   grep -v '^ *+' conftest.er1 >conftest.err
14056   rm -f conftest.er1
14057   cat conftest.err >&5
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } &&
14060          { ac_try='test -z "$ac_f77_werror_flag"
14061                          || test ! -s conftest.err'
14062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063   (eval $ac_try) 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); }; } &&
14067          { ac_try='test -s conftest$ac_exeext'
14068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069   (eval $ac_try) 2>&5
14070   ac_status=$?
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); }; }; then
14073
14074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14075 }'`
14076 # Check for a 64-bit object if we didn't find anything.
14077 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; }
14078 }'`; fi
14079 else
14080   echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 fi
14084 rm -f conftest.err conftest.$ac_objext \
14085       conftest$ac_exeext conftest.$ac_ext
14086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14087
14088        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14089         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14090        else
14091         if test "$host_cpu" = ia64; then
14092           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14093           allow_undefined_flag_F77="-z nodefs"
14094           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14095         else
14096          # Determine the default libpath from the value encoded in an empty executable.
14097          cat >conftest.$ac_ext <<_ACEOF
14098       program main
14099
14100       end
14101 _ACEOF
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104   (eval $ac_link) 2>conftest.er1
14105   ac_status=$?
14106   grep -v '^ *+' conftest.er1 >conftest.err
14107   rm -f conftest.er1
14108   cat conftest.err >&5
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } &&
14111          { ac_try='test -z "$ac_f77_werror_flag"
14112                          || test ! -s conftest.err'
14113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114   (eval $ac_try) 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }; } &&
14118          { ac_try='test -s conftest$ac_exeext'
14119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120   (eval $ac_try) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; }; then
14124
14125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14126 }'`
14127 # Check for a 64-bit object if we didn't find anything.
14128 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; }
14129 }'`; fi
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134 fi
14135 rm -f conftest.err conftest.$ac_objext \
14136       conftest$ac_exeext conftest.$ac_ext
14137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14138
14139          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14140           # Warning - without using the other run time loading flags,
14141           # -berok will link without error, but may produce a broken library.
14142           no_undefined_flag_F77=' ${wl}-bernotok'
14143           allow_undefined_flag_F77=' ${wl}-berok'
14144           # Exported symbols can be pulled into shared objects from archives
14145           whole_archive_flag_spec_F77='$convenience'
14146           archive_cmds_need_lc_F77=yes
14147           # This is similar to how AIX traditionally builds its shared libraries.
14148           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14149         fi
14150       fi
14151       ;;
14152
14153     amigaos*)
14154       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)'
14155       hardcode_libdir_flag_spec_F77='-L$libdir'
14156       hardcode_minus_L_F77=yes
14157       # see comment about different semantics on the GNU ld section
14158       ld_shlibs_F77=no
14159       ;;
14160
14161     bsdi[45]*)
14162       export_dynamic_flag_spec_F77=-rdynamic
14163       ;;
14164
14165     cygwin* | mingw* | pw32*)
14166       # When not using gcc, we currently assume that we are using
14167       # Microsoft Visual C++.
14168       # hardcode_libdir_flag_spec is actually meaningless, as there is
14169       # no search path for DLLs.
14170       hardcode_libdir_flag_spec_F77=' '
14171       allow_undefined_flag_F77=unsupported
14172       # Tell ltmain to make .lib files, not .a files.
14173       libext=lib
14174       # Tell ltmain to make .dll files, not .so files.
14175       shrext_cmds=".dll"
14176       # FIXME: Setting linknames here is a bad hack.
14177       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14178       # The linker will automatically build a .lib file if we build a DLL.
14179       old_archive_From_new_cmds_F77='true'
14180       # FIXME: Should let the user specify the lib program.
14181       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14182       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14183       enable_shared_with_static_runtimes_F77=yes
14184       ;;
14185
14186     darwin* | rhapsody*)
14187       case $host_os in
14188         rhapsody* | darwin1.[012])
14189          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14190          ;;
14191        *) # Darwin 1.3 on
14192          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14193            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14194          else
14195            case ${MACOSX_DEPLOYMENT_TARGET} in
14196              10.[012])
14197                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14198                ;;
14199              10.*)
14200                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14201                ;;
14202            esac
14203          fi
14204          ;;
14205       esac
14206       archive_cmds_need_lc_F77=no
14207       hardcode_direct_F77=no
14208       hardcode_automatic_F77=yes
14209       hardcode_shlibpath_var_F77=unsupported
14210       whole_archive_flag_spec_F77=''
14211       link_all_deplibs_F77=yes
14212     if test "$GCC" = yes ; then
14213         output_verbose_link_cmd='echo'
14214         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14215       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14216       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14217       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14218       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}'
14219     else
14220       case $cc_basename in
14221         xlc*)
14222          output_verbose_link_cmd='echo'
14223          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14224          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14225           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14226          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14227           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}'
14228           ;;
14229        *)
14230          ld_shlibs_F77=no
14231           ;;
14232       esac
14233     fi
14234       ;;
14235
14236     dgux*)
14237       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238       hardcode_libdir_flag_spec_F77='-L$libdir'
14239       hardcode_shlibpath_var_F77=no
14240       ;;
14241
14242     freebsd1*)
14243       ld_shlibs_F77=no
14244       ;;
14245
14246     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14247     # support.  Future versions do this automatically, but an explicit c++rt0.o
14248     # does not break anything, and helps significantly (at the cost of a little
14249     # extra space).
14250     freebsd2.2*)
14251       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14252       hardcode_libdir_flag_spec_F77='-R$libdir'
14253       hardcode_direct_F77=yes
14254       hardcode_shlibpath_var_F77=no
14255       ;;
14256
14257     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14258     freebsd2*)
14259       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14260       hardcode_direct_F77=yes
14261       hardcode_minus_L_F77=yes
14262       hardcode_shlibpath_var_F77=no
14263       ;;
14264
14265     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14266     freebsd* | kfreebsd*-gnu | dragonfly*)
14267       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14268       hardcode_libdir_flag_spec_F77='-R$libdir'
14269       hardcode_direct_F77=yes
14270       hardcode_shlibpath_var_F77=no
14271       ;;
14272
14273     hpux9*)
14274       if test "$GCC" = yes; then
14275         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'
14276       else
14277         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'
14278       fi
14279       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14280       hardcode_libdir_separator_F77=:
14281       hardcode_direct_F77=yes
14282
14283       # hardcode_minus_L: Not really in the search PATH,
14284       # but as the default location of the library.
14285       hardcode_minus_L_F77=yes
14286       export_dynamic_flag_spec_F77='${wl}-E'
14287       ;;
14288
14289     hpux10*)
14290       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14291         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14292       else
14293         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14294       fi
14295       if test "$with_gnu_ld" = no; then
14296         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14297         hardcode_libdir_separator_F77=:
14298
14299         hardcode_direct_F77=yes
14300         export_dynamic_flag_spec_F77='${wl}-E'
14301
14302         # hardcode_minus_L: Not really in the search PATH,
14303         # but as the default location of the library.
14304         hardcode_minus_L_F77=yes
14305       fi
14306       ;;
14307
14308     hpux11*)
14309       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14310         case $host_cpu in
14311         hppa*64*)
14312           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14313           ;;
14314         ia64*)
14315           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14316           ;;
14317         *)
14318           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14319           ;;
14320         esac
14321       else
14322         case $host_cpu in
14323         hppa*64*)
14324           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14325           ;;
14326         ia64*)
14327           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14328           ;;
14329         *)
14330           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14331           ;;
14332         esac
14333       fi
14334       if test "$with_gnu_ld" = no; then
14335         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14336         hardcode_libdir_separator_F77=:
14337
14338         case $host_cpu in
14339         hppa*64*|ia64*)
14340           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14341           hardcode_direct_F77=no
14342           hardcode_shlibpath_var_F77=no
14343           ;;
14344         *)
14345           hardcode_direct_F77=yes
14346           export_dynamic_flag_spec_F77='${wl}-E'
14347
14348           # hardcode_minus_L: Not really in the search PATH,
14349           # but as the default location of the library.
14350           hardcode_minus_L_F77=yes
14351           ;;
14352         esac
14353       fi
14354       ;;
14355
14356     irix5* | irix6* | nonstopux*)
14357       if test "$GCC" = yes; then
14358         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'
14359       else
14360         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'
14361         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14362       fi
14363       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14364       hardcode_libdir_separator_F77=:
14365       link_all_deplibs_F77=yes
14366       ;;
14367
14368     netbsd*)
14369       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14370         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14371       else
14372         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14373       fi
14374       hardcode_libdir_flag_spec_F77='-R$libdir'
14375       hardcode_direct_F77=yes
14376       hardcode_shlibpath_var_F77=no
14377       ;;
14378
14379     newsos6)
14380       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14381       hardcode_direct_F77=yes
14382       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14383       hardcode_libdir_separator_F77=:
14384       hardcode_shlibpath_var_F77=no
14385       ;;
14386
14387     openbsd*)
14388       hardcode_direct_F77=yes
14389       hardcode_shlibpath_var_F77=no
14390       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14391         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14392         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14393         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14394         export_dynamic_flag_spec_F77='${wl}-E'
14395       else
14396        case $host_os in
14397          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14398            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14399            hardcode_libdir_flag_spec_F77='-R$libdir'
14400            ;;
14401          *)
14402            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14403            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14404            ;;
14405        esac
14406       fi
14407       ;;
14408
14409     os2*)
14410       hardcode_libdir_flag_spec_F77='-L$libdir'
14411       hardcode_minus_L_F77=yes
14412       allow_undefined_flag_F77=unsupported
14413       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'
14414       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14415       ;;
14416
14417     osf3*)
14418       if test "$GCC" = yes; then
14419         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14420         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'
14421       else
14422         allow_undefined_flag_F77=' -expect_unresolved \*'
14423         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'
14424       fi
14425       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14426       hardcode_libdir_separator_F77=:
14427       ;;
14428
14429     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14430       if test "$GCC" = yes; then
14431         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14432         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'
14433         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14434       else
14435         allow_undefined_flag_F77=' -expect_unresolved \*'
14436         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'
14437         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~
14438         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14439
14440         # Both c and cxx compiler support -rpath directly
14441         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14442       fi
14443       hardcode_libdir_separator_F77=:
14444       ;;
14445
14446     solaris*)
14447       no_undefined_flag_F77=' -z text'
14448       if test "$GCC" = yes; then
14449         wlarc='${wl}'
14450         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14451         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14452           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14453       else
14454         wlarc=''
14455         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14456         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14457         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14458       fi
14459       hardcode_libdir_flag_spec_F77='-R$libdir'
14460       hardcode_shlibpath_var_F77=no
14461       case $host_os in
14462       solaris2.[0-5] | solaris2.[0-5].*) ;;
14463       *)
14464         # The compiler driver will combine linker options so we
14465         # cannot just pass the convience library names through
14466         # without $wl, iff we do not link with $LD.
14467         # Luckily, gcc supports the same syntax we need for Sun Studio.
14468         # Supported since Solaris 2.6 (maybe 2.5.1?)
14469         case $wlarc in
14470         '')
14471           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14472         *)
14473           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14474         esac ;;
14475       esac
14476       link_all_deplibs_F77=yes
14477       ;;
14478
14479     sunos4*)
14480       if test "x$host_vendor" = xsequent; then
14481         # Use $CC to link under sequent, because it throws in some extra .o
14482         # files that make .init and .fini sections work.
14483         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14484       else
14485         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14486       fi
14487       hardcode_libdir_flag_spec_F77='-L$libdir'
14488       hardcode_direct_F77=yes
14489       hardcode_minus_L_F77=yes
14490       hardcode_shlibpath_var_F77=no
14491       ;;
14492
14493     sysv4)
14494       case $host_vendor in
14495         sni)
14496           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14497           hardcode_direct_F77=yes # is this really true???
14498         ;;
14499         siemens)
14500           ## LD is ld it makes a PLAMLIB
14501           ## CC just makes a GrossModule.
14502           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14503           reload_cmds_F77='$CC -r -o $output$reload_objs'
14504           hardcode_direct_F77=no
14505         ;;
14506         motorola)
14507           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14508           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14509         ;;
14510       esac
14511       runpath_var='LD_RUN_PATH'
14512       hardcode_shlibpath_var_F77=no
14513       ;;
14514
14515     sysv4.3*)
14516       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14517       hardcode_shlibpath_var_F77=no
14518       export_dynamic_flag_spec_F77='-Bexport'
14519       ;;
14520
14521     sysv4*MP*)
14522       if test -d /usr/nec; then
14523         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524         hardcode_shlibpath_var_F77=no
14525         runpath_var=LD_RUN_PATH
14526         hardcode_runpath_var=yes
14527         ld_shlibs_F77=yes
14528       fi
14529       ;;
14530
14531     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14532       no_undefined_flag_F77='${wl}-z,text'
14533       archive_cmds_need_lc_F77=no
14534       hardcode_shlibpath_var_F77=no
14535       runpath_var='LD_RUN_PATH'
14536
14537       if test "$GCC" = yes; then
14538         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14539         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14540       else
14541         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543       fi
14544       ;;
14545
14546     sysv5* | sco3.2v5* | sco5v6*)
14547       # Note: We can NOT use -z defs as we might desire, because we do not
14548       # link with -lc, and that would cause any symbols used from libc to
14549       # always be unresolved, which means just about no library would
14550       # ever link correctly.  If we're not using GNU ld we use -z text
14551       # though, which does catch some bad symbols but isn't as heavy-handed
14552       # as -z defs.
14553       no_undefined_flag_F77='${wl}-z,text'
14554       allow_undefined_flag_F77='${wl}-z,nodefs'
14555       archive_cmds_need_lc_F77=no
14556       hardcode_shlibpath_var_F77=no
14557       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14558       hardcode_libdir_separator_F77=':'
14559       link_all_deplibs_F77=yes
14560       export_dynamic_flag_spec_F77='${wl}-Bexport'
14561       runpath_var='LD_RUN_PATH'
14562
14563       if test "$GCC" = yes; then
14564         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14565         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14566       else
14567         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14568         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14569       fi
14570       ;;
14571
14572     uts4*)
14573       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14574       hardcode_libdir_flag_spec_F77='-L$libdir'
14575       hardcode_shlibpath_var_F77=no
14576       ;;
14577
14578     *)
14579       ld_shlibs_F77=no
14580       ;;
14581     esac
14582   fi
14583
14584 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14585 echo "${ECHO_T}$ld_shlibs_F77" >&6
14586 test "$ld_shlibs_F77" = no && can_build_shared=no
14587
14588 #
14589 # Do we need to explicitly link libc?
14590 #
14591 case "x$archive_cmds_need_lc_F77" in
14592 x|xyes)
14593   # Assume -lc should be added
14594   archive_cmds_need_lc_F77=yes
14595
14596   if test "$enable_shared" = yes && test "$GCC" = yes; then
14597     case $archive_cmds_F77 in
14598     *'~'*)
14599       # FIXME: we may have to deal with multi-command sequences.
14600       ;;
14601     '$CC '*)
14602       # Test whether the compiler implicitly links with -lc since on some
14603       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14604       # to ld, don't add -lc before -lgcc.
14605       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14606 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14607       $rm conftest*
14608       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14609
14610       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611   (eval $ac_compile) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } 2>conftest.err; then
14615         soname=conftest
14616         lib=conftest
14617         libobjs=conftest.$ac_objext
14618         deplibs=
14619         wl=$lt_prog_compiler_wl_F77
14620         pic_flag=$lt_prog_compiler_pic_F77
14621         compiler_flags=-v
14622         linker_flags=-v
14623         verstring=
14624         output_objdir=.
14625         libname=conftest
14626         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14627         allow_undefined_flag_F77=
14628         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14629   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14630   ac_status=$?
14631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); }
14633         then
14634           archive_cmds_need_lc_F77=no
14635         else
14636           archive_cmds_need_lc_F77=yes
14637         fi
14638         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14639       else
14640         cat conftest.err 1>&5
14641       fi
14642       $rm conftest*
14643       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14644 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14645       ;;
14646     esac
14647   fi
14648   ;;
14649 esac
14650
14651 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14652 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14653 library_names_spec=
14654 libname_spec='lib$name'
14655 soname_spec=
14656 shrext_cmds=".so"
14657 postinstall_cmds=
14658 postuninstall_cmds=
14659 finish_cmds=
14660 finish_eval=
14661 shlibpath_var=
14662 shlibpath_overrides_runpath=unknown
14663 version_type=none
14664 dynamic_linker="$host_os ld.so"
14665 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14666 if test "$GCC" = yes; then
14667   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14668   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14669     # if the path contains ";" then we assume it to be the separator
14670     # otherwise default to the standard path separator (i.e. ":") - it is
14671     # assumed that no part of a normal pathname contains ";" but that should
14672     # okay in the real world where ";" in dirpaths is itself problematic.
14673     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14674   else
14675     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14676   fi
14677 else
14678   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14679 fi
14680 need_lib_prefix=unknown
14681 hardcode_into_libs=no
14682
14683 # when you set need_version to no, make sure it does not cause -set_version
14684 # flags to be left without arguments
14685 need_version=unknown
14686
14687 case $host_os in
14688 aix3*)
14689   version_type=linux
14690   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14691   shlibpath_var=LIBPATH
14692
14693   # AIX 3 has no versioning support, so we append a major version to the name.
14694   soname_spec='${libname}${release}${shared_ext}$major'
14695   ;;
14696
14697 aix4* | aix5*)
14698   version_type=linux
14699   need_lib_prefix=no
14700   need_version=no
14701   hardcode_into_libs=yes
14702   if test "$host_cpu" = ia64; then
14703     # AIX 5 supports IA64
14704     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14705     shlibpath_var=LD_LIBRARY_PATH
14706   else
14707     # With GCC up to 2.95.x, collect2 would create an import file
14708     # for dependence libraries.  The import file would start with
14709     # the line `#! .'.  This would cause the generated library to
14710     # depend on `.', always an invalid library.  This was fixed in
14711     # development snapshots of GCC prior to 3.0.
14712     case $host_os in
14713       aix4 | aix4.[01] | aix4.[01].*)
14714       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14715            echo ' yes '
14716            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14717         :
14718       else
14719         can_build_shared=no
14720       fi
14721       ;;
14722     esac
14723     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14724     # soname into executable. Probably we can add versioning support to
14725     # collect2, so additional links can be useful in future.
14726     if test "$aix_use_runtimelinking" = yes; then
14727       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14728       # instead of lib<name>.a to let people know that these are not
14729       # typical AIX shared libraries.
14730       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731     else
14732       # We preserve .a as extension for shared libraries through AIX4.2
14733       # and later when we are not doing run time linking.
14734       library_names_spec='${libname}${release}.a $libname.a'
14735       soname_spec='${libname}${release}${shared_ext}$major'
14736     fi
14737     shlibpath_var=LIBPATH
14738   fi
14739   ;;
14740
14741 amigaos*)
14742   library_names_spec='$libname.ixlibrary $libname.a'
14743   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14744   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'
14745   ;;
14746
14747 beos*)
14748   library_names_spec='${libname}${shared_ext}'
14749   dynamic_linker="$host_os ld.so"
14750   shlibpath_var=LIBRARY_PATH
14751   ;;
14752
14753 bsdi[45]*)
14754   version_type=linux
14755   need_version=no
14756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757   soname_spec='${libname}${release}${shared_ext}$major'
14758   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14759   shlibpath_var=LD_LIBRARY_PATH
14760   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14761   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14762   # the default ld.so.conf also contains /usr/contrib/lib and
14763   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14764   # libtool to hard-code these into programs
14765   ;;
14766
14767 cygwin* | mingw* | pw32*)
14768   version_type=windows
14769   shrext_cmds=".dll"
14770   need_version=no
14771   need_lib_prefix=no
14772
14773   case $GCC,$host_os in
14774   yes,cygwin* | yes,mingw* | yes,pw32*)
14775     library_names_spec='$libname.dll.a'
14776     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14777     postinstall_cmds='base_file=`basename \${file}`~
14778       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14779       dldir=$destdir/`dirname \$dlpath`~
14780       test -d \$dldir || mkdir -p \$dldir~
14781       $install_prog $dir/$dlname \$dldir/$dlname~
14782       chmod a+x \$dldir/$dlname'
14783     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14784       dlpath=$dir/\$dldll~
14785        $rm \$dlpath'
14786     shlibpath_overrides_runpath=yes
14787
14788     case $host_os in
14789     cygwin*)
14790       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14791       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14792       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14793       ;;
14794     mingw*)
14795       # MinGW DLLs use traditional 'lib' prefix
14796       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14797       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14798       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14799         # It is most probably a Windows format PATH printed by
14800         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14801         # path with ; separators, and with drive letters. We can handle the
14802         # drive letters (cygwin fileutils understands them), so leave them,
14803         # especially as we might pass files found there to a mingw objdump,
14804         # which wouldn't understand a cygwinified path. Ahh.
14805         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14806       else
14807         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14808       fi
14809       ;;
14810     pw32*)
14811       # pw32 DLLs use 'pw' prefix rather than 'lib'
14812       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14813       ;;
14814     esac
14815     ;;
14816
14817   *)
14818     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14819     ;;
14820   esac
14821   dynamic_linker='Win32 ld.exe'
14822   # FIXME: first we should search . and the directory the executable is in
14823   shlibpath_var=PATH
14824   ;;
14825
14826 darwin* | rhapsody*)
14827   dynamic_linker="$host_os dyld"
14828   version_type=darwin
14829   need_lib_prefix=no
14830   need_version=no
14831   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14832   soname_spec='${libname}${release}${major}$shared_ext'
14833   shlibpath_overrides_runpath=yes
14834   shlibpath_var=DYLD_LIBRARY_PATH
14835   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14836   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14837   if test "$GCC" = yes; then
14838     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"`
14839   else
14840     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14841   fi
14842   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14843   ;;
14844
14845 dgux*)
14846   version_type=linux
14847   need_lib_prefix=no
14848   need_version=no
14849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14850   soname_spec='${libname}${release}${shared_ext}$major'
14851   shlibpath_var=LD_LIBRARY_PATH
14852   ;;
14853
14854 freebsd1*)
14855   dynamic_linker=no
14856   ;;
14857
14858 kfreebsd*-gnu)
14859   version_type=linux
14860   need_lib_prefix=no
14861   need_version=no
14862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14863   soname_spec='${libname}${release}${shared_ext}$major'
14864   shlibpath_var=LD_LIBRARY_PATH
14865   shlibpath_overrides_runpath=no
14866   hardcode_into_libs=yes
14867   dynamic_linker='GNU ld.so'
14868   ;;
14869
14870 freebsd* | dragonfly*)
14871   # DragonFly does not have aout.  When/if they implement a new
14872   # versioning mechanism, adjust this.
14873   if test -x /usr/bin/objformat; then
14874     objformat=`/usr/bin/objformat`
14875   else
14876     case $host_os in
14877     freebsd[123]*) objformat=aout ;;
14878     *) objformat=elf ;;
14879     esac
14880   fi
14881   version_type=freebsd-$objformat
14882   case $version_type in
14883     freebsd-elf*)
14884       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14885       need_version=no
14886       need_lib_prefix=no
14887       ;;
14888     freebsd-*)
14889       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14890       need_version=yes
14891       ;;
14892   esac
14893   shlibpath_var=LD_LIBRARY_PATH
14894   case $host_os in
14895   freebsd2*)
14896     shlibpath_overrides_runpath=yes
14897     ;;
14898   freebsd3.[01]* | freebsdelf3.[01]*)
14899     shlibpath_overrides_runpath=yes
14900     hardcode_into_libs=yes
14901     ;;
14902   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14903   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14904     shlibpath_overrides_runpath=no
14905     hardcode_into_libs=yes
14906     ;;
14907   freebsd*) # from 4.6 on
14908     shlibpath_overrides_runpath=yes
14909     hardcode_into_libs=yes
14910     ;;
14911   esac
14912   ;;
14913
14914 gnu*)
14915   version_type=linux
14916   need_lib_prefix=no
14917   need_version=no
14918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14919   soname_spec='${libname}${release}${shared_ext}$major'
14920   shlibpath_var=LD_LIBRARY_PATH
14921   hardcode_into_libs=yes
14922   ;;
14923
14924 hpux9* | hpux10* | hpux11*)
14925   # Give a soname corresponding to the major version so that dld.sl refuses to
14926   # link against other versions.
14927   version_type=sunos
14928   need_lib_prefix=no
14929   need_version=no
14930   case $host_cpu in
14931   ia64*)
14932     shrext_cmds='.so'
14933     hardcode_into_libs=yes
14934     dynamic_linker="$host_os dld.so"
14935     shlibpath_var=LD_LIBRARY_PATH
14936     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938     soname_spec='${libname}${release}${shared_ext}$major'
14939     if test "X$HPUX_IA64_MODE" = X32; then
14940       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14941     else
14942       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14943     fi
14944     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14945     ;;
14946    hppa*64*)
14947      shrext_cmds='.sl'
14948      hardcode_into_libs=yes
14949      dynamic_linker="$host_os dld.sl"
14950      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14951      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14952      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953      soname_spec='${libname}${release}${shared_ext}$major'
14954      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14955      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14956      ;;
14957    *)
14958     shrext_cmds='.sl'
14959     dynamic_linker="$host_os dld.sl"
14960     shlibpath_var=SHLIB_PATH
14961     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963     soname_spec='${libname}${release}${shared_ext}$major'
14964     ;;
14965   esac
14966   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14967   postinstall_cmds='chmod 555 $lib'
14968   ;;
14969
14970 interix3*)
14971   version_type=linux
14972   need_lib_prefix=no
14973   need_version=no
14974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14975   soname_spec='${libname}${release}${shared_ext}$major'
14976   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14977   shlibpath_var=LD_LIBRARY_PATH
14978   shlibpath_overrides_runpath=no
14979   hardcode_into_libs=yes
14980   ;;
14981
14982 irix5* | irix6* | nonstopux*)
14983   case $host_os in
14984     nonstopux*) version_type=nonstopux ;;
14985     *)
14986         if test "$lt_cv_prog_gnu_ld" = yes; then
14987                 version_type=linux
14988         else
14989                 version_type=irix
14990         fi ;;
14991   esac
14992   need_lib_prefix=no
14993   need_version=no
14994   soname_spec='${libname}${release}${shared_ext}$major'
14995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14996   case $host_os in
14997   irix5* | nonstopux*)
14998     libsuff= shlibsuff=
14999     ;;
15000   *)
15001     case $LD in # libtool.m4 will add one of these switches to LD
15002     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15003       libsuff= shlibsuff= libmagic=32-bit;;
15004     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15005       libsuff=32 shlibsuff=N32 libmagic=N32;;
15006     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15007       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15008     *) libsuff= shlibsuff= libmagic=never-match;;
15009     esac
15010     ;;
15011   esac
15012   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15013   shlibpath_overrides_runpath=no
15014   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15015   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15016   hardcode_into_libs=yes
15017   ;;
15018
15019 # No shared lib support for Linux oldld, aout, or coff.
15020 linux*oldld* | linux*aout* | linux*coff*)
15021   dynamic_linker=no
15022   ;;
15023
15024 # This must be Linux ELF.
15025 linux*)
15026   version_type=linux
15027   need_lib_prefix=no
15028   need_version=no
15029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030   soname_spec='${libname}${release}${shared_ext}$major'
15031   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15032   shlibpath_var=LD_LIBRARY_PATH
15033   shlibpath_overrides_runpath=no
15034   # This implies no fast_install, which is unacceptable.
15035   # Some rework will be needed to allow for fast_install
15036   # before this can be enabled.
15037   hardcode_into_libs=yes
15038
15039   # Append ld.so.conf contents to the search path
15040   if test -f /etc/ld.so.conf; then
15041     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15042     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15043   fi
15044
15045   # We used to test for /lib/ld.so.1 and disable shared libraries on
15046   # powerpc, because MkLinux only supported shared libraries with the
15047   # GNU dynamic linker.  Since this was broken with cross compilers,
15048   # most powerpc-linux boxes support dynamic linking these days and
15049   # people can always --disable-shared, the test was removed, and we
15050   # assume the GNU/Linux dynamic linker is in use.
15051   dynamic_linker='GNU/Linux ld.so'
15052   ;;
15053
15054 knetbsd*-gnu)
15055   version_type=linux
15056   need_lib_prefix=no
15057   need_version=no
15058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15059   soname_spec='${libname}${release}${shared_ext}$major'
15060   shlibpath_var=LD_LIBRARY_PATH
15061   shlibpath_overrides_runpath=no
15062   hardcode_into_libs=yes
15063   dynamic_linker='GNU ld.so'
15064   ;;
15065
15066 netbsd*)
15067   version_type=sunos
15068   need_lib_prefix=no
15069   need_version=no
15070   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15072     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15073     dynamic_linker='NetBSD (a.out) ld.so'
15074   else
15075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15076     soname_spec='${libname}${release}${shared_ext}$major'
15077     dynamic_linker='NetBSD ld.elf_so'
15078   fi
15079   shlibpath_var=LD_LIBRARY_PATH
15080   shlibpath_overrides_runpath=yes
15081   hardcode_into_libs=yes
15082   ;;
15083
15084 newsos6)
15085   version_type=linux
15086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087   shlibpath_var=LD_LIBRARY_PATH
15088   shlibpath_overrides_runpath=yes
15089   ;;
15090
15091 nto-qnx*)
15092   version_type=linux
15093   need_lib_prefix=no
15094   need_version=no
15095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096   soname_spec='${libname}${release}${shared_ext}$major'
15097   shlibpath_var=LD_LIBRARY_PATH
15098   shlibpath_overrides_runpath=yes
15099   ;;
15100
15101 openbsd*)
15102   version_type=sunos
15103   sys_lib_dlsearch_path_spec="/usr/lib"
15104   need_lib_prefix=no
15105   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15106   case $host_os in
15107     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15108     *)                         need_version=no  ;;
15109   esac
15110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15111   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15112   shlibpath_var=LD_LIBRARY_PATH
15113   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15114     case $host_os in
15115       openbsd2.[89] | openbsd2.[89].*)
15116         shlibpath_overrides_runpath=no
15117         ;;
15118       *)
15119         shlibpath_overrides_runpath=yes
15120         ;;
15121       esac
15122   else
15123     shlibpath_overrides_runpath=yes
15124   fi
15125   ;;
15126
15127 os2*)
15128   libname_spec='$name'
15129   shrext_cmds=".dll"
15130   need_lib_prefix=no
15131   library_names_spec='$libname${shared_ext} $libname.a'
15132   dynamic_linker='OS/2 ld.exe'
15133   shlibpath_var=LIBPATH
15134   ;;
15135
15136 osf3* | osf4* | osf5*)
15137   version_type=osf
15138   need_lib_prefix=no
15139   need_version=no
15140   soname_spec='${libname}${release}${shared_ext}$major'
15141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142   shlibpath_var=LD_LIBRARY_PATH
15143   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15144   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15145   ;;
15146
15147 solaris*)
15148   version_type=linux
15149   need_lib_prefix=no
15150   need_version=no
15151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152   soname_spec='${libname}${release}${shared_ext}$major'
15153   shlibpath_var=LD_LIBRARY_PATH
15154   shlibpath_overrides_runpath=yes
15155   hardcode_into_libs=yes
15156   # ldd complains unless libraries are executable
15157   postinstall_cmds='chmod +x $lib'
15158   ;;
15159
15160 sunos4*)
15161   version_type=sunos
15162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15164   shlibpath_var=LD_LIBRARY_PATH
15165   shlibpath_overrides_runpath=yes
15166   if test "$with_gnu_ld" = yes; then
15167     need_lib_prefix=no
15168   fi
15169   need_version=yes
15170   ;;
15171
15172 sysv4 | sysv4.3*)
15173   version_type=linux
15174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175   soname_spec='${libname}${release}${shared_ext}$major'
15176   shlibpath_var=LD_LIBRARY_PATH
15177   case $host_vendor in
15178     sni)
15179       shlibpath_overrides_runpath=no
15180       need_lib_prefix=no
15181       export_dynamic_flag_spec='${wl}-Blargedynsym'
15182       runpath_var=LD_RUN_PATH
15183       ;;
15184     siemens)
15185       need_lib_prefix=no
15186       ;;
15187     motorola)
15188       need_lib_prefix=no
15189       need_version=no
15190       shlibpath_overrides_runpath=no
15191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15192       ;;
15193   esac
15194   ;;
15195
15196 sysv4*MP*)
15197   if test -d /usr/nec ;then
15198     version_type=linux
15199     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15200     soname_spec='$libname${shared_ext}.$major'
15201     shlibpath_var=LD_LIBRARY_PATH
15202   fi
15203   ;;
15204
15205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15206   version_type=freebsd-elf
15207   need_lib_prefix=no
15208   need_version=no
15209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15210   soname_spec='${libname}${release}${shared_ext}$major'
15211   shlibpath_var=LD_LIBRARY_PATH
15212   hardcode_into_libs=yes
15213   if test "$with_gnu_ld" = yes; then
15214     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15215     shlibpath_overrides_runpath=no
15216   else
15217     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15218     shlibpath_overrides_runpath=yes
15219     case $host_os in
15220       sco3.2v5*)
15221         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15222         ;;
15223     esac
15224   fi
15225   sys_lib_dlsearch_path_spec='/usr/lib'
15226   ;;
15227
15228 uts4*)
15229   version_type=linux
15230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231   soname_spec='${libname}${release}${shared_ext}$major'
15232   shlibpath_var=LD_LIBRARY_PATH
15233   ;;
15234
15235 *)
15236   dynamic_linker=no
15237   ;;
15238 esac
15239 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15240 echo "${ECHO_T}$dynamic_linker" >&6
15241 test "$dynamic_linker" = no && can_build_shared=no
15242
15243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15244 if test "$GCC" = yes; then
15245   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15246 fi
15247
15248 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15249 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15250 hardcode_action_F77=
15251 if test -n "$hardcode_libdir_flag_spec_F77" || \
15252    test -n "$runpath_var_F77" || \
15253    test "X$hardcode_automatic_F77" = "Xyes" ; then
15254
15255   # We can hardcode non-existant directories.
15256   if test "$hardcode_direct_F77" != no &&
15257      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15258      # have to relink, otherwise we might link with an installed library
15259      # when we should be linking with a yet-to-be-installed one
15260      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15261      test "$hardcode_minus_L_F77" != no; then
15262     # Linking always hardcodes the temporary library directory.
15263     hardcode_action_F77=relink
15264   else
15265     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15266     hardcode_action_F77=immediate
15267   fi
15268 else
15269   # We cannot hardcode anything, or else we can only hardcode existing
15270   # directories.
15271   hardcode_action_F77=unsupported
15272 fi
15273 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15274 echo "${ECHO_T}$hardcode_action_F77" >&6
15275
15276 if test "$hardcode_action_F77" = relink; then
15277   # Fast installation is not supported
15278   enable_fast_install=no
15279 elif test "$shlibpath_overrides_runpath" = yes ||
15280      test "$enable_shared" = no; then
15281   # Fast installation is not necessary
15282   enable_fast_install=needless
15283 fi
15284
15285
15286 # The else clause should only fire when bootstrapping the
15287 # libtool distribution, otherwise you forgot to ship ltmain.sh
15288 # with your package, and you will get complaints that there are
15289 # no rules to generate ltmain.sh.
15290 if test -f "$ltmain"; then
15291   # See if we are running on zsh, and set the options which allow our commands through
15292   # without removal of \ escapes.
15293   if test -n "${ZSH_VERSION+set}" ; then
15294     setopt NO_GLOB_SUBST
15295   fi
15296   # Now quote all the things that may contain metacharacters while being
15297   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15298   # variables and quote the copies for generation of the libtool script.
15299   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15300     SED SHELL STRIP \
15301     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15302     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15303     deplibs_check_method reload_flag reload_cmds need_locks \
15304     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15305     lt_cv_sys_global_symbol_to_c_name_address \
15306     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15307     old_postinstall_cmds old_postuninstall_cmds \
15308     compiler_F77 \
15309     CC_F77 \
15310     LD_F77 \
15311     lt_prog_compiler_wl_F77 \
15312     lt_prog_compiler_pic_F77 \
15313     lt_prog_compiler_static_F77 \
15314     lt_prog_compiler_no_builtin_flag_F77 \
15315     export_dynamic_flag_spec_F77 \
15316     thread_safe_flag_spec_F77 \
15317     whole_archive_flag_spec_F77 \
15318     enable_shared_with_static_runtimes_F77 \
15319     old_archive_cmds_F77 \
15320     old_archive_from_new_cmds_F77 \
15321     predep_objects_F77 \
15322     postdep_objects_F77 \
15323     predeps_F77 \
15324     postdeps_F77 \
15325     compiler_lib_search_path_F77 \
15326     archive_cmds_F77 \
15327     archive_expsym_cmds_F77 \
15328     postinstall_cmds_F77 \
15329     postuninstall_cmds_F77 \
15330     old_archive_from_expsyms_cmds_F77 \
15331     allow_undefined_flag_F77 \
15332     no_undefined_flag_F77 \
15333     export_symbols_cmds_F77 \
15334     hardcode_libdir_flag_spec_F77 \
15335     hardcode_libdir_flag_spec_ld_F77 \
15336     hardcode_libdir_separator_F77 \
15337     hardcode_automatic_F77 \
15338     module_cmds_F77 \
15339     module_expsym_cmds_F77 \
15340     lt_cv_prog_compiler_c_o_F77 \
15341     exclude_expsyms_F77 \
15342     include_expsyms_F77; do
15343
15344     case $var in
15345     old_archive_cmds_F77 | \
15346     old_archive_from_new_cmds_F77 | \
15347     archive_cmds_F77 | \
15348     archive_expsym_cmds_F77 | \
15349     module_cmds_F77 | \
15350     module_expsym_cmds_F77 | \
15351     old_archive_from_expsyms_cmds_F77 | \
15352     export_symbols_cmds_F77 | \
15353     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15354     postinstall_cmds | postuninstall_cmds | \
15355     old_postinstall_cmds | old_postuninstall_cmds | \
15356     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15357       # Double-quote double-evaled strings.
15358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15359       ;;
15360     *)
15361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15362       ;;
15363     esac
15364   done
15365
15366   case $lt_echo in
15367   *'\$0 --fallback-echo"')
15368     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15369     ;;
15370   esac
15371
15372 cfgfile="$ofile"
15373
15374   cat <<__EOF__ >> "$cfgfile"
15375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15376
15377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15378
15379 # Shell to use when invoking shell scripts.
15380 SHELL=$lt_SHELL
15381
15382 # Whether or not to build shared libraries.
15383 build_libtool_libs=$enable_shared
15384
15385 # Whether or not to build static libraries.
15386 build_old_libs=$enable_static
15387
15388 # Whether or not to add -lc for building shared libraries.
15389 build_libtool_need_lc=$archive_cmds_need_lc_F77
15390
15391 # Whether or not to disallow shared libs when runtime libs are static
15392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15393
15394 # Whether or not to optimize for fast installation.
15395 fast_install=$enable_fast_install
15396
15397 # The host system.
15398 host_alias=$host_alias
15399 host=$host
15400 host_os=$host_os
15401
15402 # The build system.
15403 build_alias=$build_alias
15404 build=$build
15405 build_os=$build_os
15406
15407 # An echo program that does not interpret backslashes.
15408 echo=$lt_echo
15409
15410 # The archiver.
15411 AR=$lt_AR
15412 AR_FLAGS=$lt_AR_FLAGS
15413
15414 # A C compiler.
15415 LTCC=$lt_LTCC
15416
15417 # LTCC compiler flags.
15418 LTCFLAGS=$lt_LTCFLAGS
15419
15420 # A language-specific compiler.
15421 CC=$lt_compiler_F77
15422
15423 # Is the compiler the GNU C compiler?
15424 with_gcc=$GCC_F77
15425
15426 # An ERE matcher.
15427 EGREP=$lt_EGREP
15428
15429 # The linker used to build libraries.
15430 LD=$lt_LD_F77
15431
15432 # Whether we need hard or soft links.
15433 LN_S=$lt_LN_S
15434
15435 # A BSD-compatible nm program.
15436 NM=$lt_NM
15437
15438 # A symbol stripping program
15439 STRIP=$lt_STRIP
15440
15441 # Used to examine libraries when file_magic_cmd begins "file"
15442 MAGIC_CMD=$MAGIC_CMD
15443
15444 # Used on cygwin: DLL creation program.
15445 DLLTOOL="$DLLTOOL"
15446
15447 # Used on cygwin: object dumper.
15448 OBJDUMP="$OBJDUMP"
15449
15450 # Used on cygwin: assembler.
15451 AS="$AS"
15452
15453 # The name of the directory that contains temporary libtool files.
15454 objdir=$objdir
15455
15456 # How to create reloadable object files.
15457 reload_flag=$lt_reload_flag
15458 reload_cmds=$lt_reload_cmds
15459
15460 # How to pass a linker flag through the compiler.
15461 wl=$lt_lt_prog_compiler_wl_F77
15462
15463 # Object file suffix (normally "o").
15464 objext="$ac_objext"
15465
15466 # Old archive suffix (normally "a").
15467 libext="$libext"
15468
15469 # Shared library suffix (normally ".so").
15470 shrext_cmds='$shrext_cmds'
15471
15472 # Executable file suffix (normally "").
15473 exeext="$exeext"
15474
15475 # Additional compiler flags for building library objects.
15476 pic_flag=$lt_lt_prog_compiler_pic_F77
15477 pic_mode=$pic_mode
15478
15479 # What is the maximum length of a command?
15480 max_cmd_len=$lt_cv_sys_max_cmd_len
15481
15482 # Does compiler simultaneously support -c and -o options?
15483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15484
15485 # Must we lock files when doing compilation?
15486 need_locks=$lt_need_locks
15487
15488 # Do we need the lib prefix for modules?
15489 need_lib_prefix=$need_lib_prefix
15490
15491 # Do we need a version for libraries?
15492 need_version=$need_version
15493
15494 # Whether dlopen is supported.
15495 dlopen_support=$enable_dlopen
15496
15497 # Whether dlopen of programs is supported.
15498 dlopen_self=$enable_dlopen_self
15499
15500 # Whether dlopen of statically linked programs is supported.
15501 dlopen_self_static=$enable_dlopen_self_static
15502
15503 # Compiler flag to prevent dynamic linking.
15504 link_static_flag=$lt_lt_prog_compiler_static_F77
15505
15506 # Compiler flag to turn off builtin functions.
15507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15508
15509 # Compiler flag to allow reflexive dlopens.
15510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15511
15512 # Compiler flag to generate shared objects directly from archives.
15513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15514
15515 # Compiler flag to generate thread-safe objects.
15516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15517
15518 # Library versioning type.
15519 version_type=$version_type
15520
15521 # Format of library name prefix.
15522 libname_spec=$lt_libname_spec
15523
15524 # List of archive names.  First name is the real one, the rest are links.
15525 # The last name is the one that the linker finds with -lNAME.
15526 library_names_spec=$lt_library_names_spec
15527
15528 # The coded name of the library, if different from the real name.
15529 soname_spec=$lt_soname_spec
15530
15531 # Commands used to build and install an old-style archive.
15532 RANLIB=$lt_RANLIB
15533 old_archive_cmds=$lt_old_archive_cmds_F77
15534 old_postinstall_cmds=$lt_old_postinstall_cmds
15535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15536
15537 # Create an old-style archive from a shared archive.
15538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15539
15540 # Create a temporary old-style archive to link instead of a shared archive.
15541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15542
15543 # Commands used to build and install a shared archive.
15544 archive_cmds=$lt_archive_cmds_F77
15545 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15546 postinstall_cmds=$lt_postinstall_cmds
15547 postuninstall_cmds=$lt_postuninstall_cmds
15548
15549 # Commands used to build a loadable module (assumed same as above if empty)
15550 module_cmds=$lt_module_cmds_F77
15551 module_expsym_cmds=$lt_module_expsym_cmds_F77
15552
15553 # Commands to strip libraries.
15554 old_striplib=$lt_old_striplib
15555 striplib=$lt_striplib
15556
15557 # Dependencies to place before the objects being linked to create a
15558 # shared library.
15559 predep_objects=$lt_predep_objects_F77
15560
15561 # Dependencies to place after the objects being linked to create a
15562 # shared library.
15563 postdep_objects=$lt_postdep_objects_F77
15564
15565 # Dependencies to place before the objects being linked to create a
15566 # shared library.
15567 predeps=$lt_predeps_F77
15568
15569 # Dependencies to place after the objects being linked to create a
15570 # shared library.
15571 postdeps=$lt_postdeps_F77
15572
15573 # The library search path used internally by the compiler when linking
15574 # a shared library.
15575 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15576
15577 # Method to check whether dependent libraries are shared objects.
15578 deplibs_check_method=$lt_deplibs_check_method
15579
15580 # Command to use when deplibs_check_method == file_magic.
15581 file_magic_cmd=$lt_file_magic_cmd
15582
15583 # Flag that allows shared libraries with undefined symbols to be built.
15584 allow_undefined_flag=$lt_allow_undefined_flag_F77
15585
15586 # Flag that forces no undefined symbols.
15587 no_undefined_flag=$lt_no_undefined_flag_F77
15588
15589 # Commands used to finish a libtool library installation in a directory.
15590 finish_cmds=$lt_finish_cmds
15591
15592 # Same as above, but a single script fragment to be evaled but not shown.
15593 finish_eval=$lt_finish_eval
15594
15595 # Take the output of nm and produce a listing of raw symbols and C names.
15596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15597
15598 # Transform the output of nm in a proper C declaration
15599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15600
15601 # Transform the output of nm in a C name address pair
15602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15603
15604 # This is the shared library runtime path variable.
15605 runpath_var=$runpath_var
15606
15607 # This is the shared library path variable.
15608 shlibpath_var=$shlibpath_var
15609
15610 # Is shlibpath searched before the hard-coded library search path?
15611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15612
15613 # How to hardcode a shared library path into an executable.
15614 hardcode_action=$hardcode_action_F77
15615
15616 # Whether we should hardcode library paths into libraries.
15617 hardcode_into_libs=$hardcode_into_libs
15618
15619 # Flag to hardcode \$libdir into a binary during linking.
15620 # This must work even if \$libdir does not exist.
15621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15622
15623 # If ld is used when linking, flag to hardcode \$libdir into
15624 # a binary during linking. This must work even if \$libdir does
15625 # not exist.
15626 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15627
15628 # Whether we need a single -rpath flag with a separated argument.
15629 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15630
15631 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15632 # resulting binary.
15633 hardcode_direct=$hardcode_direct_F77
15634
15635 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15636 # resulting binary.
15637 hardcode_minus_L=$hardcode_minus_L_F77
15638
15639 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15640 # the resulting binary.
15641 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15642
15643 # Set to yes if building a shared library automatically hardcodes DIR into the library
15644 # and all subsequent libraries and executables linked against it.
15645 hardcode_automatic=$hardcode_automatic_F77
15646
15647 # Variables whose values should be saved in libtool wrapper scripts and
15648 # restored at relink time.
15649 variables_saved_for_relink="$variables_saved_for_relink"
15650
15651 # Whether libtool must link a program against all its dependency libraries.
15652 link_all_deplibs=$link_all_deplibs_F77
15653
15654 # Compile-time system search path for libraries
15655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15656
15657 # Run-time system search path for libraries
15658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15659
15660 # Fix the shell variable \$srcfile for the compiler.
15661 fix_srcfile_path="$fix_srcfile_path_F77"
15662
15663 # Set to yes if exported symbols are required.
15664 always_export_symbols=$always_export_symbols_F77
15665
15666 # The commands to list exported symbols.
15667 export_symbols_cmds=$lt_export_symbols_cmds_F77
15668
15669 # The commands to extract the exported symbol list from a shared archive.
15670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15671
15672 # Symbols that should not be listed in the preloaded symbols.
15673 exclude_expsyms=$lt_exclude_expsyms_F77
15674
15675 # Symbols that must always be exported.
15676 include_expsyms=$lt_include_expsyms_F77
15677
15678 # ### END LIBTOOL TAG CONFIG: $tagname
15679
15680 __EOF__
15681
15682
15683 else
15684   # If there is no Makefile yet, we rely on a make rule to execute
15685   # `config.status --recheck' to rerun these tests and create the
15686   # libtool script then.
15687   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15688   if test -f "$ltmain_in"; then
15689     test -f Makefile && make "$ltmain"
15690   fi
15691 fi
15692
15693
15694 ac_ext=c
15695 ac_cpp='$CPP $CPPFLAGS'
15696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15699
15700 CC="$lt_save_CC"
15701
15702         else
15703           tagname=""
15704         fi
15705         ;;
15706
15707       GCJ)
15708         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15709
15710
15711
15712 # Source file extension for Java test sources.
15713 ac_ext=java
15714
15715 # Object file extension for compiled Java test sources.
15716 objext=o
15717 objext_GCJ=$objext
15718
15719 # Code to be used in simple compile tests
15720 lt_simple_compile_test_code="class foo {}\n"
15721
15722 # Code to be used in simple link tests
15723 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15724
15725 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15726
15727 # If no C compiler was specified, use CC.
15728 LTCC=${LTCC-"$CC"}
15729
15730 # If no C compiler flags were specified, use CFLAGS.
15731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15732
15733 # Allow CC to be a program name with arguments.
15734 compiler=$CC
15735
15736
15737 # save warnings/boilerplate of simple test code
15738 ac_outfile=conftest.$ac_objext
15739 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15741 _lt_compiler_boilerplate=`cat conftest.err`
15742 $rm conftest*
15743
15744 ac_outfile=conftest.$ac_objext
15745 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15747 _lt_linker_boilerplate=`cat conftest.err`
15748 $rm conftest*
15749
15750
15751 # Allow CC to be a program name with arguments.
15752 lt_save_CC="$CC"
15753 CC=${GCJ-"gcj"}
15754 compiler=$CC
15755 compiler_GCJ=$CC
15756 for cc_temp in $compiler""; do
15757   case $cc_temp in
15758     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15759     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15760     \-*) ;;
15761     *) break;;
15762   esac
15763 done
15764 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15765
15766
15767 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15768 archive_cmds_need_lc_GCJ=no
15769
15770 old_archive_cmds_GCJ=$old_archive_cmds
15771
15772 ## CAVEAT EMPTOR:
15773 ## There is no encapsulation within the following macros, do not change
15774 ## the running order or otherwise move them around unless you know exactly
15775 ## what you are doing...
15776
15777 lt_prog_compiler_no_builtin_flag_GCJ=
15778
15779 if test "$GCC" = yes; then
15780   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15781
15782
15783 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15784 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15785 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15786   echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788   lt_cv_prog_compiler_rtti_exceptions=no
15789   ac_outfile=conftest.$ac_objext
15790    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15791    lt_compiler_flag="-fno-rtti -fno-exceptions"
15792    # Insert the option either (1) after the last *FLAGS variable, or
15793    # (2) before a word containing "conftest.", or (3) at the end.
15794    # Note that $ac_compile itself does not contain backslashes and begins
15795    # with a dollar sign (not a hyphen), so the echo should work correctly.
15796    # The option is referenced via a variable to avoid confusing sed.
15797    lt_compile=`echo "$ac_compile" | $SED \
15798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15800    -e 's:$: $lt_compiler_flag:'`
15801    (eval echo "\"\$as_me:15801: $lt_compile\"" >&5)
15802    (eval "$lt_compile" 2>conftest.err)
15803    ac_status=$?
15804    cat conftest.err >&5
15805    echo "$as_me:15805: \$? = $ac_status" >&5
15806    if (exit $ac_status) && test -s "$ac_outfile"; then
15807      # The compiler can only warn and ignore the option if not recognized
15808      # So say no if there are warnings other than the usual output.
15809      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15810      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15811      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15812        lt_cv_prog_compiler_rtti_exceptions=yes
15813      fi
15814    fi
15815    $rm conftest*
15816
15817 fi
15818 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15819 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15820
15821 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15822     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15823 else
15824     :
15825 fi
15826
15827 fi
15828
15829 lt_prog_compiler_wl_GCJ=
15830 lt_prog_compiler_pic_GCJ=
15831 lt_prog_compiler_static_GCJ=
15832
15833 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15835
15836   if test "$GCC" = yes; then
15837     lt_prog_compiler_wl_GCJ='-Wl,'
15838     lt_prog_compiler_static_GCJ='-static'
15839
15840     case $host_os in
15841       aix*)
15842       # All AIX code is PIC.
15843       if test "$host_cpu" = ia64; then
15844         # AIX 5 now supports IA64 processor
15845         lt_prog_compiler_static_GCJ='-Bstatic'
15846       fi
15847       ;;
15848
15849     amigaos*)
15850       # FIXME: we need at least 68020 code to build shared libraries, but
15851       # adding the `-m68020' flag to GCC prevents building anything better,
15852       # like `-m68040'.
15853       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15854       ;;
15855
15856     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15857       # PIC is the default for these OSes.
15858       ;;
15859
15860     mingw* | pw32* | os2*)
15861       # This hack is so that the source file can tell whether it is being
15862       # built for inclusion in a dll (and should export symbols for example).
15863       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15864       ;;
15865
15866     darwin* | rhapsody*)
15867       # PIC is the default on this platform
15868       # Common symbols not allowed in MH_DYLIB files
15869       lt_prog_compiler_pic_GCJ='-fno-common'
15870       ;;
15871
15872     interix3*)
15873       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15874       # Instead, we relocate shared libraries at runtime.
15875       ;;
15876
15877     msdosdjgpp*)
15878       # Just because we use GCC doesn't mean we suddenly get shared libraries
15879       # on systems that don't support them.
15880       lt_prog_compiler_can_build_shared_GCJ=no
15881       enable_shared=no
15882       ;;
15883
15884     sysv4*MP*)
15885       if test -d /usr/nec; then
15886         lt_prog_compiler_pic_GCJ=-Kconform_pic
15887       fi
15888       ;;
15889
15890     hpux*)
15891       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15892       # not for PA HP-UX.
15893       case $host_cpu in
15894       hppa*64*|ia64*)
15895         # +Z the default
15896         ;;
15897       *)
15898         lt_prog_compiler_pic_GCJ='-fPIC'
15899         ;;
15900       esac
15901       ;;
15902
15903     *)
15904       lt_prog_compiler_pic_GCJ='-fPIC'
15905       ;;
15906     esac
15907   else
15908     # PORTME Check for flag to pass linker flags through the system compiler.
15909     case $host_os in
15910     aix*)
15911       lt_prog_compiler_wl_GCJ='-Wl,'
15912       if test "$host_cpu" = ia64; then
15913         # AIX 5 now supports IA64 processor
15914         lt_prog_compiler_static_GCJ='-Bstatic'
15915       else
15916         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15917       fi
15918       ;;
15919       darwin*)
15920         # PIC is the default on this platform
15921         # Common symbols not allowed in MH_DYLIB files
15922        case $cc_basename in
15923          xlc*)
15924          lt_prog_compiler_pic_GCJ='-qnocommon'
15925          lt_prog_compiler_wl_GCJ='-Wl,'
15926          ;;
15927        esac
15928        ;;
15929
15930     mingw* | pw32* | os2*)
15931       # This hack is so that the source file can tell whether it is being
15932       # built for inclusion in a dll (and should export symbols for example).
15933       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15934       ;;
15935
15936     hpux9* | hpux10* | hpux11*)
15937       lt_prog_compiler_wl_GCJ='-Wl,'
15938       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15939       # not for PA HP-UX.
15940       case $host_cpu in
15941       hppa*64*|ia64*)
15942         # +Z the default
15943         ;;
15944       *)
15945         lt_prog_compiler_pic_GCJ='+Z'
15946         ;;
15947       esac
15948       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15949       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15950       ;;
15951
15952     irix5* | irix6* | nonstopux*)
15953       lt_prog_compiler_wl_GCJ='-Wl,'
15954       # PIC (with -KPIC) is the default.
15955       lt_prog_compiler_static_GCJ='-non_shared'
15956       ;;
15957
15958     newsos6)
15959       lt_prog_compiler_pic_GCJ='-KPIC'
15960       lt_prog_compiler_static_GCJ='-Bstatic'
15961       ;;
15962
15963     linux*)
15964       case $cc_basename in
15965       icc* | ecc*)
15966         lt_prog_compiler_wl_GCJ='-Wl,'
15967         lt_prog_compiler_pic_GCJ='-KPIC'
15968         lt_prog_compiler_static_GCJ='-static'
15969         ;;
15970       pgcc* | pgf77* | pgf90* | pgf95*)
15971         # Portland Group compilers (*not* the Pentium gcc compiler,
15972         # which looks to be a dead project)
15973         lt_prog_compiler_wl_GCJ='-Wl,'
15974         lt_prog_compiler_pic_GCJ='-fpic'
15975         lt_prog_compiler_static_GCJ='-Bstatic'
15976         ;;
15977       ccc*)
15978         lt_prog_compiler_wl_GCJ='-Wl,'
15979         # All Alpha code is PIC.
15980         lt_prog_compiler_static_GCJ='-non_shared'
15981         ;;
15982       esac
15983       ;;
15984
15985     osf3* | osf4* | osf5*)
15986       lt_prog_compiler_wl_GCJ='-Wl,'
15987       # All OSF/1 code is PIC.
15988       lt_prog_compiler_static_GCJ='-non_shared'
15989       ;;
15990
15991     solaris*)
15992       lt_prog_compiler_pic_GCJ='-KPIC'
15993       lt_prog_compiler_static_GCJ='-Bstatic'
15994       case $cc_basename in
15995       f77* | f90* | f95*)
15996         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15997       *)
15998         lt_prog_compiler_wl_GCJ='-Wl,';;
15999       esac
16000       ;;
16001
16002     sunos4*)
16003       lt_prog_compiler_wl_GCJ='-Qoption ld '
16004       lt_prog_compiler_pic_GCJ='-PIC'
16005       lt_prog_compiler_static_GCJ='-Bstatic'
16006       ;;
16007
16008     sysv4 | sysv4.2uw2* | sysv4.3*)
16009       lt_prog_compiler_wl_GCJ='-Wl,'
16010       lt_prog_compiler_pic_GCJ='-KPIC'
16011       lt_prog_compiler_static_GCJ='-Bstatic'
16012       ;;
16013
16014     sysv4*MP*)
16015       if test -d /usr/nec ;then
16016         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16017         lt_prog_compiler_static_GCJ='-Bstatic'
16018       fi
16019       ;;
16020
16021     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16022       lt_prog_compiler_wl_GCJ='-Wl,'
16023       lt_prog_compiler_pic_GCJ='-KPIC'
16024       lt_prog_compiler_static_GCJ='-Bstatic'
16025       ;;
16026
16027     unicos*)
16028       lt_prog_compiler_wl_GCJ='-Wl,'
16029       lt_prog_compiler_can_build_shared_GCJ=no
16030       ;;
16031
16032     uts4*)
16033       lt_prog_compiler_pic_GCJ='-pic'
16034       lt_prog_compiler_static_GCJ='-Bstatic'
16035       ;;
16036
16037     *)
16038       lt_prog_compiler_can_build_shared_GCJ=no
16039       ;;
16040     esac
16041   fi
16042
16043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16044 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16045
16046 #
16047 # Check to make sure the PIC flag actually works.
16048 #
16049 if test -n "$lt_prog_compiler_pic_GCJ"; then
16050
16051 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16052 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16053 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16054   echo $ECHO_N "(cached) $ECHO_C" >&6
16055 else
16056   lt_prog_compiler_pic_works_GCJ=no
16057   ac_outfile=conftest.$ac_objext
16058    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16059    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16060    # Insert the option either (1) after the last *FLAGS variable, or
16061    # (2) before a word containing "conftest.", or (3) at the end.
16062    # Note that $ac_compile itself does not contain backslashes and begins
16063    # with a dollar sign (not a hyphen), so the echo should work correctly.
16064    # The option is referenced via a variable to avoid confusing sed.
16065    lt_compile=`echo "$ac_compile" | $SED \
16066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16068    -e 's:$: $lt_compiler_flag:'`
16069    (eval echo "\"\$as_me:16069: $lt_compile\"" >&5)
16070    (eval "$lt_compile" 2>conftest.err)
16071    ac_status=$?
16072    cat conftest.err >&5
16073    echo "$as_me:16073: \$? = $ac_status" >&5
16074    if (exit $ac_status) && test -s "$ac_outfile"; then
16075      # The compiler can only warn and ignore the option if not recognized
16076      # So say no if there are warnings other than the usual output.
16077      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16078      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16079      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16080        lt_prog_compiler_pic_works_GCJ=yes
16081      fi
16082    fi
16083    $rm conftest*
16084
16085 fi
16086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16087 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16088
16089 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16090     case $lt_prog_compiler_pic_GCJ in
16091      "" | " "*) ;;
16092      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16093      esac
16094 else
16095     lt_prog_compiler_pic_GCJ=
16096      lt_prog_compiler_can_build_shared_GCJ=no
16097 fi
16098
16099 fi
16100 case $host_os in
16101   # For platforms which do not support PIC, -DPIC is meaningless:
16102   *djgpp*)
16103     lt_prog_compiler_pic_GCJ=
16104     ;;
16105   *)
16106     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16107     ;;
16108 esac
16109
16110 #
16111 # Check to make sure the static flag actually works.
16112 #
16113 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16114 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16115 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16116 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16117   echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119   lt_prog_compiler_static_works_GCJ=no
16120    save_LDFLAGS="$LDFLAGS"
16121    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16122    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16123    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16124      # The linker can only warn and ignore the option if not recognized
16125      # So say no if there are warnings
16126      if test -s conftest.err; then
16127        # Append any errors to the config.log.
16128        cat conftest.err 1>&5
16129        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16130        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16131        if diff conftest.exp conftest.er2 >/dev/null; then
16132          lt_prog_compiler_static_works_GCJ=yes
16133        fi
16134      else
16135        lt_prog_compiler_static_works_GCJ=yes
16136      fi
16137    fi
16138    $rm conftest*
16139    LDFLAGS="$save_LDFLAGS"
16140
16141 fi
16142 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16143 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16144
16145 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16146     :
16147 else
16148     lt_prog_compiler_static_GCJ=
16149 fi
16150
16151
16152 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16154 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16155   echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157   lt_cv_prog_compiler_c_o_GCJ=no
16158    $rm -r conftest 2>/dev/null
16159    mkdir conftest
16160    cd conftest
16161    mkdir out
16162    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16163
16164    lt_compiler_flag="-o out/conftest2.$ac_objext"
16165    # Insert the option either (1) after the last *FLAGS variable, or
16166    # (2) before a word containing "conftest.", or (3) at the end.
16167    # Note that $ac_compile itself does not contain backslashes and begins
16168    # with a dollar sign (not a hyphen), so the echo should work correctly.
16169    lt_compile=`echo "$ac_compile" | $SED \
16170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16172    -e 's:$: $lt_compiler_flag:'`
16173    (eval echo "\"\$as_me:16173: $lt_compile\"" >&5)
16174    (eval "$lt_compile" 2>out/conftest.err)
16175    ac_status=$?
16176    cat out/conftest.err >&5
16177    echo "$as_me:16177: \$? = $ac_status" >&5
16178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16179    then
16180      # The compiler can only warn and ignore the option if not recognized
16181      # So say no if there are warnings
16182      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16183      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16184      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16185        lt_cv_prog_compiler_c_o_GCJ=yes
16186      fi
16187    fi
16188    chmod u+w . 2>&5
16189    $rm conftest*
16190    # SGI C++ compiler will create directory out/ii_files/ for
16191    # template instantiation
16192    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16193    $rm out/* && rmdir out
16194    cd ..
16195    rmdir conftest
16196    $rm conftest*
16197
16198 fi
16199 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16200 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16201
16202
16203 hard_links="nottested"
16204 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16205   # do not overwrite the value of need_locks provided by the user
16206   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16207 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16208   hard_links=yes
16209   $rm conftest*
16210   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16211   touch conftest.a
16212   ln conftest.a conftest.b 2>&5 || hard_links=no
16213   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16214   echo "$as_me:$LINENO: result: $hard_links" >&5
16215 echo "${ECHO_T}$hard_links" >&6
16216   if test "$hard_links" = no; then
16217     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16218 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16219     need_locks=warn
16220   fi
16221 else
16222   need_locks=no
16223 fi
16224
16225 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16226 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16227
16228   runpath_var=
16229   allow_undefined_flag_GCJ=
16230   enable_shared_with_static_runtimes_GCJ=no
16231   archive_cmds_GCJ=
16232   archive_expsym_cmds_GCJ=
16233   old_archive_From_new_cmds_GCJ=
16234   old_archive_from_expsyms_cmds_GCJ=
16235   export_dynamic_flag_spec_GCJ=
16236   whole_archive_flag_spec_GCJ=
16237   thread_safe_flag_spec_GCJ=
16238   hardcode_libdir_flag_spec_GCJ=
16239   hardcode_libdir_flag_spec_ld_GCJ=
16240   hardcode_libdir_separator_GCJ=
16241   hardcode_direct_GCJ=no
16242   hardcode_minus_L_GCJ=no
16243   hardcode_shlibpath_var_GCJ=unsupported
16244   link_all_deplibs_GCJ=unknown
16245   hardcode_automatic_GCJ=no
16246   module_cmds_GCJ=
16247   module_expsym_cmds_GCJ=
16248   always_export_symbols_GCJ=no
16249   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16250   # include_expsyms should be a list of space-separated symbols to be *always*
16251   # included in the symbol list
16252   include_expsyms_GCJ=
16253   # exclude_expsyms can be an extended regexp of symbols to exclude
16254   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16255   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16256   # as well as any symbol that contains `d'.
16257   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16258   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16259   # platforms (ab)use it in PIC code, but their linkers get confused if
16260   # the symbol is explicitly referenced.  Since portable code cannot
16261   # rely on this symbol name, it's probably fine to never include it in
16262   # preloaded symbol tables.
16263   extract_expsyms_cmds=
16264   # Just being paranoid about ensuring that cc_basename is set.
16265   for cc_temp in $compiler""; do
16266   case $cc_temp in
16267     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16268     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16269     \-*) ;;
16270     *) break;;
16271   esac
16272 done
16273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16274
16275   case $host_os in
16276   cygwin* | mingw* | pw32*)
16277     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16278     # When not using gcc, we currently assume that we are using
16279     # Microsoft Visual C++.
16280     if test "$GCC" != yes; then
16281       with_gnu_ld=no
16282     fi
16283     ;;
16284   interix*)
16285     # we just hope/assume this is gcc and not c89 (= MSVC++)
16286     with_gnu_ld=yes
16287     ;;
16288   openbsd*)
16289     with_gnu_ld=no
16290     ;;
16291   esac
16292
16293   ld_shlibs_GCJ=yes
16294   if test "$with_gnu_ld" = yes; then
16295     # If archive_cmds runs LD, not CC, wlarc should be empty
16296     wlarc='${wl}'
16297
16298     # Set some defaults for GNU ld with shared library support. These
16299     # are reset later if shared libraries are not supported. Putting them
16300     # here allows them to be overridden if necessary.
16301     runpath_var=LD_RUN_PATH
16302     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16303     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16304     # ancient GNU ld didn't support --whole-archive et. al.
16305     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16306         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16307       else
16308         whole_archive_flag_spec_GCJ=
16309     fi
16310     supports_anon_versioning=no
16311     case `$LD -v 2>/dev/null` in
16312       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16313       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16314       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16315       *\ 2.11.*) ;; # other 2.11 versions
16316       *) supports_anon_versioning=yes ;;
16317     esac
16318
16319     # See if GNU ld supports shared libraries.
16320     case $host_os in
16321     aix3* | aix4* | aix5*)
16322       # On AIX/PPC, the GNU linker is very broken
16323       if test "$host_cpu" != ia64; then
16324         ld_shlibs_GCJ=no
16325         cat <<EOF 1>&2
16326
16327 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16328 *** to be unable to reliably create shared libraries on AIX.
16329 *** Therefore, libtool is disabling shared libraries support.  If you
16330 *** really care for shared libraries, you may want to modify your PATH
16331 *** so that a non-GNU linker is found, and then restart.
16332
16333 EOF
16334       fi
16335       ;;
16336
16337     amigaos*)
16338       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)'
16339       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16340       hardcode_minus_L_GCJ=yes
16341
16342       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16343       # that the semantics of dynamic libraries on AmigaOS, at least up
16344       # to version 4, is to share data among multiple programs linked
16345       # with the same dynamic library.  Since this doesn't match the
16346       # behavior of shared libraries on other platforms, we can't use
16347       # them.
16348       ld_shlibs_GCJ=no
16349       ;;
16350
16351     beos*)
16352       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16353         allow_undefined_flag_GCJ=unsupported
16354         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16355         # support --undefined.  This deserves some investigation.  FIXME
16356         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16357       else
16358         ld_shlibs_GCJ=no
16359       fi
16360       ;;
16361
16362     cygwin* | mingw* | pw32*)
16363       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16364       # as there is no search path for DLLs.
16365       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16366       allow_undefined_flag_GCJ=unsupported
16367       always_export_symbols_GCJ=no
16368       enable_shared_with_static_runtimes_GCJ=yes
16369       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16370
16371       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16372         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16373         # If the export-symbols file already is a .def file (1st line
16374         # is EXPORTS), use it as is; otherwise, prepend...
16375         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16376           cp $export_symbols $output_objdir/$soname.def;
16377         else
16378           echo EXPORTS > $output_objdir/$soname.def;
16379           cat $export_symbols >> $output_objdir/$soname.def;
16380         fi~
16381         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16382       else
16383         ld_shlibs_GCJ=no
16384       fi
16385       ;;
16386
16387     interix3*)
16388       hardcode_direct_GCJ=no
16389       hardcode_shlibpath_var_GCJ=no
16390       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16391       export_dynamic_flag_spec_GCJ='${wl}-E'
16392       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16393       # Instead, shared libraries are loaded at an image base (0x10000000 by
16394       # default) and relocated if they conflict, which is a slow very memory
16395       # consuming and fragmenting process.  To avoid this, we pick a random,
16396       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16397       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16398       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16399       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16400       ;;
16401
16402     linux*)
16403       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16404         tmp_addflag=
16405         case $cc_basename,$host_cpu in
16406         pgcc*)                          # Portland Group C compiler
16407           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16408           tmp_addflag=' $pic_flag'
16409           ;;
16410         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16411           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16412           tmp_addflag=' $pic_flag -Mnomain' ;;
16413         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16414           tmp_addflag=' -i_dynamic' ;;
16415         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16416           tmp_addflag=' -i_dynamic -nofor_main' ;;
16417         ifc* | ifort*)                  # Intel Fortran compiler
16418           tmp_addflag=' -nofor_main' ;;
16419         esac
16420         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16421
16422         if test $supports_anon_versioning = yes; then
16423           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16424   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16425   $echo "local: *; };" >> $output_objdir/$libname.ver~
16426           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16427         fi
16428       else
16429         ld_shlibs_GCJ=no
16430       fi
16431       ;;
16432
16433     netbsd*)
16434       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16435         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16436         wlarc=
16437       else
16438         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16439         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16440       fi
16441       ;;
16442
16443     solaris*)
16444       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16445         ld_shlibs_GCJ=no
16446         cat <<EOF 1>&2
16447
16448 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16449 *** create shared libraries on Solaris systems.  Therefore, libtool
16450 *** is disabling shared libraries support.  We urge you to upgrade GNU
16451 *** binutils to release 2.9.1 or newer.  Another option is to modify
16452 *** your PATH or compiler configuration so that the native linker is
16453 *** used, and then restart.
16454
16455 EOF
16456       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16457         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16458         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16459       else
16460         ld_shlibs_GCJ=no
16461       fi
16462       ;;
16463
16464     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16465       case `$LD -v 2>&1` in
16466         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16467         ld_shlibs_GCJ=no
16468         cat <<_LT_EOF 1>&2
16469
16470 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16471 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16472 *** is disabling shared libraries support.  We urge you to upgrade GNU
16473 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16474 *** your PATH or compiler configuration so that the native linker is
16475 *** used, and then restart.
16476
16477 _LT_EOF
16478         ;;
16479         *)
16480           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16481             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16482             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16483             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16484           else
16485             ld_shlibs_GCJ=no
16486           fi
16487         ;;
16488       esac
16489       ;;
16490
16491     sunos4*)
16492       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16493       wlarc=
16494       hardcode_direct_GCJ=yes
16495       hardcode_shlibpath_var_GCJ=no
16496       ;;
16497
16498     *)
16499       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16500         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16502       else
16503         ld_shlibs_GCJ=no
16504       fi
16505       ;;
16506     esac
16507
16508     if test "$ld_shlibs_GCJ" = no; then
16509       runpath_var=
16510       hardcode_libdir_flag_spec_GCJ=
16511       export_dynamic_flag_spec_GCJ=
16512       whole_archive_flag_spec_GCJ=
16513     fi
16514   else
16515     # PORTME fill in a description of your system's linker (not GNU ld)
16516     case $host_os in
16517     aix3*)
16518       allow_undefined_flag_GCJ=unsupported
16519       always_export_symbols_GCJ=yes
16520       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'
16521       # Note: this linker hardcodes the directories in LIBPATH if there
16522       # are no directories specified by -L.
16523       hardcode_minus_L_GCJ=yes
16524       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16525         # Neither direct hardcoding nor static linking is supported with a
16526         # broken collect2.
16527         hardcode_direct_GCJ=unsupported
16528       fi
16529       ;;
16530
16531     aix4* | aix5*)
16532       if test "$host_cpu" = ia64; then
16533         # On IA64, the linker does run time linking by default, so we don't
16534         # have to do anything special.
16535         aix_use_runtimelinking=no
16536         exp_sym_flag='-Bexport'
16537         no_entry_flag=""
16538       else
16539         # If we're using GNU nm, then we don't want the "-C" option.
16540         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16541         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16542           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'
16543         else
16544           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'
16545         fi
16546         aix_use_runtimelinking=no
16547
16548         # Test if we are trying to use run time linking or normal
16549         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16550         # need to do runtime linking.
16551         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16552           for ld_flag in $LDFLAGS; do
16553           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16554             aix_use_runtimelinking=yes
16555             break
16556           fi
16557           done
16558           ;;
16559         esac
16560
16561         exp_sym_flag='-bexport'
16562         no_entry_flag='-bnoentry'
16563       fi
16564
16565       # When large executables or shared objects are built, AIX ld can
16566       # have problems creating the table of contents.  If linking a library
16567       # or program results in "error TOC overflow" add -mminimal-toc to
16568       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16569       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16570
16571       archive_cmds_GCJ=''
16572       hardcode_direct_GCJ=yes
16573       hardcode_libdir_separator_GCJ=':'
16574       link_all_deplibs_GCJ=yes
16575
16576       if test "$GCC" = yes; then
16577         case $host_os in aix4.[012]|aix4.[012].*)
16578         # We only want to do this on AIX 4.2 and lower, the check
16579         # below for broken collect2 doesn't work under 4.3+
16580           collect2name=`${CC} -print-prog-name=collect2`
16581           if test -f "$collect2name" && \
16582            strings "$collect2name" | grep resolve_lib_name >/dev/null
16583           then
16584           # We have reworked collect2
16585           hardcode_direct_GCJ=yes
16586           else
16587           # We have old collect2
16588           hardcode_direct_GCJ=unsupported
16589           # It fails to find uninstalled libraries when the uninstalled
16590           # path is not listed in the libpath.  Setting hardcode_minus_L
16591           # to unsupported forces relinking
16592           hardcode_minus_L_GCJ=yes
16593           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16594           hardcode_libdir_separator_GCJ=
16595           fi
16596           ;;
16597         esac
16598         shared_flag='-shared'
16599         if test "$aix_use_runtimelinking" = yes; then
16600           shared_flag="$shared_flag "'${wl}-G'
16601         fi
16602       else
16603         # not using gcc
16604         if test "$host_cpu" = ia64; then
16605         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16606         # chokes on -Wl,-G. The following line is correct:
16607           shared_flag='-G'
16608         else
16609           if test "$aix_use_runtimelinking" = yes; then
16610             shared_flag='${wl}-G'
16611           else
16612             shared_flag='${wl}-bM:SRE'
16613           fi
16614         fi
16615       fi
16616
16617       # It seems that -bexpall does not export symbols beginning with
16618       # underscore (_), so it is better to generate a list of symbols to export.
16619       always_export_symbols_GCJ=yes
16620       if test "$aix_use_runtimelinking" = yes; then
16621         # Warning - without using the other runtime loading flags (-brtl),
16622         # -berok will link without error, but may produce a broken library.
16623         allow_undefined_flag_GCJ='-berok'
16624        # Determine the default libpath from the value encoded in an empty executable.
16625        cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h.  */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h.  */
16631
16632 int
16633 main ()
16634 {
16635
16636   ;
16637   return 0;
16638 }
16639 _ACEOF
16640 rm -f conftest.$ac_objext conftest$ac_exeext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16642   (eval $ac_link) 2>conftest.er1
16643   ac_status=$?
16644   grep -v '^ *+' conftest.er1 >conftest.err
16645   rm -f conftest.er1
16646   cat conftest.err >&5
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); } &&
16649          { ac_try='test -z "$ac_c_werror_flag"
16650                          || test ! -s conftest.err'
16651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652   (eval $ac_try) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; } &&
16656          { ac_try='test -s conftest$ac_exeext'
16657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658   (eval $ac_try) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662
16663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16664 }'`
16665 # Check for a 64-bit object if we didn't find anything.
16666 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; }
16667 }'`; fi
16668 else
16669   echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672 fi
16673 rm -f conftest.err conftest.$ac_objext \
16674       conftest$ac_exeext conftest.$ac_ext
16675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16676
16677        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16678         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16679        else
16680         if test "$host_cpu" = ia64; then
16681           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16682           allow_undefined_flag_GCJ="-z nodefs"
16683           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16684         else
16685          # Determine the default libpath from the value encoded in an empty executable.
16686          cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692
16693 int
16694 main ()
16695 {
16696
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16703   (eval $ac_link) 2>conftest.er1
16704   ac_status=$?
16705   grep -v '^ *+' conftest.er1 >conftest.err
16706   rm -f conftest.er1
16707   cat conftest.err >&5
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); } &&
16710          { ac_try='test -z "$ac_c_werror_flag"
16711                          || test ! -s conftest.err'
16712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713   (eval $ac_try) 2>&5
16714   ac_status=$?
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); }; } &&
16717          { ac_try='test -s conftest$ac_exeext'
16718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719   (eval $ac_try) 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; }; then
16723
16724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16725 }'`
16726 # Check for a 64-bit object if we didn't find anything.
16727 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; }
16728 }'`; fi
16729 else
16730   echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733 fi
16734 rm -f conftest.err conftest.$ac_objext \
16735       conftest$ac_exeext conftest.$ac_ext
16736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16737
16738          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16739           # Warning - without using the other run time loading flags,
16740           # -berok will link without error, but may produce a broken library.
16741           no_undefined_flag_GCJ=' ${wl}-bernotok'
16742           allow_undefined_flag_GCJ=' ${wl}-berok'
16743           # Exported symbols can be pulled into shared objects from archives
16744           whole_archive_flag_spec_GCJ='$convenience'
16745           archive_cmds_need_lc_GCJ=yes
16746           # This is similar to how AIX traditionally builds its shared libraries.
16747           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16748         fi
16749       fi
16750       ;;
16751
16752     amigaos*)
16753       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)'
16754       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16755       hardcode_minus_L_GCJ=yes
16756       # see comment about different semantics on the GNU ld section
16757       ld_shlibs_GCJ=no
16758       ;;
16759
16760     bsdi[45]*)
16761       export_dynamic_flag_spec_GCJ=-rdynamic
16762       ;;
16763
16764     cygwin* | mingw* | pw32*)
16765       # When not using gcc, we currently assume that we are using
16766       # Microsoft Visual C++.
16767       # hardcode_libdir_flag_spec is actually meaningless, as there is
16768       # no search path for DLLs.
16769       hardcode_libdir_flag_spec_GCJ=' '
16770       allow_undefined_flag_GCJ=unsupported
16771       # Tell ltmain to make .lib files, not .a files.
16772       libext=lib
16773       # Tell ltmain to make .dll files, not .so files.
16774       shrext_cmds=".dll"
16775       # FIXME: Setting linknames here is a bad hack.
16776       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16777       # The linker will automatically build a .lib file if we build a DLL.
16778       old_archive_From_new_cmds_GCJ='true'
16779       # FIXME: Should let the user specify the lib program.
16780       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16781       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16782       enable_shared_with_static_runtimes_GCJ=yes
16783       ;;
16784
16785     darwin* | rhapsody*)
16786       case $host_os in
16787         rhapsody* | darwin1.[012])
16788          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16789          ;;
16790        *) # Darwin 1.3 on
16791          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16792            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16793          else
16794            case ${MACOSX_DEPLOYMENT_TARGET} in
16795              10.[012])
16796                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16797                ;;
16798              10.*)
16799                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16800                ;;
16801            esac
16802          fi
16803          ;;
16804       esac
16805       archive_cmds_need_lc_GCJ=no
16806       hardcode_direct_GCJ=no
16807       hardcode_automatic_GCJ=yes
16808       hardcode_shlibpath_var_GCJ=unsupported
16809       whole_archive_flag_spec_GCJ=''
16810       link_all_deplibs_GCJ=yes
16811     if test "$GCC" = yes ; then
16812         output_verbose_link_cmd='echo'
16813         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16814       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16815       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16816       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16817       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}'
16818     else
16819       case $cc_basename in
16820         xlc*)
16821          output_verbose_link_cmd='echo'
16822          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16823          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16824           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16825          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16826           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}'
16827           ;;
16828        *)
16829          ld_shlibs_GCJ=no
16830           ;;
16831       esac
16832     fi
16833       ;;
16834
16835     dgux*)
16836       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16838       hardcode_shlibpath_var_GCJ=no
16839       ;;
16840
16841     freebsd1*)
16842       ld_shlibs_GCJ=no
16843       ;;
16844
16845     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16846     # support.  Future versions do this automatically, but an explicit c++rt0.o
16847     # does not break anything, and helps significantly (at the cost of a little
16848     # extra space).
16849     freebsd2.2*)
16850       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16851       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16852       hardcode_direct_GCJ=yes
16853       hardcode_shlibpath_var_GCJ=no
16854       ;;
16855
16856     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16857     freebsd2*)
16858       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16859       hardcode_direct_GCJ=yes
16860       hardcode_minus_L_GCJ=yes
16861       hardcode_shlibpath_var_GCJ=no
16862       ;;
16863
16864     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16865     freebsd* | kfreebsd*-gnu | dragonfly*)
16866       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16867       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16868       hardcode_direct_GCJ=yes
16869       hardcode_shlibpath_var_GCJ=no
16870       ;;
16871
16872     hpux9*)
16873       if test "$GCC" = yes; then
16874         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'
16875       else
16876         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'
16877       fi
16878       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16879       hardcode_libdir_separator_GCJ=:
16880       hardcode_direct_GCJ=yes
16881
16882       # hardcode_minus_L: Not really in the search PATH,
16883       # but as the default location of the library.
16884       hardcode_minus_L_GCJ=yes
16885       export_dynamic_flag_spec_GCJ='${wl}-E'
16886       ;;
16887
16888     hpux10*)
16889       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16890         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16891       else
16892         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16893       fi
16894       if test "$with_gnu_ld" = no; then
16895         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16896         hardcode_libdir_separator_GCJ=:
16897
16898         hardcode_direct_GCJ=yes
16899         export_dynamic_flag_spec_GCJ='${wl}-E'
16900
16901         # hardcode_minus_L: Not really in the search PATH,
16902         # but as the default location of the library.
16903         hardcode_minus_L_GCJ=yes
16904       fi
16905       ;;
16906
16907     hpux11*)
16908       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16909         case $host_cpu in
16910         hppa*64*)
16911           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16912           ;;
16913         ia64*)
16914           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16915           ;;
16916         *)
16917           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16918           ;;
16919         esac
16920       else
16921         case $host_cpu in
16922         hppa*64*)
16923           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16924           ;;
16925         ia64*)
16926           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16927           ;;
16928         *)
16929           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16930           ;;
16931         esac
16932       fi
16933       if test "$with_gnu_ld" = no; then
16934         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16935         hardcode_libdir_separator_GCJ=:
16936
16937         case $host_cpu in
16938         hppa*64*|ia64*)
16939           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16940           hardcode_direct_GCJ=no
16941           hardcode_shlibpath_var_GCJ=no
16942           ;;
16943         *)
16944           hardcode_direct_GCJ=yes
16945           export_dynamic_flag_spec_GCJ='${wl}-E'
16946
16947           # hardcode_minus_L: Not really in the search PATH,
16948           # but as the default location of the library.
16949           hardcode_minus_L_GCJ=yes
16950           ;;
16951         esac
16952       fi
16953       ;;
16954
16955     irix5* | irix6* | nonstopux*)
16956       if test "$GCC" = yes; then
16957         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'
16958       else
16959         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'
16960         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16961       fi
16962       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16963       hardcode_libdir_separator_GCJ=:
16964       link_all_deplibs_GCJ=yes
16965       ;;
16966
16967     netbsd*)
16968       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16969         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16970       else
16971         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16972       fi
16973       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16974       hardcode_direct_GCJ=yes
16975       hardcode_shlibpath_var_GCJ=no
16976       ;;
16977
16978     newsos6)
16979       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16980       hardcode_direct_GCJ=yes
16981       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16982       hardcode_libdir_separator_GCJ=:
16983       hardcode_shlibpath_var_GCJ=no
16984       ;;
16985
16986     openbsd*)
16987       hardcode_direct_GCJ=yes
16988       hardcode_shlibpath_var_GCJ=no
16989       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16990         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16991         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16992         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16993         export_dynamic_flag_spec_GCJ='${wl}-E'
16994       else
16995        case $host_os in
16996          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16997            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16998            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16999            ;;
17000          *)
17001            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17002            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17003            ;;
17004        esac
17005       fi
17006       ;;
17007
17008     os2*)
17009       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17010       hardcode_minus_L_GCJ=yes
17011       allow_undefined_flag_GCJ=unsupported
17012       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'
17013       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17014       ;;
17015
17016     osf3*)
17017       if test "$GCC" = yes; then
17018         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17019         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'
17020       else
17021         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17022         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'
17023       fi
17024       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17025       hardcode_libdir_separator_GCJ=:
17026       ;;
17027
17028     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17029       if test "$GCC" = yes; then
17030         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17031         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'
17032         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17033       else
17034         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17035         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'
17036         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~
17037         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17038
17039         # Both c and cxx compiler support -rpath directly
17040         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17041       fi
17042       hardcode_libdir_separator_GCJ=:
17043       ;;
17044
17045     solaris*)
17046       no_undefined_flag_GCJ=' -z text'
17047       if test "$GCC" = yes; then
17048         wlarc='${wl}'
17049         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17050         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17051           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17052       else
17053         wlarc=''
17054         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17055         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17056         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17057       fi
17058       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17059       hardcode_shlibpath_var_GCJ=no
17060       case $host_os in
17061       solaris2.[0-5] | solaris2.[0-5].*) ;;
17062       *)
17063         # The compiler driver will combine linker options so we
17064         # cannot just pass the convience library names through
17065         # without $wl, iff we do not link with $LD.
17066         # Luckily, gcc supports the same syntax we need for Sun Studio.
17067         # Supported since Solaris 2.6 (maybe 2.5.1?)
17068         case $wlarc in
17069         '')
17070           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17071         *)
17072           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17073         esac ;;
17074       esac
17075       link_all_deplibs_GCJ=yes
17076       ;;
17077
17078     sunos4*)
17079       if test "x$host_vendor" = xsequent; then
17080         # Use $CC to link under sequent, because it throws in some extra .o
17081         # files that make .init and .fini sections work.
17082         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17083       else
17084         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17085       fi
17086       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17087       hardcode_direct_GCJ=yes
17088       hardcode_minus_L_GCJ=yes
17089       hardcode_shlibpath_var_GCJ=no
17090       ;;
17091
17092     sysv4)
17093       case $host_vendor in
17094         sni)
17095           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17096           hardcode_direct_GCJ=yes # is this really true???
17097         ;;
17098         siemens)
17099           ## LD is ld it makes a PLAMLIB
17100           ## CC just makes a GrossModule.
17101           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17102           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17103           hardcode_direct_GCJ=no
17104         ;;
17105         motorola)
17106           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17107           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17108         ;;
17109       esac
17110       runpath_var='LD_RUN_PATH'
17111       hardcode_shlibpath_var_GCJ=no
17112       ;;
17113
17114     sysv4.3*)
17115       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17116       hardcode_shlibpath_var_GCJ=no
17117       export_dynamic_flag_spec_GCJ='-Bexport'
17118       ;;
17119
17120     sysv4*MP*)
17121       if test -d /usr/nec; then
17122         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17123         hardcode_shlibpath_var_GCJ=no
17124         runpath_var=LD_RUN_PATH
17125         hardcode_runpath_var=yes
17126         ld_shlibs_GCJ=yes
17127       fi
17128       ;;
17129
17130     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17131       no_undefined_flag_GCJ='${wl}-z,text'
17132       archive_cmds_need_lc_GCJ=no
17133       hardcode_shlibpath_var_GCJ=no
17134       runpath_var='LD_RUN_PATH'
17135
17136       if test "$GCC" = yes; then
17137         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17138         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17139       else
17140         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17141         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17142       fi
17143       ;;
17144
17145     sysv5* | sco3.2v5* | sco5v6*)
17146       # Note: We can NOT use -z defs as we might desire, because we do not
17147       # link with -lc, and that would cause any symbols used from libc to
17148       # always be unresolved, which means just about no library would
17149       # ever link correctly.  If we're not using GNU ld we use -z text
17150       # though, which does catch some bad symbols but isn't as heavy-handed
17151       # as -z defs.
17152       no_undefined_flag_GCJ='${wl}-z,text'
17153       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17154       archive_cmds_need_lc_GCJ=no
17155       hardcode_shlibpath_var_GCJ=no
17156       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17157       hardcode_libdir_separator_GCJ=':'
17158       link_all_deplibs_GCJ=yes
17159       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17160       runpath_var='LD_RUN_PATH'
17161
17162       if test "$GCC" = yes; then
17163         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17165       else
17166         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17167         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17168       fi
17169       ;;
17170
17171     uts4*)
17172       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17173       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17174       hardcode_shlibpath_var_GCJ=no
17175       ;;
17176
17177     *)
17178       ld_shlibs_GCJ=no
17179       ;;
17180     esac
17181   fi
17182
17183 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17184 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17185 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17186
17187 #
17188 # Do we need to explicitly link libc?
17189 #
17190 case "x$archive_cmds_need_lc_GCJ" in
17191 x|xyes)
17192   # Assume -lc should be added
17193   archive_cmds_need_lc_GCJ=yes
17194
17195   if test "$enable_shared" = yes && test "$GCC" = yes; then
17196     case $archive_cmds_GCJ in
17197     *'~'*)
17198       # FIXME: we may have to deal with multi-command sequences.
17199       ;;
17200     '$CC '*)
17201       # Test whether the compiler implicitly links with -lc since on some
17202       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17203       # to ld, don't add -lc before -lgcc.
17204       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17205 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17206       $rm conftest*
17207       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17208
17209       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17210   (eval $ac_compile) 2>&5
17211   ac_status=$?
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } 2>conftest.err; then
17214         soname=conftest
17215         lib=conftest
17216         libobjs=conftest.$ac_objext
17217         deplibs=
17218         wl=$lt_prog_compiler_wl_GCJ
17219         pic_flag=$lt_prog_compiler_pic_GCJ
17220         compiler_flags=-v
17221         linker_flags=-v
17222         verstring=
17223         output_objdir=.
17224         libname=conftest
17225         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17226         allow_undefined_flag_GCJ=
17227         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17228   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }
17232         then
17233           archive_cmds_need_lc_GCJ=no
17234         else
17235           archive_cmds_need_lc_GCJ=yes
17236         fi
17237         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17238       else
17239         cat conftest.err 1>&5
17240       fi
17241       $rm conftest*
17242       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17243 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17244       ;;
17245     esac
17246   fi
17247   ;;
17248 esac
17249
17250 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17251 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17252 library_names_spec=
17253 libname_spec='lib$name'
17254 soname_spec=
17255 shrext_cmds=".so"
17256 postinstall_cmds=
17257 postuninstall_cmds=
17258 finish_cmds=
17259 finish_eval=
17260 shlibpath_var=
17261 shlibpath_overrides_runpath=unknown
17262 version_type=none
17263 dynamic_linker="$host_os ld.so"
17264 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17265 if test "$GCC" = yes; then
17266   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17267   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17268     # if the path contains ";" then we assume it to be the separator
17269     # otherwise default to the standard path separator (i.e. ":") - it is
17270     # assumed that no part of a normal pathname contains ";" but that should
17271     # okay in the real world where ";" in dirpaths is itself problematic.
17272     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17273   else
17274     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17275   fi
17276 else
17277   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17278 fi
17279 need_lib_prefix=unknown
17280 hardcode_into_libs=no
17281
17282 # when you set need_version to no, make sure it does not cause -set_version
17283 # flags to be left without arguments
17284 need_version=unknown
17285
17286 case $host_os in
17287 aix3*)
17288   version_type=linux
17289   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17290   shlibpath_var=LIBPATH
17291
17292   # AIX 3 has no versioning support, so we append a major version to the name.
17293   soname_spec='${libname}${release}${shared_ext}$major'
17294   ;;
17295
17296 aix4* | aix5*)
17297   version_type=linux
17298   need_lib_prefix=no
17299   need_version=no
17300   hardcode_into_libs=yes
17301   if test "$host_cpu" = ia64; then
17302     # AIX 5 supports IA64
17303     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17304     shlibpath_var=LD_LIBRARY_PATH
17305   else
17306     # With GCC up to 2.95.x, collect2 would create an import file
17307     # for dependence libraries.  The import file would start with
17308     # the line `#! .'.  This would cause the generated library to
17309     # depend on `.', always an invalid library.  This was fixed in
17310     # development snapshots of GCC prior to 3.0.
17311     case $host_os in
17312       aix4 | aix4.[01] | aix4.[01].*)
17313       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17314            echo ' yes '
17315            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17316         :
17317       else
17318         can_build_shared=no
17319       fi
17320       ;;
17321     esac
17322     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17323     # soname into executable. Probably we can add versioning support to
17324     # collect2, so additional links can be useful in future.
17325     if test "$aix_use_runtimelinking" = yes; then
17326       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17327       # instead of lib<name>.a to let people know that these are not
17328       # typical AIX shared libraries.
17329       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330     else
17331       # We preserve .a as extension for shared libraries through AIX4.2
17332       # and later when we are not doing run time linking.
17333       library_names_spec='${libname}${release}.a $libname.a'
17334       soname_spec='${libname}${release}${shared_ext}$major'
17335     fi
17336     shlibpath_var=LIBPATH
17337   fi
17338   ;;
17339
17340 amigaos*)
17341   library_names_spec='$libname.ixlibrary $libname.a'
17342   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17343   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'
17344   ;;
17345
17346 beos*)
17347   library_names_spec='${libname}${shared_ext}'
17348   dynamic_linker="$host_os ld.so"
17349   shlibpath_var=LIBRARY_PATH
17350   ;;
17351
17352 bsdi[45]*)
17353   version_type=linux
17354   need_version=no
17355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356   soname_spec='${libname}${release}${shared_ext}$major'
17357   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17358   shlibpath_var=LD_LIBRARY_PATH
17359   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17360   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17361   # the default ld.so.conf also contains /usr/contrib/lib and
17362   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17363   # libtool to hard-code these into programs
17364   ;;
17365
17366 cygwin* | mingw* | pw32*)
17367   version_type=windows
17368   shrext_cmds=".dll"
17369   need_version=no
17370   need_lib_prefix=no
17371
17372   case $GCC,$host_os in
17373   yes,cygwin* | yes,mingw* | yes,pw32*)
17374     library_names_spec='$libname.dll.a'
17375     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17376     postinstall_cmds='base_file=`basename \${file}`~
17377       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17378       dldir=$destdir/`dirname \$dlpath`~
17379       test -d \$dldir || mkdir -p \$dldir~
17380       $install_prog $dir/$dlname \$dldir/$dlname~
17381       chmod a+x \$dldir/$dlname'
17382     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17383       dlpath=$dir/\$dldll~
17384        $rm \$dlpath'
17385     shlibpath_overrides_runpath=yes
17386
17387     case $host_os in
17388     cygwin*)
17389       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17390       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17391       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17392       ;;
17393     mingw*)
17394       # MinGW DLLs use traditional 'lib' prefix
17395       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17396       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17397       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17398         # It is most probably a Windows format PATH printed by
17399         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17400         # path with ; separators, and with drive letters. We can handle the
17401         # drive letters (cygwin fileutils understands them), so leave them,
17402         # especially as we might pass files found there to a mingw objdump,
17403         # which wouldn't understand a cygwinified path. Ahh.
17404         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17405       else
17406         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17407       fi
17408       ;;
17409     pw32*)
17410       # pw32 DLLs use 'pw' prefix rather than 'lib'
17411       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17412       ;;
17413     esac
17414     ;;
17415
17416   *)
17417     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17418     ;;
17419   esac
17420   dynamic_linker='Win32 ld.exe'
17421   # FIXME: first we should search . and the directory the executable is in
17422   shlibpath_var=PATH
17423   ;;
17424
17425 darwin* | rhapsody*)
17426   dynamic_linker="$host_os dyld"
17427   version_type=darwin
17428   need_lib_prefix=no
17429   need_version=no
17430   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17431   soname_spec='${libname}${release}${major}$shared_ext'
17432   shlibpath_overrides_runpath=yes
17433   shlibpath_var=DYLD_LIBRARY_PATH
17434   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17435   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17436   if test "$GCC" = yes; then
17437     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"`
17438   else
17439     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17440   fi
17441   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17442   ;;
17443
17444 dgux*)
17445   version_type=linux
17446   need_lib_prefix=no
17447   need_version=no
17448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17449   soname_spec='${libname}${release}${shared_ext}$major'
17450   shlibpath_var=LD_LIBRARY_PATH
17451   ;;
17452
17453 freebsd1*)
17454   dynamic_linker=no
17455   ;;
17456
17457 kfreebsd*-gnu)
17458   version_type=linux
17459   need_lib_prefix=no
17460   need_version=no
17461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17462   soname_spec='${libname}${release}${shared_ext}$major'
17463   shlibpath_var=LD_LIBRARY_PATH
17464   shlibpath_overrides_runpath=no
17465   hardcode_into_libs=yes
17466   dynamic_linker='GNU ld.so'
17467   ;;
17468
17469 freebsd* | dragonfly*)
17470   # DragonFly does not have aout.  When/if they implement a new
17471   # versioning mechanism, adjust this.
17472   if test -x /usr/bin/objformat; then
17473     objformat=`/usr/bin/objformat`
17474   else
17475     case $host_os in
17476     freebsd[123]*) objformat=aout ;;
17477     *) objformat=elf ;;
17478     esac
17479   fi
17480   version_type=freebsd-$objformat
17481   case $version_type in
17482     freebsd-elf*)
17483       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17484       need_version=no
17485       need_lib_prefix=no
17486       ;;
17487     freebsd-*)
17488       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17489       need_version=yes
17490       ;;
17491   esac
17492   shlibpath_var=LD_LIBRARY_PATH
17493   case $host_os in
17494   freebsd2*)
17495     shlibpath_overrides_runpath=yes
17496     ;;
17497   freebsd3.[01]* | freebsdelf3.[01]*)
17498     shlibpath_overrides_runpath=yes
17499     hardcode_into_libs=yes
17500     ;;
17501   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17502   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17503     shlibpath_overrides_runpath=no
17504     hardcode_into_libs=yes
17505     ;;
17506   freebsd*) # from 4.6 on
17507     shlibpath_overrides_runpath=yes
17508     hardcode_into_libs=yes
17509     ;;
17510   esac
17511   ;;
17512
17513 gnu*)
17514   version_type=linux
17515   need_lib_prefix=no
17516   need_version=no
17517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17518   soname_spec='${libname}${release}${shared_ext}$major'
17519   shlibpath_var=LD_LIBRARY_PATH
17520   hardcode_into_libs=yes
17521   ;;
17522
17523 hpux9* | hpux10* | hpux11*)
17524   # Give a soname corresponding to the major version so that dld.sl refuses to
17525   # link against other versions.
17526   version_type=sunos
17527   need_lib_prefix=no
17528   need_version=no
17529   case $host_cpu in
17530   ia64*)
17531     shrext_cmds='.so'
17532     hardcode_into_libs=yes
17533     dynamic_linker="$host_os dld.so"
17534     shlibpath_var=LD_LIBRARY_PATH
17535     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537     soname_spec='${libname}${release}${shared_ext}$major'
17538     if test "X$HPUX_IA64_MODE" = X32; then
17539       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17540     else
17541       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17542     fi
17543     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17544     ;;
17545    hppa*64*)
17546      shrext_cmds='.sl'
17547      hardcode_into_libs=yes
17548      dynamic_linker="$host_os dld.sl"
17549      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17550      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17551      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552      soname_spec='${libname}${release}${shared_ext}$major'
17553      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17554      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17555      ;;
17556    *)
17557     shrext_cmds='.sl'
17558     dynamic_linker="$host_os dld.sl"
17559     shlibpath_var=SHLIB_PATH
17560     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17562     soname_spec='${libname}${release}${shared_ext}$major'
17563     ;;
17564   esac
17565   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17566   postinstall_cmds='chmod 555 $lib'
17567   ;;
17568
17569 interix3*)
17570   version_type=linux
17571   need_lib_prefix=no
17572   need_version=no
17573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17574   soname_spec='${libname}${release}${shared_ext}$major'
17575   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17576   shlibpath_var=LD_LIBRARY_PATH
17577   shlibpath_overrides_runpath=no
17578   hardcode_into_libs=yes
17579   ;;
17580
17581 irix5* | irix6* | nonstopux*)
17582   case $host_os in
17583     nonstopux*) version_type=nonstopux ;;
17584     *)
17585         if test "$lt_cv_prog_gnu_ld" = yes; then
17586                 version_type=linux
17587         else
17588                 version_type=irix
17589         fi ;;
17590   esac
17591   need_lib_prefix=no
17592   need_version=no
17593   soname_spec='${libname}${release}${shared_ext}$major'
17594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17595   case $host_os in
17596   irix5* | nonstopux*)
17597     libsuff= shlibsuff=
17598     ;;
17599   *)
17600     case $LD in # libtool.m4 will add one of these switches to LD
17601     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17602       libsuff= shlibsuff= libmagic=32-bit;;
17603     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17604       libsuff=32 shlibsuff=N32 libmagic=N32;;
17605     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17606       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17607     *) libsuff= shlibsuff= libmagic=never-match;;
17608     esac
17609     ;;
17610   esac
17611   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17612   shlibpath_overrides_runpath=no
17613   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17614   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17615   hardcode_into_libs=yes
17616   ;;
17617
17618 # No shared lib support for Linux oldld, aout, or coff.
17619 linux*oldld* | linux*aout* | linux*coff*)
17620   dynamic_linker=no
17621   ;;
17622
17623 # This must be Linux ELF.
17624 linux*)
17625   version_type=linux
17626   need_lib_prefix=no
17627   need_version=no
17628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629   soname_spec='${libname}${release}${shared_ext}$major'
17630   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17631   shlibpath_var=LD_LIBRARY_PATH
17632   shlibpath_overrides_runpath=no
17633   # This implies no fast_install, which is unacceptable.
17634   # Some rework will be needed to allow for fast_install
17635   # before this can be enabled.
17636   hardcode_into_libs=yes
17637
17638   # Append ld.so.conf contents to the search path
17639   if test -f /etc/ld.so.conf; then
17640     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17641     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17642   fi
17643
17644   # We used to test for /lib/ld.so.1 and disable shared libraries on
17645   # powerpc, because MkLinux only supported shared libraries with the
17646   # GNU dynamic linker.  Since this was broken with cross compilers,
17647   # most powerpc-linux boxes support dynamic linking these days and
17648   # people can always --disable-shared, the test was removed, and we
17649   # assume the GNU/Linux dynamic linker is in use.
17650   dynamic_linker='GNU/Linux ld.so'
17651   ;;
17652
17653 knetbsd*-gnu)
17654   version_type=linux
17655   need_lib_prefix=no
17656   need_version=no
17657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17658   soname_spec='${libname}${release}${shared_ext}$major'
17659   shlibpath_var=LD_LIBRARY_PATH
17660   shlibpath_overrides_runpath=no
17661   hardcode_into_libs=yes
17662   dynamic_linker='GNU ld.so'
17663   ;;
17664
17665 netbsd*)
17666   version_type=sunos
17667   need_lib_prefix=no
17668   need_version=no
17669   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17671     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17672     dynamic_linker='NetBSD (a.out) ld.so'
17673   else
17674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17675     soname_spec='${libname}${release}${shared_ext}$major'
17676     dynamic_linker='NetBSD ld.elf_so'
17677   fi
17678   shlibpath_var=LD_LIBRARY_PATH
17679   shlibpath_overrides_runpath=yes
17680   hardcode_into_libs=yes
17681   ;;
17682
17683 newsos6)
17684   version_type=linux
17685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686   shlibpath_var=LD_LIBRARY_PATH
17687   shlibpath_overrides_runpath=yes
17688   ;;
17689
17690 nto-qnx*)
17691   version_type=linux
17692   need_lib_prefix=no
17693   need_version=no
17694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17695   soname_spec='${libname}${release}${shared_ext}$major'
17696   shlibpath_var=LD_LIBRARY_PATH
17697   shlibpath_overrides_runpath=yes
17698   ;;
17699
17700 openbsd*)
17701   version_type=sunos
17702   sys_lib_dlsearch_path_spec="/usr/lib"
17703   need_lib_prefix=no
17704   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17705   case $host_os in
17706     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17707     *)                         need_version=no  ;;
17708   esac
17709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17711   shlibpath_var=LD_LIBRARY_PATH
17712   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17713     case $host_os in
17714       openbsd2.[89] | openbsd2.[89].*)
17715         shlibpath_overrides_runpath=no
17716         ;;
17717       *)
17718         shlibpath_overrides_runpath=yes
17719         ;;
17720       esac
17721   else
17722     shlibpath_overrides_runpath=yes
17723   fi
17724   ;;
17725
17726 os2*)
17727   libname_spec='$name'
17728   shrext_cmds=".dll"
17729   need_lib_prefix=no
17730   library_names_spec='$libname${shared_ext} $libname.a'
17731   dynamic_linker='OS/2 ld.exe'
17732   shlibpath_var=LIBPATH
17733   ;;
17734
17735 osf3* | osf4* | osf5*)
17736   version_type=osf
17737   need_lib_prefix=no
17738   need_version=no
17739   soname_spec='${libname}${release}${shared_ext}$major'
17740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17741   shlibpath_var=LD_LIBRARY_PATH
17742   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17743   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17744   ;;
17745
17746 solaris*)
17747   version_type=linux
17748   need_lib_prefix=no
17749   need_version=no
17750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17751   soname_spec='${libname}${release}${shared_ext}$major'
17752   shlibpath_var=LD_LIBRARY_PATH
17753   shlibpath_overrides_runpath=yes
17754   hardcode_into_libs=yes
17755   # ldd complains unless libraries are executable
17756   postinstall_cmds='chmod +x $lib'
17757   ;;
17758
17759 sunos4*)
17760   version_type=sunos
17761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17762   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17763   shlibpath_var=LD_LIBRARY_PATH
17764   shlibpath_overrides_runpath=yes
17765   if test "$with_gnu_ld" = yes; then
17766     need_lib_prefix=no
17767   fi
17768   need_version=yes
17769   ;;
17770
17771 sysv4 | sysv4.3*)
17772   version_type=linux
17773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17774   soname_spec='${libname}${release}${shared_ext}$major'
17775   shlibpath_var=LD_LIBRARY_PATH
17776   case $host_vendor in
17777     sni)
17778       shlibpath_overrides_runpath=no
17779       need_lib_prefix=no
17780       export_dynamic_flag_spec='${wl}-Blargedynsym'
17781       runpath_var=LD_RUN_PATH
17782       ;;
17783     siemens)
17784       need_lib_prefix=no
17785       ;;
17786     motorola)
17787       need_lib_prefix=no
17788       need_version=no
17789       shlibpath_overrides_runpath=no
17790       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17791       ;;
17792   esac
17793   ;;
17794
17795 sysv4*MP*)
17796   if test -d /usr/nec ;then
17797     version_type=linux
17798     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17799     soname_spec='$libname${shared_ext}.$major'
17800     shlibpath_var=LD_LIBRARY_PATH
17801   fi
17802   ;;
17803
17804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17805   version_type=freebsd-elf
17806   need_lib_prefix=no
17807   need_version=no
17808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17809   soname_spec='${libname}${release}${shared_ext}$major'
17810   shlibpath_var=LD_LIBRARY_PATH
17811   hardcode_into_libs=yes
17812   if test "$with_gnu_ld" = yes; then
17813     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17814     shlibpath_overrides_runpath=no
17815   else
17816     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17817     shlibpath_overrides_runpath=yes
17818     case $host_os in
17819       sco3.2v5*)
17820         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17821         ;;
17822     esac
17823   fi
17824   sys_lib_dlsearch_path_spec='/usr/lib'
17825   ;;
17826
17827 uts4*)
17828   version_type=linux
17829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830   soname_spec='${libname}${release}${shared_ext}$major'
17831   shlibpath_var=LD_LIBRARY_PATH
17832   ;;
17833
17834 *)
17835   dynamic_linker=no
17836   ;;
17837 esac
17838 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17839 echo "${ECHO_T}$dynamic_linker" >&6
17840 test "$dynamic_linker" = no && can_build_shared=no
17841
17842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17843 if test "$GCC" = yes; then
17844   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17845 fi
17846
17847 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17849 hardcode_action_GCJ=
17850 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17851    test -n "$runpath_var_GCJ" || \
17852    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17853
17854   # We can hardcode non-existant directories.
17855   if test "$hardcode_direct_GCJ" != no &&
17856      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17857      # have to relink, otherwise we might link with an installed library
17858      # when we should be linking with a yet-to-be-installed one
17859      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17860      test "$hardcode_minus_L_GCJ" != no; then
17861     # Linking always hardcodes the temporary library directory.
17862     hardcode_action_GCJ=relink
17863   else
17864     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17865     hardcode_action_GCJ=immediate
17866   fi
17867 else
17868   # We cannot hardcode anything, or else we can only hardcode existing
17869   # directories.
17870   hardcode_action_GCJ=unsupported
17871 fi
17872 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17873 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17874
17875 if test "$hardcode_action_GCJ" = relink; then
17876   # Fast installation is not supported
17877   enable_fast_install=no
17878 elif test "$shlibpath_overrides_runpath" = yes ||
17879      test "$enable_shared" = no; then
17880   # Fast installation is not necessary
17881   enable_fast_install=needless
17882 fi
17883
17884
17885 # The else clause should only fire when bootstrapping the
17886 # libtool distribution, otherwise you forgot to ship ltmain.sh
17887 # with your package, and you will get complaints that there are
17888 # no rules to generate ltmain.sh.
17889 if test -f "$ltmain"; then
17890   # See if we are running on zsh, and set the options which allow our commands through
17891   # without removal of \ escapes.
17892   if test -n "${ZSH_VERSION+set}" ; then
17893     setopt NO_GLOB_SUBST
17894   fi
17895   # Now quote all the things that may contain metacharacters while being
17896   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17897   # variables and quote the copies for generation of the libtool script.
17898   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17899     SED SHELL STRIP \
17900     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17901     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17902     deplibs_check_method reload_flag reload_cmds need_locks \
17903     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17904     lt_cv_sys_global_symbol_to_c_name_address \
17905     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17906     old_postinstall_cmds old_postuninstall_cmds \
17907     compiler_GCJ \
17908     CC_GCJ \
17909     LD_GCJ \
17910     lt_prog_compiler_wl_GCJ \
17911     lt_prog_compiler_pic_GCJ \
17912     lt_prog_compiler_static_GCJ \
17913     lt_prog_compiler_no_builtin_flag_GCJ \
17914     export_dynamic_flag_spec_GCJ \
17915     thread_safe_flag_spec_GCJ \
17916     whole_archive_flag_spec_GCJ \
17917     enable_shared_with_static_runtimes_GCJ \
17918     old_archive_cmds_GCJ \
17919     old_archive_from_new_cmds_GCJ \
17920     predep_objects_GCJ \
17921     postdep_objects_GCJ \
17922     predeps_GCJ \
17923     postdeps_GCJ \
17924     compiler_lib_search_path_GCJ \
17925     archive_cmds_GCJ \
17926     archive_expsym_cmds_GCJ \
17927     postinstall_cmds_GCJ \
17928     postuninstall_cmds_GCJ \
17929     old_archive_from_expsyms_cmds_GCJ \
17930     allow_undefined_flag_GCJ \
17931     no_undefined_flag_GCJ \
17932     export_symbols_cmds_GCJ \
17933     hardcode_libdir_flag_spec_GCJ \
17934     hardcode_libdir_flag_spec_ld_GCJ \
17935     hardcode_libdir_separator_GCJ \
17936     hardcode_automatic_GCJ \
17937     module_cmds_GCJ \
17938     module_expsym_cmds_GCJ \
17939     lt_cv_prog_compiler_c_o_GCJ \
17940     exclude_expsyms_GCJ \
17941     include_expsyms_GCJ; do
17942
17943     case $var in
17944     old_archive_cmds_GCJ | \
17945     old_archive_from_new_cmds_GCJ | \
17946     archive_cmds_GCJ | \
17947     archive_expsym_cmds_GCJ | \
17948     module_cmds_GCJ | \
17949     module_expsym_cmds_GCJ | \
17950     old_archive_from_expsyms_cmds_GCJ | \
17951     export_symbols_cmds_GCJ | \
17952     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17953     postinstall_cmds | postuninstall_cmds | \
17954     old_postinstall_cmds | old_postuninstall_cmds | \
17955     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17956       # Double-quote double-evaled strings.
17957       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17958       ;;
17959     *)
17960       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17961       ;;
17962     esac
17963   done
17964
17965   case $lt_echo in
17966   *'\$0 --fallback-echo"')
17967     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17968     ;;
17969   esac
17970
17971 cfgfile="$ofile"
17972
17973   cat <<__EOF__ >> "$cfgfile"
17974 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17975
17976 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17977
17978 # Shell to use when invoking shell scripts.
17979 SHELL=$lt_SHELL
17980
17981 # Whether or not to build shared libraries.
17982 build_libtool_libs=$enable_shared
17983
17984 # Whether or not to build static libraries.
17985 build_old_libs=$enable_static
17986
17987 # Whether or not to add -lc for building shared libraries.
17988 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17989
17990 # Whether or not to disallow shared libs when runtime libs are static
17991 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17992
17993 # Whether or not to optimize for fast installation.
17994 fast_install=$enable_fast_install
17995
17996 # The host system.
17997 host_alias=$host_alias
17998 host=$host
17999 host_os=$host_os
18000
18001 # The build system.
18002 build_alias=$build_alias
18003 build=$build
18004 build_os=$build_os
18005
18006 # An echo program that does not interpret backslashes.
18007 echo=$lt_echo
18008
18009 # The archiver.
18010 AR=$lt_AR
18011 AR_FLAGS=$lt_AR_FLAGS
18012
18013 # A C compiler.
18014 LTCC=$lt_LTCC
18015
18016 # LTCC compiler flags.
18017 LTCFLAGS=$lt_LTCFLAGS
18018
18019 # A language-specific compiler.
18020 CC=$lt_compiler_GCJ
18021
18022 # Is the compiler the GNU C compiler?
18023 with_gcc=$GCC_GCJ
18024
18025 # An ERE matcher.
18026 EGREP=$lt_EGREP
18027
18028 # The linker used to build libraries.
18029 LD=$lt_LD_GCJ
18030
18031 # Whether we need hard or soft links.
18032 LN_S=$lt_LN_S
18033
18034 # A BSD-compatible nm program.
18035 NM=$lt_NM
18036
18037 # A symbol stripping program
18038 STRIP=$lt_STRIP
18039
18040 # Used to examine libraries when file_magic_cmd begins "file"
18041 MAGIC_CMD=$MAGIC_CMD
18042
18043 # Used on cygwin: DLL creation program.
18044 DLLTOOL="$DLLTOOL"
18045
18046 # Used on cygwin: object dumper.
18047 OBJDUMP="$OBJDUMP"
18048
18049 # Used on cygwin: assembler.
18050 AS="$AS"
18051
18052 # The name of the directory that contains temporary libtool files.
18053 objdir=$objdir
18054
18055 # How to create reloadable object files.
18056 reload_flag=$lt_reload_flag
18057 reload_cmds=$lt_reload_cmds
18058
18059 # How to pass a linker flag through the compiler.
18060 wl=$lt_lt_prog_compiler_wl_GCJ
18061
18062 # Object file suffix (normally "o").
18063 objext="$ac_objext"
18064
18065 # Old archive suffix (normally "a").
18066 libext="$libext"
18067
18068 # Shared library suffix (normally ".so").
18069 shrext_cmds='$shrext_cmds'
18070
18071 # Executable file suffix (normally "").
18072 exeext="$exeext"
18073
18074 # Additional compiler flags for building library objects.
18075 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18076 pic_mode=$pic_mode
18077
18078 # What is the maximum length of a command?
18079 max_cmd_len=$lt_cv_sys_max_cmd_len
18080
18081 # Does compiler simultaneously support -c and -o options?
18082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18083
18084 # Must we lock files when doing compilation?
18085 need_locks=$lt_need_locks
18086
18087 # Do we need the lib prefix for modules?
18088 need_lib_prefix=$need_lib_prefix
18089
18090 # Do we need a version for libraries?
18091 need_version=$need_version
18092
18093 # Whether dlopen is supported.
18094 dlopen_support=$enable_dlopen
18095
18096 # Whether dlopen of programs is supported.
18097 dlopen_self=$enable_dlopen_self
18098
18099 # Whether dlopen of statically linked programs is supported.
18100 dlopen_self_static=$enable_dlopen_self_static
18101
18102 # Compiler flag to prevent dynamic linking.
18103 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18104
18105 # Compiler flag to turn off builtin functions.
18106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18107
18108 # Compiler flag to allow reflexive dlopens.
18109 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18110
18111 # Compiler flag to generate shared objects directly from archives.
18112 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18113
18114 # Compiler flag to generate thread-safe objects.
18115 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18116
18117 # Library versioning type.
18118 version_type=$version_type
18119
18120 # Format of library name prefix.
18121 libname_spec=$lt_libname_spec
18122
18123 # List of archive names.  First name is the real one, the rest are links.
18124 # The last name is the one that the linker finds with -lNAME.
18125 library_names_spec=$lt_library_names_spec
18126
18127 # The coded name of the library, if different from the real name.
18128 soname_spec=$lt_soname_spec
18129
18130 # Commands used to build and install an old-style archive.
18131 RANLIB=$lt_RANLIB
18132 old_archive_cmds=$lt_old_archive_cmds_GCJ
18133 old_postinstall_cmds=$lt_old_postinstall_cmds
18134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18135
18136 # Create an old-style archive from a shared archive.
18137 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18138
18139 # Create a temporary old-style archive to link instead of a shared archive.
18140 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18141
18142 # Commands used to build and install a shared archive.
18143 archive_cmds=$lt_archive_cmds_GCJ
18144 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18145 postinstall_cmds=$lt_postinstall_cmds
18146 postuninstall_cmds=$lt_postuninstall_cmds
18147
18148 # Commands used to build a loadable module (assumed same as above if empty)
18149 module_cmds=$lt_module_cmds_GCJ
18150 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18151
18152 # Commands to strip libraries.
18153 old_striplib=$lt_old_striplib
18154 striplib=$lt_striplib
18155
18156 # Dependencies to place before the objects being linked to create a
18157 # shared library.
18158 predep_objects=$lt_predep_objects_GCJ
18159
18160 # Dependencies to place after the objects being linked to create a
18161 # shared library.
18162 postdep_objects=$lt_postdep_objects_GCJ
18163
18164 # Dependencies to place before the objects being linked to create a
18165 # shared library.
18166 predeps=$lt_predeps_GCJ
18167
18168 # Dependencies to place after the objects being linked to create a
18169 # shared library.
18170 postdeps=$lt_postdeps_GCJ
18171
18172 # The library search path used internally by the compiler when linking
18173 # a shared library.
18174 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18175
18176 # Method to check whether dependent libraries are shared objects.
18177 deplibs_check_method=$lt_deplibs_check_method
18178
18179 # Command to use when deplibs_check_method == file_magic.
18180 file_magic_cmd=$lt_file_magic_cmd
18181
18182 # Flag that allows shared libraries with undefined symbols to be built.
18183 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18184
18185 # Flag that forces no undefined symbols.
18186 no_undefined_flag=$lt_no_undefined_flag_GCJ
18187
18188 # Commands used to finish a libtool library installation in a directory.
18189 finish_cmds=$lt_finish_cmds
18190
18191 # Same as above, but a single script fragment to be evaled but not shown.
18192 finish_eval=$lt_finish_eval
18193
18194 # Take the output of nm and produce a listing of raw symbols and C names.
18195 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18196
18197 # Transform the output of nm in a proper C declaration
18198 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18199
18200 # Transform the output of nm in a C name address pair
18201 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18202
18203 # This is the shared library runtime path variable.
18204 runpath_var=$runpath_var
18205
18206 # This is the shared library path variable.
18207 shlibpath_var=$shlibpath_var
18208
18209 # Is shlibpath searched before the hard-coded library search path?
18210 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18211
18212 # How to hardcode a shared library path into an executable.
18213 hardcode_action=$hardcode_action_GCJ
18214
18215 # Whether we should hardcode library paths into libraries.
18216 hardcode_into_libs=$hardcode_into_libs
18217
18218 # Flag to hardcode \$libdir into a binary during linking.
18219 # This must work even if \$libdir does not exist.
18220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18221
18222 # If ld is used when linking, flag to hardcode \$libdir into
18223 # a binary during linking. This must work even if \$libdir does
18224 # not exist.
18225 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18226
18227 # Whether we need a single -rpath flag with a separated argument.
18228 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18229
18230 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18231 # resulting binary.
18232 hardcode_direct=$hardcode_direct_GCJ
18233
18234 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18235 # resulting binary.
18236 hardcode_minus_L=$hardcode_minus_L_GCJ
18237
18238 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18239 # the resulting binary.
18240 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18241
18242 # Set to yes if building a shared library automatically hardcodes DIR into the library
18243 # and all subsequent libraries and executables linked against it.
18244 hardcode_automatic=$hardcode_automatic_GCJ
18245
18246 # Variables whose values should be saved in libtool wrapper scripts and
18247 # restored at relink time.
18248 variables_saved_for_relink="$variables_saved_for_relink"
18249
18250 # Whether libtool must link a program against all its dependency libraries.
18251 link_all_deplibs=$link_all_deplibs_GCJ
18252
18253 # Compile-time system search path for libraries
18254 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18255
18256 # Run-time system search path for libraries
18257 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18258
18259 # Fix the shell variable \$srcfile for the compiler.
18260 fix_srcfile_path="$fix_srcfile_path_GCJ"
18261
18262 # Set to yes if exported symbols are required.
18263 always_export_symbols=$always_export_symbols_GCJ
18264
18265 # The commands to list exported symbols.
18266 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18267
18268 # The commands to extract the exported symbol list from a shared archive.
18269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18270
18271 # Symbols that should not be listed in the preloaded symbols.
18272 exclude_expsyms=$lt_exclude_expsyms_GCJ
18273
18274 # Symbols that must always be exported.
18275 include_expsyms=$lt_include_expsyms_GCJ
18276
18277 # ### END LIBTOOL TAG CONFIG: $tagname
18278
18279 __EOF__
18280
18281
18282 else
18283   # If there is no Makefile yet, we rely on a make rule to execute
18284   # `config.status --recheck' to rerun these tests and create the
18285   # libtool script then.
18286   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18287   if test -f "$ltmain_in"; then
18288     test -f Makefile && make "$ltmain"
18289   fi
18290 fi
18291
18292
18293 ac_ext=c
18294 ac_cpp='$CPP $CPPFLAGS'
18295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18298
18299 CC="$lt_save_CC"
18300
18301         else
18302           tagname=""
18303         fi
18304         ;;
18305
18306       RC)
18307
18308
18309
18310 # Source file extension for RC test sources.
18311 ac_ext=rc
18312
18313 # Object file extension for compiled RC test sources.
18314 objext=o
18315 objext_RC=$objext
18316
18317 # Code to be used in simple compile tests
18318 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18319
18320 # Code to be used in simple link tests
18321 lt_simple_link_test_code="$lt_simple_compile_test_code"
18322
18323 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18324
18325 # If no C compiler was specified, use CC.
18326 LTCC=${LTCC-"$CC"}
18327
18328 # If no C compiler flags were specified, use CFLAGS.
18329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18330
18331 # Allow CC to be a program name with arguments.
18332 compiler=$CC
18333
18334
18335 # save warnings/boilerplate of simple test code
18336 ac_outfile=conftest.$ac_objext
18337 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18339 _lt_compiler_boilerplate=`cat conftest.err`
18340 $rm conftest*
18341
18342 ac_outfile=conftest.$ac_objext
18343 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18345 _lt_linker_boilerplate=`cat conftest.err`
18346 $rm conftest*
18347
18348
18349 # Allow CC to be a program name with arguments.
18350 lt_save_CC="$CC"
18351 CC=${RC-"windres"}
18352 compiler=$CC
18353 compiler_RC=$CC
18354 for cc_temp in $compiler""; do
18355   case $cc_temp in
18356     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18357     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18358     \-*) ;;
18359     *) break;;
18360   esac
18361 done
18362 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18363
18364 lt_cv_prog_compiler_c_o_RC=yes
18365
18366 # The else clause should only fire when bootstrapping the
18367 # libtool distribution, otherwise you forgot to ship ltmain.sh
18368 # with your package, and you will get complaints that there are
18369 # no rules to generate ltmain.sh.
18370 if test -f "$ltmain"; then
18371   # See if we are running on zsh, and set the options which allow our commands through
18372   # without removal of \ escapes.
18373   if test -n "${ZSH_VERSION+set}" ; then
18374     setopt NO_GLOB_SUBST
18375   fi
18376   # Now quote all the things that may contain metacharacters while being
18377   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18378   # variables and quote the copies for generation of the libtool script.
18379   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18380     SED SHELL STRIP \
18381     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18382     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18383     deplibs_check_method reload_flag reload_cmds need_locks \
18384     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18385     lt_cv_sys_global_symbol_to_c_name_address \
18386     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18387     old_postinstall_cmds old_postuninstall_cmds \
18388     compiler_RC \
18389     CC_RC \
18390     LD_RC \
18391     lt_prog_compiler_wl_RC \
18392     lt_prog_compiler_pic_RC \
18393     lt_prog_compiler_static_RC \
18394     lt_prog_compiler_no_builtin_flag_RC \
18395     export_dynamic_flag_spec_RC \
18396     thread_safe_flag_spec_RC \
18397     whole_archive_flag_spec_RC \
18398     enable_shared_with_static_runtimes_RC \
18399     old_archive_cmds_RC \
18400     old_archive_from_new_cmds_RC \
18401     predep_objects_RC \
18402     postdep_objects_RC \
18403     predeps_RC \
18404     postdeps_RC \
18405     compiler_lib_search_path_RC \
18406     archive_cmds_RC \
18407     archive_expsym_cmds_RC \
18408     postinstall_cmds_RC \
18409     postuninstall_cmds_RC \
18410     old_archive_from_expsyms_cmds_RC \
18411     allow_undefined_flag_RC \
18412     no_undefined_flag_RC \
18413     export_symbols_cmds_RC \
18414     hardcode_libdir_flag_spec_RC \
18415     hardcode_libdir_flag_spec_ld_RC \
18416     hardcode_libdir_separator_RC \
18417     hardcode_automatic_RC \
18418     module_cmds_RC \
18419     module_expsym_cmds_RC \
18420     lt_cv_prog_compiler_c_o_RC \
18421     exclude_expsyms_RC \
18422     include_expsyms_RC; do
18423
18424     case $var in
18425     old_archive_cmds_RC | \
18426     old_archive_from_new_cmds_RC | \
18427     archive_cmds_RC | \
18428     archive_expsym_cmds_RC | \
18429     module_cmds_RC | \
18430     module_expsym_cmds_RC | \
18431     old_archive_from_expsyms_cmds_RC | \
18432     export_symbols_cmds_RC | \
18433     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18434     postinstall_cmds | postuninstall_cmds | \
18435     old_postinstall_cmds | old_postuninstall_cmds | \
18436     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18437       # Double-quote double-evaled strings.
18438       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18439       ;;
18440     *)
18441       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18442       ;;
18443     esac
18444   done
18445
18446   case $lt_echo in
18447   *'\$0 --fallback-echo"')
18448     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18449     ;;
18450   esac
18451
18452 cfgfile="$ofile"
18453
18454   cat <<__EOF__ >> "$cfgfile"
18455 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18456
18457 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18458
18459 # Shell to use when invoking shell scripts.
18460 SHELL=$lt_SHELL
18461
18462 # Whether or not to build shared libraries.
18463 build_libtool_libs=$enable_shared
18464
18465 # Whether or not to build static libraries.
18466 build_old_libs=$enable_static
18467
18468 # Whether or not to add -lc for building shared libraries.
18469 build_libtool_need_lc=$archive_cmds_need_lc_RC
18470
18471 # Whether or not to disallow shared libs when runtime libs are static
18472 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18473
18474 # Whether or not to optimize for fast installation.
18475 fast_install=$enable_fast_install
18476
18477 # The host system.
18478 host_alias=$host_alias
18479 host=$host
18480 host_os=$host_os
18481
18482 # The build system.
18483 build_alias=$build_alias
18484 build=$build
18485 build_os=$build_os
18486
18487 # An echo program that does not interpret backslashes.
18488 echo=$lt_echo
18489
18490 # The archiver.
18491 AR=$lt_AR
18492 AR_FLAGS=$lt_AR_FLAGS
18493
18494 # A C compiler.
18495 LTCC=$lt_LTCC
18496
18497 # LTCC compiler flags.
18498 LTCFLAGS=$lt_LTCFLAGS
18499
18500 # A language-specific compiler.
18501 CC=$lt_compiler_RC
18502
18503 # Is the compiler the GNU C compiler?
18504 with_gcc=$GCC_RC
18505
18506 # An ERE matcher.
18507 EGREP=$lt_EGREP
18508
18509 # The linker used to build libraries.
18510 LD=$lt_LD_RC
18511
18512 # Whether we need hard or soft links.
18513 LN_S=$lt_LN_S
18514
18515 # A BSD-compatible nm program.
18516 NM=$lt_NM
18517
18518 # A symbol stripping program
18519 STRIP=$lt_STRIP
18520
18521 # Used to examine libraries when file_magic_cmd begins "file"
18522 MAGIC_CMD=$MAGIC_CMD
18523
18524 # Used on cygwin: DLL creation program.
18525 DLLTOOL="$DLLTOOL"
18526
18527 # Used on cygwin: object dumper.
18528 OBJDUMP="$OBJDUMP"
18529
18530 # Used on cygwin: assembler.
18531 AS="$AS"
18532
18533 # The name of the directory that contains temporary libtool files.
18534 objdir=$objdir
18535
18536 # How to create reloadable object files.
18537 reload_flag=$lt_reload_flag
18538 reload_cmds=$lt_reload_cmds
18539
18540 # How to pass a linker flag through the compiler.
18541 wl=$lt_lt_prog_compiler_wl_RC
18542
18543 # Object file suffix (normally "o").
18544 objext="$ac_objext"
18545
18546 # Old archive suffix (normally "a").
18547 libext="$libext"
18548
18549 # Shared library suffix (normally ".so").
18550 shrext_cmds='$shrext_cmds'
18551
18552 # Executable file suffix (normally "").
18553 exeext="$exeext"
18554
18555 # Additional compiler flags for building library objects.
18556 pic_flag=$lt_lt_prog_compiler_pic_RC
18557 pic_mode=$pic_mode
18558
18559 # What is the maximum length of a command?
18560 max_cmd_len=$lt_cv_sys_max_cmd_len
18561
18562 # Does compiler simultaneously support -c and -o options?
18563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18564
18565 # Must we lock files when doing compilation?
18566 need_locks=$lt_need_locks
18567
18568 # Do we need the lib prefix for modules?
18569 need_lib_prefix=$need_lib_prefix
18570
18571 # Do we need a version for libraries?
18572 need_version=$need_version
18573
18574 # Whether dlopen is supported.
18575 dlopen_support=$enable_dlopen
18576
18577 # Whether dlopen of programs is supported.
18578 dlopen_self=$enable_dlopen_self
18579
18580 # Whether dlopen of statically linked programs is supported.
18581 dlopen_self_static=$enable_dlopen_self_static
18582
18583 # Compiler flag to prevent dynamic linking.
18584 link_static_flag=$lt_lt_prog_compiler_static_RC
18585
18586 # Compiler flag to turn off builtin functions.
18587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18588
18589 # Compiler flag to allow reflexive dlopens.
18590 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18591
18592 # Compiler flag to generate shared objects directly from archives.
18593 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18594
18595 # Compiler flag to generate thread-safe objects.
18596 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18597
18598 # Library versioning type.
18599 version_type=$version_type
18600
18601 # Format of library name prefix.
18602 libname_spec=$lt_libname_spec
18603
18604 # List of archive names.  First name is the real one, the rest are links.
18605 # The last name is the one that the linker finds with -lNAME.
18606 library_names_spec=$lt_library_names_spec
18607
18608 # The coded name of the library, if different from the real name.
18609 soname_spec=$lt_soname_spec
18610
18611 # Commands used to build and install an old-style archive.
18612 RANLIB=$lt_RANLIB
18613 old_archive_cmds=$lt_old_archive_cmds_RC
18614 old_postinstall_cmds=$lt_old_postinstall_cmds
18615 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18616
18617 # Create an old-style archive from a shared archive.
18618 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18619
18620 # Create a temporary old-style archive to link instead of a shared archive.
18621 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18622
18623 # Commands used to build and install a shared archive.
18624 archive_cmds=$lt_archive_cmds_RC
18625 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18626 postinstall_cmds=$lt_postinstall_cmds
18627 postuninstall_cmds=$lt_postuninstall_cmds
18628
18629 # Commands used to build a loadable module (assumed same as above if empty)
18630 module_cmds=$lt_module_cmds_RC
18631 module_expsym_cmds=$lt_module_expsym_cmds_RC
18632
18633 # Commands to strip libraries.
18634 old_striplib=$lt_old_striplib
18635 striplib=$lt_striplib
18636
18637 # Dependencies to place before the objects being linked to create a
18638 # shared library.
18639 predep_objects=$lt_predep_objects_RC
18640
18641 # Dependencies to place after the objects being linked to create a
18642 # shared library.
18643 postdep_objects=$lt_postdep_objects_RC
18644
18645 # Dependencies to place before the objects being linked to create a
18646 # shared library.
18647 predeps=$lt_predeps_RC
18648
18649 # Dependencies to place after the objects being linked to create a
18650 # shared library.
18651 postdeps=$lt_postdeps_RC
18652
18653 # The library search path used internally by the compiler when linking
18654 # a shared library.
18655 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18656
18657 # Method to check whether dependent libraries are shared objects.
18658 deplibs_check_method=$lt_deplibs_check_method
18659
18660 # Command to use when deplibs_check_method == file_magic.
18661 file_magic_cmd=$lt_file_magic_cmd
18662
18663 # Flag that allows shared libraries with undefined symbols to be built.
18664 allow_undefined_flag=$lt_allow_undefined_flag_RC
18665
18666 # Flag that forces no undefined symbols.
18667 no_undefined_flag=$lt_no_undefined_flag_RC
18668
18669 # Commands used to finish a libtool library installation in a directory.
18670 finish_cmds=$lt_finish_cmds
18671
18672 # Same as above, but a single script fragment to be evaled but not shown.
18673 finish_eval=$lt_finish_eval
18674
18675 # Take the output of nm and produce a listing of raw symbols and C names.
18676 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18677
18678 # Transform the output of nm in a proper C declaration
18679 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18680
18681 # Transform the output of nm in a C name address pair
18682 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18683
18684 # This is the shared library runtime path variable.
18685 runpath_var=$runpath_var
18686
18687 # This is the shared library path variable.
18688 shlibpath_var=$shlibpath_var
18689
18690 # Is shlibpath searched before the hard-coded library search path?
18691 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18692
18693 # How to hardcode a shared library path into an executable.
18694 hardcode_action=$hardcode_action_RC
18695
18696 # Whether we should hardcode library paths into libraries.
18697 hardcode_into_libs=$hardcode_into_libs
18698
18699 # Flag to hardcode \$libdir into a binary during linking.
18700 # This must work even if \$libdir does not exist.
18701 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18702
18703 # If ld is used when linking, flag to hardcode \$libdir into
18704 # a binary during linking. This must work even if \$libdir does
18705 # not exist.
18706 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18707
18708 # Whether we need a single -rpath flag with a separated argument.
18709 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18710
18711 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18712 # resulting binary.
18713 hardcode_direct=$hardcode_direct_RC
18714
18715 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18716 # resulting binary.
18717 hardcode_minus_L=$hardcode_minus_L_RC
18718
18719 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18720 # the resulting binary.
18721 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18722
18723 # Set to yes if building a shared library automatically hardcodes DIR into the library
18724 # and all subsequent libraries and executables linked against it.
18725 hardcode_automatic=$hardcode_automatic_RC
18726
18727 # Variables whose values should be saved in libtool wrapper scripts and
18728 # restored at relink time.
18729 variables_saved_for_relink="$variables_saved_for_relink"
18730
18731 # Whether libtool must link a program against all its dependency libraries.
18732 link_all_deplibs=$link_all_deplibs_RC
18733
18734 # Compile-time system search path for libraries
18735 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18736
18737 # Run-time system search path for libraries
18738 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18739
18740 # Fix the shell variable \$srcfile for the compiler.
18741 fix_srcfile_path="$fix_srcfile_path_RC"
18742
18743 # Set to yes if exported symbols are required.
18744 always_export_symbols=$always_export_symbols_RC
18745
18746 # The commands to list exported symbols.
18747 export_symbols_cmds=$lt_export_symbols_cmds_RC
18748
18749 # The commands to extract the exported symbol list from a shared archive.
18750 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18751
18752 # Symbols that should not be listed in the preloaded symbols.
18753 exclude_expsyms=$lt_exclude_expsyms_RC
18754
18755 # Symbols that must always be exported.
18756 include_expsyms=$lt_include_expsyms_RC
18757
18758 # ### END LIBTOOL TAG CONFIG: $tagname
18759
18760 __EOF__
18761
18762
18763 else
18764   # If there is no Makefile yet, we rely on a make rule to execute
18765   # `config.status --recheck' to rerun these tests and create the
18766   # libtool script then.
18767   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18768   if test -f "$ltmain_in"; then
18769     test -f Makefile && make "$ltmain"
18770   fi
18771 fi
18772
18773
18774 ac_ext=c
18775 ac_cpp='$CPP $CPPFLAGS'
18776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18779
18780 CC="$lt_save_CC"
18781
18782         ;;
18783
18784       *)
18785         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18786 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18787    { (exit 1); exit 1; }; }
18788         ;;
18789       esac
18790
18791       # Append the new tag name to the list of available tags.
18792       if test -n "$tagname" ; then
18793       available_tags="$available_tags $tagname"
18794     fi
18795     fi
18796   done
18797   IFS="$lt_save_ifs"
18798
18799   # Now substitute the updated list of available tags.
18800   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18801     mv "${ofile}T" "$ofile"
18802     chmod +x "$ofile"
18803   else
18804     rm -f "${ofile}T"
18805     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18806 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18807    { (exit 1); exit 1; }; }
18808   fi
18809 fi
18810
18811
18812
18813 # This can be used to rebuild libtool when needed
18814 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18815
18816 # Always use our own libtool.
18817 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18818
18819 # Prevent multiple expansion
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832 # Check whether --with-system-libtool or --without-system-libtool was given.
18833 if test "${with_system_libtool+set}" = set; then
18834   withval="$with_system_libtool"
18835    # Extract the first word of "libtool", so it can be a program name with args.
18836 set dummy libtool; ac_word=$2
18837 echo "$as_me:$LINENO: checking for $ac_word" >&5
18838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18839 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18840   echo $ECHO_N "(cached) $ECHO_C" >&6
18841 else
18842   case $LIBTOOL in
18843   [\\/]* | ?:[\\/]*)
18844   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18845   ;;
18846   *)
18847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18848 as_dummy="$PATH:/usr/local/bin"
18849 for as_dir in $as_dummy
18850 do
18851   IFS=$as_save_IFS
18852   test -z "$as_dir" && as_dir=.
18853   for ac_exec_ext in '' $ac_executable_extensions; do
18854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18855     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18857     break 2
18858   fi
18859 done
18860 done
18861
18862   ;;
18863 esac
18864 fi
18865 LIBTOOL=$ac_cv_path_LIBTOOL
18866
18867 if test -n "$LIBTOOL"; then
18868   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18869 echo "${ECHO_T}$LIBTOOL" >&6
18870 else
18871   echo "$as_me:$LINENO: result: no" >&5
18872 echo "${ECHO_T}no" >&6
18873 fi
18874
18875 else
18876
18877   LIBTOOL="`pwd`/libtool"
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892 fi;
18893
18894
18895
18896 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18897 if test "${enable_strict_dependencies+set}" = set; then
18898   enableval="$enable_strict_dependencies"
18899
18900 fi;
18901
18902 docdir='${datadir}/doc/freeradius'
18903 echo "$as_me:$LINENO: checking docdir" >&5
18904 echo $ECHO_N "checking docdir... $ECHO_C" >&6
18905
18906 # Check whether --with-docdir or --without-docdir was given.
18907 if test "${with_docdir+set}" = set; then
18908   withval="$with_docdir"
18909    case "$withval" in
18910     no)
18911         { { echo "$as_me:$LINENO: error: Need docdir" >&5
18912 echo "$as_me: error: Need docdir" >&2;}
18913    { (exit 1); exit 1; }; }
18914         ;;
18915     yes)
18916         ;;
18917     [\\/$]* | ?:[\\/]* )
18918         docdir="$withval"
18919         ;;
18920     *)
18921         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
18922 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
18923    { (exit 1); exit 1; }; }
18924         ;;
18925   esac
18926
18927 fi;
18928
18929 echo "$as_me:$LINENO: result: $docdir" >&5
18930 echo "${ECHO_T}$docdir" >&6
18931
18932 logdir='${localstatedir}/log/radius'
18933 echo "$as_me:$LINENO: checking logdir" >&5
18934 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18935
18936 # Check whether --with-logdir or --without-logdir was given.
18937 if test "${with_logdir+set}" = set; then
18938   withval="$with_logdir"
18939    case "$withval" in
18940     no)
18941         { { echo "$as_me:$LINENO: error: Need logdir" >&5
18942 echo "$as_me: error: Need logdir" >&2;}
18943    { (exit 1); exit 1; }; }
18944         ;;
18945     yes)
18946         ;;
18947     [\\/$]* | ?:[\\/]* )
18948         logdir="$withval"
18949         ;;
18950     *)
18951         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
18952 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
18953    { (exit 1); exit 1; }; }
18954         ;;
18955   esac
18956
18957 fi;
18958
18959 echo "$as_me:$LINENO: result: $logdir" >&5
18960 echo "${ECHO_T}$logdir" >&6
18961
18962 radacctdir='${logdir}/radacct'
18963 echo "$as_me:$LINENO: checking radacctdir" >&5
18964 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18965
18966 # Check whether --with-radacctdir or --without-radacctdir was given.
18967 if test "${with_radacctdir+set}" = set; then
18968   withval="$with_radacctdir"
18969    case "$withval" in
18970     no)
18971         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18972 echo "$as_me: error: Need radacctdir" >&2;}
18973    { (exit 1); exit 1; }; }
18974         ;;
18975     yes)
18976         ;;
18977     [\\/$]* | ?:[\\/]* )
18978         radacctdir="$withval"
18979         ;;
18980     *)
18981         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
18982 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
18983    { (exit 1); exit 1; }; }
18984         ;;
18985   esac
18986
18987 fi;
18988
18989 echo "$as_me:$LINENO: result: $radacctdir" >&5
18990 echo "${ECHO_T}$radacctdir" >&6
18991
18992 raddbdir='${sysconfdir}/raddb'
18993 echo "$as_me:$LINENO: checking raddbdir" >&5
18994 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18995
18996 # Check whether --with-raddbdir or --without-raddbdir was given.
18997 if test "${with_raddbdir+set}" = set; then
18998   withval="$with_raddbdir"
18999    case "$withval" in
19000     no)
19001         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19002 echo "$as_me: error: Need raddbdir" >&2;}
19003    { (exit 1); exit 1; }; }
19004         ;;
19005     yes)
19006         ;;
19007     [\\/$]* | ?:[\\/]* )
19008         raddbdir="$withval"
19009         ;;
19010     *)
19011         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19012 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19013    { (exit 1); exit 1; }; }
19014         ;;
19015   esac
19016
19017 fi;
19018
19019 echo "$as_me:$LINENO: result: $raddbdir" >&5
19020 echo "${ECHO_T}$raddbdir" >&6
19021
19022 ASCEND_BINARY=yes
19023
19024 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19025 if test "${with_ascend_binary+set}" = set; then
19026   withval="$with_ascend_binary"
19027    case "$withval" in
19028     yes)
19029         ;;
19030     *)
19031         ASCEND_BINARY=""
19032   esac
19033
19034 fi;
19035 if test "X$ASCEND_BINARY" = "Xyes"; then
19036
19037 cat >>confdefs.h <<\_ACEOF
19038 #define ASCEND_BINARY
19039 _ACEOF
19040
19041 fi
19042
19043 WITH_THREADS=yes
19044
19045 # Check whether --with-threads or --without-threads was given.
19046 if test "${with_threads+set}" = set; then
19047   withval="$with_threads"
19048    case "$withval" in
19049     yes)
19050         ;;
19051     *)
19052         WITH_THREADS=""
19053   esac
19054
19055 fi;
19056
19057 WITH_SNMP=yes
19058
19059 # Check whether --with-snmp or --without-snmp was given.
19060 if test "${with_snmp+set}" = set; then
19061   withval="$with_snmp"
19062    case "$withval" in
19063     yes)
19064         ;;
19065     *)
19066         WITH_SNMP=no
19067   esac
19068
19069 fi;
19070
19071 STATIC_MODULES=
19072
19073 # Check whether --with-static_modules or --without-static_modules was given.
19074 if test "${with_static_modules+set}" = set; then
19075   withval="$with_static_modules"
19076
19077   for i in $withval; do
19078     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19079   done
19080
19081 fi;
19082
19083 MODULES=
19084
19085 # Check whether --with-modules or --without-modules was given.
19086 if test "${with_modules+set}" = set; then
19087   withval="$with_modules"
19088
19089  for i in $withval; do
19090    MODULES="$MODULES $i"
19091  done
19092
19093 fi;
19094
19095 # Check whether --enable-developer or --disable-developer was given.
19096 if test "${enable_developer+set}" = set; then
19097   enableval="$enable_developer"
19098    case "$enableval" in
19099     no)
19100         developer=no
19101         ;;
19102     *)
19103         developer=yes
19104   esac
19105
19106 fi;
19107
19108 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19109     developer="yes"
19110 fi
19111
19112 EXPERIMENTAL=
19113
19114 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19115 if test "${with_experimental_modules+set}" = set; then
19116   withval="$with_experimental_modules"
19117    case "$withval" in
19118     yes)
19119         EXPERIMENTAL=yes
19120         ;;
19121     *)
19122   esac
19123
19124 fi;
19125
19126 OPENSSL_INCLUDE_DIR=
19127
19128 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19129 if test "${with_openssl_includes+set}" = set; then
19130   withval="$with_openssl_includes"
19131    case "$withval" in
19132     *) OPENSSL_INCLUDE_DIR="$withval"
19133         ;;
19134   esac
19135
19136 fi;
19137
19138 OPENSSL_LIB_DIR=
19139
19140 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19141 if test "${with_openssl_libraries+set}" = set; then
19142   withval="$with_openssl_libraries"
19143    case "$withval" in
19144     *) OPENSSL_LIB_DIR="$withval"
19145         ;;
19146   esac
19147
19148 fi;
19149
19150
19151
19152 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19153 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19154   withval="$with_rlm_FOO_lib_dir"
19155    case "$withval" in
19156     *)
19157         ;;
19158   esac
19159
19160 fi;
19161
19162
19163 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19164 if test "${with_rlm_FOO_include_dir+set}" = set; then
19165   withval="$with_rlm_FOO_include_dir"
19166    case "$withval" in
19167     *)
19168         ;;
19169   esac
19170
19171 fi;
19172
19173
19174 WITH_UDPFROMTO=no
19175
19176 # Check whether --with-udpfromto or --without-udpfromto was given.
19177 if test "${with_udpfromto+set}" = set; then
19178   withval="$with_udpfromto"
19179    case "$withval" in
19180     yes)
19181         WITH_UDPFROMTO=yes
19182         ;;
19183     *)
19184         WITH_UDPFROMTO=no
19185   esac
19186
19187 fi;
19188
19189 if test "x$WITH_UDPFROMTO" = "xyes"; then
19190
19191 cat >>confdefs.h <<\_ACEOF
19192 #define WITH_UDPFROMTO
19193 _ACEOF
19194
19195 fi
19196
19197
19198 CHECKRAD=checkrad.pl
19199 # Extract the first word of "perl", so it can be a program name with args.
19200 set dummy perl; ac_word=$2
19201 echo "$as_me:$LINENO: checking for $ac_word" >&5
19202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19203 if test "${ac_cv_path_PERL+set}" = set; then
19204   echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206   case $PERL in
19207   [\\/]* | ?:[\\/]*)
19208   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19209   ;;
19210   *)
19211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19212 for as_dir in $PATH
19213 do
19214   IFS=$as_save_IFS
19215   test -z "$as_dir" && as_dir=.
19216   for ac_exec_ext in '' $ac_executable_extensions; do
19217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19218     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19220     break 2
19221   fi
19222 done
19223 done
19224
19225   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19226   ;;
19227 esac
19228 fi
19229 PERL=$ac_cv_path_PERL
19230
19231 if test -n "$PERL"; then
19232   echo "$as_me:$LINENO: result: $PERL" >&5
19233 echo "${ECHO_T}$PERL" >&6
19234 else
19235   echo "$as_me:$LINENO: result: no" >&5
19236 echo "${ECHO_T}no" >&6
19237 fi
19238
19239 if test "x$ac_cv_path_PERL" = "x"; then
19240   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19241 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19242 fi
19243 # Extract the first word of "snmpget", so it can be a program name with args.
19244 set dummy snmpget; ac_word=$2
19245 echo "$as_me:$LINENO: checking for $ac_word" >&5
19246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19247 if test "${ac_cv_path_SNMPGET+set}" = set; then
19248   echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250   case $SNMPGET in
19251   [\\/]* | ?:[\\/]*)
19252   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19253   ;;
19254   *)
19255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19256 for as_dir in $PATH
19257 do
19258   IFS=$as_save_IFS
19259   test -z "$as_dir" && as_dir=.
19260   for ac_exec_ext in '' $ac_executable_extensions; do
19261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19262     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19264     break 2
19265   fi
19266 done
19267 done
19268
19269   ;;
19270 esac
19271 fi
19272 SNMPGET=$ac_cv_path_SNMPGET
19273
19274 if test -n "$SNMPGET"; then
19275   echo "$as_me:$LINENO: result: $SNMPGET" >&5
19276 echo "${ECHO_T}$SNMPGET" >&6
19277 else
19278   echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6
19280 fi
19281
19282 if test "x$ac_cv_path_SNMPGET" = "x"; then
19283   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19284 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19285 fi
19286
19287 # Extract the first word of "snmpwalk", so it can be a program name with args.
19288 set dummy snmpwalk; ac_word=$2
19289 echo "$as_me:$LINENO: checking for $ac_word" >&5
19290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19291 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19292   echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294   case $SNMPWALK in
19295   [\\/]* | ?:[\\/]*)
19296   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19297   ;;
19298   *)
19299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300 for as_dir in $PATH
19301 do
19302   IFS=$as_save_IFS
19303   test -z "$as_dir" && as_dir=.
19304   for ac_exec_ext in '' $ac_executable_extensions; do
19305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19308     break 2
19309   fi
19310 done
19311 done
19312
19313   ;;
19314 esac
19315 fi
19316 SNMPWALK=$ac_cv_path_SNMPWALK
19317
19318 if test -n "$SNMPWALK"; then
19319   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19320 echo "${ECHO_T}$SNMPWALK" >&6
19321 else
19322   echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6
19324 fi
19325
19326 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19327   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19328 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19329 fi
19330
19331 # Extract the first word of "rusers", so it can be a program name with args.
19332 set dummy rusers; ac_word=$2
19333 echo "$as_me:$LINENO: checking for $ac_word" >&5
19334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19335 if test "${ac_cv_path_RUSERS+set}" = set; then
19336   echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19338   case $RUSERS in
19339   [\\/]* | ?:[\\/]*)
19340   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19341   ;;
19342   *)
19343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19344 for as_dir in $PATH
19345 do
19346   IFS=$as_save_IFS
19347   test -z "$as_dir" && as_dir=.
19348   for ac_exec_ext in '' $ac_executable_extensions; do
19349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19350     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19352     break 2
19353   fi
19354 done
19355 done
19356
19357   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19358   ;;
19359 esac
19360 fi
19361 RUSERS=$ac_cv_path_RUSERS
19362
19363 if test -n "$RUSERS"; then
19364   echo "$as_me:$LINENO: result: $RUSERS" >&5
19365 echo "${ECHO_T}$RUSERS" >&6
19366 else
19367   echo "$as_me:$LINENO: result: no" >&5
19368 echo "${ECHO_T}no" >&6
19369 fi
19370
19371
19372 missing_dir=`cd $ac_aux_dir && pwd`
19373 # expand $ac_aux_dir to an absolute path
19374 am_aux_dir=`cd $ac_aux_dir && pwd`
19375
19376 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19377 # Use eval to expand $SHELL
19378 if eval "$MISSING --run true"; then
19379   am_missing_run="$MISSING --run "
19380 else
19381   am_missing_run=
19382   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19383 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19384 fi
19385
19386
19387 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19388
19389
19390 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19391
19392
19393 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19394
19395
19396 # Extract the first word of "locate", so it can be a program name with args.
19397 set dummy locate; ac_word=$2
19398 echo "$as_me:$LINENO: checking for $ac_word" >&5
19399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19400 if test "${ac_cv_path_LOCATE+set}" = set; then
19401   echo $ECHO_N "(cached) $ECHO_C" >&6
19402 else
19403   case $LOCATE in
19404   [\\/]* | ?:[\\/]*)
19405   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19406   ;;
19407   *)
19408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19409 for as_dir in $PATH
19410 do
19411   IFS=$as_save_IFS
19412   test -z "$as_dir" && as_dir=.
19413   for ac_exec_ext in '' $ac_executable_extensions; do
19414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19415     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19417     break 2
19418   fi
19419 done
19420 done
19421
19422   ;;
19423 esac
19424 fi
19425 LOCATE=$ac_cv_path_LOCATE
19426
19427 if test -n "$LOCATE"; then
19428   echo "$as_me:$LINENO: result: $LOCATE" >&5
19429 echo "${ECHO_T}$LOCATE" >&6
19430 else
19431   echo "$as_me:$LINENO: result: no" >&5
19432 echo "${ECHO_T}no" >&6
19433 fi
19434
19435 # Extract the first word of "dirname", so it can be a program name with args.
19436 set dummy dirname; ac_word=$2
19437 echo "$as_me:$LINENO: checking for $ac_word" >&5
19438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19439 if test "${ac_cv_path_DIRNAME+set}" = set; then
19440   echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442   case $DIRNAME in
19443   [\\/]* | ?:[\\/]*)
19444   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19445   ;;
19446   *)
19447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19448 for as_dir in $PATH
19449 do
19450   IFS=$as_save_IFS
19451   test -z "$as_dir" && as_dir=.
19452   for ac_exec_ext in '' $ac_executable_extensions; do
19453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19454     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19456     break 2
19457   fi
19458 done
19459 done
19460
19461   ;;
19462 esac
19463 fi
19464 DIRNAME=$ac_cv_path_DIRNAME
19465
19466 if test -n "$DIRNAME"; then
19467   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19468 echo "${ECHO_T}$DIRNAME" >&6
19469 else
19470   echo "$as_me:$LINENO: result: no" >&5
19471 echo "${ECHO_T}no" >&6
19472 fi
19473
19474 # Extract the first word of "grep", so it can be a program name with args.
19475 set dummy grep; ac_word=$2
19476 echo "$as_me:$LINENO: checking for $ac_word" >&5
19477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19478 if test "${ac_cv_path_GREP+set}" = set; then
19479   echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481   case $GREP in
19482   [\\/]* | ?:[\\/]*)
19483   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19484   ;;
19485   *)
19486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19487 for as_dir in $PATH
19488 do
19489   IFS=$as_save_IFS
19490   test -z "$as_dir" && as_dir=.
19491   for ac_exec_ext in '' $ac_executable_extensions; do
19492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19493     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19495     break 2
19496   fi
19497 done
19498 done
19499
19500   ;;
19501 esac
19502 fi
19503 GREP=$ac_cv_path_GREP
19504
19505 if test -n "$GREP"; then
19506   echo "$as_me:$LINENO: result: $GREP" >&5
19507 echo "${ECHO_T}$GREP" >&6
19508 else
19509   echo "$as_me:$LINENO: result: no" >&5
19510 echo "${ECHO_T}no" >&6
19511 fi
19512
19513
19514
19515 old_CFLAGS=$CFLAGS
19516 if test "x$WITH_THREADS" = "xyes"; then
19517   if test $ac_cv_prog_suncc = "yes"; then
19518     CFLAGS="$CFLAGS -mt"
19519   fi
19520
19521
19522 for ac_header in pthread.h
19523 do
19524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526   echo "$as_me:$LINENO: checking for $ac_header" >&5
19527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19529   echo $ECHO_N "(cached) $ECHO_C" >&6
19530 fi
19531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19533 else
19534   # Is the header compilable?
19535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 $ac_includes_default
19544 #include <$ac_header>
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548   (eval $ac_compile) 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } &&
19555          { ac_try='test -z "$ac_c_werror_flag"
19556                          || test ! -s conftest.err'
19557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558   (eval $ac_try) 2>&5
19559   ac_status=$?
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); }; } &&
19562          { ac_try='test -s conftest.$ac_objext'
19563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564   (eval $ac_try) 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; }; then
19568   ac_header_compiler=yes
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_header_compiler=no
19574 fi
19575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19577 echo "${ECHO_T}$ac_header_compiler" >&6
19578
19579 # Is the header present?
19580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 #include <$ac_header>
19589 _ACEOF
19590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19592   ac_status=$?
19593   grep -v '^ *+' conftest.er1 >conftest.err
19594   rm -f conftest.er1
19595   cat conftest.err >&5
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); } >/dev/null; then
19598   if test -s conftest.err; then
19599     ac_cpp_err=$ac_c_preproc_warn_flag
19600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19601   else
19602     ac_cpp_err=
19603   fi
19604 else
19605   ac_cpp_err=yes
19606 fi
19607 if test -z "$ac_cpp_err"; then
19608   ac_header_preproc=yes
19609 else
19610   echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613   ac_header_preproc=no
19614 fi
19615 rm -f conftest.err conftest.$ac_ext
19616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19617 echo "${ECHO_T}$ac_header_preproc" >&6
19618
19619 # So?  What about this header?
19620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19621   yes:no: )
19622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19626     ac_header_preproc=yes
19627     ;;
19628   no:yes:* )
19629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19641     (
19642       cat <<\_ASBOX
19643 ## ------------------------------------------ ##
19644 ## Report this to the AC_PACKAGE_NAME lists.  ##
19645 ## ------------------------------------------ ##
19646 _ASBOX
19647     ) |
19648       sed "s/^/$as_me: WARNING:     /" >&2
19649     ;;
19650 esac
19651 echo "$as_me:$LINENO: checking for $ac_header" >&5
19652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19654   echo $ECHO_N "(cached) $ECHO_C" >&6
19655 else
19656   eval "$as_ac_Header=\$ac_header_preproc"
19657 fi
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19660
19661 fi
19662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19663   cat >>confdefs.h <<_ACEOF
19664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19665 _ACEOF
19666
19667 else
19668    WITH_THREADS="no"
19669 fi
19670
19671 done
19672
19673
19674   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19675 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19676 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19677   echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679   ac_check_lib_save_LIBS=$LIBS
19680 LIBS="-lpthread  $LIBS"
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687
19688 /* Override any gcc2 internal prototype to avoid an error.  */
19689 #ifdef __cplusplus
19690 extern "C"
19691 #endif
19692 /* We use char because int might match the return type of a gcc2
19693    builtin and then its argument prototype would still apply.  */
19694 char pthread_create ();
19695 int
19696 main ()
19697 {
19698 pthread_create ();
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705   (eval $ac_link) 2>conftest.er1
19706   ac_status=$?
19707   grep -v '^ *+' conftest.er1 >conftest.err
19708   rm -f conftest.er1
19709   cat conftest.err >&5
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } &&
19712          { ac_try='test -z "$ac_c_werror_flag"
19713                          || test ! -s conftest.err'
19714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715   (eval $ac_try) 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; } &&
19719          { ac_try='test -s conftest$ac_exeext'
19720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721   (eval $ac_try) 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; }; then
19725   ac_cv_lib_pthread_pthread_create=yes
19726 else
19727   echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19729
19730 ac_cv_lib_pthread_pthread_create=no
19731 fi
19732 rm -f conftest.err conftest.$ac_objext \
19733       conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_lib_save_LIBS
19735 fi
19736 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19737 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19738 if test $ac_cv_lib_pthread_pthread_create = yes; then
19739    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19740                   LIBS="$LIBS -lpthread"
19741 else
19742   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19743 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19744 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747   ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lc_r  $LIBS"
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h.  */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h.  */
19755
19756 /* Override any gcc2 internal prototype to avoid an error.  */
19757 #ifdef __cplusplus
19758 extern "C"
19759 #endif
19760 /* We use char because int might match the return type of a gcc2
19761    builtin and then its argument prototype would still apply.  */
19762 char pthread_create ();
19763 int
19764 main ()
19765 {
19766 pthread_create ();
19767   ;
19768   return 0;
19769 }
19770 _ACEOF
19771 rm -f conftest.$ac_objext conftest$ac_exeext
19772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19773   (eval $ac_link) 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } &&
19780          { ac_try='test -z "$ac_c_werror_flag"
19781                          || test ! -s conftest.err'
19782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783   (eval $ac_try) 2>&5
19784   ac_status=$?
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); }; } &&
19787          { ac_try='test -s conftest$ac_exeext'
19788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789   (eval $ac_try) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; }; then
19793   ac_cv_lib_c_r_pthread_create=yes
19794 else
19795   echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19797
19798 ac_cv_lib_c_r_pthread_create=no
19799 fi
19800 rm -f conftest.err conftest.$ac_objext \
19801       conftest$ac_exeext conftest.$ac_ext
19802 LIBS=$ac_check_lib_save_LIBS
19803 fi
19804 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19805 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19806 if test $ac_cv_lib_c_r_pthread_create = yes; then
19807    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19808 else
19809    WITH_THREADS="no"
19810
19811 fi
19812
19813
19814 fi
19815
19816 fi
19817
19818 if test "x$WITH_THREADS" != "xyes"; then
19819   CFLAGS=$old_CFLAGS
19820   ac_cv_header_pthread_h="no"
19821   WITH_THREADS=no
19822 else
19823
19824   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19825 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19826 if test "${ac_cv_search_sem_init+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829   ac_func_search_save_LIBS=$LIBS
19830 ac_cv_search_sem_init=no
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837
19838 /* Override any gcc2 internal prototype to avoid an error.  */
19839 #ifdef __cplusplus
19840 extern "C"
19841 #endif
19842 /* We use char because int might match the return type of a gcc2
19843    builtin and then its argument prototype would still apply.  */
19844 char sem_init ();
19845 int
19846 main ()
19847 {
19848 sem_init ();
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19855   (eval $ac_link) 2>conftest.er1
19856   ac_status=$?
19857   grep -v '^ *+' conftest.er1 >conftest.err
19858   rm -f conftest.er1
19859   cat conftest.err >&5
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); } &&
19862          { ac_try='test -z "$ac_c_werror_flag"
19863                          || test ! -s conftest.err'
19864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865   (eval $ac_try) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; } &&
19869          { ac_try='test -s conftest$ac_exeext'
19870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871   (eval $ac_try) 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); }; }; then
19875   ac_cv_search_sem_init="none required"
19876 else
19877   echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19879
19880 fi
19881 rm -f conftest.err conftest.$ac_objext \
19882       conftest$ac_exeext conftest.$ac_ext
19883 if test "$ac_cv_search_sem_init" = no; then
19884   for ac_lib in pthread sem posix4 rt semaphore; do
19885     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19886     cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h.  */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h.  */
19892
19893 /* Override any gcc2 internal prototype to avoid an error.  */
19894 #ifdef __cplusplus
19895 extern "C"
19896 #endif
19897 /* We use char because int might match the return type of a gcc2
19898    builtin and then its argument prototype would still apply.  */
19899 char sem_init ();
19900 int
19901 main ()
19902 {
19903 sem_init ();
19904   ;
19905   return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910   (eval $ac_link) 2>conftest.er1
19911   ac_status=$?
19912   grep -v '^ *+' conftest.er1 >conftest.err
19913   rm -f conftest.er1
19914   cat conftest.err >&5
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -z "$ac_c_werror_flag"
19918                          || test ! -s conftest.err'
19919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920   (eval $ac_try) 2>&5
19921   ac_status=$?
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); }; } &&
19924          { ac_try='test -s conftest$ac_exeext'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   ac_cv_search_sem_init="-l$ac_lib"
19931 break
19932 else
19933   echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19935
19936 fi
19937 rm -f conftest.err conftest.$ac_objext \
19938       conftest$ac_exeext conftest.$ac_ext
19939   done
19940 fi
19941 LIBS=$ac_func_search_save_LIBS
19942 fi
19943 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19944 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19945 if test "$ac_cv_search_sem_init" != no; then
19946   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19947
19948 else
19949   { { 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
19950 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;}
19951    { (exit 1); exit 1; }; }
19952
19953 fi
19954
19955 fi
19956
19957
19958 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19959 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19960 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19961   echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963   ac_check_lib_save_LIBS=$LIBS
19964 LIBS="-lsocket  $LIBS"
19965 cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h.  */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h.  */
19971
19972 /* Override any gcc2 internal prototype to avoid an error.  */
19973 #ifdef __cplusplus
19974 extern "C"
19975 #endif
19976 /* We use char because int might match the return type of a gcc2
19977    builtin and then its argument prototype would still apply.  */
19978 char getsockname ();
19979 int
19980 main ()
19981 {
19982 getsockname ();
19983   ;
19984   return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext conftest$ac_exeext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19989   (eval $ac_link) 2>conftest.er1
19990   ac_status=$?
19991   grep -v '^ *+' conftest.er1 >conftest.err
19992   rm -f conftest.er1
19993   cat conftest.err >&5
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); } &&
19996          { ac_try='test -z "$ac_c_werror_flag"
19997                          || test ! -s conftest.err'
19998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999   (eval $ac_try) 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; } &&
20003          { ac_try='test -s conftest$ac_exeext'
20004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005   (eval $ac_try) 2>&5
20006   ac_status=$?
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); }; }; then
20009   ac_cv_lib_socket_getsockname=yes
20010 else
20011   echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_cv_lib_socket_getsockname=no
20015 fi
20016 rm -f conftest.err conftest.$ac_objext \
20017       conftest$ac_exeext conftest.$ac_ext
20018 LIBS=$ac_check_lib_save_LIBS
20019 fi
20020 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20021 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20022 if test $ac_cv_lib_socket_getsockname = yes; then
20023   cat >>confdefs.h <<_ACEOF
20024 #define HAVE_LIBSOCKET 1
20025 _ACEOF
20026
20027   LIBS="-lsocket $LIBS"
20028
20029 fi
20030
20031
20032
20033 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20034 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20035 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20036   echo $ECHO_N "(cached) $ECHO_C" >&6
20037 else
20038   ac_check_lib_save_LIBS=$LIBS
20039 LIBS="-lresolv  $LIBS"
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046
20047 /* Override any gcc2 internal prototype to avoid an error.  */
20048 #ifdef __cplusplus
20049 extern "C"
20050 #endif
20051 /* We use char because int might match the return type of a gcc2
20052    builtin and then its argument prototype would still apply.  */
20053 char inet_aton ();
20054 int
20055 main ()
20056 {
20057 inet_aton ();
20058   ;
20059   return 0;
20060 }
20061 _ACEOF
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20064   (eval $ac_link) 2>conftest.er1
20065   ac_status=$?
20066   grep -v '^ *+' conftest.er1 >conftest.err
20067   rm -f conftest.er1
20068   cat conftest.err >&5
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); } &&
20071          { ac_try='test -z "$ac_c_werror_flag"
20072                          || test ! -s conftest.err'
20073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074   (eval $ac_try) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; } &&
20078          { ac_try='test -s conftest$ac_exeext'
20079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080   (eval $ac_try) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; }; then
20084   ac_cv_lib_resolv_inet_aton=yes
20085 else
20086   echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 ac_cv_lib_resolv_inet_aton=no
20090 fi
20091 rm -f conftest.err conftest.$ac_objext \
20092       conftest$ac_exeext conftest.$ac_ext
20093 LIBS=$ac_check_lib_save_LIBS
20094 fi
20095 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20096 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20097 if test $ac_cv_lib_resolv_inet_aton = yes; then
20098   cat >>confdefs.h <<_ACEOF
20099 #define HAVE_LIBRESOLV 1
20100 _ACEOF
20101
20102   LIBS="-lresolv $LIBS"
20103
20104 fi
20105
20106
20107
20108 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20109 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20110 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20111   echo $ECHO_N "(cached) $ECHO_C" >&6
20112 else
20113   ac_check_lib_save_LIBS=$LIBS
20114 LIBS="-lnsl  $LIBS"
20115 cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h.  */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h.  */
20121
20122 /* Override any gcc2 internal prototype to avoid an error.  */
20123 #ifdef __cplusplus
20124 extern "C"
20125 #endif
20126 /* We use char because int might match the return type of a gcc2
20127    builtin and then its argument prototype would still apply.  */
20128 char inet_ntoa ();
20129 int
20130 main ()
20131 {
20132 inet_ntoa ();
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest.$ac_objext conftest$ac_exeext
20138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20139   (eval $ac_link) 2>conftest.er1
20140   ac_status=$?
20141   grep -v '^ *+' conftest.er1 >conftest.err
20142   rm -f conftest.er1
20143   cat conftest.err >&5
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } &&
20146          { ac_try='test -z "$ac_c_werror_flag"
20147                          || test ! -s conftest.err'
20148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149   (eval $ac_try) 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; } &&
20153          { ac_try='test -s conftest$ac_exeext'
20154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155   (eval $ac_try) 2>&5
20156   ac_status=$?
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); }; }; then
20159   ac_cv_lib_nsl_inet_ntoa=yes
20160 else
20161   echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164 ac_cv_lib_nsl_inet_ntoa=no
20165 fi
20166 rm -f conftest.err conftest.$ac_objext \
20167       conftest$ac_exeext conftest.$ac_ext
20168 LIBS=$ac_check_lib_save_LIBS
20169 fi
20170 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20171 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20172 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20173   cat >>confdefs.h <<_ACEOF
20174 #define HAVE_LIBNSL 1
20175 _ACEOF
20176
20177   LIBS="-lnsl $LIBS"
20178
20179 fi
20180
20181
20182 OPENSSL_LIBS=
20183 old_LIBS=$LIBS
20184 if test "x$OPENSSL_LIB_DIR" != "x"; then
20185     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20186 fi
20187 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20188 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
20189 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20190   echo $ECHO_N "(cached) $ECHO_C" >&6
20191 else
20192   ac_check_lib_save_LIBS=$LIBS
20193 LIBS="-lcrypto  $LIBS"
20194 cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h.  */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h.  */
20200
20201 /* Override any gcc2 internal prototype to avoid an error.  */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 /* We use char because int might match the return type of a gcc2
20206    builtin and then its argument prototype would still apply.  */
20207 char DH_new ();
20208 int
20209 main ()
20210 {
20211 DH_new ();
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext conftest$ac_exeext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20218   (eval $ac_link) 2>conftest.er1
20219   ac_status=$?
20220   grep -v '^ *+' conftest.er1 >conftest.err
20221   rm -f conftest.er1
20222   cat conftest.err >&5
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } &&
20225          { ac_try='test -z "$ac_c_werror_flag"
20226                          || test ! -s conftest.err'
20227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228   (eval $ac_try) 2>&5
20229   ac_status=$?
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); }; } &&
20232          { ac_try='test -s conftest$ac_exeext'
20233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234   (eval $ac_try) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; }; then
20238   ac_cv_lib_crypto_DH_new=yes
20239 else
20240   echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243 ac_cv_lib_crypto_DH_new=no
20244 fi
20245 rm -f conftest.err conftest.$ac_objext \
20246       conftest$ac_exeext conftest.$ac_ext
20247 LIBS=$ac_check_lib_save_LIBS
20248 fi
20249 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20250 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
20251 if test $ac_cv_lib_crypto_DH_new = yes; then
20252
20253
20254 cat >>confdefs.h <<\_ACEOF
20255 #define HAVE_LIBCRYPTO 1
20256 _ACEOF
20257
20258         echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20259 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
20260 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20261   echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263   ac_check_lib_save_LIBS=$LIBS
20264 LIBS="-lssl  $LIBS"
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h.  */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h.  */
20271
20272 /* Override any gcc2 internal prototype to avoid an error.  */
20273 #ifdef __cplusplus
20274 extern "C"
20275 #endif
20276 /* We use char because int might match the return type of a gcc2
20277    builtin and then its argument prototype would still apply.  */
20278 char SSL_new ();
20279 int
20280 main ()
20281 {
20282 SSL_new ();
20283   ;
20284   return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289   (eval $ac_link) 2>conftest.er1
20290   ac_status=$?
20291   grep -v '^ *+' conftest.er1 >conftest.err
20292   rm -f conftest.er1
20293   cat conftest.err >&5
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); } &&
20296          { ac_try='test -z "$ac_c_werror_flag"
20297                          || test ! -s conftest.err'
20298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299   (eval $ac_try) 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; } &&
20303          { ac_try='test -s conftest$ac_exeext'
20304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305   (eval $ac_try) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; }; then
20309   ac_cv_lib_ssl_SSL_new=yes
20310 else
20311   echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 ac_cv_lib_ssl_SSL_new=no
20315 fi
20316 rm -f conftest.err conftest.$ac_objext \
20317       conftest$ac_exeext conftest.$ac_ext
20318 LIBS=$ac_check_lib_save_LIBS
20319 fi
20320 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20321 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
20322 if test $ac_cv_lib_ssl_SSL_new = yes; then
20323
20324
20325 cat >>confdefs.h <<\_ACEOF
20326 #define HAVE_LIBSSL 1
20327 _ACEOF
20328
20329                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20330                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20331                 fi
20332                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20333
20334 fi
20335
20336
20337 fi
20338
20339 LIBS=$old_LIBS
20340
20341 PCAP_LIBS=
20342 echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
20343 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
20344 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
20345   echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347   ac_check_lib_save_LIBS=$LIBS
20348 LIBS="-lpcap  $LIBS"
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h.  */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h.  */
20355
20356 /* Override any gcc2 internal prototype to avoid an error.  */
20357 #ifdef __cplusplus
20358 extern "C"
20359 #endif
20360 /* We use char because int might match the return type of a gcc2
20361    builtin and then its argument prototype would still apply.  */
20362 char pcap_open_live ();
20363 int
20364 main ()
20365 {
20366 pcap_open_live ();
20367   ;
20368   return 0;
20369 }
20370 _ACEOF
20371 rm -f conftest.$ac_objext conftest$ac_exeext
20372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20373   (eval $ac_link) 2>conftest.er1
20374   ac_status=$?
20375   grep -v '^ *+' conftest.er1 >conftest.err
20376   rm -f conftest.er1
20377   cat conftest.err >&5
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); } &&
20380          { ac_try='test -z "$ac_c_werror_flag"
20381                          || test ! -s conftest.err'
20382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383   (eval $ac_try) 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; } &&
20387          { ac_try='test -s conftest$ac_exeext'
20388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389   (eval $ac_try) 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); }; }; then
20393   ac_cv_lib_pcap_pcap_open_live=yes
20394 else
20395   echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20397
20398 ac_cv_lib_pcap_pcap_open_live=no
20399 fi
20400 rm -f conftest.err conftest.$ac_objext \
20401       conftest$ac_exeext conftest.$ac_ext
20402 LIBS=$ac_check_lib_save_LIBS
20403 fi
20404 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20405 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
20406 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
20407    PCAP_LIBS="-lpcap"
20408
20409 cat >>confdefs.h <<\_ACEOF
20410 #define HAVE_LIBPCAP 1
20411 _ACEOF
20412
20413
20414 else
20415    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20416 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20417 fi
20418
20419
20420
20421 case "$host" in
20422 *-interix*)
20423         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20424         ;;
20425 *-darwin*)
20426         CFLAGS="$CFLAGS -DDARWIN"
20427         ;;
20428 esac
20429
20430
20431
20432
20433
20434
20435 ac_header_dirent=no
20436 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20437   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20438 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20439 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443   cat >conftest.$ac_ext <<_ACEOF
20444 /* confdefs.h.  */
20445 _ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h.  */
20449 #include <sys/types.h>
20450 #include <$ac_hdr>
20451
20452 int
20453 main ()
20454 {
20455 if ((DIR *) 0)
20456 return 0;
20457   ;
20458   return 0;
20459 }
20460 _ACEOF
20461 rm -f conftest.$ac_objext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20463   (eval $ac_compile) 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } &&
20470          { ac_try='test -z "$ac_c_werror_flag"
20471                          || test ! -s conftest.err'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; } &&
20477          { ac_try='test -s conftest.$ac_objext'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; }; then
20483   eval "$as_ac_Header=yes"
20484 else
20485   echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20487
20488 eval "$as_ac_Header=no"
20489 fi
20490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20491 fi
20492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20495   cat >>confdefs.h <<_ACEOF
20496 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20497 _ACEOF
20498
20499 ac_header_dirent=$ac_hdr; break
20500 fi
20501
20502 done
20503 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20504 if test $ac_header_dirent = dirent.h; then
20505   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20506 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20507 if test "${ac_cv_search_opendir+set}" = set; then
20508   echo $ECHO_N "(cached) $ECHO_C" >&6
20509 else
20510   ac_func_search_save_LIBS=$LIBS
20511 ac_cv_search_opendir=no
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h.  */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h.  */
20518
20519 /* Override any gcc2 internal prototype to avoid an error.  */
20520 #ifdef __cplusplus
20521 extern "C"
20522 #endif
20523 /* We use char because int might match the return type of a gcc2
20524    builtin and then its argument prototype would still apply.  */
20525 char opendir ();
20526 int
20527 main ()
20528 {
20529 opendir ();
20530   ;
20531   return 0;
20532 }
20533 _ACEOF
20534 rm -f conftest.$ac_objext conftest$ac_exeext
20535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536   (eval $ac_link) 2>conftest.er1
20537   ac_status=$?
20538   grep -v '^ *+' conftest.er1 >conftest.err
20539   rm -f conftest.er1
20540   cat conftest.err >&5
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); } &&
20543          { ac_try='test -z "$ac_c_werror_flag"
20544                          || test ! -s conftest.err'
20545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546   (eval $ac_try) 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); }; } &&
20550          { ac_try='test -s conftest$ac_exeext'
20551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552   (eval $ac_try) 2>&5
20553   ac_status=$?
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); }; }; then
20556   ac_cv_search_opendir="none required"
20557 else
20558   echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561 fi
20562 rm -f conftest.err conftest.$ac_objext \
20563       conftest$ac_exeext conftest.$ac_ext
20564 if test "$ac_cv_search_opendir" = no; then
20565   for ac_lib in dir; do
20566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20567     cat >conftest.$ac_ext <<_ACEOF
20568 /* confdefs.h.  */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h.  */
20573
20574 /* Override any gcc2 internal prototype to avoid an error.  */
20575 #ifdef __cplusplus
20576 extern "C"
20577 #endif
20578 /* We use char because int might match the return type of a gcc2
20579    builtin and then its argument prototype would still apply.  */
20580 char opendir ();
20581 int
20582 main ()
20583 {
20584 opendir ();
20585   ;
20586   return 0;
20587 }
20588 _ACEOF
20589 rm -f conftest.$ac_objext conftest$ac_exeext
20590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20591   (eval $ac_link) 2>conftest.er1
20592   ac_status=$?
20593   grep -v '^ *+' conftest.er1 >conftest.err
20594   rm -f conftest.er1
20595   cat conftest.err >&5
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); } &&
20598          { ac_try='test -z "$ac_c_werror_flag"
20599                          || test ! -s conftest.err'
20600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601   (eval $ac_try) 2>&5
20602   ac_status=$?
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); }; } &&
20605          { ac_try='test -s conftest$ac_exeext'
20606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607   (eval $ac_try) 2>&5
20608   ac_status=$?
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); }; }; then
20611   ac_cv_search_opendir="-l$ac_lib"
20612 break
20613 else
20614   echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617 fi
20618 rm -f conftest.err conftest.$ac_objext \
20619       conftest$ac_exeext conftest.$ac_ext
20620   done
20621 fi
20622 LIBS=$ac_func_search_save_LIBS
20623 fi
20624 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20625 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20626 if test "$ac_cv_search_opendir" != no; then
20627   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20628
20629 fi
20630
20631 else
20632   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20633 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20634 if test "${ac_cv_search_opendir+set}" = set; then
20635   echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637   ac_func_search_save_LIBS=$LIBS
20638 ac_cv_search_opendir=no
20639 cat >conftest.$ac_ext <<_ACEOF
20640 /* confdefs.h.  */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h.  */
20645
20646 /* Override any gcc2 internal prototype to avoid an error.  */
20647 #ifdef __cplusplus
20648 extern "C"
20649 #endif
20650 /* We use char because int might match the return type of a gcc2
20651    builtin and then its argument prototype would still apply.  */
20652 char opendir ();
20653 int
20654 main ()
20655 {
20656 opendir ();
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest.$ac_objext conftest$ac_exeext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20663   (eval $ac_link) 2>conftest.er1
20664   ac_status=$?
20665   grep -v '^ *+' conftest.er1 >conftest.err
20666   rm -f conftest.er1
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } &&
20670          { ac_try='test -z "$ac_c_werror_flag"
20671                          || test ! -s conftest.err'
20672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673   (eval $ac_try) 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; } &&
20677          { ac_try='test -s conftest$ac_exeext'
20678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679   (eval $ac_try) 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; }; then
20683   ac_cv_search_opendir="none required"
20684 else
20685   echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688 fi
20689 rm -f conftest.err conftest.$ac_objext \
20690       conftest$ac_exeext conftest.$ac_ext
20691 if test "$ac_cv_search_opendir" = no; then
20692   for ac_lib in x; do
20693     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20694     cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h.  */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h.  */
20700
20701 /* Override any gcc2 internal prototype to avoid an error.  */
20702 #ifdef __cplusplus
20703 extern "C"
20704 #endif
20705 /* We use char because int might match the return type of a gcc2
20706    builtin and then its argument prototype would still apply.  */
20707 char opendir ();
20708 int
20709 main ()
20710 {
20711 opendir ();
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20718   (eval $ac_link) 2>conftest.er1
20719   ac_status=$?
20720   grep -v '^ *+' conftest.er1 >conftest.err
20721   rm -f conftest.er1
20722   cat conftest.err >&5
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); } &&
20725          { ac_try='test -z "$ac_c_werror_flag"
20726                          || test ! -s conftest.err'
20727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728   (eval $ac_try) 2>&5
20729   ac_status=$?
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); }; } &&
20732          { ac_try='test -s conftest$ac_exeext'
20733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734   (eval $ac_try) 2>&5
20735   ac_status=$?
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); }; }; then
20738   ac_cv_search_opendir="-l$ac_lib"
20739 break
20740 else
20741   echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20743
20744 fi
20745 rm -f conftest.err conftest.$ac_objext \
20746       conftest$ac_exeext conftest.$ac_ext
20747   done
20748 fi
20749 LIBS=$ac_func_search_save_LIBS
20750 fi
20751 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20752 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20753 if test "$ac_cv_search_opendir" != no; then
20754   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20755
20756 fi
20757
20758 fi
20759
20760 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20762 if test "${ac_cv_header_stdc+set}" = set; then
20763   echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765   cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 #include <stdlib.h>
20772 #include <stdarg.h>
20773 #include <string.h>
20774 #include <float.h>
20775
20776 int
20777 main ()
20778 {
20779
20780   ;
20781   return 0;
20782 }
20783 _ACEOF
20784 rm -f conftest.$ac_objext
20785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20786   (eval $ac_compile) 2>conftest.er1
20787   ac_status=$?
20788   grep -v '^ *+' conftest.er1 >conftest.err
20789   rm -f conftest.er1
20790   cat conftest.err >&5
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); } &&
20793          { ac_try='test -z "$ac_c_werror_flag"
20794                          || test ! -s conftest.err'
20795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796   (eval $ac_try) 2>&5
20797   ac_status=$?
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); }; } &&
20800          { ac_try='test -s conftest.$ac_objext'
20801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802   (eval $ac_try) 2>&5
20803   ac_status=$?
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); }; }; then
20806   ac_cv_header_stdc=yes
20807 else
20808   echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20810
20811 ac_cv_header_stdc=no
20812 fi
20813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20814
20815 if test $ac_cv_header_stdc = yes; then
20816   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20817   cat >conftest.$ac_ext <<_ACEOF
20818 /* confdefs.h.  */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h.  */
20823 #include <string.h>
20824
20825 _ACEOF
20826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20827   $EGREP "memchr" >/dev/null 2>&1; then
20828   :
20829 else
20830   ac_cv_header_stdc=no
20831 fi
20832 rm -f conftest*
20833
20834 fi
20835
20836 if test $ac_cv_header_stdc = yes; then
20837   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20838   cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h.  */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h.  */
20844 #include <stdlib.h>
20845
20846 _ACEOF
20847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20848   $EGREP "free" >/dev/null 2>&1; then
20849   :
20850 else
20851   ac_cv_header_stdc=no
20852 fi
20853 rm -f conftest*
20854
20855 fi
20856
20857 if test $ac_cv_header_stdc = yes; then
20858   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20859   if test "$cross_compiling" = yes; then
20860   :
20861 else
20862   cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 #include <ctype.h>
20869 #if ((' ' & 0x0FF) == 0x020)
20870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20872 #else
20873 # define ISLOWER(c) \
20874                    (('a' <= (c) && (c) <= 'i') \
20875                      || ('j' <= (c) && (c) <= 'r') \
20876                      || ('s' <= (c) && (c) <= 'z'))
20877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20878 #endif
20879
20880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20881 int
20882 main ()
20883 {
20884   int i;
20885   for (i = 0; i < 256; i++)
20886     if (XOR (islower (i), ISLOWER (i))
20887         || toupper (i) != TOUPPER (i))
20888       exit(2);
20889   exit (0);
20890 }
20891 _ACEOF
20892 rm -f conftest$ac_exeext
20893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20894   (eval $ac_link) 2>&5
20895   ac_status=$?
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899   (eval $ac_try) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); }; }; then
20903   :
20904 else
20905   echo "$as_me: program exited with status $ac_status" >&5
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 ( exit $ac_status )
20910 ac_cv_header_stdc=no
20911 fi
20912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20913 fi
20914 fi
20915 fi
20916 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20917 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20918 if test $ac_cv_header_stdc = yes; then
20919
20920 cat >>confdefs.h <<\_ACEOF
20921 #define STDC_HEADERS 1
20922 _ACEOF
20923
20924 fi
20925
20926 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20927 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20928 if test "${ac_cv_header_time+set}" = set; then
20929   echo $ECHO_N "(cached) $ECHO_C" >&6
20930 else
20931   cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h.  */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h.  */
20937 #include <sys/types.h>
20938 #include <sys/time.h>
20939 #include <time.h>
20940
20941 int
20942 main ()
20943 {
20944 if ((struct tm *) 0)
20945 return 0;
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952   (eval $ac_compile) 2>conftest.er1
20953   ac_status=$?
20954   grep -v '^ *+' conftest.er1 >conftest.err
20955   rm -f conftest.er1
20956   cat conftest.err >&5
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); } &&
20959          { ac_try='test -z "$ac_c_werror_flag"
20960                          || test ! -s conftest.err'
20961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962   (eval $ac_try) 2>&5
20963   ac_status=$?
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); }; } &&
20966          { ac_try='test -s conftest.$ac_objext'
20967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968   (eval $ac_try) 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); }; }; then
20972   ac_cv_header_time=yes
20973 else
20974   echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20976
20977 ac_cv_header_time=no
20978 fi
20979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20980 fi
20981 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20982 echo "${ECHO_T}$ac_cv_header_time" >&6
20983 if test $ac_cv_header_time = yes; then
20984
20985 cat >>confdefs.h <<\_ACEOF
20986 #define TIME_WITH_SYS_TIME 1
20987 _ACEOF
20988
20989 fi
20990
20991 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20992 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20993 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20994   echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996   cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002 #include <sys/types.h>
21003 #include <sys/wait.h>
21004 #ifndef WEXITSTATUS
21005 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21006 #endif
21007 #ifndef WIFEXITED
21008 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21009 #endif
21010
21011 int
21012 main ()
21013 {
21014   int s;
21015   wait (&s);
21016   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21017   ;
21018   return 0;
21019 }
21020 _ACEOF
21021 rm -f conftest.$ac_objext
21022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21023   (eval $ac_compile) 2>conftest.er1
21024   ac_status=$?
21025   grep -v '^ *+' conftest.er1 >conftest.err
21026   rm -f conftest.er1
21027   cat conftest.err >&5
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); } &&
21030          { ac_try='test -z "$ac_c_werror_flag"
21031                          || test ! -s conftest.err'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; } &&
21037          { ac_try='test -s conftest.$ac_objext'
21038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039   (eval $ac_try) 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; }; then
21043   ac_cv_header_sys_wait_h=yes
21044 else
21045   echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 ac_cv_header_sys_wait_h=no
21049 fi
21050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051 fi
21052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21053 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21054 if test $ac_cv_header_sys_wait_h = yes; then
21055
21056 cat >>confdefs.h <<\_ACEOF
21057 #define HAVE_SYS_WAIT_H 1
21058 _ACEOF
21059
21060 fi
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092 for ac_header in \
21093         unistd.h \
21094         crypt.h \
21095         errno.h \
21096         resource.h \
21097         getopt.h \
21098         malloc.h \
21099         utmp.h \
21100         utmpx.h \
21101         signal.h \
21102         sys/select.h \
21103         syslog.h \
21104         inttypes.h \
21105         stdint.h \
21106         stdio.h \
21107         netdb.h \
21108         semaphore.h \
21109         arpa/inet.h \
21110         netinet/in.h \
21111         sys/types.h \
21112         sys/socket.h \
21113         sys/time.h \
21114         sys/wait.h \
21115         sys/security.h \
21116         fcntl.h \
21117         sys/fcntl.h \
21118         net/if.h \
21119         prot.h \
21120         sia.h \
21121         siad.h
21122
21123 do
21124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21126   echo "$as_me:$LINENO: checking for $ac_header" >&5
21127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21129   echo $ECHO_N "(cached) $ECHO_C" >&6
21130 fi
21131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21133 else
21134   # Is the header compilable?
21135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h.  */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h.  */
21143 $ac_includes_default
21144 #include <$ac_header>
21145 _ACEOF
21146 rm -f conftest.$ac_objext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21148   (eval $ac_compile) 2>conftest.er1
21149   ac_status=$?
21150   grep -v '^ *+' conftest.er1 >conftest.err
21151   rm -f conftest.er1
21152   cat conftest.err >&5
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); } &&
21155          { ac_try='test -z "$ac_c_werror_flag"
21156                          || test ! -s conftest.err'
21157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158   (eval $ac_try) 2>&5
21159   ac_status=$?
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); }; } &&
21162          { ac_try='test -s conftest.$ac_objext'
21163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164   (eval $ac_try) 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); }; }; then
21168   ac_header_compiler=yes
21169 else
21170   echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173 ac_header_compiler=no
21174 fi
21175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21177 echo "${ECHO_T}$ac_header_compiler" >&6
21178
21179 # Is the header present?
21180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188 #include <$ac_header>
21189 _ACEOF
21190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21192   ac_status=$?
21193   grep -v '^ *+' conftest.er1 >conftest.err
21194   rm -f conftest.er1
21195   cat conftest.err >&5
21196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197   (exit $ac_status); } >/dev/null; then
21198   if test -s conftest.err; then
21199     ac_cpp_err=$ac_c_preproc_warn_flag
21200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21201   else
21202     ac_cpp_err=
21203   fi
21204 else
21205   ac_cpp_err=yes
21206 fi
21207 if test -z "$ac_cpp_err"; then
21208   ac_header_preproc=yes
21209 else
21210   echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21212
21213   ac_header_preproc=no
21214 fi
21215 rm -f conftest.err conftest.$ac_ext
21216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21217 echo "${ECHO_T}$ac_header_preproc" >&6
21218
21219 # So?  What about this header?
21220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21221   yes:no: )
21222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21226     ac_header_preproc=yes
21227     ;;
21228   no:yes:* )
21229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21241     (
21242       cat <<\_ASBOX
21243 ## ------------------------------------------ ##
21244 ## Report this to the AC_PACKAGE_NAME lists.  ##
21245 ## ------------------------------------------ ##
21246 _ASBOX
21247     ) |
21248       sed "s/^/$as_me: WARNING:     /" >&2
21249     ;;
21250 esac
21251 echo "$as_me:$LINENO: checking for $ac_header" >&5
21252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21254   echo $ECHO_N "(cached) $ECHO_C" >&6
21255 else
21256   eval "$as_ac_Header=\$ac_header_preproc"
21257 fi
21258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21260
21261 fi
21262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21263   cat >>confdefs.h <<_ACEOF
21264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21265 _ACEOF
21266
21267 fi
21268
21269 done
21270
21271
21272 REGEX=no
21273 if test "${ac_cv_header_regex_h+set}" = set; then
21274   echo "$as_me:$LINENO: checking for regex.h" >&5
21275 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21276 if test "${ac_cv_header_regex_h+set}" = set; then
21277   echo $ECHO_N "(cached) $ECHO_C" >&6
21278 fi
21279 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21280 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21281 else
21282   # Is the header compilable?
21283 echo "$as_me:$LINENO: checking regex.h usability" >&5
21284 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h.  */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h.  */
21291 $ac_includes_default
21292 #include <regex.h>
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21296   (eval $ac_compile) 2>conftest.er1
21297   ac_status=$?
21298   grep -v '^ *+' conftest.er1 >conftest.err
21299   rm -f conftest.er1
21300   cat conftest.err >&5
21301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); } &&
21303          { ac_try='test -z "$ac_c_werror_flag"
21304                          || test ! -s conftest.err'
21305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306   (eval $ac_try) 2>&5
21307   ac_status=$?
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); }; } &&
21310          { ac_try='test -s conftest.$ac_objext'
21311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312   (eval $ac_try) 2>&5
21313   ac_status=$?
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); }; }; then
21316   ac_header_compiler=yes
21317 else
21318   echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321 ac_header_compiler=no
21322 fi
21323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21325 echo "${ECHO_T}$ac_header_compiler" >&6
21326
21327 # Is the header present?
21328 echo "$as_me:$LINENO: checking regex.h presence" >&5
21329 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21330 cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 #include <regex.h>
21337 _ACEOF
21338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } >/dev/null; then
21346   if test -s conftest.err; then
21347     ac_cpp_err=$ac_c_preproc_warn_flag
21348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21349   else
21350     ac_cpp_err=
21351   fi
21352 else
21353   ac_cpp_err=yes
21354 fi
21355 if test -z "$ac_cpp_err"; then
21356   ac_header_preproc=yes
21357 else
21358   echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21360
21361   ac_header_preproc=no
21362 fi
21363 rm -f conftest.err conftest.$ac_ext
21364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21365 echo "${ECHO_T}$ac_header_preproc" >&6
21366
21367 # So?  What about this header?
21368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21369   yes:no: )
21370     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21371 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21372     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21373 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21374     ac_header_preproc=yes
21375     ;;
21376   no:yes:* )
21377     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21378 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21379     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21380 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21381     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21382 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21383     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21384 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21385     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21386 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21387     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21388 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21389     (
21390       cat <<\_ASBOX
21391 ## ------------------------------------------ ##
21392 ## Report this to the AC_PACKAGE_NAME lists.  ##
21393 ## ------------------------------------------ ##
21394 _ASBOX
21395     ) |
21396       sed "s/^/$as_me: WARNING:     /" >&2
21397     ;;
21398 esac
21399 echo "$as_me:$LINENO: checking for regex.h" >&5
21400 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21401 if test "${ac_cv_header_regex_h+set}" = set; then
21402   echo $ECHO_N "(cached) $ECHO_C" >&6
21403 else
21404   ac_cv_header_regex_h=$ac_header_preproc
21405 fi
21406 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21407 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21408
21409 fi
21410 if test $ac_cv_header_regex_h = yes; then
21411
21412 cat >>confdefs.h <<\_ACEOF
21413 #define HAVE_REGEX_H
21414 _ACEOF
21415
21416 fi
21417
21418
21419 if test "x$ac_cv_header_regex_h" = "xyes"; then
21420   REGEX_EXTENDED=no
21421   REGEX=yes
21422   cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h.  */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h.  */
21428 #include <regex.h>
21429      #ifdef REG_EXTENDED
21430        yes
21431      #endif
21432
21433 _ACEOF
21434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21435   $EGREP "yes" >/dev/null 2>&1; then
21436
21437 cat >>confdefs.h <<\_ACEOF
21438 #define HAVE_REG_EXTENDED
21439 _ACEOF
21440  REGEX_EXTENDED=yes
21441 fi
21442 rm -f conftest*
21443
21444 fi
21445
21446
21447
21448 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21449 then
21450
21451 cat >>confdefs.h <<\_ACEOF
21452 #define OSFC2
21453 _ACEOF
21454
21455 fi
21456
21457 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21458 then
21459
21460 cat >>confdefs.h <<\_ACEOF
21461 #define OSFSIA
21462 _ACEOF
21463
21464 fi
21465
21466 OPENSSL_INCLUDE="-DNO_OPENSSL"
21467 if test "x$OPENSSL_LIBS" = "x"; then
21468     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
21469 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21470 else
21471     old_CPPFLAGS=$CPPFLAGS
21472     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21473         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21474     fi
21475         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21476
21477
21478
21479
21480 for ac_header in \
21481         openssl/ssl.h \
21482         openssl/crypto.h \
21483         openssl/err.h \
21484         openssl/engine.h
21485 do
21486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21488   echo "$as_me:$LINENO: checking for $ac_header" >&5
21489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21491   echo $ECHO_N "(cached) $ECHO_C" >&6
21492 fi
21493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21495 else
21496   # Is the header compilable?
21497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21499 cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505 $ac_includes_default
21506 #include <$ac_header>
21507 _ACEOF
21508 rm -f conftest.$ac_objext
21509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21510   (eval $ac_compile) 2>conftest.er1
21511   ac_status=$?
21512   grep -v '^ *+' conftest.er1 >conftest.err
21513   rm -f conftest.er1
21514   cat conftest.err >&5
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); } &&
21517          { ac_try='test -z "$ac_c_werror_flag"
21518                          || test ! -s conftest.err'
21519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520   (eval $ac_try) 2>&5
21521   ac_status=$?
21522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); }; } &&
21524          { ac_try='test -s conftest.$ac_objext'
21525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526   (eval $ac_try) 2>&5
21527   ac_status=$?
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); }; }; then
21530   ac_header_compiler=yes
21531 else
21532   echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21534
21535 ac_header_compiler=no
21536 fi
21537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21539 echo "${ECHO_T}$ac_header_compiler" >&6
21540
21541 # Is the header present?
21542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21544 cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550 #include <$ac_header>
21551 _ACEOF
21552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21554   ac_status=$?
21555   grep -v '^ *+' conftest.er1 >conftest.err
21556   rm -f conftest.er1
21557   cat conftest.err >&5
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); } >/dev/null; then
21560   if test -s conftest.err; then
21561     ac_cpp_err=$ac_c_preproc_warn_flag
21562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21563   else
21564     ac_cpp_err=
21565   fi
21566 else
21567   ac_cpp_err=yes
21568 fi
21569 if test -z "$ac_cpp_err"; then
21570   ac_header_preproc=yes
21571 else
21572   echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21574
21575   ac_header_preproc=no
21576 fi
21577 rm -f conftest.err conftest.$ac_ext
21578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21579 echo "${ECHO_T}$ac_header_preproc" >&6
21580
21581 # So?  What about this header?
21582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21583   yes:no: )
21584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21588     ac_header_preproc=yes
21589     ;;
21590   no:yes:* )
21591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21603     (
21604       cat <<\_ASBOX
21605 ## ------------------------------------------ ##
21606 ## Report this to the AC_PACKAGE_NAME lists.  ##
21607 ## ------------------------------------------ ##
21608 _ASBOX
21609     ) |
21610       sed "s/^/$as_me: WARNING:     /" >&2
21611     ;;
21612 esac
21613 echo "$as_me:$LINENO: checking for $ac_header" >&5
21614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21616   echo $ECHO_N "(cached) $ECHO_C" >&6
21617 else
21618   eval "$as_ac_Header=\$ac_header_preproc"
21619 fi
21620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21622
21623 fi
21624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21625   cat >>confdefs.h <<_ACEOF
21626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21627 _ACEOF
21628
21629 else
21630   OPENSSL_LIBS=
21631
21632 fi
21633
21634 done
21635
21636     if test "x$OPENSSL_LIBS" != "x"; then
21637         echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21638 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21639         cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645 #include <openssl/crypto.h>
21646              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21647              yes
21648              #endif
21649
21650 _ACEOF
21651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21652   $EGREP "yes" >/dev/null 2>&1; then
21653   goodssl="yes"
21654 fi
21655 rm -f conftest*
21656
21657         if test "x$goodssl" != "xyes"; then
21658             echo "$as_me:$LINENO: result: no" >&5
21659 echo "${ECHO_T}no" >&6
21660             OPENSSL_LIBS=
21661         else
21662             echo "$as_me:$LINENO: result: yes" >&5
21663 echo "${ECHO_T}yes" >&6
21664             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21665                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21666             else
21667                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21668             fi
21669         fi
21670     fi
21671     CPPFLAGS=$old_CPPFLAGS
21672 fi
21673
21674
21675 export OPENSSL_LIBS
21676
21677 if test "x$PCAP_LIBS" = x; then
21678     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
21679 echo "$as_me: skipping test for pcap.h." >&6;}
21680 else
21681     if test "${ac_cv_header_pcap_h+set}" = set; then
21682   echo "$as_me:$LINENO: checking for pcap.h" >&5
21683 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
21684 if test "${ac_cv_header_pcap_h+set}" = set; then
21685   echo $ECHO_N "(cached) $ECHO_C" >&6
21686 fi
21687 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
21688 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
21689 else
21690   # Is the header compilable?
21691 echo "$as_me:$LINENO: checking pcap.h usability" >&5
21692 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6
21693 cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699 $ac_includes_default
21700 #include <pcap.h>
21701 _ACEOF
21702 rm -f conftest.$ac_objext
21703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21704   (eval $ac_compile) 2>conftest.er1
21705   ac_status=$?
21706   grep -v '^ *+' conftest.er1 >conftest.err
21707   rm -f conftest.er1
21708   cat conftest.err >&5
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); } &&
21711          { ac_try='test -z "$ac_c_werror_flag"
21712                          || test ! -s conftest.err'
21713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714   (eval $ac_try) 2>&5
21715   ac_status=$?
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); }; } &&
21718          { ac_try='test -s conftest.$ac_objext'
21719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720   (eval $ac_try) 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); }; }; then
21724   ac_header_compiler=yes
21725 else
21726   echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21728
21729 ac_header_compiler=no
21730 fi
21731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21733 echo "${ECHO_T}$ac_header_compiler" >&6
21734
21735 # Is the header present?
21736 echo "$as_me:$LINENO: checking pcap.h presence" >&5
21737 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h.  */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h.  */
21744 #include <pcap.h>
21745 _ACEOF
21746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21748   ac_status=$?
21749   grep -v '^ *+' conftest.er1 >conftest.err
21750   rm -f conftest.er1
21751   cat conftest.err >&5
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); } >/dev/null; then
21754   if test -s conftest.err; then
21755     ac_cpp_err=$ac_c_preproc_warn_flag
21756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21757   else
21758     ac_cpp_err=
21759   fi
21760 else
21761   ac_cpp_err=yes
21762 fi
21763 if test -z "$ac_cpp_err"; then
21764   ac_header_preproc=yes
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769   ac_header_preproc=no
21770 fi
21771 rm -f conftest.err conftest.$ac_ext
21772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21773 echo "${ECHO_T}$ac_header_preproc" >&6
21774
21775 # So?  What about this header?
21776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21777   yes:no: )
21778     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
21779 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21780     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
21781 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
21782     ac_header_preproc=yes
21783     ;;
21784   no:yes:* )
21785     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
21786 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
21787     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
21788 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
21789     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
21790 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
21791     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
21792 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21793     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
21794 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
21795     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
21796 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
21797     (
21798       cat <<\_ASBOX
21799 ## ------------------------------------------ ##
21800 ## Report this to the AC_PACKAGE_NAME lists.  ##
21801 ## ------------------------------------------ ##
21802 _ASBOX
21803     ) |
21804       sed "s/^/$as_me: WARNING:     /" >&2
21805     ;;
21806 esac
21807 echo "$as_me:$LINENO: checking for pcap.h" >&5
21808 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
21809 if test "${ac_cv_header_pcap_h+set}" = set; then
21810   echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812   ac_cv_header_pcap_h=$ac_header_preproc
21813 fi
21814 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
21815 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
21816
21817 fi
21818 if test $ac_cv_header_pcap_h = yes; then
21819
21820 cat >>confdefs.h <<\_ACEOF
21821 #define HAVE_PCAP_H 1
21822 _ACEOF
21823
21824 else
21825    PCAP_LIBS=
21826         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21827 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21828
21829 fi
21830
21831
21832 fi
21833
21834
21835
21836 echo "$as_me:$LINENO: checking for off_t" >&5
21837 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21838 if test "${ac_cv_type_off_t+set}" = set; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841   cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h.  */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h.  */
21847 $ac_includes_default
21848 int
21849 main ()
21850 {
21851 if ((off_t *) 0)
21852   return 0;
21853 if (sizeof (off_t))
21854   return 0;
21855   ;
21856   return 0;
21857 }
21858 _ACEOF
21859 rm -f conftest.$ac_objext
21860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21861   (eval $ac_compile) 2>conftest.er1
21862   ac_status=$?
21863   grep -v '^ *+' conftest.er1 >conftest.err
21864   rm -f conftest.er1
21865   cat conftest.err >&5
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); } &&
21868          { ac_try='test -z "$ac_c_werror_flag"
21869                          || test ! -s conftest.err'
21870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871   (eval $ac_try) 2>&5
21872   ac_status=$?
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); }; } &&
21875          { ac_try='test -s conftest.$ac_objext'
21876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877   (eval $ac_try) 2>&5
21878   ac_status=$?
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; }; then
21881   ac_cv_type_off_t=yes
21882 else
21883   echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886 ac_cv_type_off_t=no
21887 fi
21888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21889 fi
21890 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21891 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21892 if test $ac_cv_type_off_t = yes; then
21893   :
21894 else
21895
21896 cat >>confdefs.h <<_ACEOF
21897 #define off_t long
21898 _ACEOF
21899
21900 fi
21901
21902 echo "$as_me:$LINENO: checking for pid_t" >&5
21903 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21904 if test "${ac_cv_type_pid_t+set}" = set; then
21905   echo $ECHO_N "(cached) $ECHO_C" >&6
21906 else
21907   cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913 $ac_includes_default
21914 int
21915 main ()
21916 {
21917 if ((pid_t *) 0)
21918   return 0;
21919 if (sizeof (pid_t))
21920   return 0;
21921   ;
21922   return 0;
21923 }
21924 _ACEOF
21925 rm -f conftest.$ac_objext
21926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21927   (eval $ac_compile) 2>conftest.er1
21928   ac_status=$?
21929   grep -v '^ *+' conftest.er1 >conftest.err
21930   rm -f conftest.er1
21931   cat conftest.err >&5
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } &&
21934          { ac_try='test -z "$ac_c_werror_flag"
21935                          || test ! -s conftest.err'
21936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937   (eval $ac_try) 2>&5
21938   ac_status=$?
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); }; } &&
21941          { ac_try='test -s conftest.$ac_objext'
21942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943   (eval $ac_try) 2>&5
21944   ac_status=$?
21945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946   (exit $ac_status); }; }; then
21947   ac_cv_type_pid_t=yes
21948 else
21949   echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952 ac_cv_type_pid_t=no
21953 fi
21954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21955 fi
21956 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21957 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21958 if test $ac_cv_type_pid_t = yes; then
21959   :
21960 else
21961
21962 cat >>confdefs.h <<_ACEOF
21963 #define pid_t int
21964 _ACEOF
21965
21966 fi
21967
21968 echo "$as_me:$LINENO: checking for size_t" >&5
21969 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21970 if test "${ac_cv_type_size_t+set}" = set; then
21971   echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973   cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 $ac_includes_default
21980 int
21981 main ()
21982 {
21983 if ((size_t *) 0)
21984   return 0;
21985 if (sizeof (size_t))
21986   return 0;
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993   (eval $ac_compile) 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } &&
22000          { ac_try='test -z "$ac_c_werror_flag"
22001                          || test ! -s conftest.err'
22002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003   (eval $ac_try) 2>&5
22004   ac_status=$?
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); }; } &&
22007          { ac_try='test -s conftest.$ac_objext'
22008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009   (eval $ac_try) 2>&5
22010   ac_status=$?
22011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012   (exit $ac_status); }; }; then
22013   ac_cv_type_size_t=yes
22014 else
22015   echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22017
22018 ac_cv_type_size_t=no
22019 fi
22020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22021 fi
22022 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22023 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22024 if test $ac_cv_type_size_t = yes; then
22025   :
22026 else
22027
22028 cat >>confdefs.h <<_ACEOF
22029 #define size_t unsigned
22030 _ACEOF
22031
22032 fi
22033
22034 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22035 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22036 if test "${ac_cv_type_uid_t+set}" = set; then
22037   echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039   cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 #include <sys/types.h>
22046
22047 _ACEOF
22048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22049   $EGREP "uid_t" >/dev/null 2>&1; then
22050   ac_cv_type_uid_t=yes
22051 else
22052   ac_cv_type_uid_t=no
22053 fi
22054 rm -f conftest*
22055
22056 fi
22057 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22058 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22059 if test $ac_cv_type_uid_t = no; then
22060
22061 cat >>confdefs.h <<\_ACEOF
22062 #define uid_t int
22063 _ACEOF
22064
22065
22066 cat >>confdefs.h <<\_ACEOF
22067 #define gid_t int
22068 _ACEOF
22069
22070 fi
22071
22072
22073
22074   echo "$as_me:$LINENO: checking for socklen_t" >&5
22075 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22076 if test "${ac_cv_type_socklen_t+set}" = set; then
22077   echo $ECHO_N "(cached) $ECHO_C" >&6
22078 else
22079    ac_cv_type_socklen_t=no
22080       cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h.  */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h.  */
22086 #ifdef HAVE_SYS_TYPES_H
22087 #include <sys/types.h>
22088 #endif
22089 #ifdef HAVE_SYS_SOCKET_H
22090 #include <sys/socket.h>
22091 #endif
22092
22093 int
22094 main ()
22095 {
22096 socklen_t foo
22097   ;
22098   return 0;
22099 }
22100 _ACEOF
22101 rm -f conftest.$ac_objext
22102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22103   (eval $ac_compile) 2>conftest.er1
22104   ac_status=$?
22105   grep -v '^ *+' conftest.er1 >conftest.err
22106   rm -f conftest.er1
22107   cat conftest.err >&5
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } &&
22110          { ac_try='test -z "$ac_c_werror_flag"
22111                          || test ! -s conftest.err'
22112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113   (eval $ac_try) 2>&5
22114   ac_status=$?
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); }; } &&
22117          { ac_try='test -s conftest.$ac_objext'
22118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119   (eval $ac_try) 2>&5
22120   ac_status=$?
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); }; }; then
22123   ac_cv_type_socklen_t=yes
22124 else
22125   echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128 fi
22129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22130
22131
22132 fi
22133 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22134 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22135
22136   if test "$ac_cv_type_socklen_t" != "yes"; then
22137
22138 cat >>confdefs.h <<\_ACEOF
22139 #define socklen_t int
22140 _ACEOF
22141
22142   fi
22143
22144
22145
22146   echo "$as_me:$LINENO: checking for uint8_t" >&5
22147 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22148 if test "${ac_cv_type_uint8_t+set}" = set; then
22149   echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22151    ac_cv_type_uint8_t=no
22152       cat >conftest.$ac_ext <<_ACEOF
22153 /* confdefs.h.  */
22154 _ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h.  */
22158 #ifdef HAVE_INTTYPES_H
22159 #include <inttypes.h>
22160 #endif
22161 #ifdef HAVE_STDINT_H
22162 #include <stdint.h>
22163 #endif
22164
22165 int
22166 main ()
22167 {
22168 uint8_t foo
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest.$ac_objext
22174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22175   (eval $ac_compile) 2>conftest.er1
22176   ac_status=$?
22177   grep -v '^ *+' conftest.er1 >conftest.err
22178   rm -f conftest.er1
22179   cat conftest.err >&5
22180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181   (exit $ac_status); } &&
22182          { ac_try='test -z "$ac_c_werror_flag"
22183                          || test ! -s conftest.err'
22184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185   (eval $ac_try) 2>&5
22186   ac_status=$?
22187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188   (exit $ac_status); }; } &&
22189          { ac_try='test -s conftest.$ac_objext'
22190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191   (eval $ac_try) 2>&5
22192   ac_status=$?
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); }; }; then
22195   ac_cv_type_uint8_t=yes
22196 else
22197   echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200 fi
22201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22202
22203
22204 fi
22205 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22206 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22207
22208   if test "$ac_cv_type_uint8_t" != "yes"; then
22209
22210 cat >>confdefs.h <<\_ACEOF
22211 #define uint8_t unsigned char
22212 _ACEOF
22213
22214   fi
22215
22216
22217
22218   echo "$as_me:$LINENO: checking for uint16_t" >&5
22219 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22220 if test "${ac_cv_type_uint16_t+set}" = set; then
22221   echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223    ac_cv_type_uint16_t=no
22224       cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h.  */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h.  */
22230 #ifdef HAVE_INTTYPES_H
22231 #include <inttypes.h>
22232 #endif
22233 #ifdef HAVE_STDINT_H
22234 #include <stdint.h>
22235 #endif
22236
22237 int
22238 main ()
22239 {
22240 uint16_t foo
22241   ;
22242   return 0;
22243 }
22244 _ACEOF
22245 rm -f conftest.$ac_objext
22246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22247   (eval $ac_compile) 2>conftest.er1
22248   ac_status=$?
22249   grep -v '^ *+' conftest.er1 >conftest.err
22250   rm -f conftest.er1
22251   cat conftest.err >&5
22252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253   (exit $ac_status); } &&
22254          { ac_try='test -z "$ac_c_werror_flag"
22255                          || test ! -s conftest.err'
22256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257   (eval $ac_try) 2>&5
22258   ac_status=$?
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); }; } &&
22261          { ac_try='test -s conftest.$ac_objext'
22262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263   (eval $ac_try) 2>&5
22264   ac_status=$?
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); }; }; then
22267   ac_cv_type_uint16_t=yes
22268 else
22269   echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22271
22272 fi
22273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22274
22275
22276 fi
22277 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22278 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22279
22280   if test "$ac_cv_type_uint16_t" != "yes"; then
22281
22282 cat >>confdefs.h <<\_ACEOF
22283 #define uint16_t unsigned short
22284 _ACEOF
22285
22286   fi
22287
22288
22289
22290   echo "$as_me:$LINENO: checking for uint32_t" >&5
22291 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22292 if test "${ac_cv_type_uint32_t+set}" = set; then
22293   echo $ECHO_N "(cached) $ECHO_C" >&6
22294 else
22295    ac_cv_type_uint32_t=no
22296       cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h.  */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h.  */
22302 #ifdef HAVE_INTTYPES_H
22303 #include <inttypes.h>
22304 #endif
22305 #ifdef HAVE_STDINT_H
22306 #include <stdint.h>
22307 #endif
22308
22309 int
22310 main ()
22311 {
22312 uint32_t foo
22313   ;
22314   return 0;
22315 }
22316 _ACEOF
22317 rm -f conftest.$ac_objext
22318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22319   (eval $ac_compile) 2>conftest.er1
22320   ac_status=$?
22321   grep -v '^ *+' conftest.er1 >conftest.err
22322   rm -f conftest.er1
22323   cat conftest.err >&5
22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); } &&
22326          { ac_try='test -z "$ac_c_werror_flag"
22327                          || test ! -s conftest.err'
22328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329   (eval $ac_try) 2>&5
22330   ac_status=$?
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); }; } &&
22333          { ac_try='test -s conftest.$ac_objext'
22334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335   (eval $ac_try) 2>&5
22336   ac_status=$?
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); }; }; then
22339   ac_cv_type_uint32_t=yes
22340 else
22341   echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22343
22344 fi
22345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22346
22347
22348 fi
22349 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22350 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22351
22352   if test "$ac_cv_type_uint32_t" != "yes"; then
22353
22354 cat >>confdefs.h <<\_ACEOF
22355 #define uint32_t unsigned int
22356 _ACEOF
22357
22358   fi
22359
22360
22361 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22362 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
22363 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22364   echo $ECHO_N "(cached) $ECHO_C" >&6
22365 else
22366   cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372
22373 #ifdef HAVE_NETINET_IN_H
22374 #include <netinet/in.h>
22375 #endif
22376
22377
22378 int
22379 main ()
22380 {
22381 if ((struct in6_addr *) 0)
22382   return 0;
22383 if (sizeof (struct in6_addr))
22384   return 0;
22385   ;
22386   return 0;
22387 }
22388 _ACEOF
22389 rm -f conftest.$ac_objext
22390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22391   (eval $ac_compile) 2>conftest.er1
22392   ac_status=$?
22393   grep -v '^ *+' conftest.er1 >conftest.err
22394   rm -f conftest.er1
22395   cat conftest.err >&5
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); } &&
22398          { ac_try='test -z "$ac_c_werror_flag"
22399                          || test ! -s conftest.err'
22400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401   (eval $ac_try) 2>&5
22402   ac_status=$?
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); }; } &&
22405          { ac_try='test -s conftest.$ac_objext'
22406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407   (eval $ac_try) 2>&5
22408   ac_status=$?
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); }; }; then
22411   ac_cv_type_struct_in6_addr=yes
22412 else
22413   echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22415
22416 ac_cv_type_struct_in6_addr=no
22417 fi
22418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22419 fi
22420 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22421 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
22422 if test $ac_cv_type_struct_in6_addr = yes; then
22423
22424 cat >>confdefs.h <<\_ACEOF
22425 #define HAVE_STRUCT_IN6_ADDR 1
22426 _ACEOF
22427
22428 fi
22429
22430
22431 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22432 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
22433 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22434   echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22436   cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h.  */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h.  */
22442
22443 #ifdef HAVE_NETINET_IN_H
22444 #include <netinet/in.h>
22445 #endif
22446 #ifdef HAVE_SYS_SOCKET_H
22447 #include <sys/socket.h>
22448 #endif
22449
22450
22451 int
22452 main ()
22453 {
22454 if ((struct sockaddr_storage *) 0)
22455   return 0;
22456 if (sizeof (struct sockaddr_storage))
22457   return 0;
22458   ;
22459   return 0;
22460 }
22461 _ACEOF
22462 rm -f conftest.$ac_objext
22463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22464   (eval $ac_compile) 2>conftest.er1
22465   ac_status=$?
22466   grep -v '^ *+' conftest.er1 >conftest.err
22467   rm -f conftest.er1
22468   cat conftest.err >&5
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); } &&
22471          { ac_try='test -z "$ac_c_werror_flag"
22472                          || test ! -s conftest.err'
22473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22474   (eval $ac_try) 2>&5
22475   ac_status=$?
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); }; } &&
22478          { ac_try='test -s conftest.$ac_objext'
22479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480   (eval $ac_try) 2>&5
22481   ac_status=$?
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); }; }; then
22484   ac_cv_type_struct_sockaddr_storage=yes
22485 else
22486   echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489 ac_cv_type_struct_sockaddr_storage=no
22490 fi
22491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22492 fi
22493 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22494 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
22495 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22496
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22499 _ACEOF
22500
22501 fi
22502
22503
22504 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22505 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
22506 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
22507   echo $ECHO_N "(cached) $ECHO_C" >&6
22508 else
22509   cat >conftest.$ac_ext <<_ACEOF
22510 /* confdefs.h.  */
22511 _ACEOF
22512 cat confdefs.h >>conftest.$ac_ext
22513 cat >>conftest.$ac_ext <<_ACEOF
22514 /* end confdefs.h.  */
22515
22516 #ifdef HAVE_NETINET_IN_H
22517 #include <netinet/in.h>
22518 #endif
22519
22520
22521 int
22522 main ()
22523 {
22524 if ((struct sockaddr_in6 *) 0)
22525   return 0;
22526 if (sizeof (struct sockaddr_in6))
22527   return 0;
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest.$ac_objext
22533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22534   (eval $ac_compile) 2>conftest.er1
22535   ac_status=$?
22536   grep -v '^ *+' conftest.er1 >conftest.err
22537   rm -f conftest.er1
22538   cat conftest.err >&5
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } &&
22541          { ac_try='test -z "$ac_c_werror_flag"
22542                          || test ! -s conftest.err'
22543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544   (eval $ac_try) 2>&5
22545   ac_status=$?
22546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547   (exit $ac_status); }; } &&
22548          { ac_try='test -s conftest.$ac_objext'
22549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550   (eval $ac_try) 2>&5
22551   ac_status=$?
22552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553   (exit $ac_status); }; }; then
22554   ac_cv_type_struct_sockaddr_in6=yes
22555 else
22556   echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559 ac_cv_type_struct_sockaddr_in6=no
22560 fi
22561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22562 fi
22563 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
22564 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
22565 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
22566
22567 cat >>confdefs.h <<\_ACEOF
22568 #define HAVE_STRUCT_SOCKADDR_IN6 1
22569 _ACEOF
22570
22571 fi
22572
22573
22574 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22575 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
22576 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
22577   echo $ECHO_N "(cached) $ECHO_C" >&6
22578 else
22579   cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h.  */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h.  */
22585
22586 #ifdef HAVE_SYS_TYPES_H
22587 #include <sys/types.h>
22588 #endif
22589 #ifdef HAVE_SYS_SOCKET_H
22590 #include <sys/socket.h>
22591 #endif
22592 #ifdef HAVE_NETDB_H
22593 #include <netdb.h>
22594 #endif
22595
22596
22597 int
22598 main ()
22599 {
22600 if ((struct addrinfo *) 0)
22601   return 0;
22602 if (sizeof (struct addrinfo))
22603   return 0;
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610   (eval $ac_compile) 2>conftest.er1
22611   ac_status=$?
22612   grep -v '^ *+' conftest.er1 >conftest.err
22613   rm -f conftest.er1
22614   cat conftest.err >&5
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); } &&
22617          { ac_try='test -z "$ac_c_werror_flag"
22618                          || test ! -s conftest.err'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; } &&
22624          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22630   ac_cv_type_struct_addrinfo=yes
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635 ac_cv_type_struct_addrinfo=no
22636 fi
22637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22638 fi
22639 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
22640 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
22641 if test $ac_cv_type_struct_addrinfo = yes; then
22642
22643 cat >>confdefs.h <<\_ACEOF
22644 #define HAVE_STRUCT_ADDRINFO 1
22645 _ACEOF
22646
22647 fi
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678 for ac_func in \
22679         getopt_long \
22680         lockf \
22681         strsignal \
22682         sigaction \
22683         sigprocmask \
22684         pthread_sigmask \
22685         snprintf \
22686         vsnprintf \
22687         setsid \
22688         strncasecmp \
22689         strcasecmp \
22690         localtime_r \
22691         ctime_r \
22692         gmtime_r \
22693         strsep \
22694         inet_aton \
22695         inet_pton \
22696         inet_ntop \
22697         gethostname \
22698         setlinebuf \
22699         setvbuf \
22700         getusershell \
22701         initgroups \
22702         getaddrinfo \
22703         getnameinfo \
22704         closefrom \
22705         strlcat \
22706         strlcpy
22707
22708 do
22709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22710 echo "$as_me:$LINENO: checking for $ac_func" >&5
22711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22712 if eval "test \"\${$as_ac_var+set}\" = set"; then
22713   echo $ECHO_N "(cached) $ECHO_C" >&6
22714 else
22715   cat >conftest.$ac_ext <<_ACEOF
22716 /* confdefs.h.  */
22717 _ACEOF
22718 cat confdefs.h >>conftest.$ac_ext
22719 cat >>conftest.$ac_ext <<_ACEOF
22720 /* end confdefs.h.  */
22721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22723 #define $ac_func innocuous_$ac_func
22724
22725 /* System header to define __stub macros and hopefully few prototypes,
22726     which can conflict with char $ac_func (); below.
22727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22728     <limits.h> exists even on freestanding compilers.  */
22729
22730 #ifdef __STDC__
22731 # include <limits.h>
22732 #else
22733 # include <assert.h>
22734 #endif
22735
22736 #undef $ac_func
22737
22738 /* Override any gcc2 internal prototype to avoid an error.  */
22739 #ifdef __cplusplus
22740 extern "C"
22741 {
22742 #endif
22743 /* We use char because int might match the return type of a gcc2
22744    builtin and then its argument prototype would still apply.  */
22745 char $ac_func ();
22746 /* The GNU C library defines this for functions which it implements
22747     to always fail with ENOSYS.  Some functions are actually named
22748     something starting with __ and the normal name is an alias.  */
22749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22750 choke me
22751 #else
22752 char (*f) () = $ac_func;
22753 #endif
22754 #ifdef __cplusplus
22755 }
22756 #endif
22757
22758 int
22759 main ()
22760 {
22761 return f != $ac_func;
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 rm -f conftest.$ac_objext conftest$ac_exeext
22767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22768   (eval $ac_link) 2>conftest.er1
22769   ac_status=$?
22770   grep -v '^ *+' conftest.er1 >conftest.err
22771   rm -f conftest.er1
22772   cat conftest.err >&5
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); } &&
22775          { ac_try='test -z "$ac_c_werror_flag"
22776                          || test ! -s conftest.err'
22777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778   (eval $ac_try) 2>&5
22779   ac_status=$?
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); }; } &&
22782          { ac_try='test -s conftest$ac_exeext'
22783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784   (eval $ac_try) 2>&5
22785   ac_status=$?
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); }; }; then
22788   eval "$as_ac_var=yes"
22789 else
22790   echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22792
22793 eval "$as_ac_var=no"
22794 fi
22795 rm -f conftest.err conftest.$ac_objext \
22796       conftest$ac_exeext conftest.$ac_ext
22797 fi
22798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22800 if test `eval echo '${'$as_ac_var'}'` = yes; then
22801   cat >>confdefs.h <<_ACEOF
22802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22803 _ACEOF
22804
22805 fi
22806 done
22807
22808 for ac_func in \
22809         crypt \
22810         strncasecmp \
22811         strcasecmp \
22812         inet_aton \
22813         gethostname \
22814         setlinebuf \
22815         getusershell \
22816         endusershell
22817
22818 do
22819 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22820 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
22821 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
22822   echo $ECHO_N "(cached) $ECHO_C" >&6
22823 else
22824   cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h.  */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h.  */
22830
22831 #include <stdio.h>
22832 #include <string.h>
22833 #ifdef HAVE_UNISTD_H
22834 #include <unistd.h>
22835 #endif
22836 #ifdef HAVE_CRYPT_H
22837 #include <crypt.h>
22838 #endif
22839 #ifdef HAVE_ERRNO_H
22840 #include <errno.h>
22841 #endif
22842 #ifdef HAVE_RESOURCE_H
22843 #include <resource.h>
22844 #endif
22845 #ifdef HAVE_GETOPT_H
22846 #include <getopt.h>
22847 #endif
22848 #ifdef HAVE_MALLOC_H
22849 #include <malloc.h>
22850 #endif
22851 #ifdef HAVE_UTMP_H
22852 #include <utmp.h>
22853 #endif
22854 #ifdef HAVE_UTMPX_H
22855 #include <utmpx.h>
22856 #endif
22857 #ifdef HAVE_SYS_SELECT_H
22858 #include <sys/select.h>
22859 #endif
22860 #ifdef HAVE_DLFCN_H
22861 #include <dlfcn.h>
22862 #endif
22863 #ifdef HAVE_REGEX_H
22864 #include <regex.h>
22865 #endif
22866 #ifdef HAVE_SYSLOG_H
22867 #include <syslog.h>
22868 #endif
22869 #ifdef HAVE_INTTYPES_H
22870 #include <inttypes.h>
22871 #endif
22872 #ifdef HAVE_STDINT_H
22873 #include <stdint.h>
22874 #endif
22875 #ifdef HAVE_ARPA_INET_H
22876 #include <arpa/inet.h>
22877 #endif
22878
22879 int
22880 main ()
22881 {
22882 char *(*pfn) = (char *(*)) $ac_func
22883   ;
22884   return 0;
22885 }
22886 _ACEOF
22887 rm -f conftest.$ac_objext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22889   (eval $ac_compile) 2>conftest.er1
22890   ac_status=$?
22891   grep -v '^ *+' conftest.er1 >conftest.err
22892   rm -f conftest.er1
22893   cat conftest.err >&5
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); } &&
22896          { ac_try='test -z "$ac_c_werror_flag"
22897                          || test ! -s conftest.err'
22898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899   (eval $ac_try) 2>&5
22900   ac_status=$?
22901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902   (exit $ac_status); }; } &&
22903          { ac_try='test -s conftest.$ac_objext'
22904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905   (eval $ac_try) 2>&5
22906   ac_status=$?
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); }; }; then
22909   eval "radius_cv_decl_needed_$ac_func=no"
22910 else
22911   echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22913
22914 eval "radius_cv_decl_needed_$ac_func=yes"
22915 fi
22916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22917 fi
22918
22919 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22920   echo "$as_me:$LINENO: result: yes" >&5
22921 echo "${ECHO_T}yes" >&6
22922   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22923   cat >>confdefs.h <<_ACEOF
22924 #define $radius_tr_decl 1
22925 _ACEOF
22926
22927 else
22928   echo "$as_me:$LINENO: result: no" >&5
22929 echo "${ECHO_T}no" >&6
22930 fi
22931
22932 done
22933
22934
22935 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22936 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22937 if test "${ac_cv_type_signal+set}" = set; then
22938   echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940   cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h.  */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h.  */
22946 #include <sys/types.h>
22947 #include <signal.h>
22948 #ifdef signal
22949 # undef signal
22950 #endif
22951 #ifdef __cplusplus
22952 extern "C" void (*signal (int, void (*)(int)))(int);
22953 #else
22954 void (*signal ()) ();
22955 #endif
22956
22957 int
22958 main ()
22959 {
22960 int i;
22961   ;
22962   return 0;
22963 }
22964 _ACEOF
22965 rm -f conftest.$ac_objext
22966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22967   (eval $ac_compile) 2>conftest.er1
22968   ac_status=$?
22969   grep -v '^ *+' conftest.er1 >conftest.err
22970   rm -f conftest.er1
22971   cat conftest.err >&5
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); } &&
22974          { ac_try='test -z "$ac_c_werror_flag"
22975                          || test ! -s conftest.err'
22976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977   (eval $ac_try) 2>&5
22978   ac_status=$?
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); }; } &&
22981          { ac_try='test -s conftest.$ac_objext'
22982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983   (eval $ac_try) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; }; then
22987   ac_cv_type_signal=void
22988 else
22989   echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992 ac_cv_type_signal=int
22993 fi
22994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22995 fi
22996 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22997 echo "${ECHO_T}$ac_cv_type_signal" >&6
22998
22999 cat >>confdefs.h <<_ACEOF
23000 #define RETSIGTYPE $ac_cv_type_signal
23001 _ACEOF
23002
23003
23004
23005 if test "x$ac_cv_header_utmpx_h" = "xyes"
23006 then
23007
23008   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23009 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23010
23011
23012   cat >conftest.$ac_ext <<_ACEOF
23013 /* confdefs.h.  */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h.  */
23018
23019 #include <utmpx.h>
23020 #ifndef offsetof
23021 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23022 #endif
23023
23024 int
23025 main ()
23026 {
23027  int foo = offsetof(struct utmpx, ut_xtime)
23028   ;
23029   return 0;
23030 }
23031 _ACEOF
23032 rm -f conftest.$ac_objext
23033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23034   (eval $ac_compile) 2>conftest.er1
23035   ac_status=$?
23036   grep -v '^ *+' conftest.er1 >conftest.err
23037   rm -f conftest.er1
23038   cat conftest.err >&5
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); } &&
23041          { ac_try='test -z "$ac_c_werror_flag"
23042                          || test ! -s conftest.err'
23043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23044   (eval $ac_try) 2>&5
23045   ac_status=$?
23046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047   (exit $ac_status); }; } &&
23048          { ac_try='test -s conftest.$ac_objext'
23049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050   (eval $ac_try) 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); }; }; then
23054   has_element=" "
23055 else
23056   echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23058
23059 has_element=
23060 fi
23061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23062
23063   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23064   if test "x$has_element" != "x"; then
23065     echo "$as_me:$LINENO: result: yes" >&5
23066 echo "${ECHO_T}yes" >&6
23067     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23068   else
23069     echo "$as_me:$LINENO: result: no" >&5
23070 echo "${ECHO_T}no" >&6
23071     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23072  fi
23073
23074  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23075  then
23076
23077 cat >>confdefs.h <<\_ACEOF
23078 #define ut_xtime ut_tv.tv_sec
23079 _ACEOF
23080
23081  fi
23082 fi
23083
23084
23085   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23086 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23087
23088
23089   cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h.  */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h.  */
23095
23096 #include <netinet/in.h>
23097 #ifndef offsetof
23098 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23099 #endif
23100
23101 int
23102 main ()
23103 {
23104  int foo = offsetof(struct in_pktinfo, ipi_addr)
23105   ;
23106   return 0;
23107 }
23108 _ACEOF
23109 rm -f conftest.$ac_objext
23110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23111   (eval $ac_compile) 2>conftest.er1
23112   ac_status=$?
23113   grep -v '^ *+' conftest.er1 >conftest.err
23114   rm -f conftest.er1
23115   cat conftest.err >&5
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); } &&
23118          { ac_try='test -z "$ac_c_werror_flag"
23119                          || test ! -s conftest.err'
23120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121   (eval $ac_try) 2>&5
23122   ac_status=$?
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); }; } &&
23125          { ac_try='test -s conftest.$ac_objext'
23126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23127   (eval $ac_try) 2>&5
23128   ac_status=$?
23129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); }; }; then
23131   has_element=" "
23132 else
23133   echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.$ac_ext >&5
23135
23136 has_element=
23137 fi
23138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23139
23140   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23141   if test "x$has_element" != "x"; then
23142     echo "$as_me:$LINENO: result: yes" >&5
23143 echo "${ECHO_T}yes" >&6
23144     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23145   else
23146     echo "$as_me:$LINENO: result: no" >&5
23147 echo "${ECHO_T}no" >&6
23148     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23149  fi
23150
23151 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23152 then
23153
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_IP_PKTINFO
23156 _ACEOF
23157
23158 fi
23159
23160
23161   echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23162 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
23163
23164
23165   cat >conftest.$ac_ext <<_ACEOF
23166 /* confdefs.h.  */
23167 _ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h.  */
23171
23172 #include <netinet/in.h>
23173 #ifndef offsetof
23174 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23175 #endif
23176
23177 int
23178 main ()
23179 {
23180  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23181   ;
23182   return 0;
23183 }
23184 _ACEOF
23185 rm -f conftest.$ac_objext
23186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23187   (eval $ac_compile) 2>conftest.er1
23188   ac_status=$?
23189   grep -v '^ *+' conftest.er1 >conftest.err
23190   rm -f conftest.er1
23191   cat conftest.err >&5
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); } &&
23194          { ac_try='test -z "$ac_c_werror_flag"
23195                          || test ! -s conftest.err'
23196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197   (eval $ac_try) 2>&5
23198   ac_status=$?
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); }; } &&
23201          { ac_try='test -s conftest.$ac_objext'
23202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23203   (eval $ac_try) 2>&5
23204   ac_status=$?
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); }; }; then
23207   has_element=" "
23208 else
23209   echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23211
23212 has_element=
23213 fi
23214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23215
23216   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23217   if test "x$has_element" != "x"; then
23218     echo "$as_me:$LINENO: result: yes" >&5
23219 echo "${ECHO_T}yes" >&6
23220     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23221   else
23222     echo "$as_me:$LINENO: result: no" >&5
23223 echo "${ECHO_T}no" >&6
23224     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23225  fi
23226
23227 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23228 then
23229
23230 cat >>confdefs.h <<\_ACEOF
23231 #define HAVE_IN6_PKTINFO
23232 _ACEOF
23233
23234 fi
23235
23236
23237 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23238 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23239 if test "${ac_cv_c_const+set}" = set; then
23240   echo $ECHO_N "(cached) $ECHO_C" >&6
23241 else
23242   cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248
23249 int
23250 main ()
23251 {
23252 /* FIXME: Include the comments suggested by Paul. */
23253 #ifndef __cplusplus
23254   /* Ultrix mips cc rejects this.  */
23255   typedef int charset[2];
23256   const charset x;
23257   /* SunOS 4.1.1 cc rejects this.  */
23258   char const *const *ccp;
23259   char **p;
23260   /* NEC SVR4.0.2 mips cc rejects this.  */
23261   struct point {int x, y;};
23262   static struct point const zero = {0,0};
23263   /* AIX XL C 1.02.0.0 rejects this.
23264      It does not let you subtract one const X* pointer from another in
23265      an arm of an if-expression whose if-part is not a constant
23266      expression */
23267   const char *g = "string";
23268   ccp = &g + (g ? g-g : 0);
23269   /* HPUX 7.0 cc rejects these. */
23270   ++ccp;
23271   p = (char**) ccp;
23272   ccp = (char const *const *) p;
23273   { /* SCO 3.2v4 cc rejects this.  */
23274     char *t;
23275     char const *s = 0 ? (char *) 0 : (char const *) 0;
23276
23277     *t++ = 0;
23278   }
23279   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23280     int x[] = {25, 17};
23281     const int *foo = &x[0];
23282     ++foo;
23283   }
23284   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23285     typedef const int *iptr;
23286     iptr p = 0;
23287     ++p;
23288   }
23289   { /* AIX XL C 1.02.0.0 rejects this saying
23290        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23291     struct s { int j; const int *ap[3]; };
23292     struct s *b; b->j = 5;
23293   }
23294   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23295     const int foo = 10;
23296   }
23297 #endif
23298
23299   ;
23300   return 0;
23301 }
23302 _ACEOF
23303 rm -f conftest.$ac_objext
23304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23305   (eval $ac_compile) 2>conftest.er1
23306   ac_status=$?
23307   grep -v '^ *+' conftest.er1 >conftest.err
23308   rm -f conftest.er1
23309   cat conftest.err >&5
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } &&
23312          { ac_try='test -z "$ac_c_werror_flag"
23313                          || test ! -s conftest.err'
23314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315   (eval $ac_try) 2>&5
23316   ac_status=$?
23317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318   (exit $ac_status); }; } &&
23319          { ac_try='test -s conftest.$ac_objext'
23320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23321   (eval $ac_try) 2>&5
23322   ac_status=$?
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); }; }; then
23325   ac_cv_c_const=yes
23326 else
23327   echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330 ac_cv_c_const=no
23331 fi
23332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23333 fi
23334 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23335 echo "${ECHO_T}$ac_cv_c_const" >&6
23336 if test $ac_cv_c_const = no; then
23337
23338 cat >>confdefs.h <<\_ACEOF
23339 #define const
23340 _ACEOF
23341
23342 fi
23343
23344
23345 echo "$as_me:$LINENO: checking type of OS" >&5
23346 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
23347 OS=`uname -s`
23348 echo "$as_me:$LINENO: result: $OS" >&5
23349 echo "${ECHO_T}$OS" >&6
23350 if test "$OS" = "OS/2"; then
23351         LIBPREFIX=
23352 else
23353         LIBPREFIX=lib
23354 fi
23355
23356
23357 if test "x$GCC" = "xyes"; then
23358     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23359 fi
23360
23361 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23362 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
23363 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23364   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23365   CFLAGS="$CFLAGS $devflags"
23366   INSTALLSTRIP=""
23367   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23368 echo "${ECHO_T}yes.  Using $devflags" >&6
23369 else
23370   devflags=""
23371   CFLAGS="$CFLAGS -DNDEBUG"
23372   INSTALLSTRIP="-s"
23373   echo "$as_me:$LINENO: result: no." >&5
23374 echo "${ECHO_T}no." >&6
23375 fi
23376
23377
23378 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23379 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23380 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23381   echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23383   ac_check_lib_save_LIBS=$LIBS
23384 LIBS="-lcrypt  $LIBS"
23385 cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h.  */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h.  */
23391
23392 /* Override any gcc2 internal prototype to avoid an error.  */
23393 #ifdef __cplusplus
23394 extern "C"
23395 #endif
23396 /* We use char because int might match the return type of a gcc2
23397    builtin and then its argument prototype would still apply.  */
23398 char crypt ();
23399 int
23400 main ()
23401 {
23402 crypt ();
23403   ;
23404   return 0;
23405 }
23406 _ACEOF
23407 rm -f conftest.$ac_objext conftest$ac_exeext
23408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23409   (eval $ac_link) 2>conftest.er1
23410   ac_status=$?
23411   grep -v '^ *+' conftest.er1 >conftest.err
23412   rm -f conftest.er1
23413   cat conftest.err >&5
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); } &&
23416          { ac_try='test -z "$ac_c_werror_flag"
23417                          || test ! -s conftest.err'
23418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419   (eval $ac_try) 2>&5
23420   ac_status=$?
23421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422   (exit $ac_status); }; } &&
23423          { ac_try='test -s conftest$ac_exeext'
23424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425   (eval $ac_try) 2>&5
23426   ac_status=$?
23427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428   (exit $ac_status); }; }; then
23429   ac_cv_lib_crypt_crypt=yes
23430 else
23431   echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23433
23434 ac_cv_lib_crypt_crypt=no
23435 fi
23436 rm -f conftest.err conftest.$ac_objext \
23437       conftest$ac_exeext conftest.$ac_ext
23438 LIBS=$ac_check_lib_save_LIBS
23439 fi
23440 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23441 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23442 if test $ac_cv_lib_crypt_crypt = yes; then
23443   CRYPTLIB="-lcrypt"
23444
23445 fi
23446
23447 if test "$CRYPTLIB" != ""; then
23448
23449 cat >>confdefs.h <<\_ACEOF
23450 #define HAVE_CRYPT
23451 _ACEOF
23452
23453 else
23454   echo "$as_me:$LINENO: checking for crypt" >&5
23455 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23456 if test "${ac_cv_func_crypt+set}" = set; then
23457   echo $ECHO_N "(cached) $ECHO_C" >&6
23458 else
23459   cat >conftest.$ac_ext <<_ACEOF
23460 /* confdefs.h.  */
23461 _ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h.  */
23465 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23467 #define crypt innocuous_crypt
23468
23469 /* System header to define __stub macros and hopefully few prototypes,
23470     which can conflict with char crypt (); below.
23471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23472     <limits.h> exists even on freestanding compilers.  */
23473
23474 #ifdef __STDC__
23475 # include <limits.h>
23476 #else
23477 # include <assert.h>
23478 #endif
23479
23480 #undef crypt
23481
23482 /* Override any gcc2 internal prototype to avoid an error.  */
23483 #ifdef __cplusplus
23484 extern "C"
23485 {
23486 #endif
23487 /* We use char because int might match the return type of a gcc2
23488    builtin and then its argument prototype would still apply.  */
23489 char crypt ();
23490 /* The GNU C library defines this for functions which it implements
23491     to always fail with ENOSYS.  Some functions are actually named
23492     something starting with __ and the normal name is an alias.  */
23493 #if defined (__stub_crypt) || defined (__stub___crypt)
23494 choke me
23495 #else
23496 char (*f) () = crypt;
23497 #endif
23498 #ifdef __cplusplus
23499 }
23500 #endif
23501
23502 int
23503 main ()
23504 {
23505 return f != crypt;
23506   ;
23507   return 0;
23508 }
23509 _ACEOF
23510 rm -f conftest.$ac_objext conftest$ac_exeext
23511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23512   (eval $ac_link) 2>conftest.er1
23513   ac_status=$?
23514   grep -v '^ *+' conftest.er1 >conftest.err
23515   rm -f conftest.er1
23516   cat conftest.err >&5
23517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518   (exit $ac_status); } &&
23519          { ac_try='test -z "$ac_c_werror_flag"
23520                          || test ! -s conftest.err'
23521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522   (eval $ac_try) 2>&5
23523   ac_status=$?
23524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525   (exit $ac_status); }; } &&
23526          { ac_try='test -s conftest$ac_exeext'
23527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528   (eval $ac_try) 2>&5
23529   ac_status=$?
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); }; }; then
23532   ac_cv_func_crypt=yes
23533 else
23534   echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23536
23537 ac_cv_func_crypt=no
23538 fi
23539 rm -f conftest.err conftest.$ac_objext \
23540       conftest$ac_exeext conftest.$ac_ext
23541 fi
23542 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23543 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23544 if test $ac_cv_func_crypt = yes; then
23545
23546 cat >>confdefs.h <<\_ACEOF
23547 #define HAVE_CRYPT
23548 _ACEOF
23549
23550 fi
23551
23552 fi
23553
23554 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23555 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23556 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23557   echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559   ac_check_lib_save_LIBS=$LIBS
23560 LIBS="-lcipher  $LIBS"
23561 cat >conftest.$ac_ext <<_ACEOF
23562 /* confdefs.h.  */
23563 _ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h.  */
23567
23568 /* Override any gcc2 internal prototype to avoid an error.  */
23569 #ifdef __cplusplus
23570 extern "C"
23571 #endif
23572 /* We use char because int might match the return type of a gcc2
23573    builtin and then its argument prototype would still apply.  */
23574 char setkey ();
23575 int
23576 main ()
23577 {
23578 setkey ();
23579   ;
23580   return 0;
23581 }
23582 _ACEOF
23583 rm -f conftest.$ac_objext conftest$ac_exeext
23584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23585   (eval $ac_link) 2>conftest.er1
23586   ac_status=$?
23587   grep -v '^ *+' conftest.er1 >conftest.err
23588   rm -f conftest.er1
23589   cat conftest.err >&5
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); } &&
23592          { ac_try='test -z "$ac_c_werror_flag"
23593                          || test ! -s conftest.err'
23594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595   (eval $ac_try) 2>&5
23596   ac_status=$?
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); }; } &&
23599          { ac_try='test -s conftest$ac_exeext'
23600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601   (eval $ac_try) 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); }; }; then
23605   ac_cv_lib_cipher_setkey=yes
23606 else
23607   echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23609
23610 ac_cv_lib_cipher_setkey=no
23611 fi
23612 rm -f conftest.err conftest.$ac_objext \
23613       conftest$ac_exeext conftest.$ac_ext
23614 LIBS=$ac_check_lib_save_LIBS
23615 fi
23616 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23617 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
23618 if test $ac_cv_lib_cipher_setkey = yes; then
23619   CRYPTLIB="${CRYPTLIB} -lcipher"
23620
23621 fi
23622
23623
23624
23625 if test "x$WITH_SNMP" = "xyes"; then
23626
23627
23628
23629
23630 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23631 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
23632
23633 cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h.  */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h.  */
23639
23640 #ifdef HAVE_SYS_TYPES_H
23641 #include <sys/types.h>
23642 #endif
23643 #ifdef HAVE_STDINT_H
23644 #include <stdint.h>
23645 #endif
23646 #ifdef HAVE_STDIO_H
23647 #include <stdio.h>
23648 #endif
23649 #ifdef HAVE_NETDB_H
23650 #include <netdb.h>
23651 #endif
23652 #ifdef HAVE_UNISTD_H
23653 #include <unistd.h>
23654 #endif
23655 #include <ucd-snmp/ucd-snmp-config.h>
23656 #include <ucd-snmp/asn1.h>
23657 #include <ucd-snmp/snmp.h>
23658 #include <ucd-snmp/snmp_impl.h>
23659 int
23660 main ()
23661 {
23662  int a = 1;
23663   ;
23664   return 0;
23665 }
23666 _ACEOF
23667 rm -f conftest.$ac_objext
23668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23669   (eval $ac_compile) 2>conftest.er1
23670   ac_status=$?
23671   grep -v '^ *+' conftest.er1 >conftest.err
23672   rm -f conftest.er1
23673   cat conftest.err >&5
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); } &&
23676          { ac_try='test -z "$ac_c_werror_flag"
23677                          || test ! -s conftest.err'
23678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679   (eval $ac_try) 2>&5
23680   ac_status=$?
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); }; } &&
23683          { ac_try='test -s conftest.$ac_objext'
23684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685   (eval $ac_try) 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); }; }; then
23689   SNMP_INCLUDE="";ucdsnmp=yes
23690 else
23691   echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694 ucdsnmp=
23695 fi
23696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23697
23698 if test "x$ucdsnmp" = "x"; then
23699   old_CFLAGS="$CFLAGS"
23700   for try in /usr/include /usr/local/include $snmp_include_dir; do
23701     CFLAGS="$old_CFLAGS -I$try"
23702     cat >conftest.$ac_ext <<_ACEOF
23703 /* confdefs.h.  */
23704 _ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h.  */
23708
23709 #ifdef HAVE_SYS_TYPES_H
23710 #include <sys/types.h>
23711 #endif
23712 #ifdef HAVE_STDINT_H
23713 #include <stdint.h>
23714 #endif
23715 #ifdef HAVE_STDIO_H
23716 #include <stdio.h>
23717 #endif
23718 #ifdef HAVE_NETDB_H
23719 #include <netdb.h>
23720 #endif
23721 #ifdef HAVE_UNISTD_H
23722 #include <unistd.h>
23723 #endif
23724 #include <ucd-snmp/ucd-snmp-config.h>
23725 #include <ucd-snmp/asn1.h>
23726 #include <ucd-snmp/snmp.h>
23727 #include <ucd-snmp/snmp_impl.h>
23728 int
23729 main ()
23730 {
23731  int a = 1;
23732   ;
23733   return 0;
23734 }
23735 _ACEOF
23736 rm -f conftest.$ac_objext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23738   (eval $ac_compile) 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } &&
23745          { ac_try='test -z "$ac_c_werror_flag"
23746                          || test ! -s conftest.err'
23747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748   (eval $ac_try) 2>&5
23749   ac_status=$?
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); }; } &&
23752          { ac_try='test -s conftest.$ac_objext'
23753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754   (eval $ac_try) 2>&5
23755   ac_status=$?
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); }; }; then
23758   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23759 else
23760   echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23762
23763 ucdsnmp=
23764 fi
23765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23766     if test "x$ucdsnmp" != "x"; then
23767       break;
23768     fi
23769   done
23770   CFLAGS="$old_CFLAGS"
23771 fi
23772
23773 if test "x$ucdsnmp" = "x"; then
23774   old_CFLAGS="$CFLAGS"
23775   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23776     CFLAGS="$old_CFLAGS -I$try"
23777 cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h.  */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h.  */
23783
23784 #ifdef HAVE_SYS_TYPES_H
23785 #include <sys/types.h>
23786 #endif
23787 #ifdef HAVE_STDINT_H
23788 #include <stdint.h>
23789 #endif
23790 #ifdef HAVE_STDIO_H
23791 #include <stdio.h>
23792 #endif
23793 #ifdef HAVE_NETDB_H
23794 #include <netdb.h>
23795 #endif
23796 #ifdef HAVE_UNISTD_H
23797 #include <unistd.h>
23798 #endif
23799 #include <asn1.h>
23800 #include <snmp.h>
23801 #include <snmp_impl.h>
23802 int
23803 main ()
23804 {
23805  int a = 1;
23806   ;
23807   return 0;
23808 }
23809 _ACEOF
23810 rm -f conftest.$ac_objext
23811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23812   (eval $ac_compile) 2>conftest.er1
23813   ac_status=$?
23814   grep -v '^ *+' conftest.er1 >conftest.err
23815   rm -f conftest.er1
23816   cat conftest.err >&5
23817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818   (exit $ac_status); } &&
23819          { ac_try='test -z "$ac_c_werror_flag"
23820                          || test ! -s conftest.err'
23821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23822   (eval $ac_try) 2>&5
23823   ac_status=$?
23824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825   (exit $ac_status); }; } &&
23826          { ac_try='test -s conftest.$ac_objext'
23827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23828   (eval $ac_try) 2>&5
23829   ac_status=$?
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); }; }; then
23832   SNMP_INCLUDE="";ucdsnmp=no
23833 else
23834   echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23836
23837 ucdsnmp=
23838 fi
23839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23840     if test "x$ucdsnmp" != "x"; then
23841       break;
23842     fi
23843   done
23844   CFLAGS="$old_CFLAGS"
23845 fi
23846
23847 if test "x$ucdsnmp" = "x"; then
23848   old_CFLAGS="$CFLAGS"
23849   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23850     CFLAGS="$old_CFLAGS -I$try"
23851     cat >conftest.$ac_ext <<_ACEOF
23852 /* confdefs.h.  */
23853 _ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h.  */
23857
23858 #ifdef HAVE_SYS_TYPES_H
23859 #include <sys/types.h>
23860 #endif
23861 #ifdef HAVE_STDINT_H
23862 #include <stdint.h>
23863 #endif
23864 #ifdef HAVE_STDIO_H
23865 #include <stdio.h>
23866 #endif
23867 #ifdef HAVE_NETDB_H
23868 #include <netdb.h>
23869 #endif
23870 #ifdef HAVE_UNISTD_H
23871 #include <unistd.h>
23872 #endif
23873 #include <asn1.h>
23874 #include <snmp.h>
23875 #include <snmp_impl.h>
23876 int
23877 main ()
23878 {
23879  int a = 1;
23880   ;
23881   return 0;
23882 }
23883 _ACEOF
23884 rm -f conftest.$ac_objext
23885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23886   (eval $ac_compile) 2>conftest.er1
23887   ac_status=$?
23888   grep -v '^ *+' conftest.er1 >conftest.err
23889   rm -f conftest.er1
23890   cat conftest.err >&5
23891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892   (exit $ac_status); } &&
23893          { ac_try='test -z "$ac_c_werror_flag"
23894                          || test ! -s conftest.err'
23895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896   (eval $ac_try) 2>&5
23897   ac_status=$?
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); }; } &&
23900          { ac_try='test -s conftest.$ac_objext'
23901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902   (eval $ac_try) 2>&5
23903   ac_status=$?
23904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905   (exit $ac_status); }; }; then
23906   SNMP_INCLUDE="-I$try";ucdsnmp=no
23907 else
23908   echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23910
23911 ucdsnmp=
23912 fi
23913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23914     if test "x$ucdsnmp" != "x"; then
23915       break;
23916     fi
23917   done
23918   CFLAGS="$old_CFLAGS"
23919 fi
23920
23921 if test "x$ucdsnmp" = "x"; then
23922   echo "$as_me:$LINENO: result: no" >&5
23923 echo "${ECHO_T}no" >&6
23924 else
23925   if test "x$ucdsnmp" = "xyes"; then
23926     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23927 echo "${ECHO_T}(ucd-snmp)yes" >&6
23928
23929 cat >>confdefs.h <<\_ACEOF
23930 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
23931 _ACEOF
23932
23933   else
23934     echo "$as_me:$LINENO: result: yes" >&5
23935 echo "${ECHO_T}yes" >&6
23936
23937 cat >>confdefs.h <<\_ACEOF
23938 #define HAVE_ASN1_SNMP_SNMPIMPL_H
23939 _ACEOF
23940
23941   fi
23942   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23943 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
23944
23945   old_LIBS="$LIBS"
23946   LIBS="$old_LIBS -lsnmp"
23947   cat >conftest.$ac_ext <<_ACEOF
23948 /* confdefs.h.  */
23949 _ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h.  */
23953 extern char snmp_build_var_op();
23954 int
23955 main ()
23956 {
23957  snmp_build_var_op()
23958   ;
23959   return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest.$ac_objext conftest$ac_exeext
23963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23964   (eval $ac_link) 2>conftest.er1
23965   ac_status=$?
23966   grep -v '^ *+' conftest.er1 >conftest.err
23967   rm -f conftest.er1
23968   cat conftest.err >&5
23969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); } &&
23971          { ac_try='test -z "$ac_c_werror_flag"
23972                          || test ! -s conftest.err'
23973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974   (eval $ac_try) 2>&5
23975   ac_status=$?
23976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977   (exit $ac_status); }; } &&
23978          { ac_try='test -s conftest$ac_exeext'
23979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23980   (eval $ac_try) 2>&5
23981   ac_status=$?
23982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); }; }; then
23984   SNMP_LIBS="-lsnmp"
23985 else
23986   echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23988
23989 SNMP_LIBS=
23990 fi
23991 rm -f conftest.err conftest.$ac_objext \
23992       conftest$ac_exeext conftest.$ac_ext
23993
23994   if test "x$SNMP_LIBS" = "x"; then
23995     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23996       LIBS="$old_LIBS -L$try -lsnmp"
23997       cat >conftest.$ac_ext <<_ACEOF
23998 /* confdefs.h.  */
23999 _ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h.  */
24003 extern char snmp_build_var_op();
24004 int
24005 main ()
24006 {
24007  snmp_build_var_op()
24008   ;
24009   return 0;
24010 }
24011 _ACEOF
24012 rm -f conftest.$ac_objext conftest$ac_exeext
24013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24014   (eval $ac_link) 2>conftest.er1
24015   ac_status=$?
24016   grep -v '^ *+' conftest.er1 >conftest.err
24017   rm -f conftest.er1
24018   cat conftest.err >&5
24019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020   (exit $ac_status); } &&
24021          { ac_try='test -z "$ac_c_werror_flag"
24022                          || test ! -s conftest.err'
24023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24024   (eval $ac_try) 2>&5
24025   ac_status=$?
24026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027   (exit $ac_status); }; } &&
24028          { ac_try='test -s conftest$ac_exeext'
24029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24030   (eval $ac_try) 2>&5
24031   ac_status=$?
24032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033   (exit $ac_status); }; }; then
24034   SNMP_LIBS="-L$try -lsnmp"
24035 else
24036   echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24038
24039 SNMP_LIBS=
24040 fi
24041 rm -f conftest.err conftest.$ac_objext \
24042       conftest$ac_exeext conftest.$ac_ext
24043       if test "x$SNMP_LIBS" != "x"; then
24044         break;
24045       fi
24046       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24047       cat >conftest.$ac_ext <<_ACEOF
24048 /* confdefs.h.  */
24049 _ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h.  */
24053 extern char snmp_build_var_op();
24054 int
24055 main ()
24056 {
24057  snmp_build_var_op()
24058   ;
24059   return 0;
24060 }
24061 _ACEOF
24062 rm -f conftest.$ac_objext conftest$ac_exeext
24063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24064   (eval $ac_link) 2>conftest.er1
24065   ac_status=$?
24066   grep -v '^ *+' conftest.er1 >conftest.err
24067   rm -f conftest.er1
24068   cat conftest.err >&5
24069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070   (exit $ac_status); } &&
24071          { ac_try='test -z "$ac_c_werror_flag"
24072                          || test ! -s conftest.err'
24073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074   (eval $ac_try) 2>&5
24075   ac_status=$?
24076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077   (exit $ac_status); }; } &&
24078          { ac_try='test -s conftest$ac_exeext'
24079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080   (eval $ac_try) 2>&5
24081   ac_status=$?
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); }; }; then
24084   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24085 else
24086   echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24088
24089 SNMP_LIBS=
24090 fi
24091 rm -f conftest.err conftest.$ac_objext \
24092       conftest$ac_exeext conftest.$ac_ext
24093       if test "x$SNMP_LIBS" != "x"; then
24094         break;
24095       fi
24096       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24097       cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103 extern char snmp_build_var_op();
24104 int
24105 main ()
24106 {
24107  snmp_build_var_op()
24108   ;
24109   return 0;
24110 }
24111 _ACEOF
24112 rm -f conftest.$ac_objext conftest$ac_exeext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24114   (eval $ac_link) 2>conftest.er1
24115   ac_status=$?
24116   grep -v '^ *+' conftest.er1 >conftest.err
24117   rm -f conftest.er1
24118   cat conftest.err >&5
24119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120   (exit $ac_status); } &&
24121          { ac_try='test -z "$ac_c_werror_flag"
24122                          || test ! -s conftest.err'
24123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124   (eval $ac_try) 2>&5
24125   ac_status=$?
24126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); }; } &&
24128          { ac_try='test -s conftest$ac_exeext'
24129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133   (exit $ac_status); }; }; then
24134   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24135 else
24136   echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139 SNMP_LIBS=
24140 fi
24141 rm -f conftest.err conftest.$ac_objext \
24142       conftest$ac_exeext conftest.$ac_ext
24143       if test "x$SNMP_LIBS" != "x"; then
24144         break;
24145       fi
24146     done
24147   fi
24148   LIBS="$old_LIBS"
24149
24150           CFLAGS="$old_CFLAGS"
24151   if test "x$SNMP_LIBS" = "x"; then
24152     echo "$as_me:$LINENO: result: no" >&5
24153 echo "${ECHO_T}no" >&6
24154     SNMP_INCLUDE=
24155   else
24156     echo "$as_me:$LINENO: result: yes" >&5
24157 echo "${ECHO_T}yes" >&6
24158
24159 cat >>confdefs.h <<\_ACEOF
24160 #define WITH_SNMP
24161 _ACEOF
24162
24163
24164 cat >>confdefs.h <<\_ACEOF
24165 #define HAVE_LIBSNMP
24166 _ACEOF
24167
24168   fi
24169 fi
24170
24171 fi
24172
24173
24174 cat >>confdefs.h <<\_ACEOF
24175 #define GNUSTYLE 1
24176 _ACEOF
24177
24178
24179 cat >>confdefs.h <<\_ACEOF
24180 #define SYSVSTYLE 2
24181 _ACEOF
24182
24183
24184 cat >>confdefs.h <<\_ACEOF
24185 #define BSDSTYLE 3
24186 _ACEOF
24187
24188 gethostbyaddrrstyle=""
24189 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24190 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24191 case "$host" in
24192 *-freebsd*)
24193
24194 cat >>confdefs.h <<\_ACEOF
24195 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24196 _ACEOF
24197
24198         gethostbyaddrrstyle=BSD
24199         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24200 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24201         ;;
24202 esac
24203 if test "x$gethostbyaddrrstyle" = "x"; then
24204         cat >conftest.$ac_ext <<_ACEOF
24205 /* confdefs.h.  */
24206 _ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h.  */
24210
24211 #include <stdio.h>
24212 #include <netdb.h>
24213
24214 int
24215 main ()
24216 {
24217  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24218   ;
24219   return 0;
24220 }
24221 _ACEOF
24222 rm -f conftest.$ac_objext conftest$ac_exeext
24223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24224   (eval $ac_link) 2>conftest.er1
24225   ac_status=$?
24226   grep -v '^ *+' conftest.er1 >conftest.err
24227   rm -f conftest.er1
24228   cat conftest.err >&5
24229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230   (exit $ac_status); } &&
24231          { ac_try='test -z "$ac_c_werror_flag"
24232                          || test ! -s conftest.err'
24233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24234   (eval $ac_try) 2>&5
24235   ac_status=$?
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); }; } &&
24238          { ac_try='test -s conftest$ac_exeext'
24239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24240   (eval $ac_try) 2>&5
24241   ac_status=$?
24242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243   (exit $ac_status); }; }; then
24244
24245
24246 cat >>confdefs.h <<\_ACEOF
24247 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24248 _ACEOF
24249
24250         gethostbyaddrrstyle=GNU
24251
24252 else
24253   echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24255
24256 fi
24257 rm -f conftest.err conftest.$ac_objext \
24258       conftest$ac_exeext conftest.$ac_ext
24259 fi
24260 if test "x$gethostbyaddrrstyle" = "x"; then
24261         cat >conftest.$ac_ext <<_ACEOF
24262 /* confdefs.h.  */
24263 _ACEOF
24264 cat confdefs.h >>conftest.$ac_ext
24265 cat >>conftest.$ac_ext <<_ACEOF
24266 /* end confdefs.h.  */
24267
24268 #include <stdio.h>
24269 #include <netdb.h>
24270
24271 int
24272 main ()
24273 {
24274  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24275   ;
24276   return 0;
24277 }
24278 _ACEOF
24279 rm -f conftest.$ac_objext conftest$ac_exeext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24281   (eval $ac_link) 2>conftest.er1
24282   ac_status=$?
24283   grep -v '^ *+' conftest.er1 >conftest.err
24284   rm -f conftest.er1
24285   cat conftest.err >&5
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } &&
24288          { ac_try='test -z "$ac_c_werror_flag"
24289                          || test ! -s conftest.err'
24290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24291   (eval $ac_try) 2>&5
24292   ac_status=$?
24293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294   (exit $ac_status); }; } &&
24295          { ac_try='test -s conftest$ac_exeext'
24296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297   (eval $ac_try) 2>&5
24298   ac_status=$?
24299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300   (exit $ac_status); }; }; then
24301
24302
24303 cat >>confdefs.h <<\_ACEOF
24304 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24305 _ACEOF
24306
24307                 gethostbyaddrrstyle=SYSV
24308
24309 else
24310   echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24312
24313 fi
24314 rm -f conftest.err conftest.$ac_objext \
24315       conftest$ac_exeext conftest.$ac_ext
24316 fi
24317 if test "x$gethostbyaddrrstyle" = "x"; then
24318         cat >conftest.$ac_ext <<_ACEOF
24319 /* confdefs.h.  */
24320 _ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h.  */
24324
24325 #include <stdio.h>
24326 #include <netdb.h>
24327
24328 int
24329 main ()
24330 {
24331  gethostbyaddr(NULL, 0, 0)
24332   ;
24333   return 0;
24334 }
24335 _ACEOF
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24338   (eval $ac_link) 2>conftest.er1
24339   ac_status=$?
24340   grep -v '^ *+' conftest.er1 >conftest.err
24341   rm -f conftest.er1
24342   cat conftest.err >&5
24343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344   (exit $ac_status); } &&
24345          { ac_try='test -z "$ac_c_werror_flag"
24346                          || test ! -s conftest.err'
24347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348   (eval $ac_try) 2>&5
24349   ac_status=$?
24350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); }; } &&
24352          { ac_try='test -s conftest$ac_exeext'
24353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354   (eval $ac_try) 2>&5
24355   ac_status=$?
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); }; }; then
24358
24359
24360 cat >>confdefs.h <<\_ACEOF
24361 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24362 _ACEOF
24363
24364                 gethostbyaddrrstyle=BSD
24365
24366 else
24367   echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24369
24370 fi
24371 rm -f conftest.err conftest.$ac_objext \
24372       conftest$ac_exeext conftest.$ac_ext
24373 fi
24374
24375 if test "x$gethostbyaddrrstyle" = "x"; then
24376         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24377 echo "${ECHO_T}none!  It must not exist, here." >&6
24378 else
24379         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24380 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
24381 fi
24382
24383 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24384         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24385 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24386 fi
24387
24388 gethostbynamerstyle=""
24389 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24390 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
24391 cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h.  */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h.  */
24397
24398 #include <stdio.h>
24399 #include <netdb.h>
24400
24401 int
24402 main ()
24403 {
24404  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24405   ;
24406   return 0;
24407 }
24408 _ACEOF
24409 rm -f conftest.$ac_objext conftest$ac_exeext
24410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24411   (eval $ac_link) 2>conftest.er1
24412   ac_status=$?
24413   grep -v '^ *+' conftest.er1 >conftest.err
24414   rm -f conftest.er1
24415   cat conftest.err >&5
24416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417   (exit $ac_status); } &&
24418          { ac_try='test -z "$ac_c_werror_flag"
24419                          || test ! -s conftest.err'
24420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421   (eval $ac_try) 2>&5
24422   ac_status=$?
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); }; } &&
24425          { ac_try='test -s conftest$ac_exeext'
24426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427   (eval $ac_try) 2>&5
24428   ac_status=$?
24429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430   (exit $ac_status); }; }; then
24431
24432
24433 cat >>confdefs.h <<\_ACEOF
24434 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24435 _ACEOF
24436
24437         gethostbynamerstyle=GNU
24438
24439 else
24440   echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24442
24443 fi
24444 rm -f conftest.err conftest.$ac_objext \
24445       conftest$ac_exeext conftest.$ac_ext
24446 if test "x$gethostbynamerstyle" = "x"; then
24447         cat >conftest.$ac_ext <<_ACEOF
24448 /* confdefs.h.  */
24449 _ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h.  */
24453
24454 #include <stdio.h>
24455 #include <netdb.h>
24456
24457 int
24458 main ()
24459 {
24460  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24461   ;
24462   return 0;
24463 }
24464 _ACEOF
24465 rm -f conftest.$ac_objext conftest$ac_exeext
24466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24467   (eval $ac_link) 2>conftest.er1
24468   ac_status=$?
24469   grep -v '^ *+' conftest.er1 >conftest.err
24470   rm -f conftest.er1
24471   cat conftest.err >&5
24472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); } &&
24474          { ac_try='test -z "$ac_c_werror_flag"
24475                          || test ! -s conftest.err'
24476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477   (eval $ac_try) 2>&5
24478   ac_status=$?
24479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); }; } &&
24481          { ac_try='test -s conftest$ac_exeext'
24482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483   (eval $ac_try) 2>&5
24484   ac_status=$?
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); }; }; then
24487
24488
24489 cat >>confdefs.h <<\_ACEOF
24490 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24491 _ACEOF
24492
24493                 gethostbynamerstyle=SYSV
24494
24495 else
24496   echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24498
24499 fi
24500 rm -f conftest.err conftest.$ac_objext \
24501       conftest$ac_exeext conftest.$ac_ext
24502 fi
24503 if test "x$gethostbynamerstyle" = "x"; then
24504         cat >conftest.$ac_ext <<_ACEOF
24505 /* confdefs.h.  */
24506 _ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h.  */
24510
24511 #include <stdio.h>
24512 #include <netdb.h>
24513
24514 int
24515 main ()
24516 {
24517  gethostbyname(NULL)
24518   ;
24519   return 0;
24520 }
24521 _ACEOF
24522 rm -f conftest.$ac_objext conftest$ac_exeext
24523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24524   (eval $ac_link) 2>conftest.er1
24525   ac_status=$?
24526   grep -v '^ *+' conftest.er1 >conftest.err
24527   rm -f conftest.er1
24528   cat conftest.err >&5
24529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530   (exit $ac_status); } &&
24531          { ac_try='test -z "$ac_c_werror_flag"
24532                          || test ! -s conftest.err'
24533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534   (eval $ac_try) 2>&5
24535   ac_status=$?
24536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537   (exit $ac_status); }; } &&
24538          { ac_try='test -s conftest$ac_exeext'
24539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540   (eval $ac_try) 2>&5
24541   ac_status=$?
24542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); }; }; then
24544
24545
24546 cat >>confdefs.h <<\_ACEOF
24547 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24548 _ACEOF
24549
24550                 gethostbynamerstyle=BSD
24551
24552 else
24553   echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24555
24556 fi
24557 rm -f conftest.err conftest.$ac_objext \
24558       conftest$ac_exeext conftest.$ac_ext
24559 fi
24560
24561 if test "x$gethostbynamerstyle" = "x"; then
24562         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24563 echo "${ECHO_T}none!  It must not exist, here." >&6
24564 else
24565         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24566 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
24567 fi
24568
24569 if test "x$gethostbynamerstyle" = "xBSD"; then
24570         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24571 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24572 fi
24573
24574
24575 cat >>confdefs.h <<\_ACEOF
24576 #define POSIXSTYLE 1
24577 _ACEOF
24578
24579
24580 cat >>confdefs.h <<\_ACEOF
24581 #define SOLARISSTYLE 2
24582 _ACEOF
24583
24584 ctimerstyle=""
24585 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24586 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h.  */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h.  */
24593
24594 #include <time.h>
24595
24596 int
24597 main ()
24598 {
24599  ctime_r(NULL, NULL, 0)
24600   ;
24601   return 0;
24602 }
24603 _ACEOF
24604 rm -f conftest.$ac_objext conftest$ac_exeext
24605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24606   (eval $ac_link) 2>conftest.er1
24607   ac_status=$?
24608   grep -v '^ *+' conftest.er1 >conftest.err
24609   rm -f conftest.er1
24610   cat conftest.err >&5
24611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612   (exit $ac_status); } &&
24613          { ac_try='test -z "$ac_c_werror_flag"
24614                          || test ! -s conftest.err'
24615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616   (eval $ac_try) 2>&5
24617   ac_status=$?
24618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); }; } &&
24620          { ac_try='test -s conftest$ac_exeext'
24621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24622   (eval $ac_try) 2>&5
24623   ac_status=$?
24624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625   (exit $ac_status); }; }; then
24626
24627
24628 cat >>confdefs.h <<\_ACEOF
24629 #define CTIMERSTYLE SOLARISSTYLE
24630 _ACEOF
24631
24632         ctimerstyle="SOLARIS"
24633
24634 else
24635   echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24637
24638 fi
24639 rm -f conftest.err conftest.$ac_objext \
24640       conftest$ac_exeext conftest.$ac_ext
24641 if test "x$ctimerstyle" = "x"; then
24642         cat >conftest.$ac_ext <<_ACEOF
24643 /* confdefs.h.  */
24644 _ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h.  */
24648
24649 #include <time.h>
24650
24651 int
24652 main ()
24653 {
24654  ctime_r(NULL, NULL)
24655   ;
24656   return 0;
24657 }
24658 _ACEOF
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24661   (eval $ac_link) 2>conftest.er1
24662   ac_status=$?
24663   grep -v '^ *+' conftest.er1 >conftest.err
24664   rm -f conftest.er1
24665   cat conftest.err >&5
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); } &&
24668          { ac_try='test -z "$ac_c_werror_flag"
24669                          || test ! -s conftest.err'
24670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); }; } &&
24675          { ac_try='test -s conftest$ac_exeext'
24676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677   (eval $ac_try) 2>&5
24678   ac_status=$?
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); }; }; then
24681
24682
24683 cat >>confdefs.h <<\_ACEOF
24684 #define CTIMERSTYLE POSIXSTYLE
24685 _ACEOF
24686
24687                 ctimerstyle="POSIX"
24688
24689 else
24690   echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24692
24693 fi
24694 rm -f conftest.err conftest.$ac_objext \
24695       conftest$ac_exeext conftest.$ac_ext
24696 fi
24697
24698 if test "x$ctimerstyle" = "x"; then
24699         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24700 echo "${ECHO_T}none!  It must not exist, here." >&6
24701 else
24702         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24703 echo "${ECHO_T}${ctimerstyle}-style" >&6
24704 fi
24705
24706 HOSTINFO=$host
24707
24708
24709
24710 top_builddir=`pwd`
24711 export top_builddir
24712 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24713 echo "${ECHO_T}top_builddir=$top_builddir" >&6
24714
24715
24716
24717
24718
24719 mysubdirs="$LIBLTDLPATH"
24720 if test "x$EXPERIMENTAL" = "xyes"; then
24721   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
24722     mysubdirs=`echo $mysubdirs $bar`
24723 else
24724         for bar in `cat "${srcdir}"/src/modules/stable`; do
24725     if test -f "${srcdir}"/src/modules/$bar/configure; then
24726       mysubdirs="$mysubdirs src/modules/$bar"
24727     fi
24728   done
24729 fi
24730
24731 if test "x$EXPERIMENTAL" = "xyes"; then
24732   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
24733     MODULES="$MODULES $foo"
24734   done
24735 else
24736             for foo in `cat "${srcdir}"/src/modules/stable`; do
24737     MODULES="$MODULES $foo"
24738    done
24739 fi
24740
24741
24742
24743 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24744
24745
24746
24747
24748           ac_config_commands="$ac_config_commands stamp-h"
24749
24750           ac_config_commands="$ac_config_commands build-radpaths-h"
24751
24752           ac_config_commands="$ac_config_commands main-chmod"
24753
24754           ac_config_commands="$ac_config_commands scripts-chmod"
24755
24756
24757
24758
24759
24760 USE_SHARED_LIBS=$enable_shared
24761
24762 USE_STATIC_LIBS=$enable_static
24763
24764
24765
24766
24767
24768
24769                                                                                                                                                       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"
24770 cat >confcache <<\_ACEOF
24771 # This file is a shell script that caches the results of configure
24772 # tests run on this system so they can be shared between configure
24773 # scripts and configure runs, see configure's option --config-cache.
24774 # It is not useful on other systems.  If it contains results you don't
24775 # want to keep, you may remove or edit it.
24776 #
24777 # config.status only pays attention to the cache file if you give it
24778 # the --recheck option to rerun configure.
24779 #
24780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24782 # following values.
24783
24784 _ACEOF
24785
24786 # The following way of writing the cache mishandles newlines in values,
24787 # but we know of no workaround that is simple, portable, and efficient.
24788 # So, don't put newlines in cache variables' values.
24789 # Ultrix sh set writes to stderr and can't be redirected directly,
24790 # and sets the high bit in the cache file unless we assign to the vars.
24791 {
24792   (set) 2>&1 |
24793     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24794     *ac_space=\ *)
24795       # `set' does not quote correctly, so add quotes (double-quote
24796       # substitution turns \\\\ into \\, and sed turns \\ into \).
24797       sed -n \
24798         "s/'/'\\\\''/g;
24799           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24800       ;;
24801     *)
24802       # `set' quotes correctly as required by POSIX, so do not add quotes.
24803       sed -n \
24804         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24805       ;;
24806     esac;
24807 } |
24808   sed '
24809      t clear
24810      : clear
24811      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24812      t end
24813      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24814      : end' >>confcache
24815 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24816   if test -w $cache_file; then
24817     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24818     cat confcache >$cache_file
24819   else
24820     echo "not updating unwritable cache $cache_file"
24821   fi
24822 fi
24823 rm -f confcache
24824
24825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24826 # Let make expand exec_prefix.
24827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24828
24829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24831 # trailing colons and then remove the whole line if VPATH becomes empty
24832 # (actually we leave an empty line to preserve line numbers).
24833 if test "x$srcdir" = x.; then
24834   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24835 s/:*\$(srcdir):*/:/;
24836 s/:*\${srcdir}:*/:/;
24837 s/:*@srcdir@:*/:/;
24838 s/^\([^=]*=[     ]*\):*/\1/;
24839 s/:*$//;
24840 s/^[^=]*=[       ]*$//;
24841 }'
24842 fi
24843
24844 DEFS=-DHAVE_CONFIG_H
24845
24846 ac_libobjs=
24847 ac_ltlibobjs=
24848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24849   # 1. Remove the extension, and $U if already installed.
24850   ac_i=`echo "$ac_i" |
24851          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24852   # 2. Add them.
24853   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24854   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24855 done
24856 LIBOBJS=$ac_libobjs
24857
24858 LTLIBOBJS=$ac_ltlibobjs
24859
24860
24861
24862 : ${CONFIG_STATUS=./config.status}
24863 ac_clean_files_save=$ac_clean_files
24864 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24865 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24866 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24867 cat >$CONFIG_STATUS <<_ACEOF
24868 #! $SHELL
24869 # Generated by $as_me.
24870 # Run this file to recreate the current configuration.
24871 # Compiler output produced by configure, useful for debugging
24872 # configure, is in config.log if it exists.
24873
24874 debug=false
24875 ac_cs_recheck=false
24876 ac_cs_silent=false
24877 SHELL=\${CONFIG_SHELL-$SHELL}
24878 _ACEOF
24879
24880 cat >>$CONFIG_STATUS <<\_ACEOF
24881 ## --------------------- ##
24882 ## M4sh Initialization.  ##
24883 ## --------------------- ##
24884
24885 # Be Bourne compatible
24886 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24887   emulate sh
24888   NULLCMD=:
24889   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24890   # is contrary to our usage.  Disable this feature.
24891   alias -g '${1+"$@"}'='"$@"'
24892 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24893   set -o posix
24894 fi
24895 DUALCASE=1; export DUALCASE # for MKS sh
24896
24897 # Support unset when possible.
24898 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24899   as_unset=unset
24900 else
24901   as_unset=false
24902 fi
24903
24904
24905 # Work around bugs in pre-3.0 UWIN ksh.
24906 $as_unset ENV MAIL MAILPATH
24907 PS1='$ '
24908 PS2='> '
24909 PS4='+ '
24910
24911 # NLS nuisances.
24912 for as_var in \
24913   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24914   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24915   LC_TELEPHONE LC_TIME
24916 do
24917   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24918     eval $as_var=C; export $as_var
24919   else
24920     $as_unset $as_var
24921   fi
24922 done
24923
24924 # Required to use basename.
24925 if expr a : '\(a\)' >/dev/null 2>&1; then
24926   as_expr=expr
24927 else
24928   as_expr=false
24929 fi
24930
24931 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24932   as_basename=basename
24933 else
24934   as_basename=false
24935 fi
24936
24937
24938 # Name of the executable.
24939 as_me=`$as_basename "$0" ||
24940 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24941          X"$0" : 'X\(//\)$' \| \
24942          X"$0" : 'X\(/\)$' \| \
24943          .     : '\(.\)' 2>/dev/null ||
24944 echo X/"$0" |
24945     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24946           /^X\/\(\/\/\)$/{ s//\1/; q; }
24947           /^X\/\(\/\).*/{ s//\1/; q; }
24948           s/.*/./; q'`
24949
24950
24951 # PATH needs CR, and LINENO needs CR and PATH.
24952 # Avoid depending upon Character Ranges.
24953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24956 as_cr_digits='0123456789'
24957 as_cr_alnum=$as_cr_Letters$as_cr_digits
24958
24959 # The user is always right.
24960 if test "${PATH_SEPARATOR+set}" != set; then
24961   echo "#! /bin/sh" >conf$$.sh
24962   echo  "exit 0"   >>conf$$.sh
24963   chmod +x conf$$.sh
24964   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24965     PATH_SEPARATOR=';'
24966   else
24967     PATH_SEPARATOR=:
24968   fi
24969   rm -f conf$$.sh
24970 fi
24971
24972
24973   as_lineno_1=$LINENO
24974   as_lineno_2=$LINENO
24975   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24976   test "x$as_lineno_1" != "x$as_lineno_2" &&
24977   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24978   # Find who we are.  Look in the path if we contain no path at all
24979   # relative or not.
24980   case $0 in
24981     *[\\/]* ) as_myself=$0 ;;
24982     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24983 for as_dir in $PATH
24984 do
24985   IFS=$as_save_IFS
24986   test -z "$as_dir" && as_dir=.
24987   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24988 done
24989
24990        ;;
24991   esac
24992   # We did not find ourselves, most probably we were run as `sh COMMAND'
24993   # in which case we are not to be found in the path.
24994   if test "x$as_myself" = x; then
24995     as_myself=$0
24996   fi
24997   if test ! -f "$as_myself"; then
24998     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24999 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25000    { (exit 1); exit 1; }; }
25001   fi
25002   case $CONFIG_SHELL in
25003   '')
25004     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25005 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25006 do
25007   IFS=$as_save_IFS
25008   test -z "$as_dir" && as_dir=.
25009   for as_base in sh bash ksh sh5; do
25010          case $as_dir in
25011          /*)
25012            if ("$as_dir/$as_base" -c '
25013   as_lineno_1=$LINENO
25014   as_lineno_2=$LINENO
25015   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25016   test "x$as_lineno_1" != "x$as_lineno_2" &&
25017   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25018              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25019              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25020              CONFIG_SHELL=$as_dir/$as_base
25021              export CONFIG_SHELL
25022              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25023            fi;;
25024          esac
25025        done
25026 done
25027 ;;
25028   esac
25029
25030   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25031   # uniformly replaced by the line number.  The first 'sed' inserts a
25032   # line-number line before each line; the second 'sed' does the real
25033   # work.  The second script uses 'N' to pair each line-number line
25034   # with the numbered line, and appends trailing '-' during
25035   # substitution so that $LINENO is not a special case at line end.
25036   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25037   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25038   sed '=' <$as_myself |
25039     sed '
25040       N
25041       s,$,-,
25042       : loop
25043       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25044       t loop
25045       s,-$,,
25046       s,^['$as_cr_digits']*\n,,
25047     ' >$as_me.lineno &&
25048   chmod +x $as_me.lineno ||
25049     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25050 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25051    { (exit 1); exit 1; }; }
25052
25053   # Don't try to exec as it changes $[0], causing all sort of problems
25054   # (the dirname of $[0] is not the place where we might find the
25055   # original and so on.  Autoconf is especially sensible to this).
25056   . ./$as_me.lineno
25057   # Exit status is that of the last command.
25058   exit
25059 }
25060
25061
25062 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25063   *c*,-n*) ECHO_N= ECHO_C='
25064 ' ECHO_T='      ' ;;
25065   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25066   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25067 esac
25068
25069 if expr a : '\(a\)' >/dev/null 2>&1; then
25070   as_expr=expr
25071 else
25072   as_expr=false
25073 fi
25074
25075 rm -f conf$$ conf$$.exe conf$$.file
25076 echo >conf$$.file
25077 if ln -s conf$$.file conf$$ 2>/dev/null; then
25078   # We could just check for DJGPP; but this test a) works b) is more generic
25079   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25080   if test -f conf$$.exe; then
25081     # Don't use ln at all; we don't have any links
25082     as_ln_s='cp -p'
25083   else
25084     as_ln_s='ln -s'
25085   fi
25086 elif ln conf$$.file conf$$ 2>/dev/null; then
25087   as_ln_s=ln
25088 else
25089   as_ln_s='cp -p'
25090 fi
25091 rm -f conf$$ conf$$.exe conf$$.file
25092
25093 if mkdir -p . 2>/dev/null; then
25094   as_mkdir_p=:
25095 else
25096   test -d ./-p && rmdir ./-p
25097   as_mkdir_p=false
25098 fi
25099
25100 as_executable_p="test -f"
25101
25102 # Sed expression to map a string onto a valid CPP name.
25103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25104
25105 # Sed expression to map a string onto a valid variable name.
25106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25107
25108
25109 # IFS
25110 # We need space, tab and new line, in precisely that order.
25111 as_nl='
25112 '
25113 IFS="   $as_nl"
25114
25115 # CDPATH.
25116 $as_unset CDPATH
25117
25118 exec 6>&1
25119
25120 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25121 # report actual input values of CONFIG_FILES etc. instead of their
25122 # values after options handling.  Logging --version etc. is OK.
25123 exec 5>>config.log
25124 {
25125   echo
25126   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25127 ## Running $as_me. ##
25128 _ASBOX
25129 } >&5
25130 cat >&5 <<_CSEOF
25131
25132 This file was extended by $as_me, which was
25133 generated by GNU Autoconf 2.59.  Invocation command line was
25134
25135   CONFIG_FILES    = $CONFIG_FILES
25136   CONFIG_HEADERS  = $CONFIG_HEADERS
25137   CONFIG_LINKS    = $CONFIG_LINKS
25138   CONFIG_COMMANDS = $CONFIG_COMMANDS
25139   $ $0 $@
25140
25141 _CSEOF
25142 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25143 echo >&5
25144 _ACEOF
25145
25146 # Files that config.status was made for.
25147 if test -n "$ac_config_files"; then
25148   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25149 fi
25150
25151 if test -n "$ac_config_headers"; then
25152   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25153 fi
25154
25155 if test -n "$ac_config_links"; then
25156   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25157 fi
25158
25159 if test -n "$ac_config_commands"; then
25160   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25161 fi
25162
25163 cat >>$CONFIG_STATUS <<\_ACEOF
25164
25165 ac_cs_usage="\
25166 \`$as_me' instantiates files from templates according to the
25167 current configuration.
25168
25169 Usage: $0 [OPTIONS] [FILE]...
25170
25171   -h, --help       print this help, then exit
25172   -V, --version    print version number, then exit
25173   -q, --quiet      do not print progress messages
25174   -d, --debug      don't remove temporary files
25175       --recheck    update $as_me by reconfiguring in the same conditions
25176   --file=FILE[:TEMPLATE]
25177                    instantiate the configuration file FILE
25178   --header=FILE[:TEMPLATE]
25179                    instantiate the configuration header FILE
25180
25181 Configuration files:
25182 $config_files
25183
25184 Configuration headers:
25185 $config_headers
25186
25187 Configuration commands:
25188 $config_commands
25189
25190 Report bugs to <bug-autoconf@gnu.org>."
25191 _ACEOF
25192
25193 cat >>$CONFIG_STATUS <<_ACEOF
25194 ac_cs_version="\\
25195 config.status
25196 configured by $0, generated by GNU Autoconf 2.59,
25197   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25198
25199 Copyright (C) 2003 Free Software Foundation, Inc.
25200 This config.status script is free software; the Free Software Foundation
25201 gives unlimited permission to copy, distribute and modify it."
25202 srcdir=$srcdir
25203 _ACEOF
25204
25205 cat >>$CONFIG_STATUS <<\_ACEOF
25206 # If no file are specified by the user, then we need to provide default
25207 # value.  By we need to know if files were specified by the user.
25208 ac_need_defaults=:
25209 while test $# != 0
25210 do
25211   case $1 in
25212   --*=*)
25213     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25214     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25215     ac_shift=:
25216     ;;
25217   -*)
25218     ac_option=$1
25219     ac_optarg=$2
25220     ac_shift=shift
25221     ;;
25222   *) # This is not an option, so the user has probably given explicit
25223      # arguments.
25224      ac_option=$1
25225      ac_need_defaults=false;;
25226   esac
25227
25228   case $ac_option in
25229   # Handling of the options.
25230 _ACEOF
25231 cat >>$CONFIG_STATUS <<\_ACEOF
25232   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25233     ac_cs_recheck=: ;;
25234   --version | --vers* | -V )
25235     echo "$ac_cs_version"; exit 0 ;;
25236   --he | --h)
25237     # Conflict between --help and --header
25238     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25239 Try \`$0 --help' for more information." >&5
25240 echo "$as_me: error: ambiguous option: $1
25241 Try \`$0 --help' for more information." >&2;}
25242    { (exit 1); exit 1; }; };;
25243   --help | --hel | -h )
25244     echo "$ac_cs_usage"; exit 0 ;;
25245   --debug | --d* | -d )
25246     debug=: ;;
25247   --file | --fil | --fi | --f )
25248     $ac_shift
25249     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25250     ac_need_defaults=false;;
25251   --header | --heade | --head | --hea )
25252     $ac_shift
25253     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25254     ac_need_defaults=false;;
25255   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25256   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25257     ac_cs_silent=: ;;
25258
25259   # This is an error.
25260   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25261 Try \`$0 --help' for more information." >&5
25262 echo "$as_me: error: unrecognized option: $1
25263 Try \`$0 --help' for more information." >&2;}
25264    { (exit 1); exit 1; }; } ;;
25265
25266   *) ac_config_targets="$ac_config_targets $1" ;;
25267
25268   esac
25269   shift
25270 done
25271
25272 ac_configure_extra_args=
25273
25274 if $ac_cs_silent; then
25275   exec 6>/dev/null
25276   ac_configure_extra_args="$ac_configure_extra_args --silent"
25277 fi
25278
25279 _ACEOF
25280 cat >>$CONFIG_STATUS <<_ACEOF
25281 if \$ac_cs_recheck; then
25282   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25283   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25284 fi
25285
25286 _ACEOF
25287
25288
25289
25290
25291
25292 cat >>$CONFIG_STATUS <<\_ACEOF
25293 for ac_config_target in $ac_config_targets
25294 do
25295   case "$ac_config_target" in
25296   # Handling of arguments.
25297   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25298   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25299   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25300   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25301   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25302   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25303   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25304   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25305   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25306   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25307   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25308   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25309   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25310   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25311   "./raddb/radrelay.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
25312   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25313   "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25314   "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25315   "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25316   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25317   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25319    { (exit 1); exit 1; }; };;
25320   esac
25321 done
25322
25323 # If the user did not use the arguments to specify the items to instantiate,
25324 # then the envvar interface is used.  Set only those that are not.
25325 # We use the long form for the default assignment because of an extremely
25326 # bizarre bug on SunOS 4.1.3.
25327 if $ac_need_defaults; then
25328   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25329   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25330   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25331 fi
25332
25333 # Have a temporary directory for convenience.  Make it in the build tree
25334 # simply because there is no reason to put it here, and in addition,
25335 # creating and moving files from /tmp can sometimes cause problems.
25336 # Create a temporary directory, and hook for its removal unless debugging.
25337 $debug ||
25338 {
25339   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25340   trap '{ (exit 1); exit 1; }' 1 2 13 15
25341 }
25342
25343 # Create a (secure) tmp directory for tmp files.
25344
25345 {
25346   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25347   test -n "$tmp" && test -d "$tmp"
25348 }  ||
25349 {
25350   tmp=./confstat$$-$RANDOM
25351   (umask 077 && mkdir $tmp)
25352 } ||
25353 {
25354    echo "$me: cannot create a temporary directory in ." >&2
25355    { (exit 1); exit 1; }
25356 }
25357
25358 _ACEOF
25359
25360 cat >>$CONFIG_STATUS <<_ACEOF
25361
25362 #
25363 # CONFIG_FILES section.
25364 #
25365
25366 # No need to generate the scripts if there are no CONFIG_FILES.
25367 # This happens for instance when ./config.status config.h
25368 if test -n "\$CONFIG_FILES"; then
25369   # Protect against being on the right side of a sed subst in config.status.
25370   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25371    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25372 s,@SHELL@,$SHELL,;t t
25373 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25374 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25375 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25376 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25377 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25378 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25379 s,@exec_prefix@,$exec_prefix,;t t
25380 s,@prefix@,$prefix,;t t
25381 s,@program_transform_name@,$program_transform_name,;t t
25382 s,@bindir@,$bindir,;t t
25383 s,@sbindir@,$sbindir,;t t
25384 s,@libexecdir@,$libexecdir,;t t
25385 s,@datadir@,$datadir,;t t
25386 s,@sysconfdir@,$sysconfdir,;t t
25387 s,@sharedstatedir@,$sharedstatedir,;t t
25388 s,@localstatedir@,$localstatedir,;t t
25389 s,@libdir@,$libdir,;t t
25390 s,@includedir@,$includedir,;t t
25391 s,@oldincludedir@,$oldincludedir,;t t
25392 s,@infodir@,$infodir,;t t
25393 s,@mandir@,$mandir,;t t
25394 s,@build_alias@,$build_alias,;t t
25395 s,@host_alias@,$host_alias,;t t
25396 s,@target_alias@,$target_alias,;t t
25397 s,@DEFS@,$DEFS,;t t
25398 s,@ECHO_C@,$ECHO_C,;t t
25399 s,@ECHO_N@,$ECHO_N,;t t
25400 s,@ECHO_T@,$ECHO_T,;t t
25401 s,@LIBS@,$LIBS,;t t
25402 s,@CC@,$CC,;t t
25403 s,@CFLAGS@,$CFLAGS,;t t
25404 s,@LDFLAGS@,$LDFLAGS,;t t
25405 s,@CPPFLAGS@,$CPPFLAGS,;t t
25406 s,@ac_ct_CC@,$ac_ct_CC,;t t
25407 s,@EXEEXT@,$EXEEXT,;t t
25408 s,@OBJEXT@,$OBJEXT,;t t
25409 s,@CXX@,$CXX,;t t
25410 s,@CXXFLAGS@,$CXXFLAGS,;t t
25411 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25412 s,@CPP@,$CPP,;t t
25413 s,@EGREP@,$EGREP,;t t
25414 s,@RANLIB@,$RANLIB,;t t
25415 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25416 s,@GMAKE@,$GMAKE,;t t
25417 s,@MAKE@,$MAKE,;t t
25418 s,@LTDL_SUBDIRS@,$LTDL_SUBDIRS,;t t
25419 s,@LIBTOOL@,$LIBTOOL,;t t
25420 s,@build@,$build,;t t
25421 s,@build_cpu@,$build_cpu,;t t
25422 s,@build_vendor@,$build_vendor,;t t
25423 s,@build_os@,$build_os,;t t
25424 s,@host@,$host,;t t
25425 s,@host_cpu@,$host_cpu,;t t
25426 s,@host_vendor@,$host_vendor,;t t
25427 s,@host_os@,$host_os,;t t
25428 s,@LN_S@,$LN_S,;t t
25429 s,@ECHO@,$ECHO,;t t
25430 s,@AR@,$AR,;t t
25431 s,@ac_ct_AR@,$ac_ct_AR,;t t
25432 s,@STRIP@,$STRIP,;t t
25433 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25434 s,@CXXCPP@,$CXXCPP,;t t
25435 s,@F77@,$F77,;t t
25436 s,@FFLAGS@,$FFLAGS,;t t
25437 s,@ac_ct_F77@,$ac_ct_F77,;t t
25438 s,@docdir@,$docdir,;t t
25439 s,@logdir@,$logdir,;t t
25440 s,@radacctdir@,$radacctdir,;t t
25441 s,@raddbdir@,$raddbdir,;t t
25442 s,@PERL@,$PERL,;t t
25443 s,@SNMPGET@,$SNMPGET,;t t
25444 s,@SNMPWALK@,$SNMPWALK,;t t
25445 s,@RUSERS@,$RUSERS,;t t
25446 s,@ACLOCAL@,$ACLOCAL,;t t
25447 s,@AUTOCONF@,$AUTOCONF,;t t
25448 s,@AUTOHEADER@,$AUTOHEADER,;t t
25449 s,@LOCATE@,$LOCATE,;t t
25450 s,@DIRNAME@,$DIRNAME,;t t
25451 s,@GREP@,$GREP,;t t
25452 s,@REGEX@,$REGEX,;t t
25453 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25454 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25455 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25456 s,@PCAP_LIBS@,$PCAP_LIBS,;t t
25457 s,@LIBPREFIX@,$LIBPREFIX,;t t
25458 s,@CRYPTLIB@,$CRYPTLIB,;t t
25459 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25460 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25461 s,@HOSTINFO@,$HOSTINFO,;t t
25462 s,@LIBLTDL@,$LIBLTDL,;t t
25463 s,@INCLTDL@,$INCLTDL,;t t
25464 s,@subdirs@,$subdirs,;t t
25465 s,@MODULES@,$MODULES,;t t
25466 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25467 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25468 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25469 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25470 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25471 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25472 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25473 s,@LIBOBJS@,$LIBOBJS,;t t
25474 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25475 CEOF
25476
25477 _ACEOF
25478
25479   cat >>$CONFIG_STATUS <<\_ACEOF
25480   # Split the substitutions into bite-sized pieces for seds with
25481   # small command number limits, like on Digital OSF/1 and HP-UX.
25482   ac_max_sed_lines=48
25483   ac_sed_frag=1 # Number of current file.
25484   ac_beg=1 # First line for current file.
25485   ac_end=$ac_max_sed_lines # Line after last line for current file.
25486   ac_more_lines=:
25487   ac_sed_cmds=
25488   while $ac_more_lines; do
25489     if test $ac_beg -gt 1; then
25490       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25491     else
25492       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25493     fi
25494     if test ! -s $tmp/subs.frag; then
25495       ac_more_lines=false
25496     else
25497       # The purpose of the label and of the branching condition is to
25498       # speed up the sed processing (if there are no `@' at all, there
25499       # is no need to browse any of the substitutions).
25500       # These are the two extra sed commands mentioned above.
25501       (echo ':t
25502   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25503       if test -z "$ac_sed_cmds"; then
25504         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25505       else
25506         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25507       fi
25508       ac_sed_frag=`expr $ac_sed_frag + 1`
25509       ac_beg=$ac_end
25510       ac_end=`expr $ac_end + $ac_max_sed_lines`
25511     fi
25512   done
25513   if test -z "$ac_sed_cmds"; then
25514     ac_sed_cmds=cat
25515   fi
25516 fi # test -n "$CONFIG_FILES"
25517
25518 _ACEOF
25519 cat >>$CONFIG_STATUS <<\_ACEOF
25520 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25521   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25522   case $ac_file in
25523   - | *:- | *:-:* ) # input from stdin
25524         cat >$tmp/stdin
25525         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25526         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25527   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25528         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25529   * )   ac_file_in=$ac_file.in ;;
25530   esac
25531
25532   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25533   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25535          X"$ac_file" : 'X\(//\)[^/]' \| \
25536          X"$ac_file" : 'X\(//\)$' \| \
25537          X"$ac_file" : 'X\(/\)' \| \
25538          .     : '\(.\)' 2>/dev/null ||
25539 echo X"$ac_file" |
25540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25541           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25542           /^X\(\/\/\)$/{ s//\1/; q; }
25543           /^X\(\/\).*/{ s//\1/; q; }
25544           s/.*/./; q'`
25545   { if $as_mkdir_p; then
25546     mkdir -p "$ac_dir"
25547   else
25548     as_dir="$ac_dir"
25549     as_dirs=
25550     while test ! -d "$as_dir"; do
25551       as_dirs="$as_dir $as_dirs"
25552       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25554          X"$as_dir" : 'X\(//\)[^/]' \| \
25555          X"$as_dir" : 'X\(//\)$' \| \
25556          X"$as_dir" : 'X\(/\)' \| \
25557          .     : '\(.\)' 2>/dev/null ||
25558 echo X"$as_dir" |
25559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25560           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25561           /^X\(\/\/\)$/{ s//\1/; q; }
25562           /^X\(\/\).*/{ s//\1/; q; }
25563           s/.*/./; q'`
25564     done
25565     test ! -n "$as_dirs" || mkdir $as_dirs
25566   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25567 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25568    { (exit 1); exit 1; }; }; }
25569
25570   ac_builddir=.
25571
25572 if test "$ac_dir" != .; then
25573   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25574   # A "../" for each directory in $ac_dir_suffix.
25575   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25576 else
25577   ac_dir_suffix= ac_top_builddir=
25578 fi
25579
25580 case $srcdir in
25581   .)  # No --srcdir option.  We are building in place.
25582     ac_srcdir=.
25583     if test -z "$ac_top_builddir"; then
25584        ac_top_srcdir=.
25585     else
25586        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25587     fi ;;
25588   [\\/]* | ?:[\\/]* )  # Absolute path.
25589     ac_srcdir=$srcdir$ac_dir_suffix;
25590     ac_top_srcdir=$srcdir ;;
25591   *) # Relative path.
25592     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25593     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25594 esac
25595
25596 # Do not use `cd foo && pwd` to compute absolute paths, because
25597 # the directories may not exist.
25598 case `pwd` in
25599 .) ac_abs_builddir="$ac_dir";;
25600 *)
25601   case "$ac_dir" in
25602   .) ac_abs_builddir=`pwd`;;
25603   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25604   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25605   esac;;
25606 esac
25607 case $ac_abs_builddir in
25608 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25609 *)
25610   case ${ac_top_builddir}. in
25611   .) ac_abs_top_builddir=$ac_abs_builddir;;
25612   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25613   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25614   esac;;
25615 esac
25616 case $ac_abs_builddir in
25617 .) ac_abs_srcdir=$ac_srcdir;;
25618 *)
25619   case $ac_srcdir in
25620   .) ac_abs_srcdir=$ac_abs_builddir;;
25621   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25622   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25623   esac;;
25624 esac
25625 case $ac_abs_builddir in
25626 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25627 *)
25628   case $ac_top_srcdir in
25629   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25630   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25631   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25632   esac;;
25633 esac
25634
25635
25636
25637   if test x"$ac_file" != x-; then
25638     { echo "$as_me:$LINENO: creating $ac_file" >&5
25639 echo "$as_me: creating $ac_file" >&6;}
25640     rm -f "$ac_file"
25641   fi
25642   # Let's still pretend it is `configure' which instantiates (i.e., don't
25643   # use $as_me), people would be surprised to read:
25644   #    /* config.h.  Generated by config.status.  */
25645   if test x"$ac_file" = x-; then
25646     configure_input=
25647   else
25648     configure_input="$ac_file.  "
25649   fi
25650   configure_input=$configure_input"Generated from `echo $ac_file_in |
25651                                      sed 's,.*/,,'` by configure."
25652
25653   # First look for the input files in the build tree, otherwise in the
25654   # src tree.
25655   ac_file_inputs=`IFS=:
25656     for f in $ac_file_in; do
25657       case $f in
25658       -) echo $tmp/stdin ;;
25659       [\\/$]*)
25660          # Absolute (can't be DOS-style, as IFS=:)
25661          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25662 echo "$as_me: error: cannot find input file: $f" >&2;}
25663    { (exit 1); exit 1; }; }
25664          echo "$f";;
25665       *) # Relative
25666          if test -f "$f"; then
25667            # Build tree
25668            echo "$f"
25669          elif test -f "$srcdir/$f"; then
25670            # Source tree
25671            echo "$srcdir/$f"
25672          else
25673            # /dev/null tree
25674            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25675 echo "$as_me: error: cannot find input file: $f" >&2;}
25676    { (exit 1); exit 1; }; }
25677          fi;;
25678       esac
25679     done` || { (exit 1); exit 1; }
25680 _ACEOF
25681 cat >>$CONFIG_STATUS <<_ACEOF
25682   sed "$ac_vpsub
25683 $extrasub
25684 _ACEOF
25685 cat >>$CONFIG_STATUS <<\_ACEOF
25686 :t
25687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25688 s,@configure_input@,$configure_input,;t t
25689 s,@srcdir@,$ac_srcdir,;t t
25690 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25691 s,@top_srcdir@,$ac_top_srcdir,;t t
25692 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25693 s,@builddir@,$ac_builddir,;t t
25694 s,@abs_builddir@,$ac_abs_builddir,;t t
25695 s,@top_builddir@,$ac_top_builddir,;t t
25696 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25697 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25698   rm -f $tmp/stdin
25699   if test x"$ac_file" != x-; then
25700     mv $tmp/out $ac_file
25701   else
25702     cat $tmp/out
25703     rm -f $tmp/out
25704   fi
25705
25706 done
25707 _ACEOF
25708 cat >>$CONFIG_STATUS <<\_ACEOF
25709
25710 #
25711 # CONFIG_HEADER section.
25712 #
25713
25714 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25715 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25716 #
25717 # ac_d sets the value in "#define NAME VALUE" lines.
25718 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25719 ac_dB='[         ].*$,\1#\2'
25720 ac_dC=' '
25721 ac_dD=',;t'
25722 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25723 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25724 ac_uB='$,\1#\2define\3'
25725 ac_uC=' '
25726 ac_uD=',;t'
25727
25728 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25729   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25730   case $ac_file in
25731   - | *:- | *:-:* ) # input from stdin
25732         cat >$tmp/stdin
25733         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25734         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25735   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25736         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25737   * )   ac_file_in=$ac_file.in ;;
25738   esac
25739
25740   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25741 echo "$as_me: creating $ac_file" >&6;}
25742
25743   # First look for the input files in the build tree, otherwise in the
25744   # src tree.
25745   ac_file_inputs=`IFS=:
25746     for f in $ac_file_in; do
25747       case $f in
25748       -) echo $tmp/stdin ;;
25749       [\\/$]*)
25750          # Absolute (can't be DOS-style, as IFS=:)
25751          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25752 echo "$as_me: error: cannot find input file: $f" >&2;}
25753    { (exit 1); exit 1; }; }
25754          # Do quote $f, to prevent DOS paths from being IFS'd.
25755          echo "$f";;
25756       *) # Relative
25757          if test -f "$f"; then
25758            # Build tree
25759            echo "$f"
25760          elif test -f "$srcdir/$f"; then
25761            # Source tree
25762            echo "$srcdir/$f"
25763          else
25764            # /dev/null tree
25765            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25766 echo "$as_me: error: cannot find input file: $f" >&2;}
25767    { (exit 1); exit 1; }; }
25768          fi;;
25769       esac
25770     done` || { (exit 1); exit 1; }
25771   # Remove the trailing spaces.
25772   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25773
25774 _ACEOF
25775
25776 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25777 # `conftest.undefs', that substitutes the proper values into
25778 # config.h.in to produce config.h.  The first handles `#define'
25779 # templates, and the second `#undef' templates.
25780 # And first: Protect against being on the right side of a sed subst in
25781 # config.status.  Protect against being in an unquoted here document
25782 # in config.status.
25783 rm -f conftest.defines conftest.undefs
25784 # Using a here document instead of a string reduces the quoting nightmare.
25785 # Putting comments in sed scripts is not portable.
25786 #
25787 # `end' is used to avoid that the second main sed command (meant for
25788 # 0-ary CPP macros) applies to n-ary macro definitions.
25789 # See the Autoconf documentation for `clear'.
25790 cat >confdef2sed.sed <<\_ACEOF
25791 s/[\\&,]/\\&/g
25792 s,[\\$`],\\&,g
25793 t clear
25794 : clear
25795 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25796 t end
25797 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25798 : end
25799 _ACEOF
25800 # If some macros were called several times there might be several times
25801 # the same #defines, which is useless.  Nevertheless, we may not want to
25802 # sort them, since we want the *last* AC-DEFINE to be honored.
25803 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25804 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25805 rm -f confdef2sed.sed
25806
25807 # This sed command replaces #undef with comments.  This is necessary, for
25808 # example, in the case of _POSIX_SOURCE, which is predefined and required
25809 # on some systems where configure will not decide to define it.
25810 cat >>conftest.undefs <<\_ACEOF
25811 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25812 _ACEOF
25813
25814 # Break up conftest.defines because some shells have a limit on the size
25815 # of here documents, and old seds have small limits too (100 cmds).
25816 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25817 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25818 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25819 echo '  :' >>$CONFIG_STATUS
25820 rm -f conftest.tail
25821 while grep . conftest.defines >/dev/null
25822 do
25823   # Write a limited-size here document to $tmp/defines.sed.
25824   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25825   # Speed up: don't consider the non `#define' lines.
25826   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25827   # Work around the forget-to-reset-the-flag bug.
25828   echo 't clr' >>$CONFIG_STATUS
25829   echo ': clr' >>$CONFIG_STATUS
25830   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25831   echo 'CEOF
25832   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25833   rm -f $tmp/in
25834   mv $tmp/out $tmp/in
25835 ' >>$CONFIG_STATUS
25836   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25837   rm -f conftest.defines
25838   mv conftest.tail conftest.defines
25839 done
25840 rm -f conftest.defines
25841 echo '  fi # grep' >>$CONFIG_STATUS
25842 echo >>$CONFIG_STATUS
25843
25844 # Break up conftest.undefs because some shells have a limit on the size
25845 # of here documents, and old seds have small limits too (100 cmds).
25846 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25847 rm -f conftest.tail
25848 while grep . conftest.undefs >/dev/null
25849 do
25850   # Write a limited-size here document to $tmp/undefs.sed.
25851   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25852   # Speed up: don't consider the non `#undef'
25853   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25854   # Work around the forget-to-reset-the-flag bug.
25855   echo 't clr' >>$CONFIG_STATUS
25856   echo ': clr' >>$CONFIG_STATUS
25857   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25858   echo 'CEOF
25859   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25860   rm -f $tmp/in
25861   mv $tmp/out $tmp/in
25862 ' >>$CONFIG_STATUS
25863   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25864   rm -f conftest.undefs
25865   mv conftest.tail conftest.undefs
25866 done
25867 rm -f conftest.undefs
25868
25869 cat >>$CONFIG_STATUS <<\_ACEOF
25870   # Let's still pretend it is `configure' which instantiates (i.e., don't
25871   # use $as_me), people would be surprised to read:
25872   #    /* config.h.  Generated by config.status.  */
25873   if test x"$ac_file" = x-; then
25874     echo "/* Generated by configure.  */" >$tmp/config.h
25875   else
25876     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25877   fi
25878   cat $tmp/in >>$tmp/config.h
25879   rm -f $tmp/in
25880   if test x"$ac_file" != x-; then
25881     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25882       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25883 echo "$as_me: $ac_file is unchanged" >&6;}
25884     else
25885       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25887          X"$ac_file" : 'X\(//\)[^/]' \| \
25888          X"$ac_file" : 'X\(//\)$' \| \
25889          X"$ac_file" : 'X\(/\)' \| \
25890          .     : '\(.\)' 2>/dev/null ||
25891 echo X"$ac_file" |
25892     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25893           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25894           /^X\(\/\/\)$/{ s//\1/; q; }
25895           /^X\(\/\).*/{ s//\1/; q; }
25896           s/.*/./; q'`
25897       { if $as_mkdir_p; then
25898     mkdir -p "$ac_dir"
25899   else
25900     as_dir="$ac_dir"
25901     as_dirs=
25902     while test ! -d "$as_dir"; do
25903       as_dirs="$as_dir $as_dirs"
25904       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25906          X"$as_dir" : 'X\(//\)[^/]' \| \
25907          X"$as_dir" : 'X\(//\)$' \| \
25908          X"$as_dir" : 'X\(/\)' \| \
25909          .     : '\(.\)' 2>/dev/null ||
25910 echo X"$as_dir" |
25911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25912           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25913           /^X\(\/\/\)$/{ s//\1/; q; }
25914           /^X\(\/\).*/{ s//\1/; q; }
25915           s/.*/./; q'`
25916     done
25917     test ! -n "$as_dirs" || mkdir $as_dirs
25918   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25919 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25920    { (exit 1); exit 1; }; }; }
25921
25922       rm -f $ac_file
25923       mv $tmp/config.h $ac_file
25924     fi
25925   else
25926     cat $tmp/config.h
25927     rm -f $tmp/config.h
25928   fi
25929 done
25930 _ACEOF
25931 cat >>$CONFIG_STATUS <<\_ACEOF
25932
25933 #
25934 # CONFIG_COMMANDS section.
25935 #
25936 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25937   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25938   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25939   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25940 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25941          X"$ac_dest" : 'X\(//\)[^/]' \| \
25942          X"$ac_dest" : 'X\(//\)$' \| \
25943          X"$ac_dest" : 'X\(/\)' \| \
25944          .     : '\(.\)' 2>/dev/null ||
25945 echo X"$ac_dest" |
25946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25947           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25948           /^X\(\/\/\)$/{ s//\1/; q; }
25949           /^X\(\/\).*/{ s//\1/; q; }
25950           s/.*/./; q'`
25951   { if $as_mkdir_p; then
25952     mkdir -p "$ac_dir"
25953   else
25954     as_dir="$ac_dir"
25955     as_dirs=
25956     while test ! -d "$as_dir"; do
25957       as_dirs="$as_dir $as_dirs"
25958       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25960          X"$as_dir" : 'X\(//\)[^/]' \| \
25961          X"$as_dir" : 'X\(//\)$' \| \
25962          X"$as_dir" : 'X\(/\)' \| \
25963          .     : '\(.\)' 2>/dev/null ||
25964 echo X"$as_dir" |
25965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25966           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25967           /^X\(\/\/\)$/{ s//\1/; q; }
25968           /^X\(\/\).*/{ s//\1/; q; }
25969           s/.*/./; q'`
25970     done
25971     test ! -n "$as_dirs" || mkdir $as_dirs
25972   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25973 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25974    { (exit 1); exit 1; }; }; }
25975
25976   ac_builddir=.
25977
25978 if test "$ac_dir" != .; then
25979   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25980   # A "../" for each directory in $ac_dir_suffix.
25981   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25982 else
25983   ac_dir_suffix= ac_top_builddir=
25984 fi
25985
25986 case $srcdir in
25987   .)  # No --srcdir option.  We are building in place.
25988     ac_srcdir=.
25989     if test -z "$ac_top_builddir"; then
25990        ac_top_srcdir=.
25991     else
25992        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25993     fi ;;
25994   [\\/]* | ?:[\\/]* )  # Absolute path.
25995     ac_srcdir=$srcdir$ac_dir_suffix;
25996     ac_top_srcdir=$srcdir ;;
25997   *) # Relative path.
25998     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25999     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26000 esac
26001
26002 # Do not use `cd foo && pwd` to compute absolute paths, because
26003 # the directories may not exist.
26004 case `pwd` in
26005 .) ac_abs_builddir="$ac_dir";;
26006 *)
26007   case "$ac_dir" in
26008   .) ac_abs_builddir=`pwd`;;
26009   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26010   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26011   esac;;
26012 esac
26013 case $ac_abs_builddir in
26014 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26015 *)
26016   case ${ac_top_builddir}. in
26017   .) ac_abs_top_builddir=$ac_abs_builddir;;
26018   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26019   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26020   esac;;
26021 esac
26022 case $ac_abs_builddir in
26023 .) ac_abs_srcdir=$ac_srcdir;;
26024 *)
26025   case $ac_srcdir in
26026   .) ac_abs_srcdir=$ac_abs_builddir;;
26027   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26028   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26029   esac;;
26030 esac
26031 case $ac_abs_builddir in
26032 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26033 *)
26034   case $ac_top_srcdir in
26035   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26036   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26037   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26038   esac;;
26039 esac
26040
26041
26042   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26043 echo "$as_me: executing $ac_dest commands" >&6;}
26044   case $ac_dest in
26045     stamp-h ) echo timestamp > src/include/stamp-h ;;
26046     build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26047     main-chmod ) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26048     scripts-chmod ) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26049   esac
26050 done
26051 _ACEOF
26052
26053 cat >>$CONFIG_STATUS <<\_ACEOF
26054
26055 { (exit 0); exit 0; }
26056 _ACEOF
26057 chmod +x $CONFIG_STATUS
26058 ac_clean_files=$ac_clean_files_save
26059
26060
26061 # configure is writing to config.log, and then calls config.status.
26062 # config.status does its own redirection, appending to config.log.
26063 # Unfortunately, on DOS this fails, as config.log is still kept open
26064 # by configure, so config.status won't be able to write to it; its
26065 # output is simply discarded.  So we exec the FD to /dev/null,
26066 # effectively closing config.log, so it can be properly (re)opened and
26067 # appended to by config.status.  When coming back to configure, we
26068 # need to make the FD available again.
26069 if test "$no_create" != yes; then
26070   ac_cs_success=:
26071   ac_config_status_args=
26072   test "$silent" = yes &&
26073     ac_config_status_args="$ac_config_status_args --quiet"
26074   exec 5>/dev/null
26075   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26076   exec 5>>config.log
26077   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26078   # would make configure fail if this is the last instruction.
26079   $ac_cs_success || { (exit 1); exit 1; }
26080 fi
26081
26082 #
26083 # CONFIG_SUBDIRS section.
26084 #
26085 if test "$no_recursion" != yes; then
26086
26087   # Remove --cache-file and --srcdir arguments so they do not pile up.
26088   ac_sub_configure_args=
26089   ac_prev=
26090   for ac_arg in $ac_configure_args; do
26091     if test -n "$ac_prev"; then
26092       ac_prev=
26093       continue
26094     fi
26095     case $ac_arg in
26096     -cache-file | --cache-file | --cache-fil | --cache-fi \
26097     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26098       ac_prev=cache_file ;;
26099     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26100     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26101     | --c=*)
26102       ;;
26103     --config-cache | -C)
26104       ;;
26105     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26106       ac_prev=srcdir ;;
26107     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26108       ;;
26109     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26110       ac_prev=prefix ;;
26111     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26112       ;;
26113     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26114     esac
26115   done
26116
26117   # Always prepend --prefix to ensure using the same prefix
26118   # in subdir configurations.
26119   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26120
26121   ac_popdir=`pwd`
26122   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26123
26124     # Do not complain, so a configure script can configure whichever
26125     # parts of a large source tree are present.
26126     test -d $srcdir/$ac_dir || continue
26127
26128     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26129 echo "$as_me: configuring in $ac_dir" >&6;}
26130     { if $as_mkdir_p; then
26131     mkdir -p "$ac_dir"
26132   else
26133     as_dir="$ac_dir"
26134     as_dirs=
26135     while test ! -d "$as_dir"; do
26136       as_dirs="$as_dir $as_dirs"
26137       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26139          X"$as_dir" : 'X\(//\)[^/]' \| \
26140          X"$as_dir" : 'X\(//\)$' \| \
26141          X"$as_dir" : 'X\(/\)' \| \
26142          .     : '\(.\)' 2>/dev/null ||
26143 echo X"$as_dir" |
26144     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26145           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26146           /^X\(\/\/\)$/{ s//\1/; q; }
26147           /^X\(\/\).*/{ s//\1/; q; }
26148           s/.*/./; q'`
26149     done
26150     test ! -n "$as_dirs" || mkdir $as_dirs
26151   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26152 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26153    { (exit 1); exit 1; }; }; }
26154
26155     ac_builddir=.
26156
26157 if test "$ac_dir" != .; then
26158   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26159   # A "../" for each directory in $ac_dir_suffix.
26160   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26161 else
26162   ac_dir_suffix= ac_top_builddir=
26163 fi
26164
26165 case $srcdir in
26166   .)  # No --srcdir option.  We are building in place.
26167     ac_srcdir=.
26168     if test -z "$ac_top_builddir"; then
26169        ac_top_srcdir=.
26170     else
26171        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26172     fi ;;
26173   [\\/]* | ?:[\\/]* )  # Absolute path.
26174     ac_srcdir=$srcdir$ac_dir_suffix;
26175     ac_top_srcdir=$srcdir ;;
26176   *) # Relative path.
26177     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26178     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26179 esac
26180
26181 # Do not use `cd foo && pwd` to compute absolute paths, because
26182 # the directories may not exist.
26183 case `pwd` in
26184 .) ac_abs_builddir="$ac_dir";;
26185 *)
26186   case "$ac_dir" in
26187   .) ac_abs_builddir=`pwd`;;
26188   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26189   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26190   esac;;
26191 esac
26192 case $ac_abs_builddir in
26193 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26194 *)
26195   case ${ac_top_builddir}. in
26196   .) ac_abs_top_builddir=$ac_abs_builddir;;
26197   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26198   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26199   esac;;
26200 esac
26201 case $ac_abs_builddir in
26202 .) ac_abs_srcdir=$ac_srcdir;;
26203 *)
26204   case $ac_srcdir in
26205   .) ac_abs_srcdir=$ac_abs_builddir;;
26206   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26207   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26208   esac;;
26209 esac
26210 case $ac_abs_builddir in
26211 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26212 *)
26213   case $ac_top_srcdir in
26214   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26215   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26216   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26217   esac;;
26218 esac
26219
26220
26221     cd $ac_dir
26222
26223     # Check for guested configure; otherwise get Cygnus style configure.
26224     if test -f $ac_srcdir/configure.gnu; then
26225       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26226     elif test -f $ac_srcdir/configure; then
26227       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26228     elif test -f $ac_srcdir/configure.in; then
26229       ac_sub_configure=$ac_configure
26230     else
26231       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26232 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26233       ac_sub_configure=
26234     fi
26235
26236     # The recursion is here.
26237     if test -n "$ac_sub_configure"; then
26238       # Make the cache file name correct relative to the subdirectory.
26239       case $cache_file in
26240       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26241       *) # Relative path.
26242         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26243       esac
26244
26245       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26246 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26247       # The eval makes quoting arguments work.
26248       eval $ac_sub_configure $ac_sub_configure_args \
26249            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26250         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26251 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26252    { (exit 1); exit 1; }; }
26253     fi
26254
26255     cd $ac_popdir
26256   done
26257 fi
26258