]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bind9/lib/bind/configure
This commit was generated by cvs2svn to compensate for changes in r161351,
[FreeBSD/FreeBSD.git] / contrib / bind9 / lib / bind / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.83.2.5.2.22 .
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="resolv/herror.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_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STD_CINCLUDES STD_CDEFINES STD_CWARNINGS CCOPT AR ARFLAGS LN ETAGS PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP ISC_PLATFORM_NEEDSYSSELECTH WANT_IRS_GR WANT_IRS_GR_OBJS WANT_IRS_PW WANT_IRS_PW_OBJS WANT_IRS_NIS WANT_IRS_NIS_OBJS WANT_IRS_NISGR_OBJS WANT_IRS_NISPW_OBJS WANT_IRS_DBPW_OBJS ALWAYS_DEFINES DO_PTHREADS WANT_IRS_THREADSGR_OBJS WANT_IRS_THREADSPW_OBJS WANT_IRS_THREADS_OBJS WANT_THREADS_OBJS USE_IFNAMELINKID ISC_THREAD_DIR DAEMON_OBJS NEED_DAEMON STRSEP_OBJS NEED_STRSEP NEED_STRERROR MKDEPCC MKDEPCFLAGS MKDEPPROG IRIX_DNSSEC_WARNINGS_HACK purify_path PURIFY LN_S ECHO ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL O A SA LIBTOOL_MKDEP_SED LIBTOOL_MODE_COMPILE LIBTOOL_MODE_INSTALL LIBTOOL_MODE_LINK HAS_INET6_STRUCTS ISC_PLATFORM_NEEDNETINETIN6H ISC_PLATFORM_NEEDNETINET6IN6H HAS_IN_ADDR6 NEED_IN6ADDR_ANY ISC_PLATFORM_HAVEIN6PKTINFO ISC_PLATFORM_FIXIN6ISADDR ISC_IPV6_H ISC_IPV6_O ISC_ISCIPV6_O ISC_IPV6_C HAVE_SIN6_SCOPE_ID HAVE_SOCKADDR_STORAGE ISC_PLATFORM_NEEDNTOP ISC_PLATFORM_NEEDPTON ISC_PLATFORM_NEEDATON HAVE_SA_LEN HAVE_MINIMUM_IFREQ BSD_COMP SOLARIS_BITTYPES USE_FIONBIO_IOCTL PORT_NONBLOCK PORT_DIR USE_POLL HAVE_MD5 SOLARIS2 PORT_INCLUDE ISC_PLATFORM_MSGHDRFLAVOR ISC_PLATFORM_NEEDPORTT ISC_LWRES_ENDHOSTENTINT ISC_LWRES_SETNETENTINT ISC_LWRES_ENDNETENTINT ISC_LWRES_GETHOSTBYADDRVOID ISC_LWRES_NEEDHERRNO ISC_LWRES_GETIPNODEPROTO ISC_LWRES_GETADDRINFOPROTO ISC_LWRES_GETNAMEINFOPROTO NEED_PSELECT NEED_GETTIMEOFDAY HAVE_STRNDUP ISC_PLATFORM_NEEDSTRSEP ISC_PLATFORM_NEEDVSNPRINTF ISC_EXTRA_OBJS ISC_EXTRA_SRCS USE_SYSERROR_LIST ISC_PLATFORM_QUADFORMAT ISC_SOCKLEN_T GETGROUPLIST_ARGS NET_R_ARGS NET_R_BAD NET_R_COPY NET_R_COPY_ARGS NET_R_OK NET_R_SETANSWER NET_R_RETURN GETNETBYADDR_ADDR_T NETENT_DATA NET_R_ENT_ARGS NET_R_SET_RESULT NET_R_SET_RETURN NET_R_END_RESULT NET_R_END_RETURN GROUP_R_ARGS GROUP_R_BAD GROUP_R_OK GROUP_R_RETURN GROUP_R_END_RESULT GROUP_R_END_RETURN GROUP_R_ENT_ARGS GROUP_R_SET_RESULT GROUP_R_SET_RETURN HOST_R_ARGS HOST_R_BAD HOST_R_COPY HOST_R_COPY_ARGS HOST_R_ERRNO HOST_R_OK HOST_R_RETURN HOST_R_SETANSWER HOSTENT_DATA HOST_R_END_RESULT HOST_R_END_RETURN HOST_R_ENT_ARGS HOST_R_SET_RESULT HOST_R_SET_RETURN SETPWENT_VOID SETGRENT_VOID NGR_R_ARGS NGR_R_BAD NGR_R_COPY NGR_R_COPY_ARGS NGR_R_OK NGR_R_RETURN NGR_R_PRIVATE NGR_R_END_RESULT NGR_R_END_RETURN NGR_R_ENT_ARGS NGR_R_SET_RESULT NGR_R_SET_RETURN PROTO_R_ARGS PROTO_R_BAD PROTO_R_COPY PROTO_R_COPY_ARGS PROTO_R_OK PROTO_R_SETANSWER PROTO_R_RETURN PROTO_R_END_RESULT PROTO_R_END_RETURN PROTO_R_ENT_ARGS PROTO_R_SET_RESULT PROTO_R_SET_RETURN PASS_R_ARGS PASS_R_BAD PASS_R_COPY PASS_R_COPY_ARGS PASS_R_OK PASS_R_RETURN PASS_R_END_RESULT PASS_R_END_RETURN PASS_R_ENT_ARGS PASS_R_SET_RESULT PASS_R_SET_RETURN SERV_R_ARGS SERV_R_BAD SERV_R_COPY SERV_R_COPY_ARGS SERV_R_OK SERV_R_SETANSWER SERV_R_RETURN SERV_R_END_RESULT SERV_R_END_RETURN SERV_R_ENT_ARGS SERV_R_SET_RESULT SERV_R_SET_RETURN SETNETGRENT_ARGS INNETGR_ARGS BIND9_TOP_BUILDDIR BIND9_VERSION LIBOBJS LTLIBOBJS'
468 ac_subst_files='BIND9_INCLUDES BIND9_MAKE_RULES LIBBIND_API'
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012 _ACEOF
1013 fi
1014
1015 if test -n "$ac_init_help"; then
1016
1017   cat <<\_ACEOF
1018
1019 Optional Features:
1020   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1021   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1022   --enable-threads      enable multithreading
1023   --enable-shared[=PKGS]
1024                           build shared libraries [default=yes]
1025   --enable-static[=PKGS]
1026                           build static libraries [default=yes]
1027   --enable-fast-install[=PKGS]
1028                           optimize for fast installation [default=yes]
1029   --disable-libtool-lock  avoid locking (might break parallel builds)
1030   --enable-ipv6         use IPv6 default=autodetect
1031
1032 Optional Packages:
1033   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1034   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1035  --with-irs-gr          Build ....
1036  --with-irs-pw          Build ....
1037  --with-irs-nis         Build ....
1038   --with-randomdev=PATH Specify path for random device
1039   --with-ptl2           on NetBSD, use the ptl2 thread library (experimental)
1040   --with-purify=PATH    use Rational purify
1041   --with-libtool        use GNU libtool (following indented options supported)
1042   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1043   --with-pic              try to use only PIC/non-PIC objects [default=use
1044                           both]
1045   --with-tags[=TAGS]
1046                           include additional configurations [automatic]
1047   --with-kame=PATH      use Kame IPv6 default path /usr/local/v6
1048
1049 Some influential environment variables:
1050   CC          C compiler command
1051   CFLAGS      C compiler flags
1052   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053               nonstandard directory <lib dir>
1054   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055               headers in a nonstandard directory <include dir>
1056   CPP         C preprocessor
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   CXXCPP      C++ preprocessor
1060   F77         Fortran 77 compiler command
1061   FFLAGS      Fortran 77 compiler flags
1062
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1065
1066 _ACEOF
1067 fi
1068
1069 if test "$ac_init_help" = "recursive"; then
1070   # If there are subdirs, report their specific --help.
1071   ac_popdir=`pwd`
1072   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073     test -d $ac_dir || continue
1074     ac_builddir=.
1075
1076 if test "$ac_dir" != .; then
1077   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078   # A "../" for each directory in $ac_dir_suffix.
1079   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 else
1081   ac_dir_suffix= ac_top_builddir=
1082 fi
1083
1084 case $srcdir in
1085   .)  # No --srcdir option.  We are building in place.
1086     ac_srcdir=.
1087     if test -z "$ac_top_builddir"; then
1088        ac_top_srcdir=.
1089     else
1090        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091     fi ;;
1092   [\\/]* | ?:[\\/]* )  # Absolute path.
1093     ac_srcdir=$srcdir$ac_dir_suffix;
1094     ac_top_srcdir=$srcdir ;;
1095   *) # Relative path.
1096     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 esac
1099
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1102 case `pwd` in
1103 .) ac_abs_builddir="$ac_dir";;
1104 *)
1105   case "$ac_dir" in
1106   .) ac_abs_builddir=`pwd`;;
1107   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109   esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *)
1114   case ${ac_top_builddir}. in
1115   .) ac_abs_top_builddir=$ac_abs_builddir;;
1116   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118   esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1122 *)
1123   case $ac_srcdir in
1124   .) ac_abs_srcdir=$ac_abs_builddir;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *)
1132   case $ac_top_srcdir in
1133   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136   esac;;
1137 esac
1138
1139     cd $ac_dir
1140     # Check for guested configure; otherwise get Cygnus style configure.
1141     if test -f $ac_srcdir/configure.gnu; then
1142       echo
1143       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1144     elif test -f $ac_srcdir/configure; then
1145       echo
1146       $SHELL $ac_srcdir/configure  --help=recursive
1147     elif test -f $ac_srcdir/configure.ac ||
1148            test -f $ac_srcdir/configure.in; then
1149       echo
1150       $ac_configure --help
1151     else
1152       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153     fi
1154     cd $ac_popdir
1155   done
1156 fi
1157
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1160   cat <<\_ACEOF
1161
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166   exit 0
1167 fi
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1172
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59.  Invocation command line was
1175
1176   $ $0 $@
1177
1178 _ACEOF
1179 {
1180 cat <<_ASUNAME
1181 ## --------- ##
1182 ## Platform. ##
1183 ## --------- ##
1184
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1193
1194 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1195 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1198 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1199 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1200 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1201
1202 _ASUNAME
1203
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1206 do
1207   IFS=$as_save_IFS
1208   test -z "$as_dir" && as_dir=.
1209   echo "PATH: $as_dir"
1210 done
1211
1212 } >&5
1213
1214 cat >&5 <<_ACEOF
1215
1216
1217 ## ----------- ##
1218 ## Core tests. ##
1219 ## ----------- ##
1220
1221 _ACEOF
1222
1223
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1235 do
1236   for ac_arg
1237   do
1238     case $ac_arg in
1239     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241     | -silent | --silent | --silen | --sile | --sil)
1242       continue ;;
1243     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245     esac
1246     case $ac_pass in
1247     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248     2)
1249       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250       if test $ac_must_keep_next = true; then
1251         ac_must_keep_next=false # Got value, back to normal.
1252       else
1253         case $ac_arg in
1254           *=* | --config-cache | -C | -disable-* | --disable-* \
1255           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257           | -with-* | --with-* | -without-* | --without-* | --x)
1258             case "$ac_configure_args0 " in
1259               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260             esac
1261             ;;
1262           -* ) ac_must_keep_next=true ;;
1263         esac
1264       fi
1265       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266       # Get rid of the leading space.
1267       ac_sep=" "
1268       ;;
1269     esac
1270   done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log.  We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281   # Save into config.log some information that might help in debugging.
1282   {
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1289 _ASBOX
1290     echo
1291     # The following way of writing the cache mishandles newlines in values,
1292 {
1293   (set) 2>&1 |
1294     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295     *ac_space=\ *)
1296       sed -n \
1297         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299       ;;
1300     *)
1301       sed -n \
1302         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303       ;;
1304     esac;
1305 }
1306     echo
1307
1308     cat <<\_ASBOX
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1312 _ASBOX
1313     echo
1314     for ac_var in $ac_subst_vars
1315     do
1316       eval ac_val=$`echo $ac_var`
1317       echo "$ac_var='"'"'$ac_val'"'"'"
1318     done | sort
1319     echo
1320
1321     if test -n "$ac_subst_files"; then
1322       cat <<\_ASBOX
1323 ## ------------- ##
1324 ## Output files. ##
1325 ## ------------- ##
1326 _ASBOX
1327       echo
1328       for ac_var in $ac_subst_files
1329       do
1330         eval ac_val=$`echo $ac_var`
1331         echo "$ac_var='"'"'$ac_val'"'"'"
1332       done | sort
1333       echo
1334     fi
1335
1336     if test -s confdefs.h; then
1337       cat <<\_ASBOX
1338 ## ----------- ##
1339 ## confdefs.h. ##
1340 ## ----------- ##
1341 _ASBOX
1342       echo
1343       sed "/^$/d" confdefs.h | sort
1344       echo
1345     fi
1346     test "$ac_signal" != 0 &&
1347       echo "$as_me: caught signal $ac_signal"
1348     echo "$as_me: exit $exit_status"
1349   } >&5
1350   rm -f core *.core &&
1351   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352     exit $exit_status
1353      ' 0
1354 for ac_signal in 1 2 13 15; do
1355   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1358
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1363
1364 # Predefined preprocessor variables.
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1389
1390
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394   if test "x$prefix" != xNONE; then
1395     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396   else
1397     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398   fi
1399 fi
1400 for ac_site_file in $CONFIG_SITE; do
1401   if test -r "$ac_site_file"; then
1402     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404     sed 's/^/| /' "$ac_site_file" >&5
1405     . "$ac_site_file"
1406   fi
1407 done
1408
1409 if test -r "$cache_file"; then
1410   # Some versions of bash will fail to source /dev/null (special
1411   # files actually), so we avoid doing that.
1412   if test -f "$cache_file"; then
1413     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415     case $cache_file in
1416       [\\/]* | ?:[\\/]* ) . $cache_file;;
1417       *)                      . ./$cache_file;;
1418     esac
1419   fi
1420 else
1421   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423   >$cache_file
1424 fi
1425
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432   eval ac_new_set=\$ac_env_${ac_var}_set
1433   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434   eval ac_new_val="\$ac_env_${ac_var}_value"
1435   case $ac_old_set,$ac_new_set in
1436     set,)
1437       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439       ac_cache_corrupted=: ;;
1440     ,set)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,);;
1445     *)
1446       if test "x$ac_old_val" != "x$ac_new_val"; then
1447         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1450 echo "$as_me:   former value:  $ac_old_val" >&2;}
1451         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1452 echo "$as_me:   current value: $ac_new_val" >&2;}
1453         ac_cache_corrupted=:
1454       fi;;
1455   esac
1456   # Pass precious variables to config.status.
1457   if test "$ac_new_set" = set; then
1458     case $ac_new_val in
1459     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461     *) ac_arg=$ac_var=$ac_new_val ;;
1462     esac
1463     case " $ac_configure_args " in
1464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1465       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466     esac
1467   fi
1468 done
1469 if $ac_cache_corrupted; then
1470   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1476
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503           ac_config_headers="$ac_config_headers config.h"
1504
1505
1506 ac_aux_dir=
1507 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508   if test -f $ac_dir/install-sh; then
1509     ac_aux_dir=$ac_dir
1510     ac_install_sh="$ac_aux_dir/install-sh -c"
1511     break
1512   elif test -f $ac_dir/install.sh; then
1513     ac_aux_dir=$ac_dir
1514     ac_install_sh="$ac_aux_dir/install.sh -c"
1515     break
1516   elif test -f $ac_dir/shtool; then
1517     ac_aux_dir=$ac_dir
1518     ac_install_sh="$ac_aux_dir/shtool install -c"
1519     break
1520   fi
1521 done
1522 if test -z "$ac_aux_dir"; then
1523   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1524 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525    { (exit 1); exit 1; }; }
1526 fi
1527 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544   ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548    { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552    { (exit 1); exit 1; }; }
1553
1554 fi
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1557 build=$ac_cv_build
1558 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570   ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574    { (exit 1); exit 1; }; }
1575
1576 fi
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1579 host=$ac_cv_host
1580 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   cat >conftest.make <<\_ACEOF
1593 all:
1594         @echo 'ac_maketemp="$(MAKE)"'
1595 _ACEOF
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599   eval ac_cv_prog_make_${ac_make}_set=yes
1600 else
1601   eval ac_cv_prog_make_${ac_make}_set=no
1602 fi
1603 rm -f conftest.make
1604 fi
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606   echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1608   SET_MAKE=
1609 else
1610   echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612   SET_MAKE="MAKE=${MAKE-make}"
1613 fi
1614
1615 if test -n "$ac_tool_prefix"; then
1616   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_RANLIB+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   if test -n "$RANLIB"; then
1624   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   for ac_exec_ext in '' $ac_executable_extensions; do
1632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635     break 2
1636   fi
1637 done
1638 done
1639
1640 fi
1641 fi
1642 RANLIB=$ac_cv_prog_RANLIB
1643 if test -n "$RANLIB"; then
1644   echo "$as_me:$LINENO: result: $RANLIB" >&5
1645 echo "${ECHO_T}$RANLIB" >&6
1646 else
1647   echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1649 fi
1650
1651 fi
1652 if test -z "$ac_cv_prog_RANLIB"; then
1653   ac_ct_RANLIB=$RANLIB
1654   # Extract the first word of "ranlib", so it can be a program name with args.
1655 set dummy ranlib; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   if test -n "$ac_ct_RANLIB"; then
1662   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   for ac_exec_ext in '' $ac_executable_extensions; do
1670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671     ac_cv_prog_ac_ct_RANLIB="ranlib"
1672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673     break 2
1674   fi
1675 done
1676 done
1677
1678   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1679 fi
1680 fi
1681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1682 if test -n "$ac_ct_RANLIB"; then
1683   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690   RANLIB=$ac_ct_RANLIB
1691 else
1692   RANLIB="$ac_cv_prog_RANLIB"
1693 fi
1694
1695 # Find a good install program.  We prefer a C program (faster),
1696 # so one script is as good as another.  But avoid the broken or
1697 # incompatible versions:
1698 # SysV /etc/install, /usr/sbin/install
1699 # SunOS /usr/etc/install
1700 # IRIX /sbin/install
1701 # AIX /bin/install
1702 # AmigaOS /C/install, which installs bootblocks on floppy discs
1703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1706 # OS/2's system install, which has a completely different semantic
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   # Account for people who put trailing slashes in PATH elements.
1720 case $as_dir/ in
1721   ./ | .// | /cC/* | \
1722   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724   /usr/ucb/* ) ;;
1725   *)
1726     # OSF1 and SCO ODT 3.0 have their own names for install.
1727     # Don't use installbsd from OSF since it installs stuff as root
1728     # by default.
1729     for ac_prog in ginstall scoinst install; do
1730       for ac_exec_ext in '' $ac_executable_extensions; do
1731         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732           if test $ac_prog = install &&
1733             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734             # AIX install.  It has an incompatible calling convention.
1735             :
1736           elif test $ac_prog = install &&
1737             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738             # program-specific install script used by HP pwplus--don't use.
1739             :
1740           else
1741             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742             break 3
1743           fi
1744         fi
1745       done
1746     done
1747     ;;
1748 esac
1749 done
1750
1751
1752 fi
1753   if test "${ac_cv_path_install+set}" = set; then
1754     INSTALL=$ac_cv_path_install
1755   else
1756     # As a last resort, use the slow shell script.  We don't cache a
1757     # path for INSTALL within a source directory, because that will
1758     # break other packages using the cache if that directory is
1759     # removed, or if the path is relative.
1760     INSTALL=$ac_install_sh
1761   fi
1762 fi
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1765
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773
1774
1775
1776
1777
1778
1779
1780 # Extract the first word of "ar", so it can be a program name with args.
1781 set dummy ar; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_path_AR+set}" = set; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   case $AR in
1788   [\\/]* | ?:[\\/]*)
1789   ac_cv_path_AR="$AR" # Let the user override the test with a path.
1790   ;;
1791   *)
1792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795   IFS=$as_save_IFS
1796   test -z "$as_dir" && as_dir=.
1797   for ac_exec_ext in '' $ac_executable_extensions; do
1798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801     break 2
1802   fi
1803 done
1804 done
1805
1806   ;;
1807 esac
1808 fi
1809 AR=$ac_cv_path_AR
1810
1811 if test -n "$AR"; then
1812   echo "$as_me:$LINENO: result: $AR" >&5
1813 echo "${ECHO_T}$AR" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819 ARFLAGS="cruv"
1820
1821
1822
1823 # The POSIX ln(1) program.  Non-POSIX systems may substitute
1824 # "copy" or something.
1825 LN=ln
1826
1827
1828 case "$AR" in
1829         "")
1830                 { { echo "$as_me:$LINENO: error:
1831 ar program not found.  Please fix your PATH to include the directory in
1832 which ar resides, or set AR in the environment with the full path to ar.
1833 " >&5
1834 echo "$as_me: error:
1835 ar program not found.  Please fix your PATH to include the directory in
1836 which ar resides, or set AR in the environment with the full path to ar.
1837 " >&2;}
1838    { (exit 1); exit 1; }; }
1839
1840                 ;;
1841 esac
1842
1843 #
1844 # Etags.
1845 #
1846 for ac_prog in etags emacs-etags
1847 do
1848   # Extract the first word of "$ac_prog", so it can be a program name with args.
1849 set dummy $ac_prog; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_path_ETAGS+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   case $ETAGS in
1856   [\\/]* | ?:[\\/]*)
1857   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
1858   ;;
1859   *)
1860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863   IFS=$as_save_IFS
1864   test -z "$as_dir" && as_dir=.
1865   for ac_exec_ext in '' $ac_executable_extensions; do
1866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
1868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869     break 2
1870   fi
1871 done
1872 done
1873
1874   ;;
1875 esac
1876 fi
1877 ETAGS=$ac_cv_path_ETAGS
1878
1879 if test -n "$ETAGS"; then
1880   echo "$as_me:$LINENO: result: $ETAGS" >&5
1881 echo "${ECHO_T}$ETAGS" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887   test -n "$ETAGS" && break
1888 done
1889
1890
1891 #
1892 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
1893 # GNU emacs etags, and it requires the -L flag.
1894 #
1895 if test "X$ETAGS" != "X"; then
1896         echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5
1897 echo $ECHO_N "checking for Exuberant Ctags etags... $ECHO_C" >&6
1898         if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
1899                 echo "$as_me:$LINENO: result: yes" >&5
1900 echo "${ECHO_T}yes" >&6
1901                 ETAGS="$ETAGS -L"
1902         else
1903                 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905         fi
1906 fi
1907
1908
1909 #
1910 # Perl is optional; it is used only by some of the system test scripts.
1911 #
1912 for ac_prog in perl5 perl
1913 do
1914   # Extract the first word of "$ac_prog", so it can be a program name with args.
1915 set dummy $ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_path_PERL+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   case $PERL in
1922   [\\/]* | ?:[\\/]*)
1923   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1924   ;;
1925   *)
1926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940   ;;
1941 esac
1942 fi
1943 PERL=$ac_cv_path_PERL
1944
1945 if test -n "$PERL"; then
1946   echo "$as_me:$LINENO: result: $PERL" >&5
1947 echo "${ECHO_T}$PERL" >&6
1948 else
1949   echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1951 fi
1952
1953   test -n "$PERL" && break
1954 done
1955
1956
1957
1958 #
1959 # isc/list.h and others clash with the rest of BIND 9
1960 #
1961 case "$includedir" in
1962         '${prefix}/include')
1963                 includedir='${prefix}/bind/include'
1964                 ;;
1965 esac
1966 case "$libdir" in
1967         '${prefix}/lib')
1968                 libdir='${prefix}/bind/lib'
1969                 ;;
1970 esac
1971
1972 #
1973 # Make sure INSTALL uses an absolute path, else it will be wrong in all
1974 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
1975 # configure based on the location of the file where it is substituted.
1976 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
1977 # subdirectory of install-sh, This relative path will be wrong for all
1978 # directories more than one level down from install-sh.
1979 #
1980 case "$INSTALL" in
1981         /*)
1982                 ;;
1983         *)
1984                 #
1985                 # Not all systems have dirname.
1986                 #
1987
1988                 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
1989
1990
1991                 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
1992                 test "$ac_dir" = "$ac_prog" && ac_dir=.
1993                 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
1994                 INSTALL="$ac_dir/$ac_prog"
1995                 ;;
1996 esac
1997
1998 #
1999 # On these hosts, we really want to use cc, not gcc, even if it is
2000 # found.  The gcc that these systems have will not correctly handle
2001 # pthreads.
2002 #
2003 # However, if the user sets $CC to be something, let that override
2004 # our change.
2005 #
2006 if test "X$CC" = "X" ; then
2007         case "$host" in
2008                 *-dec-osf*)
2009                         CC="cc"
2010                         ;;
2011                 *-solaris*)
2012                         # Use Sun's cc if it is available, but watch
2013                         # out for /usr/ucb/cc; it will never be the right
2014                         # compiler to use.
2015                         #
2016                         # If setting CC here fails, the AC_PROG_CC done
2017                         # below might still find gcc.
2018                         IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
2019                         for ac_dir in $PATH; do
2020                                 test -z "$ac_dir" && ac_dir=.
2021                                 case "$ac_dir" in
2022                                 /usr/ucb)
2023                                         # exclude
2024                                         ;;
2025                                 *)
2026                                         if test -f "$ac_dir/cc"; then
2027                                                 CC="$ac_dir/cc"
2028                                                 break
2029                                         fi
2030                                         ;;
2031                                 esac
2032                         done
2033                         IFS="$ac_save_ifs"
2034                         ;;
2035                 *-hp-hpux*)
2036                         CC="cc"
2037                         ;;
2038                 mips-sgi-irix*)
2039                         CC="cc"
2040                         ;;
2041         esac
2042 fi
2043
2044
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 if test -n "$ac_tool_prefix"; then
2051   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074
2075 fi
2076 fi
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079   echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086 fi
2087 if test -z "$ac_cv_prog_CC"; then
2088   ac_ct_CC=$CC
2089   # Extract the first word of "gcc", so it can be a program name with args.
2090 set dummy gcc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$ac_ct_CC"; then
2097   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106     ac_cv_prog_ac_ct_CC="gcc"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124   CC=$ac_ct_CC
2125 else
2126   CC="$ac_cv_prog_CC"
2127 fi
2128
2129 if test -z "$CC"; then
2130   if test -n "$ac_tool_prefix"; then
2131   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}cc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   if test -n "$CC"; then
2139   ac_cv_prog_CC="$CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   for ac_exec_ext in '' $ac_executable_extensions; do
2147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148     ac_cv_prog_CC="${ac_tool_prefix}cc"
2149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150     break 2
2151   fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2161 else
2162   echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166 fi
2167 if test -z "$ac_cv_prog_CC"; then
2168   ac_ct_CC=$CC
2169   # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$ac_ct_CC"; then
2177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182   IFS=$as_save_IFS
2183   test -z "$as_dir" && as_dir=.
2184   for ac_exec_ext in '' $ac_executable_extensions; do
2185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186     ac_cv_prog_ac_ct_CC="cc"
2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189   fi
2190 done
2191 done
2192
2193 fi
2194 fi
2195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196 if test -n "$ac_ct_CC"; then
2197   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198 echo "${ECHO_T}$ac_ct_CC" >&6
2199 else
2200   echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2202 fi
2203
2204   CC=$ac_ct_CC
2205 else
2206   CC="$ac_cv_prog_CC"
2207 fi
2208
2209 fi
2210 if test -z "$CC"; then
2211   # Extract the first word of "cc", so it can be a program name with args.
2212 set dummy cc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$CC"; then
2219   ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221   ac_prog_rejected=no
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225   IFS=$as_save_IFS
2226   test -z "$as_dir" && as_dir=.
2227   for ac_exec_ext in '' $ac_executable_extensions; do
2228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2230        ac_prog_rejected=yes
2231        continue
2232      fi
2233     ac_cv_prog_CC="cc"
2234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235     break 2
2236   fi
2237 done
2238 done
2239
2240 if test $ac_prog_rejected = yes; then
2241   # We found a bogon in the path, so make sure we never use it.
2242   set dummy $ac_cv_prog_CC
2243   shift
2244   if test $# != 0; then
2245     # We chose a different compiler from the bogus one.
2246     # However, it has the same basename, so the bogon will be chosen
2247     # first if we set CC to just the basename; use the full file name.
2248     shift
2249     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2250   fi
2251 fi
2252 fi
2253 fi
2254 CC=$ac_cv_prog_CC
2255 if test -n "$CC"; then
2256   echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6
2258 else
2259   echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2261 fi
2262
2263 fi
2264 if test -z "$CC"; then
2265   if test -n "$ac_tool_prefix"; then
2266   for ac_prog in cl
2267   do
2268     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_CC+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   if test -n "$CC"; then
2276   ac_cv_prog_CC="$CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291
2292 fi
2293 fi
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296   echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6
2298 else
2299   echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2301 fi
2302
2303     test -n "$CC" && break
2304   done
2305 fi
2306 if test -z "$CC"; then
2307   ac_ct_CC=$CC
2308   for ac_prog in cl
2309 do
2310   # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$ac_ct_CC"; then
2318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327     ac_cv_prog_ac_ct_CC="$ac_prog"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2333
2334 fi
2335 fi
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2340 else
2341   echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2343 fi
2344
2345   test -n "$ac_ct_CC" && break
2346 done
2347
2348   CC=$ac_ct_CC
2349 fi
2350
2351 fi
2352
2353
2354 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&5
2356 echo "$as_me: error: no acceptable C compiler found in \$PATH
2357 See \`config.log' for more details." >&2;}
2358    { (exit 1); exit 1; }; }
2359
2360 # Provide some information about the compiler.
2361 echo "$as_me:$LINENO:" \
2362      "checking for C compiler version" >&5
2363 ac_compiler=`set X $ac_compile; echo $2`
2364 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2365   (eval $ac_compiler --version </dev/null >&5) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }
2369 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2370   (eval $ac_compiler -v </dev/null >&5) 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); }
2374 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2375   (eval $ac_compiler -V </dev/null >&5) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }
2379
2380 cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h.  */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h.  */
2386
2387 int
2388 main ()
2389 {
2390
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 ac_clean_files_save=$ac_clean_files
2396 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2397 # Try to create an executable without -o first, disregard a.out.
2398 # It will help us diagnose broken compilers, and finding out an intuition
2399 # of exeext.
2400 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2401 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2402 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2403 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2404   (eval $ac_link_default) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; then
2408   # Find the output, starting from the most likely.  This scheme is
2409 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2410 # resort.
2411
2412 # Be careful to initialize this variable, since it used to be cached.
2413 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2414 ac_cv_exeext=
2415 # b.out is created by i960 compilers.
2416 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2417 do
2418   test -f "$ac_file" || continue
2419   case $ac_file in
2420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2421         ;;
2422     conftest.$ac_ext )
2423         # This is the source file.
2424         ;;
2425     [ab].out )
2426         # We found the default executable, but exeext='' is most
2427         # certainly right.
2428         break;;
2429     *.* )
2430         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2431         # FIXME: I believe we export ac_cv_exeext for Libtool,
2432         # but it would be cool to find out if it's true.  Does anybody
2433         # maintain Libtool? --akim.
2434         export ac_cv_exeext
2435         break;;
2436     * )
2437         break;;
2438   esac
2439 done
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: C compiler cannot create executables
2447 See \`config.log' for more details." >&2;}
2448    { (exit 77); exit 77; }; }
2449 fi
2450
2451 ac_exeext=$ac_cv_exeext
2452 echo "$as_me:$LINENO: result: $ac_file" >&5
2453 echo "${ECHO_T}$ac_file" >&6
2454
2455 # Check the compiler produces executables we can run.  If not, either
2456 # the compiler is broken, or we cross compile.
2457 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2458 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2459 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2460 # If not cross compiling, check that we can run a simple program.
2461 if test "$cross_compiling" != yes; then
2462   if { ac_try='./$ac_file'
2463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464   (eval $ac_try) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; }; then
2468     cross_compiling=no
2469   else
2470     if test "$cross_compiling" = maybe; then
2471         cross_compiling=yes
2472     else
2473         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2474 If you meant to cross compile, use \`--host'.
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." >&2;}
2479    { (exit 1); exit 1; }; }
2480     fi
2481   fi
2482 fi
2483 echo "$as_me:$LINENO: result: yes" >&5
2484 echo "${ECHO_T}yes" >&6
2485
2486 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2487 ac_clean_files=$ac_clean_files_save
2488 # Check the compiler produces executables we can run.  If not, either
2489 # the compiler is broken, or we cross compile.
2490 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2491 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2492 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2493 echo "${ECHO_T}$cross_compiling" >&6
2494
2495 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2496 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2498   (eval $ac_link) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }; then
2502   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2503 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2504 # work properly (i.e., refer to `conftest.exe'), while it won't with
2505 # `rm'.
2506 for ac_file in conftest.exe conftest conftest.*; do
2507   test -f "$ac_file" || continue
2508   case $ac_file in
2509     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2510     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2511           export ac_cv_exeext
2512           break;;
2513     * ) break;;
2514   esac
2515 done
2516 else
2517   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2520 See \`config.log' for more details." >&2;}
2521    { (exit 1); exit 1; }; }
2522 fi
2523
2524 rm -f conftest$ac_cv_exeext
2525 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2526 echo "${ECHO_T}$ac_cv_exeext" >&6
2527
2528 rm -f conftest.$ac_ext
2529 EXEEXT=$ac_cv_exeext
2530 ac_exeext=$EXEEXT
2531 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2532 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2533 if test "${ac_cv_objext+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   cat >conftest.$ac_ext <<_ACEOF
2537 /* confdefs.h.  */
2538 _ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h.  */
2542
2543 int
2544 main ()
2545 {
2546
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 rm -f conftest.o conftest.obj
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; then
2557   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2558   case $ac_file in
2559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2560     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2561        break;;
2562   esac
2563 done
2564 else
2565   echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2571 See \`config.log' for more details." >&2;}
2572    { (exit 1); exit 1; }; }
2573 fi
2574
2575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2576 fi
2577 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2578 echo "${ECHO_T}$ac_cv_objext" >&6
2579 OBJEXT=$ac_cv_objext
2580 ac_objext=$OBJEXT
2581 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2582 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596 #ifndef __GNUC__
2597        choke me
2598 #endif
2599
2600   ;
2601   return 0;
2602 }
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606   (eval $ac_compile) 2>conftest.er1
2607   ac_status=$?
2608   grep -v '^ *+' conftest.er1 >conftest.err
2609   rm -f conftest.er1
2610   cat conftest.err >&5
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); } &&
2613          { ac_try='test -z "$ac_c_werror_flag"
2614                          || test ! -s conftest.err'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   ac_compiler_gnu=yes
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 ac_compiler_gnu=no
2632 fi
2633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2635
2636 fi
2637 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2638 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2639 GCC=`test $ac_compiler_gnu = yes && echo yes`
2640 ac_test_CFLAGS=${CFLAGS+set}
2641 ac_save_CFLAGS=$CFLAGS
2642 CFLAGS="-g"
2643 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2644 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2645 if test "${ac_cv_prog_cc_g+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654
2655 int
2656 main ()
2657 {
2658
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665   (eval $ac_compile) 2>conftest.er1
2666   ac_status=$?
2667   grep -v '^ *+' conftest.er1 >conftest.err
2668   rm -f conftest.er1
2669   cat conftest.err >&5
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -z "$ac_c_werror_flag"
2673                          || test ! -s conftest.err'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; } &&
2679          { ac_try='test -s conftest.$ac_objext'
2680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681   (eval $ac_try) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; }; then
2685   ac_cv_prog_cc_g=yes
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 ac_cv_prog_cc_g=no
2691 fi
2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693 fi
2694 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2696 if test "$ac_test_CFLAGS" = set; then
2697   CFLAGS=$ac_save_CFLAGS
2698 elif test $ac_cv_prog_cc_g = yes; then
2699   if test "$GCC" = yes; then
2700     CFLAGS="-g -O2"
2701   else
2702     CFLAGS="-g"
2703   fi
2704 else
2705   if test "$GCC" = yes; then
2706     CFLAGS="-O2"
2707   else
2708     CFLAGS=
2709   fi
2710 fi
2711 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2712 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2713 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   ac_cv_prog_cc_stdc=no
2717 ac_save_CC=$CC
2718 cat >conftest.$ac_ext <<_ACEOF
2719 /* confdefs.h.  */
2720 _ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h.  */
2724 #include <stdarg.h>
2725 #include <stdio.h>
2726 #include <sys/types.h>
2727 #include <sys/stat.h>
2728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2729 struct buf { int x; };
2730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2732      char **p;
2733      int i;
2734 {
2735   return p[i];
2736 }
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2738 {
2739   char *s;
2740   va_list v;
2741   va_start (v,p);
2742   s = g (p, va_arg (v,int));
2743   va_end (v);
2744   return s;
2745 }
2746
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2748    function prototypes and stuff, but not '\xHH' hex character constants.
2749    These don't provoke an error unfortunately, instead are silently treated
2750    as 'x'.  The following induces an error, until -std1 is added to get
2751    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2752    array size at least.  It's necessary to write '\x00'==0 to get something
2753    that's true only with -std1.  */
2754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2755
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760 int argc;
2761 char **argv;
2762 int
2763 main ()
2764 {
2765 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 # Don't try gcc -ansi; that turns off useful extensions and
2771 # breaks some systems' header files.
2772 # AIX                   -qlanglvl=ansi
2773 # Ultrix and OSF/1      -std1
2774 # HP-UX 10.20 and later -Ae
2775 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2776 # SVR4                  -Xc -D__EXTENSIONS__
2777 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2778 do
2779   CC="$ac_save_CC $ac_arg"
2780   rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782   (eval $ac_compile) 2>conftest.er1
2783   ac_status=$?
2784   grep -v '^ *+' conftest.er1 >conftest.err
2785   rm -f conftest.er1
2786   cat conftest.err >&5
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); } &&
2789          { ac_try='test -z "$ac_c_werror_flag"
2790                          || test ! -s conftest.err'
2791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; } &&
2796          { ac_try='test -s conftest.$ac_objext'
2797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798   (eval $ac_try) 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; }; then
2802   ac_cv_prog_cc_stdc=$ac_arg
2803 break
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 fi
2809 rm -f conftest.err conftest.$ac_objext
2810 done
2811 rm -f conftest.$ac_ext conftest.$ac_objext
2812 CC=$ac_save_CC
2813
2814 fi
2815
2816 case "x$ac_cv_prog_cc_stdc" in
2817   x|xno)
2818     echo "$as_me:$LINENO: result: none needed" >&5
2819 echo "${ECHO_T}none needed" >&6 ;;
2820   *)
2821     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2822 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2823     CC="$CC $ac_cv_prog_cc_stdc" ;;
2824 esac
2825
2826 # Some people use a C++ compiler to compile C.  Since we use `exit',
2827 # in C++ we need to declare it.  In case someone uses the same compiler
2828 # for both compiling C and C++ we need to have the C++ compiler decide
2829 # the declaration of exit, since it's the most demanding environment.
2830 cat >conftest.$ac_ext <<_ACEOF
2831 #ifndef __cplusplus
2832   choke me
2833 #endif
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837   (eval $ac_compile) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -z "$ac_c_werror_flag"
2845                          || test ! -s conftest.err'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; } &&
2851          { ac_try='test -s conftest.$ac_objext'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857   for ac_declaration in \
2858    '' \
2859    'extern "C" void std::exit (int) throw (); using std::exit;' \
2860    'extern "C" void std::exit (int); using std::exit;' \
2861    'extern "C" void exit (int) throw ();' \
2862    'extern "C" void exit (int);' \
2863    'void exit (int);'
2864 do
2865   cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871 $ac_declaration
2872 #include <stdlib.h>
2873 int
2874 main ()
2875 {
2876 exit (42);
2877   ;
2878   return 0;
2879 }
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883   (eval $ac_compile) 2>conftest.er1
2884   ac_status=$?
2885   grep -v '^ *+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } &&
2890          { ac_try='test -z "$ac_c_werror_flag"
2891                          || test ! -s conftest.err'
2892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893   (eval $ac_try) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; } &&
2897          { ac_try='test -s conftest.$ac_objext'
2898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899   (eval $ac_try) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }; }; then
2903   :
2904 else
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 continue
2909 fi
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911   cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917 $ac_declaration
2918 int
2919 main ()
2920 {
2921 exit (42);
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928   (eval $ac_compile) 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } &&
2935          { ac_try='test -z "$ac_c_werror_flag"
2936                          || test ! -s conftest.err'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; } &&
2942          { ac_try='test -s conftest.$ac_objext'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; }; then
2948   break
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 fi
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 done
2956 rm -f conftest*
2957 if test -n "$ac_declaration"; then
2958   echo '#ifdef __cplusplus' >>confdefs.h
2959   echo $ac_declaration      >>confdefs.h
2960   echo '#endif'             >>confdefs.h
2961 fi
2962
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967 fi
2968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_ext=c
2970 ac_cpp='$CPP $CPPFLAGS'
2971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974
2975
2976
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2983 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2984 # On Suns, sometimes $CPP names a directory.
2985 if test -n "$CPP" && test -d "$CPP"; then
2986   CPP=
2987 fi
2988 if test -z "$CPP"; then
2989   if test "${ac_cv_prog_CPP+set}" = set; then
2990   echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992       # Double quotes because CPP needs to be expanded
2993     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2994     do
2995       ac_preproc_ok=false
2996 for ac_c_preproc_warn_flag in '' yes
2997 do
2998   # Use a header file that comes with gcc, so configuring glibc
2999   # with a fresh cross-compiler works.
3000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001   # <limits.h> exists even on freestanding compilers.
3002   # On the NeXT, cc -E runs the code through the compiler's parser,
3003   # not just through cpp. "Syntax error" is here to catch this case.
3004   cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #ifdef __STDC__
3011 # include <limits.h>
3012 #else
3013 # include <assert.h>
3014 #endif
3015                      Syntax error
3016 _ACEOF
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } >/dev/null; then
3025   if test -s conftest.err; then
3026     ac_cpp_err=$ac_c_preproc_warn_flag
3027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028   else
3029     ac_cpp_err=
3030   fi
3031 else
3032   ac_cpp_err=yes
3033 fi
3034 if test -z "$ac_cpp_err"; then
3035   :
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040   # Broken: fails on valid input.
3041 continue
3042 fi
3043 rm -f conftest.err conftest.$ac_ext
3044
3045   # OK, works on sane cases.  Now check whether non-existent headers
3046   # can be detected and how.
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 #include <ac_nonexistent.h>
3054 _ACEOF
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } >/dev/null; then
3063   if test -s conftest.err; then
3064     ac_cpp_err=$ac_c_preproc_warn_flag
3065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066   else
3067     ac_cpp_err=
3068   fi
3069 else
3070   ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073   # Broken: success on invalid input.
3074 continue
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Passes both tests.
3080 ac_preproc_ok=:
3081 break
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085 done
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3089   break
3090 fi
3091
3092     done
3093     ac_cv_prog_CPP=$CPP
3094
3095 fi
3096   CPP=$ac_cv_prog_CPP
3097 else
3098   ac_cv_prog_CPP=$CPP
3099 fi
3100 echo "$as_me:$LINENO: result: $CPP" >&5
3101 echo "${ECHO_T}$CPP" >&6
3102 ac_preproc_ok=false
3103 for ac_c_preproc_warn_flag in '' yes
3104 do
3105   # Use a header file that comes with gcc, so configuring glibc
3106   # with a fresh cross-compiler works.
3107   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3108   # <limits.h> exists even on freestanding compilers.
3109   # On the NeXT, cc -E runs the code through the compiler's parser,
3110   # not just through cpp. "Syntax error" is here to catch this case.
3111   cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117 #ifdef __STDC__
3118 # include <limits.h>
3119 #else
3120 # include <assert.h>
3121 #endif
3122                      Syntax error
3123 _ACEOF
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } >/dev/null; then
3132   if test -s conftest.err; then
3133     ac_cpp_err=$ac_c_preproc_warn_flag
3134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135   else
3136     ac_cpp_err=
3137   fi
3138 else
3139   ac_cpp_err=yes
3140 fi
3141 if test -z "$ac_cpp_err"; then
3142   :
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147   # Broken: fails on valid input.
3148 continue
3149 fi
3150 rm -f conftest.err conftest.$ac_ext
3151
3152   # OK, works on sane cases.  Now check whether non-existent headers
3153   # can be detected and how.
3154   cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160 #include <ac_nonexistent.h>
3161 _ACEOF
3162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3164   ac_status=$?
3165   grep -v '^ *+' conftest.er1 >conftest.err
3166   rm -f conftest.er1
3167   cat conftest.err >&5
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); } >/dev/null; then
3170   if test -s conftest.err; then
3171     ac_cpp_err=$ac_c_preproc_warn_flag
3172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3173   else
3174     ac_cpp_err=
3175   fi
3176 else
3177   ac_cpp_err=yes
3178 fi
3179 if test -z "$ac_cpp_err"; then
3180   # Broken: success on invalid input.
3181 continue
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186   # Passes both tests.
3187 ac_preproc_ok=:
3188 break
3189 fi
3190 rm -f conftest.err conftest.$ac_ext
3191
3192 done
3193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3194 rm -f conftest.err conftest.$ac_ext
3195 if $ac_preproc_ok; then
3196   :
3197 else
3198   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3199 See \`config.log' for more details." >&5
3200 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3201 See \`config.log' for more details." >&2;}
3202    { (exit 1); exit 1; }; }
3203 fi
3204
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212 echo "$as_me:$LINENO: checking for egrep" >&5
3213 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3214 if test "${ac_cv_prog_egrep+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3218     then ac_cv_prog_egrep='grep -E'
3219     else ac_cv_prog_egrep='egrep'
3220     fi
3221 fi
3222 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3223 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3224  EGREP=$ac_cv_prog_egrep
3225
3226
3227 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3229 if test "${ac_cv_header_stdc+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #include <stdlib.h>
3239 #include <stdarg.h>
3240 #include <string.h>
3241 #include <float.h>
3242
3243 int
3244 main ()
3245 {
3246
3247   ;
3248   return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.$ac_objext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253   (eval $ac_compile) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } &&
3260          { ac_try='test -z "$ac_c_werror_flag"
3261                          || test ! -s conftest.err'
3262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263   (eval $ac_try) 2>&5
3264   ac_status=$?
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); }; } &&
3267          { ac_try='test -s conftest.$ac_objext'
3268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269   (eval $ac_try) 2>&5
3270   ac_status=$?
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); }; }; then
3273   ac_cv_header_stdc=yes
3274 else
3275   echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 ac_cv_header_stdc=no
3279 fi
3280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3281
3282 if test $ac_cv_header_stdc = yes; then
3283   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3284   cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h.  */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h.  */
3290 #include <string.h>
3291
3292 _ACEOF
3293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294   $EGREP "memchr" >/dev/null 2>&1; then
3295   :
3296 else
3297   ac_cv_header_stdc=no
3298 fi
3299 rm -f conftest*
3300
3301 fi
3302
3303 if test $ac_cv_header_stdc = yes; then
3304   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <stdlib.h>
3312
3313 _ACEOF
3314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3315   $EGREP "free" >/dev/null 2>&1; then
3316   :
3317 else
3318   ac_cv_header_stdc=no
3319 fi
3320 rm -f conftest*
3321
3322 fi
3323
3324 if test $ac_cv_header_stdc = yes; then
3325   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3326   if test "$cross_compiling" = yes; then
3327   :
3328 else
3329   cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h.  */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h.  */
3335 #include <ctype.h>
3336 #if ((' ' & 0x0FF) == 0x020)
3337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3339 #else
3340 # define ISLOWER(c) \
3341                    (('a' <= (c) && (c) <= 'i') \
3342                      || ('j' <= (c) && (c) <= 'r') \
3343                      || ('s' <= (c) && (c) <= 'z'))
3344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3345 #endif
3346
3347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3348 int
3349 main ()
3350 {
3351   int i;
3352   for (i = 0; i < 256; i++)
3353     if (XOR (islower (i), ISLOWER (i))
3354         || toupper (i) != TOUPPER (i))
3355       exit(2);
3356   exit (0);
3357 }
3358 _ACEOF
3359 rm -f conftest$ac_exeext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3361   (eval $ac_link) 2>&5
3362   ac_status=$?
3363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366   (eval $ac_try) 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   :
3371 else
3372   echo "$as_me: program exited with status $ac_status" >&5
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 ( exit $ac_status )
3377 ac_cv_header_stdc=no
3378 fi
3379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3380 fi
3381 fi
3382 fi
3383 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3384 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3385 if test $ac_cv_header_stdc = yes; then
3386
3387 cat >>confdefs.h <<\_ACEOF
3388 #define STDC_HEADERS 1
3389 _ACEOF
3390
3391 fi
3392
3393
3394
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406                   inttypes.h stdint.h unistd.h
3407 do
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 $ac_includes_default
3421
3422 #include <$ac_header>
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426   (eval $ac_compile) 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } &&
3433          { ac_try='test -z "$ac_c_werror_flag"
3434                          || test ! -s conftest.err'
3435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436   (eval $ac_try) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }; } &&
3440          { ac_try='test -s conftest.$ac_objext'
3441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442   (eval $ac_try) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; }; then
3446   eval "$as_ac_Header=yes"
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 eval "$as_ac_Header=no"
3452 fi
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454 fi
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458   cat >>confdefs.h <<_ACEOF
3459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460 _ACEOF
3461
3462 fi
3463
3464 done
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476 for ac_header in fcntl.h db.h paths.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/timers.h stropts.h
3477 do
3478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480   echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 fi
3485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3487 else
3488   # Is the header compilable?
3489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h.  */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h.  */
3497 $ac_includes_default
3498 #include <$ac_header>
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502   (eval $ac_compile) 2>conftest.er1
3503   ac_status=$?
3504   grep -v '^ *+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } &&
3509          { ac_try='test -z "$ac_c_werror_flag"
3510                          || test ! -s conftest.err'
3511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512   (eval $ac_try) 2>&5
3513   ac_status=$?
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); }; } &&
3516          { ac_try='test -s conftest.$ac_objext'
3517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518   (eval $ac_try) 2>&5
3519   ac_status=$?
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); }; }; then
3522   ac_header_compiler=yes
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 ac_header_compiler=no
3528 fi
3529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3531 echo "${ECHO_T}$ac_header_compiler" >&6
3532
3533 # Is the header present?
3534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #include <$ac_header>
3543 _ACEOF
3544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } >/dev/null; then
3552   if test -s conftest.err; then
3553     ac_cpp_err=$ac_c_preproc_warn_flag
3554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3555   else
3556     ac_cpp_err=
3557   fi
3558 else
3559   ac_cpp_err=yes
3560 fi
3561 if test -z "$ac_cpp_err"; then
3562   ac_header_preproc=yes
3563 else
3564   echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567   ac_header_preproc=no
3568 fi
3569 rm -f conftest.err conftest.$ac_ext
3570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3571 echo "${ECHO_T}$ac_header_preproc" >&6
3572
3573 # So?  What about this header?
3574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3575   yes:no: )
3576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3580     ac_header_preproc=yes
3581     ;;
3582   no:yes:* )
3583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3595     (
3596       cat <<\_ASBOX
3597 ## ------------------------------------------ ##
3598 ## Report this to the AC_PACKAGE_NAME lists.  ##
3599 ## ------------------------------------------ ##
3600 _ASBOX
3601     ) |
3602       sed "s/^/$as_me: WARNING:     /" >&2
3603     ;;
3604 esac
3605 echo "$as_me:$LINENO: checking for $ac_header" >&5
3606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   eval "$as_ac_Header=\$ac_header_preproc"
3611 fi
3612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3614
3615 fi
3616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3617   cat >>confdefs.h <<_ACEOF
3618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3619 _ACEOF
3620
3621 fi
3622
3623 done
3624
3625
3626 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3627 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3628 if test "${ac_cv_c_const+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641 /* FIXME: Include the comments suggested by Paul. */
3642 #ifndef __cplusplus
3643   /* Ultrix mips cc rejects this.  */
3644   typedef int charset[2];
3645   const charset x;
3646   /* SunOS 4.1.1 cc rejects this.  */
3647   char const *const *ccp;
3648   char **p;
3649   /* NEC SVR4.0.2 mips cc rejects this.  */
3650   struct point {int x, y;};
3651   static struct point const zero = {0,0};
3652   /* AIX XL C 1.02.0.0 rejects this.
3653      It does not let you subtract one const X* pointer from another in
3654      an arm of an if-expression whose if-part is not a constant
3655      expression */
3656   const char *g = "string";
3657   ccp = &g + (g ? g-g : 0);
3658   /* HPUX 7.0 cc rejects these. */
3659   ++ccp;
3660   p = (char**) ccp;
3661   ccp = (char const *const *) p;
3662   { /* SCO 3.2v4 cc rejects this.  */
3663     char *t;
3664     char const *s = 0 ? (char *) 0 : (char const *) 0;
3665
3666     *t++ = 0;
3667   }
3668   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3669     int x[] = {25, 17};
3670     const int *foo = &x[0];
3671     ++foo;
3672   }
3673   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3674     typedef const int *iptr;
3675     iptr p = 0;
3676     ++p;
3677   }
3678   { /* AIX XL C 1.02.0.0 rejects this saying
3679        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3680     struct s { int j; const int *ap[3]; };
3681     struct s *b; b->j = 5;
3682   }
3683   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3684     const int foo = 10;
3685   }
3686 #endif
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694   (eval $ac_compile) 2>conftest.er1
3695   ac_status=$?
3696   grep -v '^ *+' conftest.er1 >conftest.err
3697   rm -f conftest.er1
3698   cat conftest.err >&5
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); } &&
3701          { ac_try='test -z "$ac_c_werror_flag"
3702                          || test ! -s conftest.err'
3703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704   (eval $ac_try) 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); }; } &&
3708          { ac_try='test -s conftest.$ac_objext'
3709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710   (eval $ac_try) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); }; }; then
3714   ac_cv_c_const=yes
3715 else
3716   echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 ac_cv_c_const=no
3720 fi
3721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3724 echo "${ECHO_T}$ac_cv_c_const" >&6
3725 if test $ac_cv_c_const = no; then
3726
3727 cat >>confdefs.h <<\_ACEOF
3728 #define const
3729 _ACEOF
3730
3731 fi
3732
3733 echo "$as_me:$LINENO: checking for inline" >&5
3734 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3735 if test "${ac_cv_c_inline+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   ac_cv_c_inline=no
3739 for ac_kw in inline __inline__ __inline; do
3740   cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h.  */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h.  */
3746 #ifndef __cplusplus
3747 typedef int foo_t;
3748 static $ac_kw foo_t static_foo () {return 0; }
3749 $ac_kw foo_t foo () {return 0; }
3750 #endif
3751
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755   (eval $ac_compile) 2>conftest.er1
3756   ac_status=$?
3757   grep -v '^ *+' conftest.er1 >conftest.err
3758   rm -f conftest.er1
3759   cat conftest.err >&5
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); } &&
3762          { ac_try='test -z "$ac_c_werror_flag"
3763                          || test ! -s conftest.err'
3764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; } &&
3769          { ac_try='test -s conftest.$ac_objext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   ac_cv_c_inline=$ac_kw; break
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 fi
3781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3782 done
3783
3784 fi
3785 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3786 echo "${ECHO_T}$ac_cv_c_inline" >&6
3787
3788
3789 case $ac_cv_c_inline in
3790   inline | yes) ;;
3791   *)
3792     case $ac_cv_c_inline in
3793       no) ac_val=;;
3794       *) ac_val=$ac_cv_c_inline;;
3795     esac
3796     cat >>confdefs.h <<_ACEOF
3797 #ifndef __cplusplus
3798 #define inline $ac_val
3799 #endif
3800 _ACEOF
3801     ;;
3802 esac
3803
3804 echo "$as_me:$LINENO: checking for size_t" >&5
3805 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3806 if test "${ac_cv_type_size_t+set}" = set; then
3807   echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809   cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815 $ac_includes_default
3816 int
3817 main ()
3818 {
3819 if ((size_t *) 0)
3820   return 0;
3821 if (sizeof (size_t))
3822   return 0;
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 rm -f conftest.$ac_objext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829   (eval $ac_compile) 2>conftest.er1
3830   ac_status=$?
3831   grep -v '^ *+' conftest.er1 >conftest.err
3832   rm -f conftest.er1
3833   cat conftest.err >&5
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); } &&
3836          { ac_try='test -z "$ac_c_werror_flag"
3837                          || test ! -s conftest.err'
3838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839   (eval $ac_try) 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; } &&
3843          { ac_try='test -s conftest.$ac_objext'
3844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845   (eval $ac_try) 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); }; }; then
3849   ac_cv_type_size_t=yes
3850 else
3851   echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3853
3854 ac_cv_type_size_t=no
3855 fi
3856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857 fi
3858 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3859 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3860 if test $ac_cv_type_size_t = yes; then
3861   :
3862 else
3863
3864 cat >>confdefs.h <<_ACEOF
3865 #define size_t unsigned
3866 _ACEOF
3867
3868 fi
3869
3870 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3871 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3872 if test "${ac_cv_type_uintptr_t+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881 $ac_includes_default
3882 int
3883 main ()
3884 {
3885 if ((uintptr_t *) 0)
3886   return 0;
3887 if (sizeof (uintptr_t))
3888   return 0;
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 rm -f conftest.$ac_objext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895   (eval $ac_compile) 2>conftest.er1
3896   ac_status=$?
3897   grep -v '^ *+' conftest.er1 >conftest.err
3898   rm -f conftest.er1
3899   cat conftest.err >&5
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } &&
3902          { ac_try='test -z "$ac_c_werror_flag"
3903                          || test ! -s conftest.err'
3904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905   (eval $ac_try) 2>&5
3906   ac_status=$?
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); }; } &&
3909          { ac_try='test -s conftest.$ac_objext'
3910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911   (eval $ac_try) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }; }; then
3915   ac_cv_type_uintptr_t=yes
3916 else
3917   echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 ac_cv_type_uintptr_t=no
3921 fi
3922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3925 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3926 if test $ac_cv_type_uintptr_t = yes; then
3927   :
3928 else
3929
3930 cat >>confdefs.h <<_ACEOF
3931 #define uintptr_t unsigned long
3932 _ACEOF
3933
3934 fi
3935
3936 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3937 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3938 if test "${ac_cv_header_time+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h.  */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h.  */
3947 #include <sys/types.h>
3948 #include <sys/time.h>
3949 #include <time.h>
3950
3951 int
3952 main ()
3953 {
3954 if ((struct tm *) 0)
3955 return 0;
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962   (eval $ac_compile) 2>conftest.er1
3963   ac_status=$?
3964   grep -v '^ *+' conftest.er1 >conftest.err
3965   rm -f conftest.er1
3966   cat conftest.err >&5
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } &&
3969          { ac_try='test -z "$ac_c_werror_flag"
3970                          || test ! -s conftest.err'
3971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972   (eval $ac_try) 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); }; } &&
3976          { ac_try='test -s conftest.$ac_objext'
3977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978   (eval $ac_try) 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); }; }; then
3982   ac_cv_header_time=yes
3983 else
3984   echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 ac_cv_header_time=no
3988 fi
3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990 fi
3991 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3992 echo "${ECHO_T}$ac_cv_header_time" >&6
3993 if test $ac_cv_header_time = yes; then
3994
3995 cat >>confdefs.h <<\_ACEOF
3996 #define TIME_WITH_SYS_TIME 1
3997 _ACEOF
3998
3999 fi
4000
4001 #
4002 # check if we need to #include sys/select.h explicitly
4003 #
4004 case $ac_cv_header_unistd_h in
4005 yes)
4006 echo "$as_me:$LINENO: checking if unistd.h defines fd_set" >&5
4007 echo $ECHO_N "checking if unistd.h defines fd_set... $ECHO_C" >&6
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h.  */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h.  */
4014
4015 #include <unistd.h>
4016 int
4017 main ()
4018 {
4019 fd_set read_set; return (0);
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026   (eval $ac_compile) 2>conftest.er1
4027   ac_status=$?
4028   grep -v '^ *+' conftest.er1 >conftest.err
4029   rm -f conftest.er1
4030   cat conftest.err >&5
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); } &&
4033          { ac_try='test -z "$ac_c_werror_flag"
4034                          || test ! -s conftest.err'
4035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036   (eval $ac_try) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }; } &&
4040          { ac_try='test -s conftest.$ac_objext'
4041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042   (eval $ac_try) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; }; then
4046   echo "$as_me:$LINENO: result: yes" >&5
4047 echo "${ECHO_T}yes" >&6
4048          ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
4049
4050 else
4051   echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4056         case ac_cv_header_sys_select_h in
4057         yes)
4058          ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
4059                 ;;
4060         no)
4061                 { { echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5
4062 echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;}
4063    { (exit 1); exit 1; }; }
4064                 ;;
4065         esac
4066
4067 fi
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069         ;;
4070 no)
4071         case ac_cv_header_sys_select_h in
4072         yes)
4073              ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
4074                 ;;
4075         no)
4076                 { { echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5
4077 echo "$as_me: error: need either unistd.h or sys/select.h" >&2;}
4078    { (exit 1); exit 1; }; }
4079                 ;;
4080         esac
4081         ;;
4082 esac
4083
4084
4085 #
4086 # Find the machine's endian flavor.
4087 #
4088 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4090 if test "${ac_cv_c_bigendian+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   # See if sys/param.h defines the BYTE_ORDER macro.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h.  */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h.  */
4100 #include <sys/types.h>
4101 #include <sys/param.h>
4102
4103 int
4104 main ()
4105 {
4106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4107  bogus endian macros
4108 #endif
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116   (eval $ac_compile) 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } &&
4123          { ac_try='test -z "$ac_c_werror_flag"
4124                          || test ! -s conftest.err'
4125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126   (eval $ac_try) 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; } &&
4130          { ac_try='test -s conftest.$ac_objext'
4131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132   (eval $ac_try) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; }; then
4136   # It does; now see whether it defined to BIG_ENDIAN or not.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <sys/types.h>
4144 #include <sys/param.h>
4145
4146 int
4147 main ()
4148 {
4149 #if BYTE_ORDER != BIG_ENDIAN
4150  not big endian
4151 #endif
4152
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159   (eval $ac_compile) 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } &&
4166          { ac_try='test -z "$ac_c_werror_flag"
4167                          || test ! -s conftest.err'
4168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169   (eval $ac_try) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; } &&
4173          { ac_try='test -s conftest.$ac_objext'
4174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   ac_cv_c_bigendian=yes
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 ac_cv_c_bigendian=no
4185 fi
4186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 # It does not; compile a test program.
4192 if test "$cross_compiling" = yes; then
4193   # try to guess the endianness by grepping values into an object file
4194   ac_cv_c_bigendian=unknown
4195   cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h.  */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h.  */
4201 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4202 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4203 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4204 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4205 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4206 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4207 int
4208 main ()
4209 {
4210  _ascii (); _ebcdic ();
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217   (eval $ac_compile) 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -z "$ac_c_werror_flag"
4225                          || test ! -s conftest.err'
4226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227   (eval $ac_try) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233   (eval $ac_try) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4238   ac_cv_c_bigendian=yes
4239 fi
4240 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4241   if test "$ac_cv_c_bigendian" = unknown; then
4242     ac_cv_c_bigendian=no
4243   else
4244     # finding both strings is unlikely to happen, but who knows?
4245     ac_cv_c_bigendian=unknown
4246   fi
4247 fi
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 fi
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254 else
4255   cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h.  */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h.  */
4261 int
4262 main ()
4263 {
4264   /* Are we little or big endian?  From Harbison&Steele.  */
4265   union
4266   {
4267     long l;
4268     char c[sizeof (long)];
4269   } u;
4270   u.l = 1;
4271   exit (u.c[sizeof (long) - 1] == 1);
4272 }
4273 _ACEOF
4274 rm -f conftest$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276   (eval $ac_link) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281   (eval $ac_try) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; }; then
4285   ac_cv_c_bigendian=no
4286 else
4287   echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ( exit $ac_status )
4292 ac_cv_c_bigendian=yes
4293 fi
4294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4295 fi
4296 fi
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4300 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4301 case $ac_cv_c_bigendian in
4302   yes)
4303
4304 cat >>confdefs.h <<\_ACEOF
4305 #define WORDS_BIGENDIAN 1
4306 _ACEOF
4307  ;;
4308   no)
4309      ;;
4310   *)
4311     { { echo "$as_me:$LINENO: error: unknown endianness
4312 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4313 echo "$as_me: error: unknown endianness
4314 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4315    { (exit 1); exit 1; }; } ;;
4316 esac
4317
4318
4319
4320 # Check whether --with-irs-gr or --without-irs-gr was given.
4321 if test "${with_irs_gr+set}" = set; then
4322   withval="$with_irs_gr"
4323   want_irs_gr="$withval"
4324 else
4325   want_irs_gr="no"
4326 fi;
4327 case "$want_irs_gr" in
4328 yes) WANT_IRS_GR="#define WANT_IRS_GR 1"
4329      WANT_IRS_GR_OBJS="\${WANT_IRS_GR_OBJS}"
4330         ;;
4331 *) WANT_IRS_GR="#undef WANT_IRS_GR" WANT_IRS_GR_OBJS="";;
4332 esac
4333
4334
4335
4336
4337 # Check whether --with-irs-pw or --without-irs-pw was given.
4338 if test "${with_irs_pw+set}" = set; then
4339   withval="$with_irs_pw"
4340   want_irs_pw="$withval"
4341 else
4342   want_irs_pw="no"
4343 fi;
4344 case "$want_irs_pw" in
4345 yes) WANT_IRS_PW="#define WANT_IRS_PW 1"
4346      WANT_IRS_PW_OBJS="\${WANT_IRS_PW_OBJS}";;
4347 *) WANT_IRS_PW="#undef WANT_IRS_PW" WANT_IRS_PW_OBJS="";;
4348 esac
4349
4350
4351
4352
4353 # Check whether --with-irs-nis or --without-irs-nis was given.
4354 if test "${with_irs_nis+set}" = set; then
4355   withval="$with_irs_nis"
4356   want_irs_nis="$withval"
4357 else
4358   want_irs_nis="no"
4359 fi;
4360 case "$want_irs_nis" in
4361 yes)
4362         WANT_IRS_NIS="#define WANT_IRS_NIS 1"
4363         WANT_IRS_NIS_OBJS="\${WANT_IRS_NIS_OBJS}"
4364         case "$want_irs_gr" in
4365         yes)
4366                 WANT_IRS_NISGR_OBJS="\${WANT_IRS_NISGR_OBJS}";;
4367         *)
4368                 WANT_IRS_NISGR_OBJS="";;
4369         esac
4370         case "$want_irs_pw" in
4371         yes)
4372                 WANT_IRS_NISPW_OBJS="\${WANT_IRS_NISPW_OBJS}";;
4373         *)
4374                 WANT_IRS_NISPW_OBJS="";;
4375         esac
4376         ;;
4377 *)
4378         WANT_IRS_NIS="#undef WANT_IRS_NIS"
4379         WANT_IRS_NIS_OBJS=""
4380         WANT_IRS_NISGR_OBJS=""
4381         WANT_IRS_NISPW_OBJS="";;
4382 esac
4383
4384
4385
4386
4387 if test "$cross_compiling" = yes; then
4388   WANT_IRS_DBPW_OBJS=""
4389
4390 else
4391   cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397
4398 #ifdef HAVE_DB_H
4399 int have_db_h = 1;
4400 #else
4401 int have_db_h = 0;
4402 #endif
4403 main() { return(!have_db_h); }
4404
4405 _ACEOF
4406 rm -f conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408   (eval $ac_link) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413   (eval $ac_try) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   WANT_IRS_DBPW_OBJS="\${WANT_IRS_DBPW_OBJS}"
4418
4419 else
4420   echo "$as_me: program exited with status $ac_status" >&5
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ( exit $ac_status )
4425 WANT_IRS_DBPW_OBJS=""
4426
4427 fi
4428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4429 fi
4430
4431
4432 #
4433 # was --with-randomdev specified?
4434 #
4435 echo "$as_me:$LINENO: checking for random device" >&5
4436 echo $ECHO_N "checking for random device... $ECHO_C" >&6
4437
4438 # Check whether --with-randomdev or --without-randomdev was given.
4439 if test "${with_randomdev+set}" = set; then
4440   withval="$with_randomdev"
4441   use_randomdev="$withval"
4442 else
4443   use_randomdev="unspec"
4444 fi;
4445
4446 case "$use_randomdev" in
4447         unspec)
4448                 case "$host" in
4449                         *-openbsd*)
4450                                 devrandom=/dev/srandom
4451                                 ;;
4452                         *)
4453                                 devrandom=/dev/random
4454                                 ;;
4455                 esac
4456                 echo "$as_me:$LINENO: result: $devrandom" >&5
4457 echo "${ECHO_T}$devrandom" >&6
4458                 as_ac_File=`echo "ac_cv_file_$devrandom" | $as_tr_sh`
4459 echo "$as_me:$LINENO: checking for $devrandom" >&5
4460 echo $ECHO_N "checking for $devrandom... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_File+set}\" = set"; then
4462   echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464   test "$cross_compiling" = yes &&
4465   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4466 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4467    { (exit 1); exit 1; }; }
4468 if test -r "$devrandom"; then
4469   eval "$as_ac_File=yes"
4470 else
4471   eval "$as_ac_File=no"
4472 fi
4473 fi
4474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4475 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4476 if test `eval echo '${'$as_ac_File'}'` = yes; then
4477   cat >>confdefs.h <<_ACEOF
4478 #define PATH_RANDOMDEV "$devrandom"
4479 _ACEOF
4480
4481 fi
4482
4483                 ;;
4484         yes)
4485                 { { echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5
4486 echo "$as_me: error: --with-randomdev must specify a path" >&2;}
4487    { (exit 1); exit 1; }; }
4488                 ;;
4489         *)
4490                 cat >>confdefs.h <<_ACEOF
4491 #define PATH_RANDOMDEV "$use_randomdev"
4492 _ACEOF
4493
4494                 echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5
4495 echo "${ECHO_T}using \"$use_randomdev\"" >&6
4496                 ;;
4497 esac
4498
4499 #
4500 # Begin pthreads checking.
4501 #
4502 # First, decide whether to use multithreading or not.
4503 #
4504 # Enable multithreading by default on systems where it is known
4505 # to work well, and where debugging of multithreaded programs
4506 # is supported.
4507 #
4508
4509 echo "$as_me:$LINENO: checking whether to build with thread support" >&5
4510 echo $ECHO_N "checking whether to build with thread support... $ECHO_C" >&6
4511
4512 case $host in
4513 *-dec-osf*)
4514         use_threads=true ;;
4515 *-solaris2.[0-6])
4516         # Thread signals are broken on Solaris 2.6; they are sometimes
4517         # delivered to the wrong thread.
4518         use_threads=false ;;
4519 *-solaris*)
4520         use_threads=true ;;
4521 *-ibm-aix*)
4522         use_threads=true ;;
4523 *-hp-hpux10*)
4524         use_threads=false ;;
4525 *-hp-hpux11*)
4526         use_threads=true ;;
4527 *-sgi-irix*)
4528         use_threads=true ;;
4529 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
4530         # UnixWare
4531         use_threads=false ;;
4532 *-*-sysv*OpenUNIX*)
4533         # UnixWare
4534         use_threads=true ;;
4535 *-netbsd*)
4536         if test -r /usr/lib/libpthread.so ; then
4537             use_threads=true
4538         else
4539             # Socket I/O optimizations introduced in 9.2 expose a
4540             # bug in unproven-pthreads; see PR #12650
4541             use_threads=false
4542         fi
4543         ;;
4544 *-openbsd*)
4545         # OpenBSD users have reported that named dumps core on
4546         # startup when built with threads.
4547         use_threads=false ;;
4548 *-freebsd*)
4549         use_threads=false ;;
4550 *-bsdi234*)
4551         # Thread signals do not work reliably on some versions of BSD/OS.
4552         use_threads=false ;;
4553 *-bsdi5*)
4554         use_threads=true ;;
4555 *-linux*)
4556         # Threads are disabled on Linux by default because most
4557         # Linux kernels produce unusable core dumps from multithreaded
4558         # programs, and because of limitations in setuid().
4559         use_threads=false ;;
4560 *)
4561         use_threads=false ;;
4562 esac
4563
4564 # Check whether --enable-threads or --disable-threads was given.
4565 if test "${enable_threads+set}" = set; then
4566   enableval="$enable_threads"
4567
4568 fi;
4569 case "$enable_threads" in
4570         yes)
4571                 use_threads=true
4572                 ;;
4573         no)
4574                 use_threads=false
4575                 ;;
4576         '')
4577                 # Use system-dependent default
4578                 ;;
4579         *)
4580                 { { echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5
4581 echo "$as_me: error: --enable-threads takes yes or no" >&2;}
4582    { (exit 1); exit 1; }; }
4583                 ;;
4584 esac
4585
4586 if $use_threads
4587 then
4588         echo "$as_me:$LINENO: result: yes" >&5
4589 echo "${ECHO_T}yes" >&6
4590 else
4591         echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4593 fi
4594
4595 if $use_threads
4596 then
4597         #
4598         # Search for / configure pthreads in a system-dependent fashion.
4599         #
4600         case "$host" in
4601           *-netbsd*)
4602                 # NetBSD has multiple pthreads implementations.  The
4603                 # recommended one to use is "unproven-pthreads".  The
4604                 # older "mit-pthreads" may also work on some NetBSD
4605                 # versions.  The PTL2 thread library does not
4606                 # currently work with bind9, but can be chosen with
4607                 # the --with-ptl2 option for those who wish to
4608                 # experiment with it.
4609                 CC="gcc"
4610                 echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5
4611 echo $ECHO_N "checking which NetBSD thread library to use... $ECHO_C" >&6
4612
4613
4614 # Check whether --with-ptl2 or --without-ptl2 was given.
4615 if test "${with_ptl2+set}" = set; then
4616   withval="$with_ptl2"
4617   use_ptl2="$withval"
4618 else
4619   use_ptl2="no"
4620 fi;
4621
4622                 : ${LOCALBASE:=/usr/pkg}
4623
4624                 if test "X$use_ptl2" = "Xyes"
4625                 then
4626                         echo "$as_me:$LINENO: result: PTL2" >&5
4627 echo "${ECHO_T}PTL2" >&6
4628                         { echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
4629 echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
4630                         CC=ptlgcc
4631                 else
4632                         if test -r /usr/lib/libpthread.so
4633                         then
4634                                 echo "$as_me:$LINENO: result: native" >&5
4635 echo "${ECHO_T}native" >&6
4636                                 LIBS="-lpthread $LIBS"
4637                         else
4638                                 if test ! -d $LOCALBASE/pthreads
4639                                 then
4640                                         echo "$as_me:$LINENO: result: none" >&5
4641 echo "${ECHO_T}none" >&6
4642                                         { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
4643 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
4644    { (exit 1); exit 1; }; }
4645                                 fi
4646
4647                                 if $use_threads
4648                                 then
4649                                         echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5
4650 echo "${ECHO_T}mit-pthreads/unproven-pthreads" >&6
4651                                         pkg="$LOCALBASE/pthreads"
4652                                         lib1="-L$pkg/lib -Wl,-R$pkg/lib"
4653                                         lib2="-lpthread -lm -lgcc -lpthread"
4654                                         LIBS="$lib1 $lib2 $LIBS"
4655                                         CPPFLAGS="$CPPFLAGS -I$pkg/include"
4656                                         STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
4657                                 fi
4658                         fi
4659                 fi
4660                 ;;
4661                 *)
4662
4663 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4664 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4665 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   ac_check_lib_save_LIBS=$LIBS
4669 LIBS="-lpthread  $LIBS"
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h.  */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h.  */
4676
4677 /* Override any gcc2 internal prototype to avoid an error.  */
4678 #ifdef __cplusplus
4679 extern "C"
4680 #endif
4681 /* We use char because int might match the return type of a gcc2
4682    builtin and then its argument prototype would still apply.  */
4683 char pthread_create ();
4684 int
4685 main ()
4686 {
4687 pthread_create ();
4688   ;
4689   return 0;
4690 }
4691 _ACEOF
4692 rm -f conftest.$ac_objext conftest$ac_exeext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4694   (eval $ac_link) 2>conftest.er1
4695   ac_status=$?
4696   grep -v '^ *+' conftest.er1 >conftest.err
4697   rm -f conftest.er1
4698   cat conftest.err >&5
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); } &&
4701          { ac_try='test -z "$ac_c_werror_flag"
4702                          || test ! -s conftest.err'
4703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704   (eval $ac_try) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; } &&
4708          { ac_try='test -s conftest$ac_exeext'
4709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710   (eval $ac_try) 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }; }; then
4714   ac_cv_lib_pthread_pthread_create=yes
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 ac_cv_lib_pthread_pthread_create=no
4720 fi
4721 rm -f conftest.err conftest.$ac_objext \
4722       conftest$ac_exeext conftest.$ac_ext
4723 LIBS=$ac_check_lib_save_LIBS
4724 fi
4725 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4726 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4727 if test $ac_cv_lib_pthread_pthread_create = yes; then
4728   cat >>confdefs.h <<_ACEOF
4729 #define HAVE_LIBPTHREAD 1
4730 _ACEOF
4731
4732   LIBS="-lpthread $LIBS"
4733
4734 else
4735
4736 echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5
4737 echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6
4738 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   ac_check_lib_save_LIBS=$LIBS
4742 LIBS="-lpthread  $LIBS"
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h.  */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h.  */
4749
4750 /* Override any gcc2 internal prototype to avoid an error.  */
4751 #ifdef __cplusplus
4752 extern "C"
4753 #endif
4754 /* We use char because int might match the return type of a gcc2
4755    builtin and then its argument prototype would still apply.  */
4756 char __pthread_create ();
4757 int
4758 main ()
4759 {
4760 __pthread_create ();
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext conftest$ac_exeext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4767   (eval $ac_link) 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } &&
4774          { ac_try='test -z "$ac_c_werror_flag"
4775                          || test ! -s conftest.err'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; } &&
4781          { ac_try='test -s conftest$ac_exeext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   ac_cv_lib_pthread___pthread_create=yes
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 ac_cv_lib_pthread___pthread_create=no
4793 fi
4794 rm -f conftest.err conftest.$ac_objext \
4795       conftest$ac_exeext conftest.$ac_ext
4796 LIBS=$ac_check_lib_save_LIBS
4797 fi
4798 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5
4799 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create" >&6
4800 if test $ac_cv_lib_pthread___pthread_create = yes; then
4801   cat >>confdefs.h <<_ACEOF
4802 #define HAVE_LIBPTHREAD 1
4803 _ACEOF
4804
4805   LIBS="-lpthread $LIBS"
4806
4807 else
4808
4809 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
4810 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
4811 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   ac_check_lib_save_LIBS=$LIBS
4815 LIBS="-lpthread  $LIBS"
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822
4823 /* Override any gcc2 internal prototype to avoid an error.  */
4824 #ifdef __cplusplus
4825 extern "C"
4826 #endif
4827 /* We use char because int might match the return type of a gcc2
4828    builtin and then its argument prototype would still apply.  */
4829 char __pthread_create_system ();
4830 int
4831 main ()
4832 {
4833 __pthread_create_system ();
4834   ;
4835   return 0;
4836 }
4837 _ACEOF
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4840   (eval $ac_link) 2>conftest.er1
4841   ac_status=$?
4842   grep -v '^ *+' conftest.er1 >conftest.err
4843   rm -f conftest.er1
4844   cat conftest.err >&5
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } &&
4847          { ac_try='test -z "$ac_c_werror_flag"
4848                          || test ! -s conftest.err'
4849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850   (eval $ac_try) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; } &&
4854          { ac_try='test -s conftest$ac_exeext'
4855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856   (eval $ac_try) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); }; }; then
4860   ac_cv_lib_pthread___pthread_create_system=yes
4861 else
4862   echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 ac_cv_lib_pthread___pthread_create_system=no
4866 fi
4867 rm -f conftest.err conftest.$ac_objext \
4868       conftest$ac_exeext conftest.$ac_ext
4869 LIBS=$ac_check_lib_save_LIBS
4870 fi
4871 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
4872 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
4873 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
4874   cat >>confdefs.h <<_ACEOF
4875 #define HAVE_LIBPTHREAD 1
4876 _ACEOF
4877
4878   LIBS="-lpthread $LIBS"
4879
4880 else
4881
4882 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
4883 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
4884 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887   ac_check_lib_save_LIBS=$LIBS
4888 LIBS="-lc_r  $LIBS"
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h.  */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h.  */
4895
4896 /* Override any gcc2 internal prototype to avoid an error.  */
4897 #ifdef __cplusplus
4898 extern "C"
4899 #endif
4900 /* We use char because int might match the return type of a gcc2
4901    builtin and then its argument prototype would still apply.  */
4902 char pthread_create ();
4903 int
4904 main ()
4905 {
4906 pthread_create ();
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913   (eval $ac_link) 2>conftest.er1
4914   ac_status=$?
4915   grep -v '^ *+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); } &&
4920          { ac_try='test -z "$ac_c_werror_flag"
4921                          || test ! -s conftest.err'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; } &&
4927          { ac_try='test -s conftest$ac_exeext'
4928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929   (eval $ac_try) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; }; then
4933   ac_cv_lib_c_r_pthread_create=yes
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938 ac_cv_lib_c_r_pthread_create=no
4939 fi
4940 rm -f conftest.err conftest.$ac_objext \
4941       conftest$ac_exeext conftest.$ac_ext
4942 LIBS=$ac_check_lib_save_LIBS
4943 fi
4944 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
4945 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
4946 if test $ac_cv_lib_c_r_pthread_create = yes; then
4947   cat >>confdefs.h <<_ACEOF
4948 #define HAVE_LIBC_R 1
4949 _ACEOF
4950
4951   LIBS="-lc_r $LIBS"
4952
4953 else
4954
4955 echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
4956 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6
4957 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
4958   echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960   ac_check_lib_save_LIBS=$LIBS
4961 LIBS="-lc  $LIBS"
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h.  */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h.  */
4968
4969 /* Override any gcc2 internal prototype to avoid an error.  */
4970 #ifdef __cplusplus
4971 extern "C"
4972 #endif
4973 /* We use char because int might match the return type of a gcc2
4974    builtin and then its argument prototype would still apply.  */
4975 char pthread_create ();
4976 int
4977 main ()
4978 {
4979 pthread_create ();
4980   ;
4981   return 0;
4982 }
4983 _ACEOF
4984 rm -f conftest.$ac_objext conftest$ac_exeext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986   (eval $ac_link) 2>conftest.er1
4987   ac_status=$?
4988   grep -v '^ *+' conftest.er1 >conftest.err
4989   rm -f conftest.er1
4990   cat conftest.err >&5
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); } &&
4993          { ac_try='test -z "$ac_c_werror_flag"
4994                          || test ! -s conftest.err'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; } &&
5000          { ac_try='test -s conftest$ac_exeext'
5001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002   (eval $ac_try) 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }; }; then
5006   ac_cv_lib_c_pthread_create=yes
5007 else
5008   echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 ac_cv_lib_c_pthread_create=no
5012 fi
5013 rm -f conftest.err conftest.$ac_objext \
5014       conftest$ac_exeext conftest.$ac_ext
5015 LIBS=$ac_check_lib_save_LIBS
5016 fi
5017 echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
5018 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6
5019 if test $ac_cv_lib_c_pthread_create = yes; then
5020   cat >>confdefs.h <<_ACEOF
5021 #define HAVE_LIBC 1
5022 _ACEOF
5023
5024   LIBS="-lc $LIBS"
5025
5026 else
5027   { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
5028 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
5029    { (exit 1); exit 1; }; }
5030 fi
5031
5032 fi
5033
5034 fi
5035
5036 fi
5037
5038 fi
5039
5040                 ;;
5041         esac
5042 fi
5043
5044 if $use_threads
5045 then
5046         #
5047         # We'd like to use sigwait() too
5048         #
5049         echo "$as_me:$LINENO: checking for sigwait in -lc" >&5
5050 echo $ECHO_N "checking for sigwait in -lc... $ECHO_C" >&6
5051 if test "${ac_cv_lib_c_sigwait+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   ac_check_lib_save_LIBS=$LIBS
5055 LIBS="-lc  $LIBS"
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h.  */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h.  */
5062
5063 /* Override any gcc2 internal prototype to avoid an error.  */
5064 #ifdef __cplusplus
5065 extern "C"
5066 #endif
5067 /* We use char because int might match the return type of a gcc2
5068    builtin and then its argument prototype would still apply.  */
5069 char sigwait ();
5070 int
5071 main ()
5072 {
5073 sigwait ();
5074   ;
5075   return 0;
5076 }
5077 _ACEOF
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080   (eval $ac_link) 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } &&
5087          { ac_try='test -z "$ac_c_werror_flag"
5088                          || test ! -s conftest.err'
5089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090   (eval $ac_try) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }; } &&
5094          { ac_try='test -s conftest$ac_exeext'
5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096   (eval $ac_try) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; }; then
5100   ac_cv_lib_c_sigwait=yes
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_cv_lib_c_sigwait=no
5106 fi
5107 rm -f conftest.err conftest.$ac_objext \
5108       conftest$ac_exeext conftest.$ac_ext
5109 LIBS=$ac_check_lib_save_LIBS
5110 fi
5111 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5
5112 echo "${ECHO_T}$ac_cv_lib_c_sigwait" >&6
5113 if test $ac_cv_lib_c_sigwait = yes; then
5114   cat >>confdefs.h <<\_ACEOF
5115 #define HAVE_SIGWAIT 1
5116 _ACEOF
5117
5118 else
5119   echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5
5120 echo $ECHO_N "checking for sigwait in -lpthread... $ECHO_C" >&6
5121 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then
5122   echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124   ac_check_lib_save_LIBS=$LIBS
5125 LIBS="-lpthread  $LIBS"
5126 cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132
5133 /* Override any gcc2 internal prototype to avoid an error.  */
5134 #ifdef __cplusplus
5135 extern "C"
5136 #endif
5137 /* We use char because int might match the return type of a gcc2
5138    builtin and then its argument prototype would still apply.  */
5139 char sigwait ();
5140 int
5141 main ()
5142 {
5143 sigwait ();
5144   ;
5145   return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150   (eval $ac_link) 2>conftest.er1
5151   ac_status=$?
5152   grep -v '^ *+' conftest.er1 >conftest.err
5153   rm -f conftest.er1
5154   cat conftest.err >&5
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } &&
5157          { ac_try='test -z "$ac_c_werror_flag"
5158                          || test ! -s conftest.err'
5159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160   (eval $ac_try) 2>&5
5161   ac_status=$?
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); }; } &&
5164          { ac_try='test -s conftest$ac_exeext'
5165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166   (eval $ac_try) 2>&5
5167   ac_status=$?
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); }; }; then
5170   ac_cv_lib_pthread_sigwait=yes
5171 else
5172   echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175 ac_cv_lib_pthread_sigwait=no
5176 fi
5177 rm -f conftest.err conftest.$ac_objext \
5178       conftest$ac_exeext conftest.$ac_ext
5179 LIBS=$ac_check_lib_save_LIBS
5180 fi
5181 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5
5182 echo "${ECHO_T}$ac_cv_lib_pthread_sigwait" >&6
5183 if test $ac_cv_lib_pthread_sigwait = yes; then
5184   cat >>confdefs.h <<\_ACEOF
5185 #define HAVE_SIGWAIT 1
5186 _ACEOF
5187
5188 else
5189   echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5
5190 echo $ECHO_N "checking for _Psigwait in -lpthread... $ECHO_C" >&6
5191 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   ac_check_lib_save_LIBS=$LIBS
5195 LIBS="-lpthread  $LIBS"
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h.  */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h.  */
5202
5203 /* Override any gcc2 internal prototype to avoid an error.  */
5204 #ifdef __cplusplus
5205 extern "C"
5206 #endif
5207 /* We use char because int might match the return type of a gcc2
5208    builtin and then its argument prototype would still apply.  */
5209 char _Psigwait ();
5210 int
5211 main ()
5212 {
5213 _Psigwait ();
5214   ;
5215   return 0;
5216 }
5217 _ACEOF
5218 rm -f conftest.$ac_objext conftest$ac_exeext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220   (eval $ac_link) 2>conftest.er1
5221   ac_status=$?
5222   grep -v '^ *+' conftest.er1 >conftest.err
5223   rm -f conftest.er1
5224   cat conftest.err >&5
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); } &&
5227          { ac_try='test -z "$ac_c_werror_flag"
5228                          || test ! -s conftest.err'
5229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230   (eval $ac_try) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; } &&
5234          { ac_try='test -s conftest$ac_exeext'
5235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236   (eval $ac_try) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }; }; then
5240   ac_cv_lib_pthread__Psigwait=yes
5241 else
5242   echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 ac_cv_lib_pthread__Psigwait=no
5246 fi
5247 rm -f conftest.err conftest.$ac_objext \
5248       conftest$ac_exeext conftest.$ac_ext
5249 LIBS=$ac_check_lib_save_LIBS
5250 fi
5251 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5
5252 echo "${ECHO_T}$ac_cv_lib_pthread__Psigwait" >&6
5253 if test $ac_cv_lib_pthread__Psigwait = yes; then
5254   cat >>confdefs.h <<\_ACEOF
5255 #define HAVE_SIGWAIT 1
5256 _ACEOF
5257
5258 fi
5259
5260 fi
5261
5262
5263 fi
5264
5265
5266         echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
5267 echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6
5268 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h.  */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h.  */
5277 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
5278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5279 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
5280
5281 /* System header to define __stub macros and hopefully few prototypes,
5282     which can conflict with char pthread_attr_getstacksize (); below.
5283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5284     <limits.h> exists even on freestanding compilers.  */
5285
5286 #ifdef __STDC__
5287 # include <limits.h>
5288 #else
5289 # include <assert.h>
5290 #endif
5291
5292 #undef pthread_attr_getstacksize
5293
5294 /* Override any gcc2 internal prototype to avoid an error.  */
5295 #ifdef __cplusplus
5296 extern "C"
5297 {
5298 #endif
5299 /* We use char because int might match the return type of a gcc2
5300    builtin and then its argument prototype would still apply.  */
5301 char pthread_attr_getstacksize ();
5302 /* The GNU C library defines this for functions which it implements
5303     to always fail with ENOSYS.  Some functions are actually named
5304     something starting with __ and the normal name is an alias.  */
5305 #if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
5306 choke me
5307 #else
5308 char (*f) () = pthread_attr_getstacksize;
5309 #endif
5310 #ifdef __cplusplus
5311 }
5312 #endif
5313
5314 int
5315 main ()
5316 {
5317 return f != pthread_attr_getstacksize;
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5324   (eval $ac_link) 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } &&
5331          { ac_try='test -z "$ac_c_werror_flag"
5332                          || test ! -s conftest.err'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; } &&
5338          { ac_try='test -s conftest$ac_exeext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_cv_func_pthread_attr_getstacksize=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_cv_func_pthread_attr_getstacksize=no
5350 fi
5351 rm -f conftest.err conftest.$ac_objext \
5352       conftest$ac_exeext conftest.$ac_ext
5353 fi
5354 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
5355 echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6
5356 if test $ac_cv_func_pthread_attr_getstacksize = yes; then
5357   cat >>confdefs.h <<\_ACEOF
5358 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
5359 _ACEOF
5360
5361 fi
5362
5363
5364         #
5365         # Additional OS-specific issues related to pthreads and sigwait.
5366         #
5367         case "$host" in
5368                 #
5369                 # One more place to look for sigwait.
5370                 #
5371                 *-freebsd*)
5372                         echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5
5373 echo $ECHO_N "checking for sigwait in -lc_r... $ECHO_C" >&6
5374 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   ac_check_lib_save_LIBS=$LIBS
5378 LIBS="-lc_r  $LIBS"
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385
5386 /* Override any gcc2 internal prototype to avoid an error.  */
5387 #ifdef __cplusplus
5388 extern "C"
5389 #endif
5390 /* We use char because int might match the return type of a gcc2
5391    builtin and then its argument prototype would still apply.  */
5392 char sigwait ();
5393 int
5394 main ()
5395 {
5396 sigwait ();
5397   ;
5398   return 0;
5399 }
5400 _ACEOF
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403   (eval $ac_link) 2>conftest.er1
5404   ac_status=$?
5405   grep -v '^ *+' conftest.er1 >conftest.err
5406   rm -f conftest.er1
5407   cat conftest.err >&5
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); } &&
5410          { ac_try='test -z "$ac_c_werror_flag"
5411                          || test ! -s conftest.err'
5412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413   (eval $ac_try) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; } &&
5417          { ac_try='test -s conftest$ac_exeext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   ac_cv_lib_c_r_sigwait=yes
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_cv_lib_c_r_sigwait=no
5429 fi
5430 rm -f conftest.err conftest.$ac_objext \
5431       conftest$ac_exeext conftest.$ac_ext
5432 LIBS=$ac_check_lib_save_LIBS
5433 fi
5434 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5
5435 echo "${ECHO_T}$ac_cv_lib_c_r_sigwait" >&6
5436 if test $ac_cv_lib_c_r_sigwait = yes; then
5437   cat >>confdefs.h <<\_ACEOF
5438 #define HAVE_SIGWAIT 1
5439 _ACEOF
5440
5441 fi
5442
5443                         ;;
5444                 #
5445                 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
5446                 # called before certain pthreads calls.  This is deprecated
5447                 # in BSD/OS 4.1.
5448                 #
5449                 *-bsdi3.*|*-bsdi4.0*)
5450                         cat >>confdefs.h <<\_ACEOF
5451 #define NEED_PTHREAD_INIT 1
5452 _ACEOF
5453
5454                         ;;
5455                 #
5456                 # LinuxThreads requires some changes to the way we
5457                 # deal with signals.
5458                 #
5459                 *-linux*)
5460                         cat >>confdefs.h <<\_ACEOF
5461 #define HAVE_LINUXTHREADS 1
5462 _ACEOF
5463
5464                         ;;
5465                 #
5466                 # Ensure the right sigwait() semantics on Solaris and make
5467                 # sure we call pthread_setconcurrency.
5468                 #
5469                 *-solaris*)
5470                         cat >>confdefs.h <<\_ACEOF
5471 #define _POSIX_PTHREAD_SEMANTICS 1
5472 _ACEOF
5473
5474                         echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
5475 echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6
5476 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency.
5486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5487 #define pthread_setconcurrency innocuous_pthread_setconcurrency
5488
5489 /* System header to define __stub macros and hopefully few prototypes,
5490     which can conflict with char pthread_setconcurrency (); below.
5491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5492     <limits.h> exists even on freestanding compilers.  */
5493
5494 #ifdef __STDC__
5495 # include <limits.h>
5496 #else
5497 # include <assert.h>
5498 #endif
5499
5500 #undef pthread_setconcurrency
5501
5502 /* Override any gcc2 internal prototype to avoid an error.  */
5503 #ifdef __cplusplus
5504 extern "C"
5505 {
5506 #endif
5507 /* We use char because int might match the return type of a gcc2
5508    builtin and then its argument prototype would still apply.  */
5509 char pthread_setconcurrency ();
5510 /* The GNU C library defines this for functions which it implements
5511     to always fail with ENOSYS.  Some functions are actually named
5512     something starting with __ and the normal name is an alias.  */
5513 #if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
5514 choke me
5515 #else
5516 char (*f) () = pthread_setconcurrency;
5517 #endif
5518 #ifdef __cplusplus
5519 }
5520 #endif
5521
5522 int
5523 main ()
5524 {
5525 return f != pthread_setconcurrency;
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext conftest$ac_exeext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5532   (eval $ac_link) 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } &&
5539          { ac_try='test -z "$ac_c_werror_flag"
5540                          || test ! -s conftest.err'
5541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542   (eval $ac_try) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }; } &&
5546          { ac_try='test -s conftest$ac_exeext'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   ac_cv_func_pthread_setconcurrency=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557 ac_cv_func_pthread_setconcurrency=no
5558 fi
5559 rm -f conftest.err conftest.$ac_objext \
5560       conftest$ac_exeext conftest.$ac_ext
5561 fi
5562 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
5563 echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6
5564 if test $ac_cv_func_pthread_setconcurrency = yes; then
5565   cat >>confdefs.h <<\_ACEOF
5566 #define CALL_PTHREAD_SETCONCURRENCY 1
5567 _ACEOF
5568
5569 fi
5570
5571                         cat >>confdefs.h <<\_ACEOF
5572 #define POSIX_GETPWUID_R 1
5573 _ACEOF
5574
5575                         cat >>confdefs.h <<\_ACEOF
5576 #define POSIX_GETPWNAM_R 1
5577 _ACEOF
5578
5579                         cat >>confdefs.h <<\_ACEOF
5580 #define POSIX_GETGRGID_R 1
5581 _ACEOF
5582
5583                         cat >>confdefs.h <<\_ACEOF
5584 #define POSIX_GETGRNAM_R 1
5585 _ACEOF
5586
5587                         ;;
5588                 *hpux11*)
5589                         cat >>confdefs.h <<\_ACEOF
5590 #define NEED_ENDNETGRENT_R 1
5591 _ACEOF
5592
5593                         cat >>confdefs.h <<\_ACEOF
5594 #define _PTHREADS_DRAFT4 1
5595 _ACEOF
5596
5597                         ;;
5598                 #
5599                 # UnixWare does things its own way.
5600                 #
5601                 *-UnixWare*)
5602                         cat >>confdefs.h <<\_ACEOF
5603 #define HAVE_UNIXWARE_SIGWAIT 1
5604 _ACEOF
5605
5606                         ;;
5607         esac
5608
5609         #
5610         # Look for sysconf to allow detection of the number of processors.
5611         #
5612         echo "$as_me:$LINENO: checking for sysconf" >&5
5613 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
5614 if test "${ac_cv_func_sysconf+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
5624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5625 #define sysconf innocuous_sysconf
5626
5627 /* System header to define __stub macros and hopefully few prototypes,
5628     which can conflict with char sysconf (); below.
5629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630     <limits.h> exists even on freestanding compilers.  */
5631
5632 #ifdef __STDC__
5633 # include <limits.h>
5634 #else
5635 # include <assert.h>
5636 #endif
5637
5638 #undef sysconf
5639
5640 /* Override any gcc2 internal prototype to avoid an error.  */
5641 #ifdef __cplusplus
5642 extern "C"
5643 {
5644 #endif
5645 /* We use char because int might match the return type of a gcc2
5646    builtin and then its argument prototype would still apply.  */
5647 char sysconf ();
5648 /* The GNU C library defines this for functions which it implements
5649     to always fail with ENOSYS.  Some functions are actually named
5650     something starting with __ and the normal name is an alias.  */
5651 #if defined (__stub_sysconf) || defined (__stub___sysconf)
5652 choke me
5653 #else
5654 char (*f) () = sysconf;
5655 #endif
5656 #ifdef __cplusplus
5657 }
5658 #endif
5659
5660 int
5661 main ()
5662 {
5663 return f != sysconf;
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670   (eval $ac_link) 2>conftest.er1
5671   ac_status=$?
5672   grep -v '^ *+' conftest.er1 >conftest.err
5673   rm -f conftest.er1
5674   cat conftest.err >&5
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); } &&
5677          { ac_try='test -z "$ac_c_werror_flag"
5678                          || test ! -s conftest.err'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; } &&
5684          { ac_try='test -s conftest$ac_exeext'
5685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686   (eval $ac_try) 2>&5
5687   ac_status=$?
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); }; }; then
5690   ac_cv_func_sysconf=yes
5691 else
5692   echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5694
5695 ac_cv_func_sysconf=no
5696 fi
5697 rm -f conftest.err conftest.$ac_objext \
5698       conftest$ac_exeext conftest.$ac_ext
5699 fi
5700 echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
5701 echo "${ECHO_T}$ac_cv_func_sysconf" >&6
5702 if test $ac_cv_func_sysconf = yes; then
5703   cat >>confdefs.h <<\_ACEOF
5704 #define HAVE_SYSCONF 1
5705 _ACEOF
5706
5707 fi
5708
5709
5710         if test "X$GCC" = "Xyes"; then
5711                 case "$host" in
5712                 *-freebsd*)
5713                         CC="$CC -pthread"
5714                         CCOPT="$CCOPT -pthread"
5715                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5716                         ;;
5717                 *-openbsd*)
5718                         CC="$CC -pthread"
5719                         CCOPT="$CCOPT -pthread"
5720                         ;;
5721                 *-solaris*)
5722                         LIBS="$LIBS -lthread"
5723                         ;;
5724                 *-ibm-aix*)
5725                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5726                         ;;
5727                 esac
5728         else
5729                 case $host in
5730                 *-dec-osf*)
5731                         CC="$CC -pthread"
5732                         CCOPT="$CCOPT -pthread"
5733                         ;;
5734                 *-solaris*)
5735                         CC="$CC -mt"
5736                         CCOPT="$CCOPT -mt"
5737                         ;;
5738                 *-ibm-aix*)
5739                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5740                         ;;
5741                 *-UnixWare*)
5742                         CC="$CC -Kthread"
5743                         CCOPT="$CCOPT -Kthread"
5744                         ;;
5745                 esac
5746         fi
5747         cat >>confdefs.h <<\_ACEOF
5748 #define _REENTRANT 1
5749 _ACEOF
5750
5751         ALWAYS_DEFINES="-D_REENTRANT"
5752         DO_PTHREADS="#define DO_PTHREADS 1"
5753         WANT_IRS_THREADSGR_OBJS="\${WANT_IRS_THREADSGR_OBJS}"
5754         WANT_IRS_THREADSPW_OBJS="\${WANT_IRS_THREADSPW_OBJS}"
5755         case $host in
5756         ia64-hp-hpux11.*)
5757                 WANT_IRS_THREADS_OBJS="";;
5758         *)
5759                 WANT_IRS_THREADS_OBJS="\${WANT_IRS_THREADS_OBJS}";;
5760         esac
5761         WANT_THREADS_OBJS="\${WANT_THREADS_OBJS}"
5762         thread_dir=pthreads
5763 else
5764         ALWAYS_DEFINES=""
5765         DO_PTHREADS="#undef DO_PTHREADS"
5766         WANT_IRS_THREADSGR_OBJS=""
5767         WANT_IRS_THREADSPW_OBJS=""
5768         WANT_IRS_THREADS_OBJS=""
5769         WANT_THREADS_OBJS=""
5770         thread_dir=nothreads
5771 fi
5772
5773
5774
5775
5776
5777
5778
5779
5780 echo "$as_me:$LINENO: checking for strlcat" >&5
5781 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
5782 if test "${ac_cv_func_strlcat+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
5792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5793 #define strlcat innocuous_strlcat
5794
5795 /* System header to define __stub macros and hopefully few prototypes,
5796     which can conflict with char strlcat (); below.
5797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798     <limits.h> exists even on freestanding compilers.  */
5799
5800 #ifdef __STDC__
5801 # include <limits.h>
5802 #else
5803 # include <assert.h>
5804 #endif
5805
5806 #undef strlcat
5807
5808 /* Override any gcc2 internal prototype to avoid an error.  */
5809 #ifdef __cplusplus
5810 extern "C"
5811 {
5812 #endif
5813 /* We use char because int might match the return type of a gcc2
5814    builtin and then its argument prototype would still apply.  */
5815 char strlcat ();
5816 /* The GNU C library defines this for functions which it implements
5817     to always fail with ENOSYS.  Some functions are actually named
5818     something starting with __ and the normal name is an alias.  */
5819 #if defined (__stub_strlcat) || defined (__stub___strlcat)
5820 choke me
5821 #else
5822 char (*f) () = strlcat;
5823 #endif
5824 #ifdef __cplusplus
5825 }
5826 #endif
5827
5828 int
5829 main ()
5830 {
5831 return f != strlcat;
5832   ;
5833   return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838   (eval $ac_link) 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -z "$ac_c_werror_flag"
5846                          || test ! -s conftest.err'
5847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848   (eval $ac_try) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; } &&
5852          { ac_try='test -s conftest$ac_exeext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858   ac_cv_func_strlcat=yes
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 ac_cv_func_strlcat=no
5864 fi
5865 rm -f conftest.err conftest.$ac_objext \
5866       conftest$ac_exeext conftest.$ac_ext
5867 fi
5868 echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
5869 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
5870 if test $ac_cv_func_strlcat = yes; then
5871   cat >>confdefs.h <<\_ACEOF
5872 #define HAVE_STRLCAT 1
5873 _ACEOF
5874
5875 fi
5876
5877
5878 echo "$as_me:$LINENO: checking for if_nametoindex" >&5
5879 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6
5880 if test "${ac_cv_func_if_nametoindex+set}" = set; then
5881   echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883   cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h.  */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h.  */
5889 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
5890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5891 #define if_nametoindex innocuous_if_nametoindex
5892
5893 /* System header to define __stub macros and hopefully few prototypes,
5894     which can conflict with char if_nametoindex (); below.
5895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5896     <limits.h> exists even on freestanding compilers.  */
5897
5898 #ifdef __STDC__
5899 # include <limits.h>
5900 #else
5901 # include <assert.h>
5902 #endif
5903
5904 #undef if_nametoindex
5905
5906 /* Override any gcc2 internal prototype to avoid an error.  */
5907 #ifdef __cplusplus
5908 extern "C"
5909 {
5910 #endif
5911 /* We use char because int might match the return type of a gcc2
5912    builtin and then its argument prototype would still apply.  */
5913 char if_nametoindex ();
5914 /* The GNU C library defines this for functions which it implements
5915     to always fail with ENOSYS.  Some functions are actually named
5916     something starting with __ and the normal name is an alias.  */
5917 #if defined (__stub_if_nametoindex) || defined (__stub___if_nametoindex)
5918 choke me
5919 #else
5920 char (*f) () = if_nametoindex;
5921 #endif
5922 #ifdef __cplusplus
5923 }
5924 #endif
5925
5926 int
5927 main ()
5928 {
5929 return f != if_nametoindex;
5930   ;
5931   return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936   (eval $ac_link) 2>conftest.er1
5937   ac_status=$?
5938   grep -v '^ *+' conftest.er1 >conftest.err
5939   rm -f conftest.er1
5940   cat conftest.err >&5
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); } &&
5943          { ac_try='test -z "$ac_c_werror_flag"
5944                          || test ! -s conftest.err'
5945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946   (eval $ac_try) 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); }; } &&
5950          { ac_try='test -s conftest$ac_exeext'
5951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952   (eval $ac_try) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); }; }; then
5956   ac_cv_func_if_nametoindex=yes
5957 else
5958   echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961 ac_cv_func_if_nametoindex=no
5962 fi
5963 rm -f conftest.err conftest.$ac_objext \
5964       conftest$ac_exeext conftest.$ac_ext
5965 fi
5966 echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
5967 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6
5968 if test $ac_cv_func_if_nametoindex = yes; then
5969   USE_IFNAMELINKID="#define USE_IFNAMELINKID 1"
5970 else
5971   USE_IFNAMELINKID="#undef USE_IFNAMELINKID"
5972 fi
5973
5974
5975
5976 ISC_THREAD_DIR=$thread_dir
5977
5978
5979 echo "$as_me:$LINENO: checking for daemon" >&5
5980 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
5981 if test "${ac_cv_func_daemon+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h.  */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h.  */
5990 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
5991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5992 #define daemon innocuous_daemon
5993
5994 /* System header to define __stub macros and hopefully few prototypes,
5995     which can conflict with char daemon (); below.
5996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997     <limits.h> exists even on freestanding compilers.  */
5998
5999 #ifdef __STDC__
6000 # include <limits.h>
6001 #else
6002 # include <assert.h>
6003 #endif
6004
6005 #undef daemon
6006
6007 /* Override any gcc2 internal prototype to avoid an error.  */
6008 #ifdef __cplusplus
6009 extern "C"
6010 {
6011 #endif
6012 /* We use char because int might match the return type of a gcc2
6013    builtin and then its argument prototype would still apply.  */
6014 char daemon ();
6015 /* The GNU C library defines this for functions which it implements
6016     to always fail with ENOSYS.  Some functions are actually named
6017     something starting with __ and the normal name is an alias.  */
6018 #if defined (__stub_daemon) || defined (__stub___daemon)
6019 choke me
6020 #else
6021 char (*f) () = daemon;
6022 #endif
6023 #ifdef __cplusplus
6024 }
6025 #endif
6026
6027 int
6028 main ()
6029 {
6030 return f != daemon;
6031   ;
6032   return 0;
6033 }
6034 _ACEOF
6035 rm -f conftest.$ac_objext conftest$ac_exeext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6037   (eval $ac_link) 2>conftest.er1
6038   ac_status=$?
6039   grep -v '^ *+' conftest.er1 >conftest.err
6040   rm -f conftest.er1
6041   cat conftest.err >&5
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -z "$ac_c_werror_flag"
6045                          || test ! -s conftest.err'
6046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047   (eval $ac_try) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); }; } &&
6051          { ac_try='test -s conftest$ac_exeext'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; }; then
6057   ac_cv_func_daemon=yes
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 ac_cv_func_daemon=no
6063 fi
6064 rm -f conftest.err conftest.$ac_objext \
6065       conftest$ac_exeext conftest.$ac_ext
6066 fi
6067 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
6068 echo "${ECHO_T}$ac_cv_func_daemon" >&6
6069 if test $ac_cv_func_daemon = yes; then
6070   DAEMON_OBJS="" NEED_DAEMON="#undef NEED_DAEMON"
6071
6072 else
6073   DAEMON_OBJS="\${DAEMON_OBJS}" NEED_DAEMON="#define NEED_DAEMON 1"
6074
6075 fi
6076
6077
6078
6079
6080 echo "$as_me:$LINENO: checking for strsep" >&5
6081 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
6082 if test "${ac_cv_func_strsep+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h.  */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h.  */
6091 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
6092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6093 #define strsep innocuous_strsep
6094
6095 /* System header to define __stub macros and hopefully few prototypes,
6096     which can conflict with char strsep (); below.
6097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6098     <limits.h> exists even on freestanding compilers.  */
6099
6100 #ifdef __STDC__
6101 # include <limits.h>
6102 #else
6103 # include <assert.h>
6104 #endif
6105
6106 #undef strsep
6107
6108 /* Override any gcc2 internal prototype to avoid an error.  */
6109 #ifdef __cplusplus
6110 extern "C"
6111 {
6112 #endif
6113 /* We use char because int might match the return type of a gcc2
6114    builtin and then its argument prototype would still apply.  */
6115 char strsep ();
6116 /* The GNU C library defines this for functions which it implements
6117     to always fail with ENOSYS.  Some functions are actually named
6118     something starting with __ and the normal name is an alias.  */
6119 #if defined (__stub_strsep) || defined (__stub___strsep)
6120 choke me
6121 #else
6122 char (*f) () = strsep;
6123 #endif
6124 #ifdef __cplusplus
6125 }
6126 #endif
6127
6128 int
6129 main ()
6130 {
6131 return f != strsep;
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138   (eval $ac_link) 2>conftest.er1
6139   ac_status=$?
6140   grep -v '^ *+' conftest.er1 >conftest.err
6141   rm -f conftest.er1
6142   cat conftest.err >&5
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } &&
6145          { ac_try='test -z "$ac_c_werror_flag"
6146                          || test ! -s conftest.err'
6147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148   (eval $ac_try) 2>&5
6149   ac_status=$?
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); }; } &&
6152          { ac_try='test -s conftest$ac_exeext'
6153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154   (eval $ac_try) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); }; }; then
6158   ac_cv_func_strsep=yes
6159 else
6160   echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163 ac_cv_func_strsep=no
6164 fi
6165 rm -f conftest.err conftest.$ac_objext \
6166       conftest$ac_exeext conftest.$ac_ext
6167 fi
6168 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
6169 echo "${ECHO_T}$ac_cv_func_strsep" >&6
6170 if test $ac_cv_func_strsep = yes; then
6171   STRSEP_OBJS="" NEED_STRSEP="#undef NEED_STRSEP"
6172
6173 else
6174   STRSEP_OBJS="\${STRSEP_OBJS}" NEED_STRSEP="#define NEED_STRSEP 1"
6175
6176 fi
6177
6178
6179
6180
6181 echo "$as_me:$LINENO: checking for strerror" >&5
6182 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
6183 if test "${ac_cv_func_strerror+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
6193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6194 #define strerror innocuous_strerror
6195
6196 /* System header to define __stub macros and hopefully few prototypes,
6197     which can conflict with char strerror (); below.
6198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6199     <limits.h> exists even on freestanding compilers.  */
6200
6201 #ifdef __STDC__
6202 # include <limits.h>
6203 #else
6204 # include <assert.h>
6205 #endif
6206
6207 #undef strerror
6208
6209 /* Override any gcc2 internal prototype to avoid an error.  */
6210 #ifdef __cplusplus
6211 extern "C"
6212 {
6213 #endif
6214 /* We use char because int might match the return type of a gcc2
6215    builtin and then its argument prototype would still apply.  */
6216 char strerror ();
6217 /* The GNU C library defines this for functions which it implements
6218     to always fail with ENOSYS.  Some functions are actually named
6219     something starting with __ and the normal name is an alias.  */
6220 #if defined (__stub_strerror) || defined (__stub___strerror)
6221 choke me
6222 #else
6223 char (*f) () = strerror;
6224 #endif
6225 #ifdef __cplusplus
6226 }
6227 #endif
6228
6229 int
6230 main ()
6231 {
6232 return f != strerror;
6233   ;
6234   return 0;
6235 }
6236 _ACEOF
6237 rm -f conftest.$ac_objext conftest$ac_exeext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239   (eval $ac_link) 2>conftest.er1
6240   ac_status=$?
6241   grep -v '^ *+' conftest.er1 >conftest.err
6242   rm -f conftest.er1
6243   cat conftest.err >&5
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); } &&
6246          { ac_try='test -z "$ac_c_werror_flag"
6247                          || test ! -s conftest.err'
6248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249   (eval $ac_try) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; } &&
6253          { ac_try='test -s conftest$ac_exeext'
6254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255   (eval $ac_try) 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); }; }; then
6259   ac_cv_func_strerror=yes
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 ac_cv_func_strerror=no
6265 fi
6266 rm -f conftest.err conftest.$ac_objext \
6267       conftest$ac_exeext conftest.$ac_ext
6268 fi
6269 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
6270 echo "${ECHO_T}$ac_cv_func_strerror" >&6
6271 if test $ac_cv_func_strerror = yes; then
6272   NEED_STRERROR="#undef NEED_STRERROR"
6273 else
6274   NEED_STRERROR="#define NEED_STRERROR 1"
6275 fi
6276
6277
6278
6279 #
6280 # flockfile is usually provided by pthreads, but we may want to use it
6281 # even if compiled with --disable-threads.
6282 #
6283 echo "$as_me:$LINENO: checking for flockfile" >&5
6284 echo $ECHO_N "checking for flockfile... $ECHO_C" >&6
6285 if test "${ac_cv_func_flockfile+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h.  */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h.  */
6294 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile.
6295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6296 #define flockfile innocuous_flockfile
6297
6298 /* System header to define __stub macros and hopefully few prototypes,
6299     which can conflict with char flockfile (); below.
6300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6301     <limits.h> exists even on freestanding compilers.  */
6302
6303 #ifdef __STDC__
6304 # include <limits.h>
6305 #else
6306 # include <assert.h>
6307 #endif
6308
6309 #undef flockfile
6310
6311 /* Override any gcc2 internal prototype to avoid an error.  */
6312 #ifdef __cplusplus
6313 extern "C"
6314 {
6315 #endif
6316 /* We use char because int might match the return type of a gcc2
6317    builtin and then its argument prototype would still apply.  */
6318 char flockfile ();
6319 /* The GNU C library defines this for functions which it implements
6320     to always fail with ENOSYS.  Some functions are actually named
6321     something starting with __ and the normal name is an alias.  */
6322 #if defined (__stub_flockfile) || defined (__stub___flockfile)
6323 choke me
6324 #else
6325 char (*f) () = flockfile;
6326 #endif
6327 #ifdef __cplusplus
6328 }
6329 #endif
6330
6331 int
6332 main ()
6333 {
6334 return f != flockfile;
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 rm -f conftest.$ac_objext conftest$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341   (eval $ac_link) 2>conftest.er1
6342   ac_status=$?
6343   grep -v '^ *+' conftest.er1 >conftest.err
6344   rm -f conftest.er1
6345   cat conftest.err >&5
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); } &&
6348          { ac_try='test -z "$ac_c_werror_flag"
6349                          || test ! -s conftest.err'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; } &&
6355          { ac_try='test -s conftest$ac_exeext'
6356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357   (eval $ac_try) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); }; }; then
6361   ac_cv_func_flockfile=yes
6362 else
6363   echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 ac_cv_func_flockfile=no
6367 fi
6368 rm -f conftest.err conftest.$ac_objext \
6369       conftest$ac_exeext conftest.$ac_ext
6370 fi
6371 echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5
6372 echo "${ECHO_T}$ac_cv_func_flockfile" >&6
6373 if test $ac_cv_func_flockfile = yes; then
6374   cat >>confdefs.h <<\_ACEOF
6375 #define HAVE_FLOCKFILE 1
6376 _ACEOF
6377
6378 fi
6379
6380
6381 #
6382 # Indicate what the final decision was regarding threads.
6383 #
6384 echo "$as_me:$LINENO: checking whether to build with threads" >&5
6385 echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6
6386 if $use_threads; then
6387         echo "$as_me:$LINENO: result: yes" >&5
6388 echo "${ECHO_T}yes" >&6
6389 else
6390         echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6
6392 fi
6393
6394 #
6395 # End of pthreads stuff.
6396 #
6397
6398 #
6399 # Additional compiler settings.
6400 #
6401 MKDEPCC="$CC"
6402 MKDEPCFLAGS="-M"
6403 IRIX_DNSSEC_WARNINGS_HACK=""
6404
6405 if test "X$GCC" = "Xyes"; then
6406         STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
6407 else
6408         case $host in
6409         *-dec-osf*)
6410                 CC="$CC -std"
6411                 CCOPT="$CCOPT -std"
6412                 MKDEPCC="$CC"
6413                 ;;
6414         *-hp-hpux*)
6415                 CC="$CC -Ae -z"
6416                 # The version of the C compiler that constantly warns about
6417                 # 'const' as well as alignment issues is unfortunately not
6418                 # able to be discerned via the version of the operating
6419                 # system, nor does cc have a version flag.
6420                 case "`$CC +W 123 2>&1`" in
6421                 *Unknown?option*)
6422                         STD_CWARNINGS="+w1"
6423                         ;;
6424                 *)
6425                         # Turn off the pointlessly noisy warnings.
6426                         STD_CWARNINGS="+w1 +W 474,530,2193,2236"
6427                         ;;
6428                 esac
6429                 CCOPT="$CCOPT -Ae -z"
6430                 LIBS="-Wl,+vnocompatwarnings $LIBS"
6431 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>&1 | awk '"'"'BEGIN {colon=0; rec="";} { for (i = 0 ; i < NF; i++) { if (colon && a$i) continue; if ($i == "\\") continue; if (!colon) { rec =  $i continue; } if ($i == ":") { rec = rec " :" colon = 1 continue; } if (length(rec $i) > 76) { print rec " \\"; rec = "\t" $i; a$i = 1; } else { rec = rec " " $i a$i = 1; } } } END {print rec}'"'"' >>$TMP'
6432                 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
6433                 ;;
6434         *-sgi-irix*)
6435                 STD_CWARNINGS="-fullwarn -woff 1209"
6436                 #
6437                 # Silence more than 250 instances of
6438                 #   "prototyped function redeclared without prototype"
6439                 # and 11 instances of
6440                 #   "variable ... was set but never used"
6441                 # from lib/dns/sec/openssl.
6442                 #
6443                 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
6444                 ;;
6445         *-solaris*)
6446                 MKDEPCFLAGS="-xM"
6447                 ;;
6448         *-UnixWare*)
6449                 CC="$CC -w"
6450                 ;;
6451         esac
6452 fi
6453
6454 #
6455 # _GNU_SOURCE is needed to access the fd_bits field of struct fd_set, which
6456 # is supposed to be opaque.
6457 #
6458 case $host in
6459         *linux*)
6460                 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
6461                 ;;
6462 esac
6463
6464
6465
6466
6467
6468
6469 #
6470 # NLS
6471 #
6472 echo "$as_me:$LINENO: checking for catgets" >&5
6473 echo $ECHO_N "checking for catgets... $ECHO_C" >&6
6474 if test "${ac_cv_func_catgets+set}" = set; then
6475   echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477   cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h.  */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h.  */
6483 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
6484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6485 #define catgets innocuous_catgets
6486
6487 /* System header to define __stub macros and hopefully few prototypes,
6488     which can conflict with char catgets (); below.
6489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6490     <limits.h> exists even on freestanding compilers.  */
6491
6492 #ifdef __STDC__
6493 # include <limits.h>
6494 #else
6495 # include <assert.h>
6496 #endif
6497
6498 #undef catgets
6499
6500 /* Override any gcc2 internal prototype to avoid an error.  */
6501 #ifdef __cplusplus
6502 extern "C"
6503 {
6504 #endif
6505 /* We use char because int might match the return type of a gcc2
6506    builtin and then its argument prototype would still apply.  */
6507 char catgets ();
6508 /* The GNU C library defines this for functions which it implements
6509     to always fail with ENOSYS.  Some functions are actually named
6510     something starting with __ and the normal name is an alias.  */
6511 #if defined (__stub_catgets) || defined (__stub___catgets)
6512 choke me
6513 #else
6514 char (*f) () = catgets;
6515 #endif
6516 #ifdef __cplusplus
6517 }
6518 #endif
6519
6520 int
6521 main ()
6522 {
6523 return f != catgets;
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530   (eval $ac_link) 2>conftest.er1
6531   ac_status=$?
6532   grep -v '^ *+' conftest.er1 >conftest.err
6533   rm -f conftest.er1
6534   cat conftest.err >&5
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); } &&
6537          { ac_try='test -z "$ac_c_werror_flag"
6538                          || test ! -s conftest.err'
6539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540   (eval $ac_try) 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); }; } &&
6544          { ac_try='test -s conftest$ac_exeext'
6545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546   (eval $ac_try) 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); }; }; then
6550   ac_cv_func_catgets=yes
6551 else
6552   echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 ac_cv_func_catgets=no
6556 fi
6557 rm -f conftest.err conftest.$ac_objext \
6558       conftest$ac_exeext conftest.$ac_ext
6559 fi
6560 echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
6561 echo "${ECHO_T}$ac_cv_func_catgets" >&6
6562 if test $ac_cv_func_catgets = yes; then
6563   cat >>confdefs.h <<\_ACEOF
6564 #define HAVE_CATGETS 1
6565 _ACEOF
6566
6567 fi
6568
6569
6570 #
6571 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
6572 #
6573 # AC_CHECK_LIB(xnet, socket, ,
6574 #    AC_CHECK_LIB(socket, socket)
6575 #    AC_CHECK_LIB(nsl, inet_ntoa)
6576 # )
6577 #
6578 # Use this for now, instead:
6579 #
6580 case "$host" in
6581         mips-sgi-irix*)
6582                 ;;
6583         ia64-hp-hpux11.*)
6584
6585 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6586 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6587 if test "${ac_cv_lib_socket_socket+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   ac_check_lib_save_LIBS=$LIBS
6591 LIBS="-lsocket  $LIBS"
6592 cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h.  */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h.  */
6598
6599 /* Override any gcc2 internal prototype to avoid an error.  */
6600 #ifdef __cplusplus
6601 extern "C"
6602 #endif
6603 /* We use char because int might match the return type of a gcc2
6604    builtin and then its argument prototype would still apply.  */
6605 char socket ();
6606 int
6607 main ()
6608 {
6609 socket ();
6610   ;
6611   return 0;
6612 }
6613 _ACEOF
6614 rm -f conftest.$ac_objext conftest$ac_exeext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616   (eval $ac_link) 2>conftest.er1
6617   ac_status=$?
6618   grep -v '^ *+' conftest.er1 >conftest.err
6619   rm -f conftest.er1
6620   cat conftest.err >&5
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); } &&
6623          { ac_try='test -z "$ac_c_werror_flag"
6624                          || test ! -s conftest.err'
6625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626   (eval $ac_try) 2>&5
6627   ac_status=$?
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); }; } &&
6630          { ac_try='test -s conftest$ac_exeext'
6631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632   (eval $ac_try) 2>&5
6633   ac_status=$?
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); }; }; then
6636   ac_cv_lib_socket_socket=yes
6637 else
6638   echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6640
6641 ac_cv_lib_socket_socket=no
6642 fi
6643 rm -f conftest.err conftest.$ac_objext \
6644       conftest$ac_exeext conftest.$ac_ext
6645 LIBS=$ac_check_lib_save_LIBS
6646 fi
6647 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6648 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6649 if test $ac_cv_lib_socket_socket = yes; then
6650   cat >>confdefs.h <<_ACEOF
6651 #define HAVE_LIBSOCKET 1
6652 _ACEOF
6653
6654   LIBS="-lsocket $LIBS"
6655
6656 fi
6657
6658
6659 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
6660 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
6661 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
6662   echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664   ac_check_lib_save_LIBS=$LIBS
6665 LIBS="-lnsl  $LIBS"
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h.  */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h.  */
6672
6673 /* Override any gcc2 internal prototype to avoid an error.  */
6674 #ifdef __cplusplus
6675 extern "C"
6676 #endif
6677 /* We use char because int might match the return type of a gcc2
6678    builtin and then its argument prototype would still apply.  */
6679 char inet_ntoa ();
6680 int
6681 main ()
6682 {
6683 inet_ntoa ();
6684   ;
6685   return 0;
6686 }
6687 _ACEOF
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690   (eval $ac_link) 2>conftest.er1
6691   ac_status=$?
6692   grep -v '^ *+' conftest.er1 >conftest.err
6693   rm -f conftest.er1
6694   cat conftest.err >&5
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } &&
6697          { ac_try='test -z "$ac_c_werror_flag"
6698                          || test ! -s conftest.err'
6699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700   (eval $ac_try) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; } &&
6704          { ac_try='test -s conftest$ac_exeext'
6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706   (eval $ac_try) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); }; }; then
6710   ac_cv_lib_nsl_inet_ntoa=yes
6711 else
6712   echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 ac_cv_lib_nsl_inet_ntoa=no
6716 fi
6717 rm -f conftest.err conftest.$ac_objext \
6718       conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6720 fi
6721 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6722 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
6723 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
6724   cat >>confdefs.h <<_ACEOF
6725 #define HAVE_LIBNSL 1
6726 _ACEOF
6727
6728   LIBS="-lnsl $LIBS"
6729
6730 fi
6731
6732                 ;;
6733         *)
6734
6735 echo "$as_me:$LINENO: checking for gethostbyname_r in -ld4r" >&5
6736 echo $ECHO_N "checking for gethostbyname_r in -ld4r... $ECHO_C" >&6
6737 if test "${ac_cv_lib_d4r_gethostbyname_r+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   ac_check_lib_save_LIBS=$LIBS
6741 LIBS="-ld4r  $LIBS"
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h.  */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h.  */
6748
6749 /* Override any gcc2 internal prototype to avoid an error.  */
6750 #ifdef __cplusplus
6751 extern "C"
6752 #endif
6753 /* We use char because int might match the return type of a gcc2
6754    builtin and then its argument prototype would still apply.  */
6755 char gethostbyname_r ();
6756 int
6757 main ()
6758 {
6759 gethostbyname_r ();
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766   (eval $ac_link) 2>conftest.er1
6767   ac_status=$?
6768   grep -v '^ *+' conftest.er1 >conftest.err
6769   rm -f conftest.er1
6770   cat conftest.err >&5
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } &&
6773          { ac_try='test -z "$ac_c_werror_flag"
6774                          || test ! -s conftest.err'
6775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776   (eval $ac_try) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; } &&
6780          { ac_try='test -s conftest$ac_exeext'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786   ac_cv_lib_d4r_gethostbyname_r=yes
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 ac_cv_lib_d4r_gethostbyname_r=no
6792 fi
6793 rm -f conftest.err conftest.$ac_objext \
6794       conftest$ac_exeext conftest.$ac_ext
6795 LIBS=$ac_check_lib_save_LIBS
6796 fi
6797 echo "$as_me:$LINENO: result: $ac_cv_lib_d4r_gethostbyname_r" >&5
6798 echo "${ECHO_T}$ac_cv_lib_d4r_gethostbyname_r" >&6
6799 if test $ac_cv_lib_d4r_gethostbyname_r = yes; then
6800   cat >>confdefs.h <<_ACEOF
6801 #define HAVE_LIBD4R 1
6802 _ACEOF
6803
6804   LIBS="-ld4r $LIBS"
6805
6806 fi
6807
6808
6809 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6810 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6811 if test "${ac_cv_lib_socket_socket+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   ac_check_lib_save_LIBS=$LIBS
6815 LIBS="-lsocket  $LIBS"
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h.  */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h.  */
6822
6823 /* Override any gcc2 internal prototype to avoid an error.  */
6824 #ifdef __cplusplus
6825 extern "C"
6826 #endif
6827 /* We use char because int might match the return type of a gcc2
6828    builtin and then its argument prototype would still apply.  */
6829 char socket ();
6830 int
6831 main ()
6832 {
6833 socket ();
6834   ;
6835   return 0;
6836 }
6837 _ACEOF
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6840   (eval $ac_link) 2>conftest.er1
6841   ac_status=$?
6842   grep -v '^ *+' conftest.er1 >conftest.err
6843   rm -f conftest.er1
6844   cat conftest.err >&5
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); } &&
6847          { ac_try='test -z "$ac_c_werror_flag"
6848                          || test ! -s conftest.err'
6849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850   (eval $ac_try) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); }; } &&
6854          { ac_try='test -s conftest$ac_exeext'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; }; then
6860   ac_cv_lib_socket_socket=yes
6861 else
6862   echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 ac_cv_lib_socket_socket=no
6866 fi
6867 rm -f conftest.err conftest.$ac_objext \
6868       conftest$ac_exeext conftest.$ac_ext
6869 LIBS=$ac_check_lib_save_LIBS
6870 fi
6871 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6872 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6873 if test $ac_cv_lib_socket_socket = yes; then
6874   cat >>confdefs.h <<_ACEOF
6875 #define HAVE_LIBSOCKET 1
6876 _ACEOF
6877
6878   LIBS="-lsocket $LIBS"
6879
6880 fi
6881
6882
6883 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
6884 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
6885 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   ac_check_lib_save_LIBS=$LIBS
6889 LIBS="-lnsl  $LIBS"
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h.  */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h.  */
6896
6897 /* Override any gcc2 internal prototype to avoid an error.  */
6898 #ifdef __cplusplus
6899 extern "C"
6900 #endif
6901 /* We use char because int might match the return type of a gcc2
6902    builtin and then its argument prototype would still apply.  */
6903 char inet_ntoa ();
6904 int
6905 main ()
6906 {
6907 inet_ntoa ();
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext conftest$ac_exeext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6914   (eval $ac_link) 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } &&
6921          { ac_try='test -z "$ac_c_werror_flag"
6922                          || test ! -s conftest.err'
6923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924   (eval $ac_try) 2>&5
6925   ac_status=$?
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); }; } &&
6928          { ac_try='test -s conftest$ac_exeext'
6929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930   (eval $ac_try) 2>&5
6931   ac_status=$?
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); }; }; then
6934   ac_cv_lib_nsl_inet_ntoa=yes
6935 else
6936   echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939 ac_cv_lib_nsl_inet_ntoa=no
6940 fi
6941 rm -f conftest.err conftest.$ac_objext \
6942       conftest$ac_exeext conftest.$ac_ext
6943 LIBS=$ac_check_lib_save_LIBS
6944 fi
6945 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6946 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
6947 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
6948   cat >>confdefs.h <<_ACEOF
6949 #define HAVE_LIBNSL 1
6950 _ACEOF
6951
6952   LIBS="-lnsl $LIBS"
6953
6954 fi
6955
6956                 ;;
6957 esac
6958
6959 #
6960 # Purify support
6961 #
6962 echo "$as_me:$LINENO: checking whether to use purify" >&5
6963 echo $ECHO_N "checking whether to use purify... $ECHO_C" >&6
6964
6965 # Check whether --with-purify or --without-purify was given.
6966 if test "${with_purify+set}" = set; then
6967   withval="$with_purify"
6968   use_purify="$withval"
6969 else
6970   use_purify="no"
6971 fi;
6972
6973 case "$use_purify" in
6974         no)
6975                 ;;
6976         yes)
6977                 # Extract the first word of "purify", so it can be a program name with args.
6978 set dummy purify; ac_word=$2
6979 echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6981 if test "${ac_cv_path_purify_path+set}" = set; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984   case $purify_path in
6985   [\\/]* | ?:[\\/]*)
6986   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
6987   ;;
6988   *)
6989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992   IFS=$as_save_IFS
6993   test -z "$as_dir" && as_dir=.
6994   for ac_exec_ext in '' $ac_executable_extensions; do
6995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
6997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998     break 2
6999   fi
7000 done
7001 done
7002
7003   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
7004   ;;
7005 esac
7006 fi
7007 purify_path=$ac_cv_path_purify_path
7008
7009 if test -n "$purify_path"; then
7010   echo "$as_me:$LINENO: result: $purify_path" >&5
7011 echo "${ECHO_T}$purify_path" >&6
7012 else
7013   echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6
7015 fi
7016
7017                 ;;
7018         *)
7019                 purify_path="$use_purify"
7020                 ;;
7021 esac
7022
7023 case "$use_purify" in
7024         no)
7025                 echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7027                 PURIFY=""
7028                 ;;
7029         *)
7030                 if test -f $purify_path || test $purify_path = purify; then
7031                         echo "$as_me:$LINENO: result: $purify_path" >&5
7032 echo "${ECHO_T}$purify_path" >&6
7033                         PURIFYFLAGS="`echo $PURIFYOPTIONS`"
7034                         PURIFY="$purify_path $PURIFYFLAGS"
7035                 else
7036                         { { echo "$as_me:$LINENO: error: $purify_path not found.
7037
7038 Please choose the proper path with the following command:
7039
7040     configure --with-purify=PATH
7041 " >&5
7042 echo "$as_me: error: $purify_path not found.
7043
7044 Please choose the proper path with the following command:
7045
7046     configure --with-purify=PATH
7047 " >&2;}
7048    { (exit 1); exit 1; }; }
7049                 fi
7050                 ;;
7051 esac
7052
7053
7054
7055 #
7056 # GNU libtool support
7057 #
7058
7059 # Check whether --with-libtool or --without-libtool was given.
7060 if test "${with_libtool+set}" = set; then
7061   withval="$with_libtool"
7062   use_libtool="$withval"
7063 else
7064   use_libtool="no"
7065 fi;
7066
7067 case $use_libtool in
7068         yes)
7069                 # Check whether --enable-shared or --disable-shared was given.
7070 if test "${enable_shared+set}" = set; then
7071   enableval="$enable_shared"
7072   p=${PACKAGE-default}
7073     case $enableval in
7074     yes) enable_shared=yes ;;
7075     no) enable_shared=no ;;
7076     *)
7077       enable_shared=no
7078       # Look at the argument we got.  We use all the common list separators.
7079       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7080       for pkg in $enableval; do
7081         IFS="$lt_save_ifs"
7082         if test "X$pkg" = "X$p"; then
7083           enable_shared=yes
7084         fi
7085       done
7086       IFS="$lt_save_ifs"
7087       ;;
7088     esac
7089 else
7090   enable_shared=yes
7091 fi;
7092
7093 # Check whether --enable-static or --disable-static was given.
7094 if test "${enable_static+set}" = set; then
7095   enableval="$enable_static"
7096   p=${PACKAGE-default}
7097     case $enableval in
7098     yes) enable_static=yes ;;
7099     no) enable_static=no ;;
7100     *)
7101      enable_static=no
7102       # Look at the argument we got.  We use all the common list separators.
7103       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7104       for pkg in $enableval; do
7105         IFS="$lt_save_ifs"
7106         if test "X$pkg" = "X$p"; then
7107           enable_static=yes
7108         fi
7109       done
7110       IFS="$lt_save_ifs"
7111       ;;
7112     esac
7113 else
7114   enable_static=yes
7115 fi;
7116
7117 # Check whether --enable-fast-install or --disable-fast-install was given.
7118 if test "${enable_fast_install+set}" = set; then
7119   enableval="$enable_fast_install"
7120   p=${PACKAGE-default}
7121     case $enableval in
7122     yes) enable_fast_install=yes ;;
7123     no) enable_fast_install=no ;;
7124     *)
7125       enable_fast_install=no
7126       # Look at the argument we got.  We use all the common list separators.
7127       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7128       for pkg in $enableval; do
7129         IFS="$lt_save_ifs"
7130         if test "X$pkg" = "X$p"; then
7131           enable_fast_install=yes
7132         fi
7133       done
7134       IFS="$lt_save_ifs"
7135       ;;
7136     esac
7137 else
7138   enable_fast_install=yes
7139 fi;
7140
7141 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7142 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
7143 if test "${lt_cv_path_SED+set}" = set; then
7144   echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146   # Loop through the user's path and test for sed and gsed.
7147 # Then use that list of sed's as ones to test for truncation.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153   for lt_ac_prog in sed gsed; do
7154     for ac_exec_ext in '' $ac_executable_extensions; do
7155       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7156         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7157       fi
7158     done
7159   done
7160 done
7161 lt_ac_max=0
7162 lt_ac_count=0
7163 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7164 # along with /bin/sed that truncates output.
7165 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7166   test ! -f $lt_ac_sed && break
7167   cat /dev/null > conftest.in
7168   lt_ac_count=0
7169   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7170   # Check for GNU sed and select it if it is found.
7171   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7172     lt_cv_path_SED=$lt_ac_sed
7173     break
7174   fi
7175   while true; do
7176     cat conftest.in conftest.in >conftest.tmp
7177     mv conftest.tmp conftest.in
7178     cp conftest.in conftest.nl
7179     echo >>conftest.nl
7180     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7181     cmp -s conftest.out conftest.nl || break
7182     # 10000 chars as input seems more than enough
7183     test $lt_ac_count -gt 10 && break
7184     lt_ac_count=`expr $lt_ac_count + 1`
7185     if test $lt_ac_count -gt $lt_ac_max; then
7186       lt_ac_max=$lt_ac_count
7187       lt_cv_path_SED=$lt_ac_sed
7188     fi
7189   done
7190 done
7191
7192 fi
7193
7194 SED=$lt_cv_path_SED
7195 echo "$as_me:$LINENO: result: $SED" >&5
7196 echo "${ECHO_T}$SED" >&6
7197
7198
7199 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7200 if test "${with_gnu_ld+set}" = set; then
7201   withval="$with_gnu_ld"
7202   test "$withval" = no || with_gnu_ld=yes
7203 else
7204   with_gnu_ld=no
7205 fi;
7206 ac_prog=ld
7207 if test "$GCC" = yes; then
7208   # Check if gcc -print-prog-name=ld gives a path.
7209   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7210 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7211   case $host in
7212   *-*-mingw*)
7213     # gcc leaves a trailing carriage return which upsets mingw
7214     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7215   *)
7216     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7217   esac
7218   case $ac_prog in
7219     # Accept absolute paths.
7220     [\\/]* | ?:[\\/]*)
7221       re_direlt='/[^/][^/]*/\.\./'
7222       # Canonicalize the pathname of ld
7223       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7224       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7225         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7226       done
7227       test -z "$LD" && LD="$ac_prog"
7228       ;;
7229   "")
7230     # If it fails, then pretend we aren't using GCC.
7231     ac_prog=ld
7232     ;;
7233   *)
7234     # If it is relative, then search for the first ld in PATH.
7235     with_gnu_ld=unknown
7236     ;;
7237   esac
7238 elif test "$with_gnu_ld" = yes; then
7239   echo "$as_me:$LINENO: checking for GNU ld" >&5
7240 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7241 else
7242   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7243 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7244 fi
7245 if test "${lt_cv_path_LD+set}" = set; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   if test -z "$LD"; then
7249   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7250   for ac_dir in $PATH; do
7251     IFS="$lt_save_ifs"
7252     test -z "$ac_dir" && ac_dir=.
7253     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7254       lt_cv_path_LD="$ac_dir/$ac_prog"
7255       # Check to see if the program is GNU ld.  I'd rather use --version,
7256       # but apparently some GNU ld's only accept -v.
7257       # Break only if it was the GNU/non-GNU ld that we prefer.
7258       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7259       *GNU* | *'with BFD'*)
7260         test "$with_gnu_ld" != no && break
7261         ;;
7262       *)
7263         test "$with_gnu_ld" != yes && break
7264         ;;
7265       esac
7266     fi
7267   done
7268   IFS="$lt_save_ifs"
7269 else
7270   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7271 fi
7272 fi
7273
7274 LD="$lt_cv_path_LD"
7275 if test -n "$LD"; then
7276   echo "$as_me:$LINENO: result: $LD" >&5
7277 echo "${ECHO_T}$LD" >&6
7278 else
7279   echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6
7281 fi
7282 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7283 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7284    { (exit 1); exit 1; }; }
7285 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7286 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7287 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7288   echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7291 case `$LD -v 2>&1 </dev/null` in
7292 *GNU* | *'with BFD'*)
7293   lt_cv_prog_gnu_ld=yes
7294   ;;
7295 *)
7296   lt_cv_prog_gnu_ld=no
7297   ;;
7298 esac
7299 fi
7300 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7301 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7302 with_gnu_ld=$lt_cv_prog_gnu_ld
7303
7304
7305 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7306 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7307 if test "${lt_cv_ld_reload_flag+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   lt_cv_ld_reload_flag='-r'
7311 fi
7312 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7313 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7314 reload_flag=$lt_cv_ld_reload_flag
7315 case $reload_flag in
7316 "" | " "*) ;;
7317 *) reload_flag=" $reload_flag" ;;
7318 esac
7319 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7320 case $host_os in
7321   darwin*)
7322     if test "$GCC" = yes; then
7323       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
7324     else
7325       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7326     fi
7327     ;;
7328 esac
7329
7330 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7331 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7332 if test "${lt_cv_path_NM+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335   if test -n "$NM"; then
7336   # Let the user override the test.
7337   lt_cv_path_NM="$NM"
7338 else
7339   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7340   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7341     IFS="$lt_save_ifs"
7342     test -z "$ac_dir" && ac_dir=.
7343     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7344     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7345       # Check to see if the nm accepts a BSD-compat flag.
7346       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7347       #   nm: unknown option "B" ignored
7348       # Tru64's nm complains that /dev/null is an invalid object file
7349       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7350       */dev/null* | *'Invalid file or object type'*)
7351         lt_cv_path_NM="$tmp_nm -B"
7352         break
7353         ;;
7354       *)
7355         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7356         */dev/null*)
7357           lt_cv_path_NM="$tmp_nm -p"
7358           break
7359           ;;
7360         *)
7361           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7362           continue # so that we can try to find one that supports BSD flags
7363           ;;
7364         esac
7365       esac
7366     fi
7367   done
7368   IFS="$lt_save_ifs"
7369   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7370 fi
7371 fi
7372 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7373 echo "${ECHO_T}$lt_cv_path_NM" >&6
7374 NM="$lt_cv_path_NM"
7375
7376 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7377 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7378 LN_S=$as_ln_s
7379 if test "$LN_S" = "ln -s"; then
7380   echo "$as_me:$LINENO: result: yes" >&5
7381 echo "${ECHO_T}yes" >&6
7382 else
7383   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7384 echo "${ECHO_T}no, using $LN_S" >&6
7385 fi
7386
7387 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7388 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7389 if test "${lt_cv_deplibs_check_method+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   lt_cv_file_magic_cmd='$MAGIC_CMD'
7393 lt_cv_file_magic_test_file=
7394 lt_cv_deplibs_check_method='unknown'
7395 # Need to set the preceding variable on all platforms that support
7396 # interlibrary dependencies.
7397 # 'none' -- dependencies not supported.
7398 # `unknown' -- same as none, but documents that we really don't know.
7399 # 'pass_all' -- all dependencies passed with no checks.
7400 # 'test_compile' -- check by making test program.
7401 # 'file_magic [[regex]]' -- check by looking for files in library path
7402 # which responds to the $file_magic_cmd with a given extended regex.
7403 # If you have `file' or equivalent on your system and you're not sure
7404 # whether `pass_all' will *always* work, you probably want this one.
7405
7406 case $host_os in
7407 aix4* | aix5*)
7408   lt_cv_deplibs_check_method=pass_all
7409   ;;
7410
7411 beos*)
7412   lt_cv_deplibs_check_method=pass_all
7413   ;;
7414
7415 bsdi[45]*)
7416   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7417   lt_cv_file_magic_cmd='/usr/bin/file -L'
7418   lt_cv_file_magic_test_file=/shlib/libc.so
7419   ;;
7420
7421 cygwin*)
7422   # func_win32_libid is a shell function defined in ltmain.sh
7423   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7424   lt_cv_file_magic_cmd='func_win32_libid'
7425   ;;
7426
7427 mingw* | pw32*)
7428   # Base MSYS/MinGW do not provide the 'file' command needed by
7429   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7430   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7431   lt_cv_file_magic_cmd='$OBJDUMP -f'
7432   ;;
7433
7434 darwin* | rhapsody*)
7435   lt_cv_deplibs_check_method=pass_all
7436   ;;
7437
7438 freebsd* | kfreebsd*-gnu)
7439   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7440     case $host_cpu in
7441     i*86 )
7442       # Not sure whether the presence of OpenBSD here was a mistake.
7443       # Let's accept both of them until this is cleared up.
7444       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7445       lt_cv_file_magic_cmd=/usr/bin/file
7446       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7447       ;;
7448     esac
7449   else
7450     lt_cv_deplibs_check_method=pass_all
7451   fi
7452   ;;
7453
7454 gnu*)
7455   lt_cv_deplibs_check_method=pass_all
7456   ;;
7457
7458 hpux10.20* | hpux11*)
7459   lt_cv_file_magic_cmd=/usr/bin/file
7460   case "$host_cpu" in
7461   ia64*)
7462     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7463     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7464     ;;
7465   hppa*64*)
7466     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]'
7467     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7468     ;;
7469   *)
7470     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7471     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7472     ;;
7473   esac
7474   ;;
7475
7476 irix5* | irix6* | nonstopux*)
7477   case $LD in
7478   *-32|*"-32 ") libmagic=32-bit;;
7479   *-n32|*"-n32 ") libmagic=N32;;
7480   *-64|*"-64 ") libmagic=64-bit;;
7481   *) libmagic=never-match;;
7482   esac
7483   lt_cv_deplibs_check_method=pass_all
7484   ;;
7485
7486 # This must be Linux ELF.
7487 linux*)
7488   lt_cv_deplibs_check_method=pass_all
7489   ;;
7490
7491 netbsd*)
7492   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7493     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7494   else
7495     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7496   fi
7497   ;;
7498
7499 newos6*)
7500   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7501   lt_cv_file_magic_cmd=/usr/bin/file
7502   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7503   ;;
7504
7505 nto-qnx*)
7506   lt_cv_deplibs_check_method=unknown
7507   ;;
7508
7509 openbsd*)
7510   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7511     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7512   else
7513     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7514   fi
7515   ;;
7516
7517 osf3* | osf4* | osf5*)
7518   lt_cv_deplibs_check_method=pass_all
7519   ;;
7520
7521 sco3.2v5*)
7522   lt_cv_deplibs_check_method=pass_all
7523   ;;
7524
7525 solaris*)
7526   lt_cv_deplibs_check_method=pass_all
7527   ;;
7528
7529 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7530   case $host_vendor in
7531   motorola)
7532     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]'
7533     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7534     ;;
7535   ncr)
7536     lt_cv_deplibs_check_method=pass_all
7537     ;;
7538   sequent)
7539     lt_cv_file_magic_cmd='/bin/file'
7540     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7541     ;;
7542   sni)
7543     lt_cv_file_magic_cmd='/bin/file'
7544     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7545     lt_cv_file_magic_test_file=/lib/libc.so
7546     ;;
7547   siemens)
7548     lt_cv_deplibs_check_method=pass_all
7549     ;;
7550   esac
7551   ;;
7552
7553 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
7554   lt_cv_deplibs_check_method=pass_all
7555   ;;
7556 esac
7557
7558 fi
7559 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7560 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7561 file_magic_cmd=$lt_cv_file_magic_cmd
7562 deplibs_check_method=$lt_cv_deplibs_check_method
7563 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7564
7565
7566
7567
7568 # If no C compiler was specified, use CC.
7569 LTCC=${LTCC-"$CC"}
7570
7571 # Allow CC to be a program name with arguments.
7572 compiler=$CC
7573
7574 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7575 if test "${enable_libtool_lock+set}" = set; then
7576   enableval="$enable_libtool_lock"
7577
7578 fi;
7579 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7580
7581 # Some flags need to be propagated to the compiler or linker for good
7582 # libtool support.
7583 case $host in
7584 ia64-*-hpux*)
7585   # Find out which ABI we are using.
7586   echo 'int i;' > conftest.$ac_ext
7587   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588   (eval $ac_compile) 2>&5
7589   ac_status=$?
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); }; then
7592     case `/usr/bin/file conftest.$ac_objext` in
7593     *ELF-32*)
7594       HPUX_IA64_MODE="32"
7595       ;;
7596     *ELF-64*)
7597       HPUX_IA64_MODE="64"
7598       ;;
7599     esac
7600   fi
7601   rm -rf conftest*
7602   ;;
7603 *-*-irix6*)
7604   # Find out which ABI we are using.
7605   echo '#line 7605 "configure"' > conftest.$ac_ext
7606   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607   (eval $ac_compile) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; then
7611    if test "$lt_cv_prog_gnu_ld" = yes; then
7612     case `/usr/bin/file conftest.$ac_objext` in
7613     *32-bit*)
7614       LD="${LD-ld} -melf32bsmip"
7615       ;;
7616     *N32*)
7617       LD="${LD-ld} -melf32bmipn32"
7618       ;;
7619     *64-bit*)
7620       LD="${LD-ld} -melf64bmip"
7621       ;;
7622     esac
7623    else
7624     case `/usr/bin/file conftest.$ac_objext` in
7625     *32-bit*)
7626       LD="${LD-ld} -32"
7627       ;;
7628     *N32*)
7629       LD="${LD-ld} -n32"
7630       ;;
7631     *64-bit*)
7632       LD="${LD-ld} -64"
7633       ;;
7634     esac
7635    fi
7636   fi
7637   rm -rf conftest*
7638   ;;
7639
7640 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7641   # Find out which ABI we are using.
7642   echo 'int i;' > conftest.$ac_ext
7643   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644   (eval $ac_compile) 2>&5
7645   ac_status=$?
7646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); }; then
7648     case "`/usr/bin/file conftest.o`" in
7649     *32-bit*)
7650       case $host in
7651         x86_64-*linux*)
7652           LD="${LD-ld} -m elf_i386"
7653           ;;
7654         ppc64-*linux*|powerpc64-*linux*)
7655           LD="${LD-ld} -m elf32ppclinux"
7656           ;;
7657         s390x-*linux*)
7658           LD="${LD-ld} -m elf_s390"
7659           ;;
7660         sparc64-*linux*)
7661           LD="${LD-ld} -m elf32_sparc"
7662           ;;
7663       esac
7664       ;;
7665     *64-bit*)
7666       case $host in
7667         x86_64-*linux*)
7668           LD="${LD-ld} -m elf_x86_64"
7669           ;;
7670         ppc*-*linux*|powerpc*-*linux*)
7671           LD="${LD-ld} -m elf64ppc"
7672           ;;
7673         s390*-*linux*)
7674           LD="${LD-ld} -m elf64_s390"
7675           ;;
7676         sparc*-*linux*)
7677           LD="${LD-ld} -m elf64_sparc"
7678           ;;
7679       esac
7680       ;;
7681     esac
7682   fi
7683   rm -rf conftest*
7684   ;;
7685
7686 *-*-sco3.2v5*)
7687   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7688   SAVE_CFLAGS="$CFLAGS"
7689   CFLAGS="$CFLAGS -belf"
7690   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7691 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7692 if test "${lt_cv_cc_needs_belf+set}" = set; then
7693   echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695   ac_ext=c
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700
7701      cat >conftest.$ac_ext <<_ACEOF
7702 /* confdefs.h.  */
7703 _ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h.  */
7707
7708 int
7709 main ()
7710 {
7711
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext conftest$ac_exeext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7718   (eval $ac_link) 2>conftest.er1
7719   ac_status=$?
7720   grep -v '^ *+' conftest.er1 >conftest.err
7721   rm -f conftest.er1
7722   cat conftest.err >&5
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } &&
7725          { ac_try='test -z "$ac_c_werror_flag"
7726                          || test ! -s conftest.err'
7727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728   (eval $ac_try) 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }; } &&
7732          { ac_try='test -s conftest$ac_exeext'
7733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734   (eval $ac_try) 2>&5
7735   ac_status=$?
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; }; then
7738   lt_cv_cc_needs_belf=yes
7739 else
7740   echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 lt_cv_cc_needs_belf=no
7744 fi
7745 rm -f conftest.err conftest.$ac_objext \
7746       conftest$ac_exeext conftest.$ac_ext
7747      ac_ext=c
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752
7753 fi
7754 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7755 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7756   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7757     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7758     CFLAGS="$SAVE_CFLAGS"
7759   fi
7760   ;;
7761
7762 esac
7763
7764 need_locks="$enable_libtool_lock"
7765
7766
7767
7768 for ac_header in dlfcn.h
7769 do
7770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7772   echo "$as_me:$LINENO: checking for $ac_header" >&5
7773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 fi
7777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7779 else
7780   # Is the header compilable?
7781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789 $ac_includes_default
7790 #include <$ac_header>
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794   (eval $ac_compile) 2>conftest.er1
7795   ac_status=$?
7796   grep -v '^ *+' conftest.er1 >conftest.err
7797   rm -f conftest.er1
7798   cat conftest.err >&5
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); } &&
7801          { ac_try='test -z "$ac_c_werror_flag"
7802                          || test ! -s conftest.err'
7803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804   (eval $ac_try) 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); }; } &&
7808          { ac_try='test -s conftest.$ac_objext'
7809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810   (eval $ac_try) 2>&5
7811   ac_status=$?
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); }; }; then
7814   ac_header_compiler=yes
7815 else
7816   echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 ac_header_compiler=no
7820 fi
7821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7823 echo "${ECHO_T}$ac_header_compiler" >&6
7824
7825 # Is the header present?
7826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h.  */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h.  */
7834 #include <$ac_header>
7835 _ACEOF
7836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7837   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7838   ac_status=$?
7839   grep -v '^ *+' conftest.er1 >conftest.err
7840   rm -f conftest.er1
7841   cat conftest.err >&5
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); } >/dev/null; then
7844   if test -s conftest.err; then
7845     ac_cpp_err=$ac_c_preproc_warn_flag
7846     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7847   else
7848     ac_cpp_err=
7849   fi
7850 else
7851   ac_cpp_err=yes
7852 fi
7853 if test -z "$ac_cpp_err"; then
7854   ac_header_preproc=yes
7855 else
7856   echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859   ac_header_preproc=no
7860 fi
7861 rm -f conftest.err conftest.$ac_ext
7862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7863 echo "${ECHO_T}$ac_header_preproc" >&6
7864
7865 # So?  What about this header?
7866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7867   yes:no: )
7868     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7872     ac_header_preproc=yes
7873     ;;
7874   no:yes:* )
7875     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7877     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7878 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7879     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7881     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7882 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7885     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7887     (
7888       cat <<\_ASBOX
7889 ## ------------------------------------------ ##
7890 ## Report this to the AC_PACKAGE_NAME lists.  ##
7891 ## ------------------------------------------ ##
7892 _ASBOX
7893     ) |
7894       sed "s/^/$as_me: WARNING:     /" >&2
7895     ;;
7896 esac
7897 echo "$as_me:$LINENO: checking for $ac_header" >&5
7898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   eval "$as_ac_Header=\$ac_header_preproc"
7903 fi
7904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7906
7907 fi
7908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7909   cat >>confdefs.h <<_ACEOF
7910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911 _ACEOF
7912
7913 fi
7914
7915 done
7916
7917 ac_ext=cc
7918 ac_cpp='$CXXCPP $CPPFLAGS'
7919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7922 if test -n "$ac_tool_prefix"; then
7923   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7924   do
7925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7927 echo "$as_me:$LINENO: checking for $ac_word" >&5
7928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7929 if test "${ac_cv_prog_CXX+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932   if test -n "$CXX"; then
7933   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938   IFS=$as_save_IFS
7939   test -z "$as_dir" && as_dir=.
7940   for ac_exec_ext in '' $ac_executable_extensions; do
7941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7944     break 2
7945   fi
7946 done
7947 done
7948
7949 fi
7950 fi
7951 CXX=$ac_cv_prog_CXX
7952 if test -n "$CXX"; then
7953   echo "$as_me:$LINENO: result: $CXX" >&5
7954 echo "${ECHO_T}$CXX" >&6
7955 else
7956   echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6
7958 fi
7959
7960     test -n "$CXX" && break
7961   done
7962 fi
7963 if test -z "$CXX"; then
7964   ac_ct_CXX=$CXX
7965   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7966 do
7967   # Extract the first word of "$ac_prog", so it can be a program name with args.
7968 set dummy $ac_prog; ac_word=$2
7969 echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7971 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7972   echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974   if test -n "$ac_ct_CXX"; then
7975   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980   IFS=$as_save_IFS
7981   test -z "$as_dir" && as_dir=.
7982   for ac_exec_ext in '' $ac_executable_extensions; do
7983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984     ac_cv_prog_ac_ct_CXX="$ac_prog"
7985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986     break 2
7987   fi
7988 done
7989 done
7990
7991 fi
7992 fi
7993 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7994 if test -n "$ac_ct_CXX"; then
7995   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7996 echo "${ECHO_T}$ac_ct_CXX" >&6
7997 else
7998   echo "$as_me:$LINENO: result: no" >&5
7999 echo "${ECHO_T}no" >&6
8000 fi
8001
8002   test -n "$ac_ct_CXX" && break
8003 done
8004 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8005
8006   CXX=$ac_ct_CXX
8007 fi
8008
8009
8010 # Provide some information about the compiler.
8011 echo "$as_me:$LINENO:" \
8012      "checking for C++ compiler version" >&5
8013 ac_compiler=`set X $ac_compile; echo $2`
8014 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8015   (eval $ac_compiler --version </dev/null >&5) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }
8019 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8020   (eval $ac_compiler -v </dev/null >&5) 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }
8024 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8025   (eval $ac_compiler -V </dev/null >&5) 2>&5
8026   ac_status=$?
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); }
8029
8030 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8031 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8032 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041
8042 int
8043 main ()
8044 {
8045 #ifndef __GNUC__
8046        choke me
8047 #endif
8048
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 rm -f conftest.$ac_objext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055   (eval $ac_compile) 2>conftest.er1
8056   ac_status=$?
8057   grep -v '^ *+' conftest.er1 >conftest.err
8058   rm -f conftest.er1
8059   cat conftest.err >&5
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } &&
8062          { ac_try='test -z "$ac_cxx_werror_flag"
8063                          || test ! -s conftest.err'
8064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065   (eval $ac_try) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); }; } &&
8069          { ac_try='test -s conftest.$ac_objext'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; }; then
8075   ac_compiler_gnu=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080 ac_compiler_gnu=no
8081 fi
8082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8083 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8084
8085 fi
8086 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8087 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8088 GXX=`test $ac_compiler_gnu = yes && echo yes`
8089 ac_test_CXXFLAGS=${CXXFLAGS+set}
8090 ac_save_CXXFLAGS=$CXXFLAGS
8091 CXXFLAGS="-g"
8092 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8093 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8094 if test "${ac_cv_prog_cxx_g+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103
8104 int
8105 main ()
8106 {
8107
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114   (eval $ac_compile) 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } &&
8121          { ac_try='test -z "$ac_cxx_werror_flag"
8122                          || test ! -s conftest.err'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; } &&
8128          { ac_try='test -s conftest.$ac_objext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_prog_cxx_g=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_cv_prog_cxx_g=no
8140 fi
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8144 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8145 if test "$ac_test_CXXFLAGS" = set; then
8146   CXXFLAGS=$ac_save_CXXFLAGS
8147 elif test $ac_cv_prog_cxx_g = yes; then
8148   if test "$GXX" = yes; then
8149     CXXFLAGS="-g -O2"
8150   else
8151     CXXFLAGS="-g"
8152   fi
8153 else
8154   if test "$GXX" = yes; then
8155     CXXFLAGS="-O2"
8156   else
8157     CXXFLAGS=
8158   fi
8159 fi
8160 for ac_declaration in \
8161    '' \
8162    'extern "C" void std::exit (int) throw (); using std::exit;' \
8163    'extern "C" void std::exit (int); using std::exit;' \
8164    'extern "C" void exit (int) throw ();' \
8165    'extern "C" void exit (int);' \
8166    'void exit (int);'
8167 do
8168   cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174 $ac_declaration
8175 #include <stdlib.h>
8176 int
8177 main ()
8178 {
8179 exit (42);
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186   (eval $ac_compile) 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -z "$ac_cxx_werror_flag"
8194                          || test ! -s conftest.err'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; } &&
8200          { ac_try='test -s conftest.$ac_objext'
8201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202   (eval $ac_try) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; }; then
8206   :
8207 else
8208   echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 continue
8212 fi
8213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8214   cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 $ac_declaration
8221 int
8222 main ()
8223 {
8224 exit (42);
8225   ;
8226   return 0;
8227 }
8228 _ACEOF
8229 rm -f conftest.$ac_objext
8230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8231   (eval $ac_compile) 2>conftest.er1
8232   ac_status=$?
8233   grep -v '^ *+' conftest.er1 >conftest.err
8234   rm -f conftest.er1
8235   cat conftest.err >&5
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } &&
8238          { ac_try='test -z "$ac_cxx_werror_flag"
8239                          || test ! -s conftest.err'
8240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241   (eval $ac_try) 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); }; } &&
8245          { ac_try='test -s conftest.$ac_objext'
8246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247   (eval $ac_try) 2>&5
8248   ac_status=$?
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); }; }; then
8251   break
8252 else
8253   echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8255
8256 fi
8257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8258 done
8259 rm -f conftest*
8260 if test -n "$ac_declaration"; then
8261   echo '#ifdef __cplusplus' >>confdefs.h
8262   echo $ac_declaration      >>confdefs.h
8263   echo '#endif'             >>confdefs.h
8264 fi
8265
8266 ac_ext=cc
8267 ac_cpp='$CXXCPP $CPPFLAGS'
8268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8271
8272
8273
8274 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8275     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8276     (test "X$CXX" != "Xg++"))) ; then
8277   ac_ext=cc
8278 ac_cpp='$CXXCPP $CPPFLAGS'
8279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8282 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8283 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8284 if test -z "$CXXCPP"; then
8285   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288       # Double quotes because CXXCPP needs to be expanded
8289     for CXXCPP in "$CXX -E" "/lib/cpp"
8290     do
8291       ac_preproc_ok=false
8292 for ac_cxx_preproc_warn_flag in '' yes
8293 do
8294   # Use a header file that comes with gcc, so configuring glibc
8295   # with a fresh cross-compiler works.
8296   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8297   # <limits.h> exists even on freestanding compilers.
8298   # On the NeXT, cc -E runs the code through the compiler's parser,
8299   # not just through cpp. "Syntax error" is here to catch this case.
8300   cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h.  */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h.  */
8306 #ifdef __STDC__
8307 # include <limits.h>
8308 #else
8309 # include <assert.h>
8310 #endif
8311                      Syntax error
8312 _ACEOF
8313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } >/dev/null; then
8321   if test -s conftest.err; then
8322     ac_cpp_err=$ac_cxx_preproc_warn_flag
8323     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8324   else
8325     ac_cpp_err=
8326   fi
8327 else
8328   ac_cpp_err=yes
8329 fi
8330 if test -z "$ac_cpp_err"; then
8331   :
8332 else
8333   echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336   # Broken: fails on valid input.
8337 continue
8338 fi
8339 rm -f conftest.err conftest.$ac_ext
8340
8341   # OK, works on sane cases.  Now check whether non-existent headers
8342   # can be detected and how.
8343   cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349 #include <ac_nonexistent.h>
8350 _ACEOF
8351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8353   ac_status=$?
8354   grep -v '^ *+' conftest.er1 >conftest.err
8355   rm -f conftest.er1
8356   cat conftest.err >&5
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } >/dev/null; then
8359   if test -s conftest.err; then
8360     ac_cpp_err=$ac_cxx_preproc_warn_flag
8361     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8362   else
8363     ac_cpp_err=
8364   fi
8365 else
8366   ac_cpp_err=yes
8367 fi
8368 if test -z "$ac_cpp_err"; then
8369   # Broken: success on invalid input.
8370 continue
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375   # Passes both tests.
8376 ac_preproc_ok=:
8377 break
8378 fi
8379 rm -f conftest.err conftest.$ac_ext
8380
8381 done
8382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8383 rm -f conftest.err conftest.$ac_ext
8384 if $ac_preproc_ok; then
8385   break
8386 fi
8387
8388     done
8389     ac_cv_prog_CXXCPP=$CXXCPP
8390
8391 fi
8392   CXXCPP=$ac_cv_prog_CXXCPP
8393 else
8394   ac_cv_prog_CXXCPP=$CXXCPP
8395 fi
8396 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8397 echo "${ECHO_T}$CXXCPP" >&6
8398 ac_preproc_ok=false
8399 for ac_cxx_preproc_warn_flag in '' yes
8400 do
8401   # Use a header file that comes with gcc, so configuring glibc
8402   # with a fresh cross-compiler works.
8403   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8404   # <limits.h> exists even on freestanding compilers.
8405   # On the NeXT, cc -E runs the code through the compiler's parser,
8406   # not just through cpp. "Syntax error" is here to catch this case.
8407   cat >conftest.$ac_ext <<_ACEOF
8408 /* confdefs.h.  */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h.  */
8413 #ifdef __STDC__
8414 # include <limits.h>
8415 #else
8416 # include <assert.h>
8417 #endif
8418                      Syntax error
8419 _ACEOF
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8422   ac_status=$?
8423   grep -v '^ *+' conftest.er1 >conftest.err
8424   rm -f conftest.er1
8425   cat conftest.err >&5
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } >/dev/null; then
8428   if test -s conftest.err; then
8429     ac_cpp_err=$ac_cxx_preproc_warn_flag
8430     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8431   else
8432     ac_cpp_err=
8433   fi
8434 else
8435   ac_cpp_err=yes
8436 fi
8437 if test -z "$ac_cpp_err"; then
8438   :
8439 else
8440   echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443   # Broken: fails on valid input.
8444 continue
8445 fi
8446 rm -f conftest.err conftest.$ac_ext
8447
8448   # OK, works on sane cases.  Now check whether non-existent headers
8449   # can be detected and how.
8450   cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 #include <ac_nonexistent.h>
8457 _ACEOF
8458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8460   ac_status=$?
8461   grep -v '^ *+' conftest.er1 >conftest.err
8462   rm -f conftest.er1
8463   cat conftest.err >&5
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); } >/dev/null; then
8466   if test -s conftest.err; then
8467     ac_cpp_err=$ac_cxx_preproc_warn_flag
8468     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8469   else
8470     ac_cpp_err=
8471   fi
8472 else
8473   ac_cpp_err=yes
8474 fi
8475 if test -z "$ac_cpp_err"; then
8476   # Broken: success on invalid input.
8477 continue
8478 else
8479   echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482   # Passes both tests.
8483 ac_preproc_ok=:
8484 break
8485 fi
8486 rm -f conftest.err conftest.$ac_ext
8487
8488 done
8489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8490 rm -f conftest.err conftest.$ac_ext
8491 if $ac_preproc_ok; then
8492   :
8493 else
8494   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8495 See \`config.log' for more details." >&5
8496 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8497 See \`config.log' for more details." >&2;}
8498    { (exit 1); exit 1; }; }
8499 fi
8500
8501 ac_ext=cc
8502 ac_cpp='$CXXCPP $CPPFLAGS'
8503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8506
8507 fi
8508
8509
8510 ac_ext=f
8511 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8512 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8513 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8514 if test -n "$ac_tool_prefix"; then
8515   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8516   do
8517     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8519 echo "$as_me:$LINENO: checking for $ac_word" >&5
8520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8521 if test "${ac_cv_prog_F77+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   if test -n "$F77"; then
8525   ac_cv_prog_F77="$F77" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530   IFS=$as_save_IFS
8531   test -z "$as_dir" && as_dir=.
8532   for ac_exec_ext in '' $ac_executable_extensions; do
8533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8536     break 2
8537   fi
8538 done
8539 done
8540
8541 fi
8542 fi
8543 F77=$ac_cv_prog_F77
8544 if test -n "$F77"; then
8545   echo "$as_me:$LINENO: result: $F77" >&5
8546 echo "${ECHO_T}$F77" >&6
8547 else
8548   echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6
8550 fi
8551
8552     test -n "$F77" && break
8553   done
8554 fi
8555 if test -z "$F77"; then
8556   ac_ct_F77=$F77
8557   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8558 do
8559   # Extract the first word of "$ac_prog", so it can be a program name with args.
8560 set dummy $ac_prog; ac_word=$2
8561 echo "$as_me:$LINENO: checking for $ac_word" >&5
8562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8563 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8564   echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566   if test -n "$ac_ct_F77"; then
8567   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8568 else
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 for as_dir in $PATH
8571 do
8572   IFS=$as_save_IFS
8573   test -z "$as_dir" && as_dir=.
8574   for ac_exec_ext in '' $ac_executable_extensions; do
8575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8576     ac_cv_prog_ac_ct_F77="$ac_prog"
8577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8578     break 2
8579   fi
8580 done
8581 done
8582
8583 fi
8584 fi
8585 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8586 if test -n "$ac_ct_F77"; then
8587   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8588 echo "${ECHO_T}$ac_ct_F77" >&6
8589 else
8590   echo "$as_me:$LINENO: result: no" >&5
8591 echo "${ECHO_T}no" >&6
8592 fi
8593
8594   test -n "$ac_ct_F77" && break
8595 done
8596
8597   F77=$ac_ct_F77
8598 fi
8599
8600
8601 # Provide some information about the compiler.
8602 echo "$as_me:8602:" \
8603      "checking for Fortran 77 compiler version" >&5
8604 ac_compiler=`set X $ac_compile; echo $2`
8605 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8606   (eval $ac_compiler --version </dev/null >&5) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }
8610 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8611   (eval $ac_compiler -v </dev/null >&5) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }
8615 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8616   (eval $ac_compiler -V </dev/null >&5) 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); }
8620 rm -f a.out
8621
8622 # If we don't use `.F' as extension, the preprocessor is not run on the
8623 # input file.  (Note that this only needs to work for GNU compilers.)
8624 ac_save_ext=$ac_ext
8625 ac_ext=F
8626 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8627 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8628 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631   cat >conftest.$ac_ext <<_ACEOF
8632       program main
8633 #ifndef __GNUC__
8634        choke me
8635 #endif
8636
8637       end
8638 _ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8641   (eval $ac_compile) 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } &&
8648          { ac_try='test -z "$ac_f77_werror_flag"
8649                          || test ! -s conftest.err'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; } &&
8655          { ac_try='test -s conftest.$ac_objext'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; }; then
8661   ac_compiler_gnu=yes
8662 else
8663   echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 ac_compiler_gnu=no
8667 fi
8668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8669 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8670
8671 fi
8672 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8673 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8674 ac_ext=$ac_save_ext
8675 ac_test_FFLAGS=${FFLAGS+set}
8676 ac_save_FFLAGS=$FFLAGS
8677 FFLAGS=
8678 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8679 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8680 if test "${ac_cv_prog_f77_g+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683   FFLAGS=-g
8684 cat >conftest.$ac_ext <<_ACEOF
8685       program main
8686
8687       end
8688 _ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8691   (eval $ac_compile) 2>conftest.er1
8692   ac_status=$?
8693   grep -v '^ *+' conftest.er1 >conftest.err
8694   rm -f conftest.er1
8695   cat conftest.err >&5
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } &&
8698          { ac_try='test -z "$ac_f77_werror_flag"
8699                          || test ! -s conftest.err'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; } &&
8705          { ac_try='test -s conftest.$ac_objext'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   ac_cv_prog_f77_g=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_cv_prog_f77_g=no
8717 fi
8718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8719
8720 fi
8721 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8722 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8723 if test "$ac_test_FFLAGS" = set; then
8724   FFLAGS=$ac_save_FFLAGS
8725 elif test $ac_cv_prog_f77_g = yes; then
8726   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8727     FFLAGS="-g -O2"
8728   else
8729     FFLAGS="-g"
8730   fi
8731 else
8732   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8733     FFLAGS="-O2"
8734   else
8735     FFLAGS=
8736   fi
8737 fi
8738
8739 G77=`test $ac_compiler_gnu = yes && echo yes`
8740 ac_ext=c
8741 ac_cpp='$CPP $CPPFLAGS'
8742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8745
8746
8747
8748 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8749
8750 # find the maximum length of command line arguments
8751 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8752 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8753 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8754   echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756     i=0
8757   teststring="ABCD"
8758
8759   case $build_os in
8760   msdosdjgpp*)
8761     # On DJGPP, this test can blow up pretty badly due to problems in libc
8762     # (any single argument exceeding 2000 bytes causes a buffer overrun
8763     # during glob expansion).  Even if it were fixed, the result of this
8764     # check would be larger than it should be.
8765     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8766     ;;
8767
8768   gnu*)
8769     # Under GNU Hurd, this test is not required because there is
8770     # no limit to the length of command line arguments.
8771     # Libtool will interpret -1 as no limit whatsoever
8772     lt_cv_sys_max_cmd_len=-1;
8773     ;;
8774
8775   cygwin* | mingw*)
8776     # On Win9x/ME, this test blows up -- it succeeds, but takes
8777     # about 5 minutes as the teststring grows exponentially.
8778     # Worse, since 9x/ME are not pre-emptively multitasking,
8779     # you end up with a "frozen" computer, even though with patience
8780     # the test eventually succeeds (with a max line length of 256k).
8781     # Instead, let's just punt: use the minimum linelength reported by
8782     # all of the supported platforms: 8192 (on NT/2K/XP).
8783     lt_cv_sys_max_cmd_len=8192;
8784     ;;
8785
8786   amigaos*)
8787     # On AmigaOS with pdksh, this test takes hours, literally.
8788     # So we just punt and use a minimum line length of 8192.
8789     lt_cv_sys_max_cmd_len=8192;
8790     ;;
8791
8792   netbsd* | freebsd* | openbsd* | darwin* )
8793     # This has been around since 386BSD, at least.  Likely further.
8794     if test -x /sbin/sysctl; then
8795       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8796     elif test -x /usr/sbin/sysctl; then
8797       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8798     else
8799       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
8800     fi
8801     # And add a safety zone
8802     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8803     ;;
8804
8805  *)
8806     # If test is not a shell built-in, we'll probably end up computing a
8807     # maximum length that is only half of the actual maximum length, but
8808     # we can't tell.
8809     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8810     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8811                = "XX$teststring") >/dev/null 2>&1 &&
8812             new_result=`expr "X$teststring" : ".*" 2>&1` &&
8813             lt_cv_sys_max_cmd_len=$new_result &&
8814             test $i != 17 # 1/2 MB should be enough
8815     do
8816       i=`expr $i + 1`
8817       teststring=$teststring$teststring
8818     done
8819     teststring=
8820     # Add a significant safety factor because C++ compilers can tack on massive
8821     # amounts of additional arguments before passing them to the linker.
8822     # It appears as though 1/2 is a usable value.
8823     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8824     ;;
8825   esac
8826
8827 fi
8828
8829 if test -n $lt_cv_sys_max_cmd_len ; then
8830   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8831 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8832 else
8833   echo "$as_me:$LINENO: result: none" >&5
8834 echo "${ECHO_T}none" >&6
8835 fi
8836
8837
8838
8839
8840 # Check for command to grab the raw symbol name followed by C symbol from nm.
8841 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8842 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8843 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846
8847 # These are sane defaults that work on at least a few old systems.
8848 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8849
8850 # Character class describing NM global symbol codes.
8851 symcode='[BCDEGRST]'
8852
8853 # Regexp to match symbols that can be accessed directly from C.
8854 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8855
8856 # Transform the above into a raw symbol and a C symbol.
8857 symxfrm='\1 \2\3 \3'
8858
8859 # Transform an extracted symbol line into a proper C declaration
8860 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8861
8862 # Transform an extracted symbol line into symbol name and symbol address
8863 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'"
8864
8865 # Define system-specific variables.
8866 case $host_os in
8867 aix*)
8868   symcode='[BCDT]'
8869   ;;
8870 cygwin* | mingw* | pw32*)
8871   symcode='[ABCDGISTW]'
8872   ;;
8873 hpux*) # Its linker distinguishes data from code symbols
8874   if test "$host_cpu" = ia64; then
8875     symcode='[ABCDEGRST]'
8876   fi
8877   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8878   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'"
8879   ;;
8880 linux*)
8881   if test "$host_cpu" = ia64; then
8882     symcode='[ABCDGIRSTW]'
8883     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8884     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'"
8885   fi
8886   ;;
8887 irix* | nonstopux*)
8888   symcode='[BCDEGRST]'
8889   ;;
8890 osf*)
8891   symcode='[BCDEGQRST]'
8892   ;;
8893 solaris* | sysv5*)
8894   symcode='[BDRT]'
8895   ;;
8896 sysv4)
8897   symcode='[DFNSTU]'
8898   ;;
8899 esac
8900
8901 # Handle CRLF in mingw tool chain
8902 opt_cr=
8903 case $build_os in
8904 mingw*)
8905   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8906   ;;
8907 esac
8908
8909 # If we're using GNU nm, then use its standard symbol codes.
8910 case `$NM -V 2>&1` in
8911 *GNU* | *'with BFD'*)
8912   symcode='[ABCDGIRSTW]' ;;
8913 esac
8914
8915 # Try without a prefix undercore, then with it.
8916 for ac_symprfx in "" "_"; do
8917
8918   # Write the raw and C identifiers.
8919   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
8920
8921   # Check to see that the pipe works correctly.
8922   pipe_works=no
8923
8924   rm -f conftest*
8925   cat > conftest.$ac_ext <<EOF
8926 #ifdef __cplusplus
8927 extern "C" {
8928 #endif
8929 char nm_test_var;
8930 void nm_test_func(){}
8931 #ifdef __cplusplus
8932 }
8933 #endif
8934 int main(){nm_test_var='a';nm_test_func();return(0);}
8935 EOF
8936
8937   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938   (eval $ac_compile) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; then
8942     # Now try to grab the symbols.
8943     nlist=conftest.nm
8944     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8945   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } && test -s "$nlist"; then
8949       # Try sorting and uniquifying the output.
8950       if sort "$nlist" | uniq > "$nlist"T; then
8951         mv -f "$nlist"T "$nlist"
8952       else
8953         rm -f "$nlist"T
8954       fi
8955
8956       # Make sure that we snagged all the symbols we need.
8957       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8958         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8959           cat <<EOF > conftest.$ac_ext
8960 #ifdef __cplusplus
8961 extern "C" {
8962 #endif
8963
8964 EOF
8965           # Now generate the symbol file.
8966           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8967
8968           cat <<EOF >> conftest.$ac_ext
8969 #if defined (__STDC__) && __STDC__
8970 # define lt_ptr_t void *
8971 #else
8972 # define lt_ptr_t char *
8973 # define const
8974 #endif
8975
8976 /* The mapping between symbol names and symbols. */
8977 const struct {
8978   const char *name;
8979   lt_ptr_t address;
8980 }
8981 lt_preloaded_symbols[] =
8982 {
8983 EOF
8984           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8985           cat <<\EOF >> conftest.$ac_ext
8986   {0, (lt_ptr_t) 0}
8987 };
8988
8989 #ifdef __cplusplus
8990 }
8991 #endif
8992 EOF
8993           # Now try linking the two files.
8994           mv conftest.$ac_objext conftstm.$ac_objext
8995           lt_save_LIBS="$LIBS"
8996           lt_save_CFLAGS="$CFLAGS"
8997           LIBS="conftstm.$ac_objext"
8998           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8999           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000   (eval $ac_link) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9004             pipe_works=yes
9005           fi
9006           LIBS="$lt_save_LIBS"
9007           CFLAGS="$lt_save_CFLAGS"
9008         else
9009           echo "cannot find nm_test_func in $nlist" >&5
9010         fi
9011       else
9012         echo "cannot find nm_test_var in $nlist" >&5
9013       fi
9014     else
9015       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9016     fi
9017   else
9018     echo "$progname: failed program was:" >&5
9019     cat conftest.$ac_ext >&5
9020   fi
9021   rm -f conftest* conftst*
9022
9023   # Do not use the global_symbol_pipe unless it works.
9024   if test "$pipe_works" = yes; then
9025     break
9026   else
9027     lt_cv_sys_global_symbol_pipe=
9028   fi
9029 done
9030
9031 fi
9032
9033 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9034   lt_cv_sys_global_symbol_to_cdecl=
9035 fi
9036 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9037   echo "$as_me:$LINENO: result: failed" >&5
9038 echo "${ECHO_T}failed" >&6
9039 else
9040   echo "$as_me:$LINENO: result: ok" >&5
9041 echo "${ECHO_T}ok" >&6
9042 fi
9043
9044 echo "$as_me:$LINENO: checking for objdir" >&5
9045 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9046 if test "${lt_cv_objdir+set}" = set; then
9047   echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049   rm -f .libs 2>/dev/null
9050 mkdir .libs 2>/dev/null
9051 if test -d .libs; then
9052   lt_cv_objdir=.libs
9053 else
9054   # MS-DOS does not allow filenames that begin with a dot.
9055   lt_cv_objdir=_libs
9056 fi
9057 rmdir .libs 2>/dev/null
9058 fi
9059 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9060 echo "${ECHO_T}$lt_cv_objdir" >&6
9061 objdir=$lt_cv_objdir
9062
9063
9064
9065
9066
9067 case $host_os in
9068 aix3*)
9069   # AIX sometimes has problems with the GCC collect2 program.  For some
9070   # reason, if we set the COLLECT_NAMES environment variable, the problems
9071   # vanish in a puff of smoke.
9072   if test "X${COLLECT_NAMES+set}" != Xset; then
9073     COLLECT_NAMES=
9074     export COLLECT_NAMES
9075   fi
9076   ;;
9077 esac
9078
9079 # Sed substitution that helps us do robust quoting.  It backslashifies
9080 # metacharacters that are still active within double-quoted strings.
9081 Xsed='sed -e s/^X//'
9082 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9083
9084 # Same as above, but do not quote variable references.
9085 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9086
9087 # Sed substitution to delay expansion of an escaped shell variable in a
9088 # double_quote_subst'ed string.
9089 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9090
9091 # Sed substitution to avoid accidental globbing in evaled expressions
9092 no_glob_subst='s/\*/\\\*/g'
9093
9094 # Constants:
9095 rm="rm -f"
9096
9097 # Global variables:
9098 default_ofile=libtool
9099 can_build_shared=yes
9100
9101 # All known linkers require a `.a' archive for static linking (except M$VC,
9102 # which needs '.lib').
9103 libext=a
9104 ltmain="$ac_aux_dir/ltmain.sh"
9105 ofile="$default_ofile"
9106 with_gnu_ld="$lt_cv_prog_gnu_ld"
9107
9108 if test -n "$ac_tool_prefix"; then
9109   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9110 set dummy ${ac_tool_prefix}ar; ac_word=$2
9111 echo "$as_me:$LINENO: checking for $ac_word" >&5
9112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9113 if test "${ac_cv_prog_AR+set}" = set; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116   if test -n "$AR"; then
9117   ac_cv_prog_AR="$AR" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9121 do
9122   IFS=$as_save_IFS
9123   test -z "$as_dir" && as_dir=.
9124   for ac_exec_ext in '' $ac_executable_extensions; do
9125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9126     ac_cv_prog_AR="${ac_tool_prefix}ar"
9127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9128     break 2
9129   fi
9130 done
9131 done
9132
9133 fi
9134 fi
9135 AR=$ac_cv_prog_AR
9136 if test -n "$AR"; then
9137   echo "$as_me:$LINENO: result: $AR" >&5
9138 echo "${ECHO_T}$AR" >&6
9139 else
9140   echo "$as_me:$LINENO: result: no" >&5
9141 echo "${ECHO_T}no" >&6
9142 fi
9143
9144 fi
9145 if test -z "$ac_cv_prog_AR"; then
9146   ac_ct_AR=$AR
9147   # Extract the first word of "ar", so it can be a program name with args.
9148 set dummy ar; ac_word=$2
9149 echo "$as_me:$LINENO: checking for $ac_word" >&5
9150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9151 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9152   echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154   if test -n "$ac_ct_AR"; then
9155   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9156 else
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160   IFS=$as_save_IFS
9161   test -z "$as_dir" && as_dir=.
9162   for ac_exec_ext in '' $ac_executable_extensions; do
9163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9164     ac_cv_prog_ac_ct_AR="ar"
9165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9166     break 2
9167   fi
9168 done
9169 done
9170
9171   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9172 fi
9173 fi
9174 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9175 if test -n "$ac_ct_AR"; then
9176   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9177 echo "${ECHO_T}$ac_ct_AR" >&6
9178 else
9179   echo "$as_me:$LINENO: result: no" >&5
9180 echo "${ECHO_T}no" >&6
9181 fi
9182
9183   AR=$ac_ct_AR
9184 else
9185   AR="$ac_cv_prog_AR"
9186 fi
9187
9188 if test -n "$ac_tool_prefix"; then
9189   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9191 echo "$as_me:$LINENO: checking for $ac_word" >&5
9192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9193 if test "${ac_cv_prog_RANLIB+set}" = set; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   if test -n "$RANLIB"; then
9197   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9198 else
9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 for as_dir in $PATH
9201 do
9202   IFS=$as_save_IFS
9203   test -z "$as_dir" && as_dir=.
9204   for ac_exec_ext in '' $ac_executable_extensions; do
9205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9208     break 2
9209   fi
9210 done
9211 done
9212
9213 fi
9214 fi
9215 RANLIB=$ac_cv_prog_RANLIB
9216 if test -n "$RANLIB"; then
9217   echo "$as_me:$LINENO: result: $RANLIB" >&5
9218 echo "${ECHO_T}$RANLIB" >&6
9219 else
9220   echo "$as_me:$LINENO: result: no" >&5
9221 echo "${ECHO_T}no" >&6
9222 fi
9223
9224 fi
9225 if test -z "$ac_cv_prog_RANLIB"; then
9226   ac_ct_RANLIB=$RANLIB
9227   # Extract the first word of "ranlib", so it can be a program name with args.
9228 set dummy ranlib; ac_word=$2
9229 echo "$as_me:$LINENO: checking for $ac_word" >&5
9230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9231 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   if test -n "$ac_ct_RANLIB"; then
9235   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9236 else
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 for as_dir in $PATH
9239 do
9240   IFS=$as_save_IFS
9241   test -z "$as_dir" && as_dir=.
9242   for ac_exec_ext in '' $ac_executable_extensions; do
9243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9244     ac_cv_prog_ac_ct_RANLIB="ranlib"
9245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9246     break 2
9247   fi
9248 done
9249 done
9250
9251   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9252 fi
9253 fi
9254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9255 if test -n "$ac_ct_RANLIB"; then
9256   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9257 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9258 else
9259   echo "$as_me:$LINENO: result: no" >&5
9260 echo "${ECHO_T}no" >&6
9261 fi
9262
9263   RANLIB=$ac_ct_RANLIB
9264 else
9265   RANLIB="$ac_cv_prog_RANLIB"
9266 fi
9267
9268 if test -n "$ac_tool_prefix"; then
9269   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9270 set dummy ${ac_tool_prefix}strip; ac_word=$2
9271 echo "$as_me:$LINENO: checking for $ac_word" >&5
9272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9273 if test "${ac_cv_prog_STRIP+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   if test -n "$STRIP"; then
9277   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9278 else
9279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 for as_dir in $PATH
9281 do
9282   IFS=$as_save_IFS
9283   test -z "$as_dir" && as_dir=.
9284   for ac_exec_ext in '' $ac_executable_extensions; do
9285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9286     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9288     break 2
9289   fi
9290 done
9291 done
9292
9293 fi
9294 fi
9295 STRIP=$ac_cv_prog_STRIP
9296 if test -n "$STRIP"; then
9297   echo "$as_me:$LINENO: result: $STRIP" >&5
9298 echo "${ECHO_T}$STRIP" >&6
9299 else
9300   echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6
9302 fi
9303
9304 fi
9305 if test -z "$ac_cv_prog_STRIP"; then
9306   ac_ct_STRIP=$STRIP
9307   # Extract the first word of "strip", so it can be a program name with args.
9308 set dummy strip; ac_word=$2
9309 echo "$as_me:$LINENO: checking for $ac_word" >&5
9310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9311 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9312   echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314   if test -n "$ac_ct_STRIP"; then
9315   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9316 else
9317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9318 for as_dir in $PATH
9319 do
9320   IFS=$as_save_IFS
9321   test -z "$as_dir" && as_dir=.
9322   for ac_exec_ext in '' $ac_executable_extensions; do
9323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9324     ac_cv_prog_ac_ct_STRIP="strip"
9325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9326     break 2
9327   fi
9328 done
9329 done
9330
9331   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9332 fi
9333 fi
9334 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9335 if test -n "$ac_ct_STRIP"; then
9336   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9337 echo "${ECHO_T}$ac_ct_STRIP" >&6
9338 else
9339   echo "$as_me:$LINENO: result: no" >&5
9340 echo "${ECHO_T}no" >&6
9341 fi
9342
9343   STRIP=$ac_ct_STRIP
9344 else
9345   STRIP="$ac_cv_prog_STRIP"
9346 fi
9347
9348
9349 old_CC="$CC"
9350 old_CFLAGS="$CFLAGS"
9351
9352 # Set sane defaults for various variables
9353 test -z "$AR" && AR=ar
9354 test -z "$AR_FLAGS" && AR_FLAGS=cru
9355 test -z "$AS" && AS=as
9356 test -z "$CC" && CC=cc
9357 test -z "$LTCC" && LTCC=$CC
9358 test -z "$DLLTOOL" && DLLTOOL=dlltool
9359 test -z "$LD" && LD=ld
9360 test -z "$LN_S" && LN_S="ln -s"
9361 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9362 test -z "$NM" && NM=nm
9363 test -z "$SED" && SED=sed
9364 test -z "$OBJDUMP" && OBJDUMP=objdump
9365 test -z "$RANLIB" && RANLIB=:
9366 test -z "$STRIP" && STRIP=:
9367 test -z "$ac_objext" && ac_objext=o
9368
9369 # Determine commands to create old-style static archives.
9370 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9371 old_postinstall_cmds='chmod 644 $oldlib'
9372 old_postuninstall_cmds=
9373
9374 if test -n "$RANLIB"; then
9375   case $host_os in
9376   openbsd*)
9377     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9378     ;;
9379   *)
9380     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9381     ;;
9382   esac
9383   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9384 fi
9385
9386 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9387
9388 # Only perform the check for file, if the check method requires it
9389 case $deplibs_check_method in
9390 file_magic*)
9391   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9392     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9393 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397   case $MAGIC_CMD in
9398 [\\/*] |  ?:[\\/]*)
9399   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9400   ;;
9401 *)
9402   lt_save_MAGIC_CMD="$MAGIC_CMD"
9403   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9404   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9405   for ac_dir in $ac_dummy; do
9406     IFS="$lt_save_ifs"
9407     test -z "$ac_dir" && ac_dir=.
9408     if test -f $ac_dir/${ac_tool_prefix}file; then
9409       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9410       if test -n "$file_magic_test_file"; then
9411         case $deplibs_check_method in
9412         "file_magic "*)
9413           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9414           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9415           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9416             $EGREP "$file_magic_regex" > /dev/null; then
9417             :
9418           else
9419             cat <<EOF 1>&2
9420
9421 *** Warning: the command libtool uses to detect shared libraries,
9422 *** $file_magic_cmd, produces output that libtool cannot recognize.
9423 *** The result is that libtool may fail to recognize shared libraries
9424 *** as such.  This will affect the creation of libtool libraries that
9425 *** depend on shared libraries, but programs linked with such libtool
9426 *** libraries will work regardless of this problem.  Nevertheless, you
9427 *** may want to report the problem to your system manager and/or to
9428 *** bug-libtool@gnu.org
9429
9430 EOF
9431           fi ;;
9432         esac
9433       fi
9434       break
9435     fi
9436   done
9437   IFS="$lt_save_ifs"
9438   MAGIC_CMD="$lt_save_MAGIC_CMD"
9439   ;;
9440 esac
9441 fi
9442
9443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9444 if test -n "$MAGIC_CMD"; then
9445   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9446 echo "${ECHO_T}$MAGIC_CMD" >&6
9447 else
9448   echo "$as_me:$LINENO: result: no" >&5
9449 echo "${ECHO_T}no" >&6
9450 fi
9451
9452 if test -z "$lt_cv_path_MAGIC_CMD"; then
9453   if test -n "$ac_tool_prefix"; then
9454     echo "$as_me:$LINENO: checking for file" >&5
9455 echo $ECHO_N "checking for file... $ECHO_C" >&6
9456 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9457   echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459   case $MAGIC_CMD in
9460 [\\/*] |  ?:[\\/]*)
9461   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9462   ;;
9463 *)
9464   lt_save_MAGIC_CMD="$MAGIC_CMD"
9465   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9466   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9467   for ac_dir in $ac_dummy; do
9468     IFS="$lt_save_ifs"
9469     test -z "$ac_dir" && ac_dir=.
9470     if test -f $ac_dir/file; then
9471       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9472       if test -n "$file_magic_test_file"; then
9473         case $deplibs_check_method in
9474         "file_magic "*)
9475           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9476           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9477           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9478             $EGREP "$file_magic_regex" > /dev/null; then
9479             :
9480           else
9481             cat <<EOF 1>&2
9482
9483 *** Warning: the command libtool uses to detect shared libraries,
9484 *** $file_magic_cmd, produces output that libtool cannot recognize.
9485 *** The result is that libtool may fail to recognize shared libraries
9486 *** as such.  This will affect the creation of libtool libraries that
9487 *** depend on shared libraries, but programs linked with such libtool
9488 *** libraries will work regardless of this problem.  Nevertheless, you
9489 *** may want to report the problem to your system manager and/or to
9490 *** bug-libtool@gnu.org
9491
9492 EOF
9493           fi ;;
9494         esac
9495       fi
9496       break
9497     fi
9498   done
9499   IFS="$lt_save_ifs"
9500   MAGIC_CMD="$lt_save_MAGIC_CMD"
9501   ;;
9502 esac
9503 fi
9504
9505 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9506 if test -n "$MAGIC_CMD"; then
9507   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9508 echo "${ECHO_T}$MAGIC_CMD" >&6
9509 else
9510   echo "$as_me:$LINENO: result: no" >&5
9511 echo "${ECHO_T}no" >&6
9512 fi
9513
9514   else
9515     MAGIC_CMD=:
9516   fi
9517 fi
9518
9519   fi
9520   ;;
9521 esac
9522
9523 enable_dlopen=no
9524 enable_win32_dll=no
9525
9526 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9527 if test "${enable_libtool_lock+set}" = set; then
9528   enableval="$enable_libtool_lock"
9529
9530 fi;
9531 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9532
9533
9534 # Check whether --with-pic or --without-pic was given.
9535 if test "${with_pic+set}" = set; then
9536   withval="$with_pic"
9537   pic_mode="$withval"
9538 else
9539   pic_mode=default
9540 fi;
9541 test -z "$pic_mode" && pic_mode=default
9542
9543 # Use C for the default configuration in the libtool script
9544 tagname=
9545 lt_save_CC="$CC"
9546 ac_ext=c
9547 ac_cpp='$CPP $CPPFLAGS'
9548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9551
9552
9553 # Source file extension for C test sources.
9554 ac_ext=c
9555
9556 # Object file extension for compiled C test sources.
9557 objext=o
9558 objext=$objext
9559
9560 # Code to be used in simple compile tests
9561 lt_simple_compile_test_code="int some_variable = 0;\n"
9562
9563 # Code to be used in simple link tests
9564 lt_simple_link_test_code='int main(){return(0);}\n'
9565
9566
9567 # If no C compiler was specified, use CC.
9568 LTCC=${LTCC-"$CC"}
9569
9570 # Allow CC to be a program name with arguments.
9571 compiler=$CC
9572
9573
9574 #
9575 # Check for any special shared library compilation flags.
9576 #
9577 lt_prog_cc_shlib=
9578 if test "$GCC" = no; then
9579   case $host_os in
9580   sco3.2v5*)
9581     lt_prog_cc_shlib='-belf'
9582     ;;
9583   esac
9584 fi
9585 if test -n "$lt_prog_cc_shlib"; then
9586   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9587 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9588   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
9589   else
9590     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9591 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9592     lt_cv_prog_cc_can_build_shared=no
9593   fi
9594 fi
9595
9596
9597 #
9598 # Check to make sure the static flag actually works.
9599 #
9600 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9601 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
9602 if test "${lt_prog_compiler_static_works+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   lt_prog_compiler_static_works=no
9606    save_LDFLAGS="$LDFLAGS"
9607    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9608    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9609    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9610      # The compiler can only warn and ignore the option if not recognized
9611      # So say no if there are warnings
9612      if test -s conftest.err; then
9613        # Append any errors to the config.log.
9614        cat conftest.err 1>&5
9615      else
9616        lt_prog_compiler_static_works=yes
9617      fi
9618    fi
9619    $rm conftest*
9620    LDFLAGS="$save_LDFLAGS"
9621
9622 fi
9623 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9624 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9625
9626 if test x"$lt_prog_compiler_static_works" = xyes; then
9627     :
9628 else
9629     lt_prog_compiler_static=
9630 fi
9631
9632
9633
9634 ## CAVEAT EMPTOR:
9635 ## There is no encapsulation within the following macros, do not change
9636 ## the running order or otherwise move them around unless you know exactly
9637 ## what you are doing...
9638
9639 lt_prog_compiler_no_builtin_flag=
9640
9641 if test "$GCC" = yes; then
9642   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9643
9644
9645 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9646 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9647 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   lt_cv_prog_compiler_rtti_exceptions=no
9651   ac_outfile=conftest.$ac_objext
9652    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9653    lt_compiler_flag="-fno-rtti -fno-exceptions"
9654    # Insert the option either (1) after the last *FLAGS variable, or
9655    # (2) before a word containing "conftest.", or (3) at the end.
9656    # Note that $ac_compile itself does not contain backslashes and begins
9657    # with a dollar sign (not a hyphen), so the echo should work correctly.
9658    # The option is referenced via a variable to avoid confusing sed.
9659    lt_compile=`echo "$ac_compile" | $SED \
9660    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9661    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9662    -e 's:$: $lt_compiler_flag:'`
9663    (eval echo "\"\$as_me:9663: $lt_compile\"" >&5)
9664    (eval "$lt_compile" 2>conftest.err)
9665    ac_status=$?
9666    cat conftest.err >&5
9667    echo "$as_me:9667: \$? = $ac_status" >&5
9668    if (exit $ac_status) && test -s "$ac_outfile"; then
9669      # The compiler can only warn and ignore the option if not recognized
9670      # So say no if there are warnings
9671      if test ! -s conftest.err; then
9672        lt_cv_prog_compiler_rtti_exceptions=yes
9673      fi
9674    fi
9675    $rm conftest*
9676
9677 fi
9678 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9679 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9680
9681 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9682     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9683 else
9684     :
9685 fi
9686
9687 fi
9688
9689 lt_prog_compiler_wl=
9690 lt_prog_compiler_pic=
9691 lt_prog_compiler_static=
9692
9693 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9694 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9695
9696   if test "$GCC" = yes; then
9697     lt_prog_compiler_wl='-Wl,'
9698     lt_prog_compiler_static='-static'
9699
9700     case $host_os in
9701       aix*)
9702       # All AIX code is PIC.
9703       if test "$host_cpu" = ia64; then
9704         # AIX 5 now supports IA64 processor
9705         lt_prog_compiler_static='-Bstatic'
9706       fi
9707       ;;
9708
9709     amigaos*)
9710       # FIXME: we need at least 68020 code to build shared libraries, but
9711       # adding the `-m68020' flag to GCC prevents building anything better,
9712       # like `-m68040'.
9713       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9714       ;;
9715
9716     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9717       # PIC is the default for these OSes.
9718       ;;
9719
9720     mingw* | pw32* | os2*)
9721       # This hack is so that the source file can tell whether it is being
9722       # built for inclusion in a dll (and should export symbols for example).
9723       lt_prog_compiler_pic='-DDLL_EXPORT'
9724       ;;
9725
9726     darwin* | rhapsody*)
9727       # PIC is the default on this platform
9728       # Common symbols not allowed in MH_DYLIB files
9729       lt_prog_compiler_pic='-fno-common'
9730       ;;
9731
9732     msdosdjgpp*)
9733       # Just because we use GCC doesn't mean we suddenly get shared libraries
9734       # on systems that don't support them.
9735       lt_prog_compiler_can_build_shared=no
9736       enable_shared=no
9737       ;;
9738
9739     sysv4*MP*)
9740       if test -d /usr/nec; then
9741         lt_prog_compiler_pic=-Kconform_pic
9742       fi
9743       ;;
9744
9745     hpux*)
9746       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9747       # not for PA HP-UX.
9748       case "$host_cpu" in
9749       hppa*64*|ia64*)
9750         # +Z the default
9751         ;;
9752       *)
9753         lt_prog_compiler_pic='-fPIC'
9754         ;;
9755       esac
9756       ;;
9757
9758     *)
9759       lt_prog_compiler_pic='-fPIC'
9760       ;;
9761     esac
9762   else
9763     # PORTME Check for flag to pass linker flags through the system compiler.
9764     case $host_os in
9765     aix*)
9766       lt_prog_compiler_wl='-Wl,'
9767       if test "$host_cpu" = ia64; then
9768         # AIX 5 now supports IA64 processor
9769         lt_prog_compiler_static='-Bstatic'
9770       else
9771         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9772       fi
9773       ;;
9774       darwin*)
9775         # PIC is the default on this platform
9776         # Common symbols not allowed in MH_DYLIB files
9777        case "$cc_basename" in
9778          xlc*)
9779          lt_prog_compiler_pic='-qnocommon'
9780          lt_prog_compiler_wl='-Wl,'
9781          ;;
9782        esac
9783        ;;
9784
9785     mingw* | pw32* | os2*)
9786       # This hack is so that the source file can tell whether it is being
9787       # built for inclusion in a dll (and should export symbols for example).
9788       lt_prog_compiler_pic='-DDLL_EXPORT'
9789       ;;
9790
9791     hpux9* | hpux10* | hpux11*)
9792       lt_prog_compiler_wl='-Wl,'
9793       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9794       # not for PA HP-UX.
9795       case "$host_cpu" in
9796       hppa*64*|ia64*)
9797         # +Z the default
9798         ;;
9799       *)
9800         lt_prog_compiler_pic='+Z'
9801         ;;
9802       esac
9803       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9804       lt_prog_compiler_static='${wl}-a ${wl}archive'
9805       ;;
9806
9807     irix5* | irix6* | nonstopux*)
9808       lt_prog_compiler_wl='-Wl,'
9809       # PIC (with -KPIC) is the default.
9810       lt_prog_compiler_static='-non_shared'
9811       ;;
9812
9813     newsos6)
9814       lt_prog_compiler_pic='-KPIC'
9815       lt_prog_compiler_static='-Bstatic'
9816       ;;
9817
9818     linux*)
9819       case $CC in
9820       icc* | ecc*)
9821         lt_prog_compiler_wl='-Wl,'
9822         lt_prog_compiler_pic='-KPIC'
9823         lt_prog_compiler_static='-static'
9824         ;;
9825       ccc*)
9826         lt_prog_compiler_wl='-Wl,'
9827         # All Alpha code is PIC.
9828         lt_prog_compiler_static='-non_shared'
9829         ;;
9830       esac
9831       ;;
9832
9833     osf3* | osf4* | osf5*)
9834       lt_prog_compiler_wl='-Wl,'
9835       # All OSF/1 code is PIC.
9836       lt_prog_compiler_static='-non_shared'
9837       ;;
9838
9839     sco3.2v5*)
9840       lt_prog_compiler_pic='-Kpic'
9841       lt_prog_compiler_static='-dn'
9842       ;;
9843
9844     solaris*)
9845       lt_prog_compiler_wl='-Wl,'
9846       lt_prog_compiler_pic='-KPIC'
9847       lt_prog_compiler_static='-Bstatic'
9848       ;;
9849
9850     sunos4*)
9851       lt_prog_compiler_wl='-Qoption ld '
9852       lt_prog_compiler_pic='-PIC'
9853       lt_prog_compiler_static='-Bstatic'
9854       ;;
9855
9856     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9857       lt_prog_compiler_wl='-Wl,'
9858       lt_prog_compiler_pic='-KPIC'
9859       lt_prog_compiler_static='-Bstatic'
9860       ;;
9861
9862     sysv4*MP*)
9863       if test -d /usr/nec ;then
9864         lt_prog_compiler_pic='-Kconform_pic'
9865         lt_prog_compiler_static='-Bstatic'
9866       fi
9867       ;;
9868
9869     uts4*)
9870       lt_prog_compiler_pic='-pic'
9871       lt_prog_compiler_static='-Bstatic'
9872       ;;
9873
9874     *)
9875       lt_prog_compiler_can_build_shared=no
9876       ;;
9877     esac
9878   fi
9879
9880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9881 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9882
9883 #
9884 # Check to make sure the PIC flag actually works.
9885 #
9886 if test -n "$lt_prog_compiler_pic"; then
9887
9888 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9889 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9890 if test "${lt_prog_compiler_pic_works+set}" = set; then
9891   echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893   lt_prog_compiler_pic_works=no
9894   ac_outfile=conftest.$ac_objext
9895    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9896    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9897    # Insert the option either (1) after the last *FLAGS variable, or
9898    # (2) before a word containing "conftest.", or (3) at the end.
9899    # Note that $ac_compile itself does not contain backslashes and begins
9900    # with a dollar sign (not a hyphen), so the echo should work correctly.
9901    # The option is referenced via a variable to avoid confusing sed.
9902    lt_compile=`echo "$ac_compile" | $SED \
9903    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9904    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9905    -e 's:$: $lt_compiler_flag:'`
9906    (eval echo "\"\$as_me:9906: $lt_compile\"" >&5)
9907    (eval "$lt_compile" 2>conftest.err)
9908    ac_status=$?
9909    cat conftest.err >&5
9910    echo "$as_me:9910: \$? = $ac_status" >&5
9911    if (exit $ac_status) && test -s "$ac_outfile"; then
9912      # The compiler can only warn and ignore the option if not recognized
9913      # So say no if there are warnings
9914      if test ! -s conftest.err; then
9915        lt_prog_compiler_pic_works=yes
9916      fi
9917    fi
9918    $rm conftest*
9919
9920 fi
9921 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9922 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9923
9924 if test x"$lt_prog_compiler_pic_works" = xyes; then
9925     case $lt_prog_compiler_pic in
9926      "" | " "*) ;;
9927      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9928      esac
9929 else
9930     lt_prog_compiler_pic=
9931      lt_prog_compiler_can_build_shared=no
9932 fi
9933
9934 fi
9935 case "$host_os" in
9936   # For platforms which do not support PIC, -DPIC is meaningless:
9937   *djgpp*)
9938     lt_prog_compiler_pic=
9939     ;;
9940   *)
9941     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9942     ;;
9943 esac
9944
9945 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9946 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9947 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950   lt_cv_prog_compiler_c_o=no
9951    $rm -r conftest 2>/dev/null
9952    mkdir conftest
9953    cd conftest
9954    mkdir out
9955    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9956
9957    lt_compiler_flag="-o out/conftest2.$ac_objext"
9958    # Insert the option either (1) after the last *FLAGS variable, or
9959    # (2) before a word containing "conftest.", or (3) at the end.
9960    # Note that $ac_compile itself does not contain backslashes and begins
9961    # with a dollar sign (not a hyphen), so the echo should work correctly.
9962    lt_compile=`echo "$ac_compile" | $SED \
9963    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9965    -e 's:$: $lt_compiler_flag:'`
9966    (eval echo "\"\$as_me:9966: $lt_compile\"" >&5)
9967    (eval "$lt_compile" 2>out/conftest.err)
9968    ac_status=$?
9969    cat out/conftest.err >&5
9970    echo "$as_me:9970: \$? = $ac_status" >&5
9971    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9972    then
9973      # The compiler can only warn and ignore the option if not recognized
9974      # So say no if there are warnings
9975      if test ! -s out/conftest.err; then
9976        lt_cv_prog_compiler_c_o=yes
9977      fi
9978    fi
9979    chmod u+w .
9980    $rm conftest*
9981    # SGI C++ compiler will create directory out/ii_files/ for
9982    # template instantiation
9983    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9984    $rm out/* && rmdir out
9985    cd ..
9986    rmdir conftest
9987    $rm conftest*
9988
9989 fi
9990 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9991 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9992
9993
9994 hard_links="nottested"
9995 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9996   # do not overwrite the value of need_locks provided by the user
9997   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9998 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9999   hard_links=yes
10000   $rm conftest*
10001   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10002   touch conftest.a
10003   ln conftest.a conftest.b 2>&5 || hard_links=no
10004   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10005   echo "$as_me:$LINENO: result: $hard_links" >&5
10006 echo "${ECHO_T}$hard_links" >&6
10007   if test "$hard_links" = no; then
10008     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10009 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10010     need_locks=warn
10011   fi
10012 else
10013   need_locks=no
10014 fi
10015
10016 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10017 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10018
10019   runpath_var=
10020   allow_undefined_flag=
10021   enable_shared_with_static_runtimes=no
10022   archive_cmds=
10023   archive_expsym_cmds=
10024   old_archive_From_new_cmds=
10025   old_archive_from_expsyms_cmds=
10026   export_dynamic_flag_spec=
10027   whole_archive_flag_spec=
10028   thread_safe_flag_spec=
10029   hardcode_libdir_flag_spec=
10030   hardcode_libdir_flag_spec_ld=
10031   hardcode_libdir_separator=
10032   hardcode_direct=no
10033   hardcode_minus_L=no
10034   hardcode_shlibpath_var=unsupported
10035   link_all_deplibs=unknown
10036   hardcode_automatic=no
10037   module_cmds=
10038   module_expsym_cmds=
10039   always_export_symbols=no
10040   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10041   # include_expsyms should be a list of space-separated symbols to be *always*
10042   # included in the symbol list
10043   include_expsyms=
10044   # exclude_expsyms can be an extended regexp of symbols to exclude
10045   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10046   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10047   # as well as any symbol that contains `d'.
10048   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10049   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10050   # platforms (ab)use it in PIC code, but their linkers get confused if
10051   # the symbol is explicitly referenced.  Since portable code cannot
10052   # rely on this symbol name, it's probably fine to never include it in
10053   # preloaded symbol tables.
10054   extract_expsyms_cmds=
10055
10056   case $host_os in
10057   cygwin* | mingw* | pw32*)
10058     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10059     # When not using gcc, we currently assume that we are using
10060     # Microsoft Visual C++.
10061     if test "$GCC" != yes; then
10062       with_gnu_ld=no
10063     fi
10064     ;;
10065   openbsd*)
10066     with_gnu_ld=no
10067     ;;
10068   esac
10069
10070   ld_shlibs=yes
10071   if test "$with_gnu_ld" = yes; then
10072     # If archive_cmds runs LD, not CC, wlarc should be empty
10073     wlarc='${wl}'
10074
10075     # See if GNU ld supports shared libraries.
10076     case $host_os in
10077     aix3* | aix4* | aix5*)
10078       # On AIX/PPC, the GNU linker is very broken
10079       if test "$host_cpu" != ia64; then
10080         ld_shlibs=no
10081         cat <<EOF 1>&2
10082
10083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10084 *** to be unable to reliably create shared libraries on AIX.
10085 *** Therefore, libtool is disabling shared libraries support.  If you
10086 *** really care for shared libraries, you may want to modify your PATH
10087 *** so that a non-GNU linker is found, and then restart.
10088
10089 EOF
10090       fi
10091       ;;
10092
10093     amigaos*)
10094       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)'
10095       hardcode_libdir_flag_spec='-L$libdir'
10096       hardcode_minus_L=yes
10097
10098       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10099       # that the semantics of dynamic libraries on AmigaOS, at least up
10100       # to version 4, is to share data among multiple programs linked
10101       # with the same dynamic library.  Since this doesn't match the
10102       # behavior of shared libraries on other platforms, we can't use
10103       # them.
10104       ld_shlibs=no
10105       ;;
10106
10107     beos*)
10108       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10109         allow_undefined_flag=unsupported
10110         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10111         # support --undefined.  This deserves some investigation.  FIXME
10112         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113       else
10114         ld_shlibs=no
10115       fi
10116       ;;
10117
10118     cygwin* | mingw* | pw32*)
10119       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10120       # as there is no search path for DLLs.
10121       hardcode_libdir_flag_spec='-L$libdir'
10122       allow_undefined_flag=unsupported
10123       always_export_symbols=no
10124       enable_shared_with_static_runtimes=yes
10125       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10126
10127       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10128         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10129         # If the export-symbols file already is a .def file (1st line
10130         # is EXPORTS), use it as is; otherwise, prepend...
10131         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10132           cp $export_symbols $output_objdir/$soname.def;
10133         else
10134           echo EXPORTS > $output_objdir/$soname.def;
10135           cat $export_symbols >> $output_objdir/$soname.def;
10136         fi~
10137         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
10138       else
10139         ld_shlibs=no
10140       fi
10141       ;;
10142
10143     netbsd*)
10144       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10145         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10146         wlarc=
10147       else
10148         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10150       fi
10151       ;;
10152
10153     solaris* | sysv5*)
10154       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10155         ld_shlibs=no
10156         cat <<EOF 1>&2
10157
10158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10159 *** create shared libraries on Solaris systems.  Therefore, libtool
10160 *** is disabling shared libraries support.  We urge you to upgrade GNU
10161 *** binutils to release 2.9.1 or newer.  Another option is to modify
10162 *** your PATH or compiler configuration so that the native linker is
10163 *** used, and then restart.
10164
10165 EOF
10166       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10167         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10168         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10169       else
10170         ld_shlibs=no
10171       fi
10172       ;;
10173
10174     sunos4*)
10175       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10176       wlarc=
10177       hardcode_direct=yes
10178       hardcode_shlibpath_var=no
10179       ;;
10180
10181   linux*)
10182     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10183         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10184         archive_cmds="$tmp_archive_cmds"
10185       supports_anon_versioning=no
10186       case `$LD -v 2>/dev/null` in
10187         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10188         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10189         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10190         *\ 2.11.*) ;; # other 2.11 versions
10191         *) supports_anon_versioning=yes ;;
10192       esac
10193       if test $supports_anon_versioning = yes; then
10194         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10195 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10196 $echo "local: *; };" >> $output_objdir/$libname.ver~
10197         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10198       else
10199         archive_expsym_cmds="$tmp_archive_cmds"
10200       fi
10201     else
10202       ld_shlibs=no
10203     fi
10204     ;;
10205
10206     *)
10207       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10208         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10210       else
10211         ld_shlibs=no
10212       fi
10213       ;;
10214     esac
10215
10216     if test "$ld_shlibs" = yes; then
10217       runpath_var=LD_RUN_PATH
10218       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10219       export_dynamic_flag_spec='${wl}--export-dynamic'
10220       # ancient GNU ld didn't support --whole-archive et. al.
10221       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10222         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10223       else
10224         whole_archive_flag_spec=
10225       fi
10226     fi
10227   else
10228     # PORTME fill in a description of your system's linker (not GNU ld)
10229     case $host_os in
10230     aix3*)
10231       allow_undefined_flag=unsupported
10232       always_export_symbols=yes
10233       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'
10234       # Note: this linker hardcodes the directories in LIBPATH if there
10235       # are no directories specified by -L.
10236       hardcode_minus_L=yes
10237       if test "$GCC" = yes && test -z "$link_static_flag"; then
10238         # Neither direct hardcoding nor static linking is supported with a
10239         # broken collect2.
10240         hardcode_direct=unsupported
10241       fi
10242       ;;
10243
10244     aix4* | aix5*)
10245       if test "$host_cpu" = ia64; then
10246         # On IA64, the linker does run time linking by default, so we don't
10247         # have to do anything special.
10248         aix_use_runtimelinking=no
10249         exp_sym_flag='-Bexport'
10250         no_entry_flag=""
10251       else
10252         # If we're using GNU nm, then we don't want the "-C" option.
10253         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10254         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10255           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'
10256         else
10257           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'
10258         fi
10259         aix_use_runtimelinking=no
10260
10261         # Test if we are trying to use run time linking or normal
10262         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10263         # need to do runtime linking.
10264         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10265           for ld_flag in $LDFLAGS; do
10266           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10267             aix_use_runtimelinking=yes
10268             break
10269           fi
10270           done
10271         esac
10272
10273         exp_sym_flag='-bexport'
10274         no_entry_flag='-bnoentry'
10275       fi
10276
10277       # When large executables or shared objects are built, AIX ld can
10278       # have problems creating the table of contents.  If linking a library
10279       # or program results in "error TOC overflow" add -mminimal-toc to
10280       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10281       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10282
10283       archive_cmds=''
10284       hardcode_direct=yes
10285       hardcode_libdir_separator=':'
10286       link_all_deplibs=yes
10287
10288       if test "$GCC" = yes; then
10289         case $host_os in aix4.012|aix4.012.*)
10290         # We only want to do this on AIX 4.2 and lower, the check
10291         # below for broken collect2 doesn't work under 4.3+
10292           collect2name=`${CC} -print-prog-name=collect2`
10293           if test -f "$collect2name" && \
10294            strings "$collect2name" | grep resolve_lib_name >/dev/null
10295           then
10296           # We have reworked collect2
10297           hardcode_direct=yes
10298           else
10299           # We have old collect2
10300           hardcode_direct=unsupported
10301           # It fails to find uninstalled libraries when the uninstalled
10302           # path is not listed in the libpath.  Setting hardcode_minus_L
10303           # to unsupported forces relinking
10304           hardcode_minus_L=yes
10305           hardcode_libdir_flag_spec='-L$libdir'
10306           hardcode_libdir_separator=
10307           fi
10308         esac
10309         shared_flag='-shared'
10310       else
10311         # not using gcc
10312         if test "$host_cpu" = ia64; then
10313         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10314         # chokes on -Wl,-G. The following line is correct:
10315           shared_flag='-G'
10316         else
10317         if test "$aix_use_runtimelinking" = yes; then
10318             shared_flag='${wl}-G'
10319           else
10320             shared_flag='${wl}-bM:SRE'
10321         fi
10322         fi
10323       fi
10324
10325       # It seems that -bexpall does not export symbols beginning with
10326       # underscore (_), so it is better to generate a list of symbols to export.
10327       always_export_symbols=yes
10328       if test "$aix_use_runtimelinking" = yes; then
10329         # Warning - without using the other runtime loading flags (-brtl),
10330         # -berok will link without error, but may produce a broken library.
10331         allow_undefined_flag='-berok'
10332        # Determine the default libpath from the value encoded in an empty executable.
10333        cat >conftest.$ac_ext <<_ACEOF
10334 /* confdefs.h.  */
10335 _ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h.  */
10339
10340 int
10341 main ()
10342 {
10343
10344   ;
10345   return 0;
10346 }
10347 _ACEOF
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350   (eval $ac_link) 2>conftest.er1
10351   ac_status=$?
10352   grep -v '^ *+' conftest.er1 >conftest.err
10353   rm -f conftest.er1
10354   cat conftest.err >&5
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } &&
10357          { ac_try='test -z "$ac_c_werror_flag"
10358                          || test ! -s conftest.err'
10359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360   (eval $ac_try) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; } &&
10364          { ac_try='test -s conftest$ac_exeext'
10365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366   (eval $ac_try) 2>&5
10367   ac_status=$?
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); }; }; then
10370
10371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10372 }'`
10373 # Check for a 64-bit object if we didn't find anything.
10374 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; }
10375 }'`; fi
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 fi
10381 rm -f conftest.err conftest.$ac_objext \
10382       conftest$ac_exeext conftest.$ac_ext
10383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10384
10385        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10386         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10387        else
10388         if test "$host_cpu" = ia64; then
10389           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10390           allow_undefined_flag="-z nodefs"
10391           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10392         else
10393          # Determine the default libpath from the value encoded in an empty executable.
10394          cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h.  */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h.  */
10400
10401 int
10402 main ()
10403 {
10404
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411   (eval $ac_link) 2>conftest.er1
10412   ac_status=$?
10413   grep -v '^ *+' conftest.er1 >conftest.err
10414   rm -f conftest.er1
10415   cat conftest.err >&5
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -z "$ac_c_werror_flag"
10419                          || test ! -s conftest.err'
10420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421   (eval $ac_try) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; } &&
10425          { ac_try='test -s conftest$ac_exeext'
10426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427   (eval $ac_try) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; }; then
10431
10432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10433 }'`
10434 # Check for a 64-bit object if we didn't find anything.
10435 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; }
10436 }'`; fi
10437 else
10438   echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10440
10441 fi
10442 rm -f conftest.err conftest.$ac_objext \
10443       conftest$ac_exeext conftest.$ac_ext
10444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10445
10446          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10447           # Warning - without using the other run time loading flags,
10448           # -berok will link without error, but may produce a broken library.
10449           no_undefined_flag=' ${wl}-bernotok'
10450           allow_undefined_flag=' ${wl}-berok'
10451           # -bexpall does not export symbols beginning with underscore (_)
10452           always_export_symbols=yes
10453           # Exported symbols can be pulled into shared objects from archives
10454           whole_archive_flag_spec=' '
10455           archive_cmds_need_lc=yes
10456           # This is similar to how AIX traditionally builds it's shared libraries.
10457           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10458         fi
10459       fi
10460       ;;
10461
10462     amigaos*)
10463       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)'
10464       hardcode_libdir_flag_spec='-L$libdir'
10465       hardcode_minus_L=yes
10466       # see comment about different semantics on the GNU ld section
10467       ld_shlibs=no
10468       ;;
10469
10470     bsdi[45]*)
10471       export_dynamic_flag_spec=-rdynamic
10472       ;;
10473
10474     cygwin* | mingw* | pw32*)
10475       # When not using gcc, we currently assume that we are using
10476       # Microsoft Visual C++.
10477       # hardcode_libdir_flag_spec is actually meaningless, as there is
10478       # no search path for DLLs.
10479       hardcode_libdir_flag_spec=' '
10480       allow_undefined_flag=unsupported
10481       # Tell ltmain to make .lib files, not .a files.
10482       libext=lib
10483       # Tell ltmain to make .dll files, not .so files.
10484       shrext_cmds=".dll"
10485       # FIXME: Setting linknames here is a bad hack.
10486       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10487       # The linker will automatically build a .lib file if we build a DLL.
10488       old_archive_From_new_cmds='true'
10489       # FIXME: Should let the user specify the lib program.
10490       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10491       fix_srcfile_path='`cygpath -w "$srcfile"`'
10492       enable_shared_with_static_runtimes=yes
10493       ;;
10494
10495     darwin* | rhapsody*)
10496       case "$host_os" in
10497         rhapsody* | darwin1.[012])
10498          allow_undefined_flag='${wl}-undefined ${wl}suppress'
10499          ;;
10500        *) # Darwin 1.3 on
10501          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10502            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10503          else
10504            case ${MACOSX_DEPLOYMENT_TARGET} in
10505              10.[012])
10506                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10507                ;;
10508              10.*)
10509                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10510                ;;
10511            esac
10512          fi
10513          ;;
10514       esac
10515       archive_cmds_need_lc=no
10516       hardcode_direct=no
10517       hardcode_automatic=yes
10518       hardcode_shlibpath_var=unsupported
10519       whole_archive_flag_spec=''
10520       link_all_deplibs=yes
10521     if test "$GCC" = yes ; then
10522         output_verbose_link_cmd='echo'
10523         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10524       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10525       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10526       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}'
10527       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}'
10528     else
10529       case "$cc_basename" in
10530         xlc*)
10531          output_verbose_link_cmd='echo'
10532          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10533          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10534           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10535          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}'
10536           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}'
10537           ;;
10538        *)
10539          ld_shlibs=no
10540           ;;
10541       esac
10542     fi
10543       ;;
10544
10545     dgux*)
10546       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547       hardcode_libdir_flag_spec='-L$libdir'
10548       hardcode_shlibpath_var=no
10549       ;;
10550
10551     freebsd1*)
10552       ld_shlibs=no
10553       ;;
10554
10555     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10556     # support.  Future versions do this automatically, but an explicit c++rt0.o
10557     # does not break anything, and helps significantly (at the cost of a little
10558     # extra space).
10559     freebsd2.2*)
10560       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10561       hardcode_libdir_flag_spec='-R$libdir'
10562       hardcode_direct=yes
10563       hardcode_shlibpath_var=no
10564       ;;
10565
10566     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10567     freebsd2*)
10568       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10569       hardcode_direct=yes
10570       hardcode_minus_L=yes
10571       hardcode_shlibpath_var=no
10572       ;;
10573
10574     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10575     freebsd* | kfreebsd*-gnu)
10576       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10577       hardcode_libdir_flag_spec='-R$libdir'
10578       hardcode_direct=yes
10579       hardcode_shlibpath_var=no
10580       ;;
10581
10582     hpux9*)
10583       if test "$GCC" = yes; then
10584         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'
10585       else
10586         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'
10587       fi
10588       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10589       hardcode_libdir_separator=:
10590       hardcode_direct=yes
10591
10592       # hardcode_minus_L: Not really in the search PATH,
10593       # but as the default location of the library.
10594       hardcode_minus_L=yes
10595       export_dynamic_flag_spec='${wl}-E'
10596       ;;
10597
10598     hpux10* | hpux11*)
10599       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10600         case "$host_cpu" in
10601         hppa*64*|ia64*)
10602           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10603           ;;
10604         *)
10605           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10606           ;;
10607         esac
10608       else
10609         case "$host_cpu" in
10610         hppa*64*|ia64*)
10611           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10612           ;;
10613         *)
10614           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10615           ;;
10616         esac
10617       fi
10618       if test "$with_gnu_ld" = no; then
10619         case "$host_cpu" in
10620         hppa*64*)
10621           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10622           hardcode_libdir_flag_spec_ld='+b $libdir'
10623           hardcode_libdir_separator=:
10624           hardcode_direct=no
10625           hardcode_shlibpath_var=no
10626           ;;
10627         ia64*)
10628           hardcode_libdir_flag_spec='-L$libdir'
10629           hardcode_direct=no
10630           hardcode_shlibpath_var=no
10631
10632           # hardcode_minus_L: Not really in the search PATH,
10633           # but as the default location of the library.
10634           hardcode_minus_L=yes
10635           ;;
10636         *)
10637           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10638           hardcode_libdir_separator=:
10639           hardcode_direct=yes
10640           export_dynamic_flag_spec='${wl}-E'
10641
10642           # hardcode_minus_L: Not really in the search PATH,
10643           # but as the default location of the library.
10644           hardcode_minus_L=yes
10645           ;;
10646         esac
10647       fi
10648       ;;
10649
10650     irix5* | irix6* | nonstopux*)
10651       if test "$GCC" = yes; then
10652         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'
10653       else
10654         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'
10655         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10656       fi
10657       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10658       hardcode_libdir_separator=:
10659       link_all_deplibs=yes
10660       ;;
10661
10662     netbsd*)
10663       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10664         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10665       else
10666         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10667       fi
10668       hardcode_libdir_flag_spec='-R$libdir'
10669       hardcode_direct=yes
10670       hardcode_shlibpath_var=no
10671       ;;
10672
10673     newsos6)
10674       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10675       hardcode_direct=yes
10676       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10677       hardcode_libdir_separator=:
10678       hardcode_shlibpath_var=no
10679       ;;
10680
10681     openbsd*)
10682       hardcode_direct=yes
10683       hardcode_shlibpath_var=no
10684       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10685         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10686         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10687         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10688         export_dynamic_flag_spec='${wl}-E'
10689       else
10690        case $host_os in
10691          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10692            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10693            hardcode_libdir_flag_spec='-R$libdir'
10694            ;;
10695          *)
10696            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10697            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10698            ;;
10699        esac
10700       fi
10701       ;;
10702
10703     os2*)
10704       hardcode_libdir_flag_spec='-L$libdir'
10705       hardcode_minus_L=yes
10706       allow_undefined_flag=unsupported
10707       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'
10708       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10709       ;;
10710
10711     osf3*)
10712       if test "$GCC" = yes; then
10713         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10714         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'
10715       else
10716         allow_undefined_flag=' -expect_unresolved \*'
10717         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'
10718       fi
10719       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10720       hardcode_libdir_separator=:
10721       ;;
10722
10723     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10724       if test "$GCC" = yes; then
10725         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10726         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'
10727         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10728       else
10729         allow_undefined_flag=' -expect_unresolved \*'
10730         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'
10731         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10732         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
10733
10734         # Both c and cxx compiler support -rpath directly
10735         hardcode_libdir_flag_spec='-rpath $libdir'
10736       fi
10737       hardcode_libdir_separator=:
10738       ;;
10739
10740     sco3.2v5*)
10741       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10742       hardcode_shlibpath_var=no
10743       export_dynamic_flag_spec='${wl}-Bexport'
10744       runpath_var=LD_RUN_PATH
10745       hardcode_runpath_var=yes
10746       ;;
10747
10748     solaris*)
10749       no_undefined_flag=' -z text'
10750       if test "$GCC" = yes; then
10751         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10752         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10753           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10754       else
10755         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10756         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10757         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10758       fi
10759       hardcode_libdir_flag_spec='-R$libdir'
10760       hardcode_shlibpath_var=no
10761       case $host_os in
10762       solaris2.[0-5] | solaris2.[0-5].*) ;;
10763       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10764         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10765       esac
10766       link_all_deplibs=yes
10767       ;;
10768
10769     sunos4*)
10770       if test "x$host_vendor" = xsequent; then
10771         # Use $CC to link under sequent, because it throws in some extra .o
10772         # files that make .init and .fini sections work.
10773         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10774       else
10775         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10776       fi
10777       hardcode_libdir_flag_spec='-L$libdir'
10778       hardcode_direct=yes
10779       hardcode_minus_L=yes
10780       hardcode_shlibpath_var=no
10781       ;;
10782
10783     sysv4)
10784       case $host_vendor in
10785         sni)
10786           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10787           hardcode_direct=yes # is this really true???
10788         ;;
10789         siemens)
10790           ## LD is ld it makes a PLAMLIB
10791           ## CC just makes a GrossModule.
10792           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10793           reload_cmds='$CC -r -o $output$reload_objs'
10794           hardcode_direct=no
10795         ;;
10796         motorola)
10797           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10799         ;;
10800       esac
10801       runpath_var='LD_RUN_PATH'
10802       hardcode_shlibpath_var=no
10803       ;;
10804
10805     sysv4.3*)
10806       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10807       hardcode_shlibpath_var=no
10808       export_dynamic_flag_spec='-Bexport'
10809       ;;
10810
10811     sysv4*MP*)
10812       if test -d /usr/nec; then
10813         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10814         hardcode_shlibpath_var=no
10815         runpath_var=LD_RUN_PATH
10816         hardcode_runpath_var=yes
10817         ld_shlibs=yes
10818       fi
10819       ;;
10820
10821     sysv4.2uw2*)
10822       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10823       hardcode_direct=yes
10824       hardcode_minus_L=no
10825       hardcode_shlibpath_var=no
10826       hardcode_runpath_var=yes
10827       runpath_var=LD_RUN_PATH
10828       ;;
10829
10830    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
10831       no_undefined_flag='${wl}-z ${wl}text'
10832       if test "$GCC" = yes; then
10833         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10834       else
10835         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10836       fi
10837       runpath_var='LD_RUN_PATH'
10838       hardcode_shlibpath_var=no
10839       ;;
10840
10841     sysv5*)
10842       no_undefined_flag=' -z text'
10843       # $CC -shared without GNU ld will not create a library from C++
10844       # object files and a static libstdc++, better avoid it by now
10845       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10846       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10847                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10848       hardcode_libdir_flag_spec=
10849       hardcode_shlibpath_var=no
10850       runpath_var='LD_RUN_PATH'
10851       ;;
10852
10853     uts4*)
10854       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855       hardcode_libdir_flag_spec='-L$libdir'
10856       hardcode_shlibpath_var=no
10857       ;;
10858
10859     *)
10860       ld_shlibs=no
10861       ;;
10862     esac
10863   fi
10864
10865 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10866 echo "${ECHO_T}$ld_shlibs" >&6
10867 test "$ld_shlibs" = no && can_build_shared=no
10868
10869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10870 if test "$GCC" = yes; then
10871   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10872 fi
10873
10874 #
10875 # Do we need to explicitly link libc?
10876 #
10877 case "x$archive_cmds_need_lc" in
10878 x|xyes)
10879   # Assume -lc should be added
10880   archive_cmds_need_lc=yes
10881
10882   if test "$enable_shared" = yes && test "$GCC" = yes; then
10883     case $archive_cmds in
10884     *'~'*)
10885       # FIXME: we may have to deal with multi-command sequences.
10886       ;;
10887     '$CC '*)
10888       # Test whether the compiler implicitly links with -lc since on some
10889       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10890       # to ld, don't add -lc before -lgcc.
10891       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10892 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10893       $rm conftest*
10894       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10895
10896       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10897   (eval $ac_compile) 2>&5
10898   ac_status=$?
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); } 2>conftest.err; then
10901         soname=conftest
10902         lib=conftest
10903         libobjs=conftest.$ac_objext
10904         deplibs=
10905         wl=$lt_prog_compiler_wl
10906         compiler_flags=-v
10907         linker_flags=-v
10908         verstring=
10909         output_objdir=.
10910         libname=conftest
10911         lt_save_allow_undefined_flag=$allow_undefined_flag
10912         allow_undefined_flag=
10913         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10914   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }
10918         then
10919           archive_cmds_need_lc=no
10920         else
10921           archive_cmds_need_lc=yes
10922         fi
10923         allow_undefined_flag=$lt_save_allow_undefined_flag
10924       else
10925         cat conftest.err 1>&5
10926       fi
10927       $rm conftest*
10928       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10929 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10930       ;;
10931     esac
10932   fi
10933   ;;
10934 esac
10935
10936 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10937 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10938 library_names_spec=
10939 libname_spec='lib$name'
10940 soname_spec=
10941 shrext_cmds=".so"
10942 postinstall_cmds=
10943 postuninstall_cmds=
10944 finish_cmds=
10945 finish_eval=
10946 shlibpath_var=
10947 shlibpath_overrides_runpath=unknown
10948 version_type=none
10949 dynamic_linker="$host_os ld.so"
10950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10951 if test "$GCC" = yes; then
10952   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10953   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10954     # if the path contains ";" then we assume it to be the separator
10955     # otherwise default to the standard path separator (i.e. ":") - it is
10956     # assumed that no part of a normal pathname contains ";" but that should
10957     # okay in the real world where ";" in dirpaths is itself problematic.
10958     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10959   else
10960     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10961   fi
10962 else
10963   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10964 fi
10965 need_lib_prefix=unknown
10966 hardcode_into_libs=no
10967
10968 # when you set need_version to no, make sure it does not cause -set_version
10969 # flags to be left without arguments
10970 need_version=unknown
10971
10972 case $host_os in
10973 aix3*)
10974   version_type=linux
10975   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10976   shlibpath_var=LIBPATH
10977
10978   # AIX 3 has no versioning support, so we append a major version to the name.
10979   soname_spec='${libname}${release}${shared_ext}$major'
10980   ;;
10981
10982 aix4* | aix5*)
10983   version_type=linux
10984   need_lib_prefix=no
10985   need_version=no
10986   hardcode_into_libs=yes
10987   if test "$host_cpu" = ia64; then
10988     # AIX 5 supports IA64
10989     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10990     shlibpath_var=LD_LIBRARY_PATH
10991   else
10992     # With GCC up to 2.95.x, collect2 would create an import file
10993     # for dependence libraries.  The import file would start with
10994     # the line `#! .'.  This would cause the generated library to
10995     # depend on `.', always an invalid library.  This was fixed in
10996     # development snapshots of GCC prior to 3.0.
10997     case $host_os in
10998       aix4 | aix4.[01] | aix4.[01].*)
10999       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11000            echo ' yes '
11001            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11002         :
11003       else
11004         can_build_shared=no
11005       fi
11006       ;;
11007     esac
11008     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11009     # soname into executable. Probably we can add versioning support to
11010     # collect2, so additional links can be useful in future.
11011     if test "$aix_use_runtimelinking" = yes; then
11012       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11013       # instead of lib<name>.a to let people know that these are not
11014       # typical AIX shared libraries.
11015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016     else
11017       # We preserve .a as extension for shared libraries through AIX4.2
11018       # and later when we are not doing run time linking.
11019       library_names_spec='${libname}${release}.a $libname.a'
11020       soname_spec='${libname}${release}${shared_ext}$major'
11021     fi
11022     shlibpath_var=LIBPATH
11023   fi
11024   ;;
11025
11026 amigaos*)
11027   library_names_spec='$libname.ixlibrary $libname.a'
11028   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11029   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'
11030   ;;
11031
11032 beos*)
11033   library_names_spec='${libname}${shared_ext}'
11034   dynamic_linker="$host_os ld.so"
11035   shlibpath_var=LIBRARY_PATH
11036   ;;
11037
11038 bsdi[45]*)
11039   version_type=linux
11040   need_version=no
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042   soname_spec='${libname}${release}${shared_ext}$major'
11043   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11046   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11047   # the default ld.so.conf also contains /usr/contrib/lib and
11048   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11049   # libtool to hard-code these into programs
11050   ;;
11051
11052 cygwin* | mingw* | pw32*)
11053   version_type=windows
11054   shrext_cmds=".dll"
11055   need_version=no
11056   need_lib_prefix=no
11057
11058   case $GCC,$host_os in
11059   yes,cygwin* | yes,mingw* | yes,pw32*)
11060     library_names_spec='$libname.dll.a'
11061     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11062     postinstall_cmds='base_file=`basename \${file}`~
11063       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11064       dldir=$destdir/`dirname \$dlpath`~
11065       test -d \$dldir || mkdir -p \$dldir~
11066       $install_prog $dir/$dlname \$dldir/$dlname'
11067     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11068       dlpath=$dir/\$dldll~
11069        $rm \$dlpath'
11070     shlibpath_overrides_runpath=yes
11071
11072     case $host_os in
11073     cygwin*)
11074       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11075       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11076       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11077       ;;
11078     mingw*)
11079       # MinGW DLLs use traditional 'lib' prefix
11080       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11081       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11082       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11083         # It is most probably a Windows format PATH printed by
11084         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11085         # path with ; separators, and with drive letters. We can handle the
11086         # drive letters (cygwin fileutils understands them), so leave them,
11087         # especially as we might pass files found there to a mingw objdump,
11088         # which wouldn't understand a cygwinified path. Ahh.
11089         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11090       else
11091         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11092       fi
11093       ;;
11094     pw32*)
11095       # pw32 DLLs use 'pw' prefix rather than 'lib'
11096       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11097       ;;
11098     esac
11099     ;;
11100
11101   *)
11102     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11103     ;;
11104   esac
11105   dynamic_linker='Win32 ld.exe'
11106   # FIXME: first we should search . and the directory the executable is in
11107   shlibpath_var=PATH
11108   ;;
11109
11110 darwin* | rhapsody*)
11111   dynamic_linker="$host_os dyld"
11112   version_type=darwin
11113   need_lib_prefix=no
11114   need_version=no
11115   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11116   soname_spec='${libname}${release}${major}$shared_ext'
11117   shlibpath_overrides_runpath=yes
11118   shlibpath_var=DYLD_LIBRARY_PATH
11119   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11120   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11121   if test "$GCC" = yes; then
11122     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"`
11123   else
11124     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11125   fi
11126   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11127   ;;
11128
11129 dgux*)
11130   version_type=linux
11131   need_lib_prefix=no
11132   need_version=no
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   shlibpath_var=LD_LIBRARY_PATH
11136   ;;
11137
11138 freebsd1*)
11139   dynamic_linker=no
11140   ;;
11141
11142 kfreebsd*-gnu)
11143   version_type=linux
11144   need_lib_prefix=no
11145   need_version=no
11146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11147   soname_spec='${libname}${release}${shared_ext}$major'
11148   shlibpath_var=LD_LIBRARY_PATH
11149   shlibpath_overrides_runpath=no
11150   hardcode_into_libs=yes
11151   dynamic_linker='GNU ld.so'
11152   ;;
11153
11154 freebsd*)
11155   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11156   version_type=freebsd-$objformat
11157   case $version_type in
11158     freebsd-elf*)
11159       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11160       need_version=no
11161       need_lib_prefix=no
11162       ;;
11163     freebsd-*)
11164       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11165       need_version=yes
11166       ;;
11167   esac
11168   shlibpath_var=LD_LIBRARY_PATH
11169   case $host_os in
11170   freebsd2*)
11171     shlibpath_overrides_runpath=yes
11172     ;;
11173   freebsd3.01* | freebsdelf3.01*)
11174     shlibpath_overrides_runpath=yes
11175     hardcode_into_libs=yes
11176     ;;
11177   *) # from 3.2 on
11178     shlibpath_overrides_runpath=no
11179     hardcode_into_libs=yes
11180     ;;
11181   esac
11182   ;;
11183
11184 gnu*)
11185   version_type=linux
11186   need_lib_prefix=no
11187   need_version=no
11188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11189   soname_spec='${libname}${release}${shared_ext}$major'
11190   shlibpath_var=LD_LIBRARY_PATH
11191   hardcode_into_libs=yes
11192   ;;
11193
11194 hpux9* | hpux10* | hpux11*)
11195   # Give a soname corresponding to the major version so that dld.sl refuses to
11196   # link against other versions.
11197   version_type=sunos
11198   need_lib_prefix=no
11199   need_version=no
11200   case "$host_cpu" in
11201   ia64*)
11202     shrext_cmds='.so'
11203     hardcode_into_libs=yes
11204     dynamic_linker="$host_os dld.so"
11205     shlibpath_var=LD_LIBRARY_PATH
11206     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208     soname_spec='${libname}${release}${shared_ext}$major'
11209     if test "X$HPUX_IA64_MODE" = X32; then
11210       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11211     else
11212       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11213     fi
11214     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11215     ;;
11216    hppa*64*)
11217      shrext_cmds='.sl'
11218      hardcode_into_libs=yes
11219      dynamic_linker="$host_os dld.sl"
11220      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11221      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11222      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223      soname_spec='${libname}${release}${shared_ext}$major'
11224      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11225      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11226      ;;
11227    *)
11228     shrext_cmds='.sl'
11229     dynamic_linker="$host_os dld.sl"
11230     shlibpath_var=SHLIB_PATH
11231     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233     soname_spec='${libname}${release}${shared_ext}$major'
11234     ;;
11235   esac
11236   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11237   postinstall_cmds='chmod 555 $lib'
11238   ;;
11239
11240 irix5* | irix6* | nonstopux*)
11241   case $host_os in
11242     nonstopux*) version_type=nonstopux ;;
11243     *)
11244         if test "$lt_cv_prog_gnu_ld" = yes; then
11245                 version_type=linux
11246         else
11247                 version_type=irix
11248         fi ;;
11249   esac
11250   need_lib_prefix=no
11251   need_version=no
11252   soname_spec='${libname}${release}${shared_ext}$major'
11253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11254   case $host_os in
11255   irix5* | nonstopux*)
11256     libsuff= shlibsuff=
11257     ;;
11258   *)
11259     case $LD in # libtool.m4 will add one of these switches to LD
11260     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11261       libsuff= shlibsuff= libmagic=32-bit;;
11262     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11263       libsuff=32 shlibsuff=N32 libmagic=N32;;
11264     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11265       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11266     *) libsuff= shlibsuff= libmagic=never-match;;
11267     esac
11268     ;;
11269   esac
11270   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11271   shlibpath_overrides_runpath=no
11272   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11273   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11274   hardcode_into_libs=yes
11275   ;;
11276
11277 # No shared lib support for Linux oldld, aout, or coff.
11278 linux*oldld* | linux*aout* | linux*coff*)
11279   dynamic_linker=no
11280   ;;
11281
11282 # This must be Linux ELF.
11283 linux*)
11284   version_type=linux
11285   need_lib_prefix=no
11286   need_version=no
11287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288   soname_spec='${libname}${release}${shared_ext}$major'
11289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11290   shlibpath_var=LD_LIBRARY_PATH
11291   shlibpath_overrides_runpath=no
11292   # This implies no fast_install, which is unacceptable.
11293   # Some rework will be needed to allow for fast_install
11294   # before this can be enabled.
11295   hardcode_into_libs=yes
11296
11297   # Append ld.so.conf contents to the search path
11298   if test -f /etc/ld.so.conf; then
11299     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11300     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11301   fi
11302
11303   # We used to test for /lib/ld.so.1 and disable shared libraries on
11304   # powerpc, because MkLinux only supported shared libraries with the
11305   # GNU dynamic linker.  Since this was broken with cross compilers,
11306   # most powerpc-linux boxes support dynamic linking these days and
11307   # people can always --disable-shared, the test was removed, and we
11308   # assume the GNU/Linux dynamic linker is in use.
11309   dynamic_linker='GNU/Linux ld.so'
11310   ;;
11311
11312 knetbsd*-gnu)
11313   version_type=linux
11314   need_lib_prefix=no
11315   need_version=no
11316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11317   soname_spec='${libname}${release}${shared_ext}$major'
11318   shlibpath_var=LD_LIBRARY_PATH
11319   shlibpath_overrides_runpath=no
11320   hardcode_into_libs=yes
11321   dynamic_linker='GNU ld.so'
11322   ;;
11323
11324 netbsd*)
11325   version_type=sunos
11326   need_lib_prefix=no
11327   need_version=no
11328   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11330     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11331     dynamic_linker='NetBSD (a.out) ld.so'
11332   else
11333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11334     soname_spec='${libname}${release}${shared_ext}$major'
11335     dynamic_linker='NetBSD ld.elf_so'
11336   fi
11337   shlibpath_var=LD_LIBRARY_PATH
11338   shlibpath_overrides_runpath=yes
11339   hardcode_into_libs=yes
11340   ;;
11341
11342 newsos6)
11343   version_type=linux
11344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345   shlibpath_var=LD_LIBRARY_PATH
11346   shlibpath_overrides_runpath=yes
11347   ;;
11348
11349 nto-qnx*)
11350   version_type=linux
11351   need_lib_prefix=no
11352   need_version=no
11353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354   soname_spec='${libname}${release}${shared_ext}$major'
11355   shlibpath_var=LD_LIBRARY_PATH
11356   shlibpath_overrides_runpath=yes
11357   ;;
11358
11359 openbsd*)
11360   version_type=sunos
11361   need_lib_prefix=no
11362   need_version=no
11363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11364   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11365   shlibpath_var=LD_LIBRARY_PATH
11366   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11367     case $host_os in
11368       openbsd2.[89] | openbsd2.[89].*)
11369         shlibpath_overrides_runpath=no
11370         ;;
11371       *)
11372         shlibpath_overrides_runpath=yes
11373         ;;
11374       esac
11375   else
11376     shlibpath_overrides_runpath=yes
11377   fi
11378   ;;
11379
11380 os2*)
11381   libname_spec='$name'
11382   shrext_cmds=".dll"
11383   need_lib_prefix=no
11384   library_names_spec='$libname${shared_ext} $libname.a'
11385   dynamic_linker='OS/2 ld.exe'
11386   shlibpath_var=LIBPATH
11387   ;;
11388
11389 osf3* | osf4* | osf5*)
11390   version_type=osf
11391   need_lib_prefix=no
11392   need_version=no
11393   soname_spec='${libname}${release}${shared_ext}$major'
11394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11395   shlibpath_var=LD_LIBRARY_PATH
11396   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11397   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11398   ;;
11399
11400 sco3.2v5*)
11401   version_type=osf
11402   soname_spec='${libname}${release}${shared_ext}$major'
11403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404   shlibpath_var=LD_LIBRARY_PATH
11405   ;;
11406
11407 solaris*)
11408   version_type=linux
11409   need_lib_prefix=no
11410   need_version=no
11411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412   soname_spec='${libname}${release}${shared_ext}$major'
11413   shlibpath_var=LD_LIBRARY_PATH
11414   shlibpath_overrides_runpath=yes
11415   hardcode_into_libs=yes
11416   # ldd complains unless libraries are executable
11417   postinstall_cmds='chmod +x $lib'
11418   ;;
11419
11420 sunos4*)
11421   version_type=sunos
11422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11423   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11424   shlibpath_var=LD_LIBRARY_PATH
11425   shlibpath_overrides_runpath=yes
11426   if test "$with_gnu_ld" = yes; then
11427     need_lib_prefix=no
11428   fi
11429   need_version=yes
11430   ;;
11431
11432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11433   version_type=linux
11434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435   soname_spec='${libname}${release}${shared_ext}$major'
11436   shlibpath_var=LD_LIBRARY_PATH
11437   case $host_vendor in
11438     sni)
11439       shlibpath_overrides_runpath=no
11440       need_lib_prefix=no
11441       export_dynamic_flag_spec='${wl}-Blargedynsym'
11442       runpath_var=LD_RUN_PATH
11443       ;;
11444     siemens)
11445       need_lib_prefix=no
11446       ;;
11447     motorola)
11448       need_lib_prefix=no
11449       need_version=no
11450       shlibpath_overrides_runpath=no
11451       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11452       ;;
11453   esac
11454   ;;
11455
11456 sysv4*MP*)
11457   if test -d /usr/nec ;then
11458     version_type=linux
11459     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11460     soname_spec='$libname${shared_ext}.$major'
11461     shlibpath_var=LD_LIBRARY_PATH
11462   fi
11463   ;;
11464
11465 uts4*)
11466   version_type=linux
11467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468   soname_spec='${libname}${release}${shared_ext}$major'
11469   shlibpath_var=LD_LIBRARY_PATH
11470   ;;
11471
11472 *)
11473   dynamic_linker=no
11474   ;;
11475 esac
11476 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11477 echo "${ECHO_T}$dynamic_linker" >&6
11478 test "$dynamic_linker" = no && can_build_shared=no
11479
11480 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11481 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11482 hardcode_action=
11483 if test -n "$hardcode_libdir_flag_spec" || \
11484    test -n "$runpath_var" || \
11485    test "X$hardcode_automatic" = "Xyes" ; then
11486
11487   # We can hardcode non-existant directories.
11488   if test "$hardcode_direct" != no &&
11489      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11490      # have to relink, otherwise we might link with an installed library
11491      # when we should be linking with a yet-to-be-installed one
11492      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11493      test "$hardcode_minus_L" != no; then
11494     # Linking always hardcodes the temporary library directory.
11495     hardcode_action=relink
11496   else
11497     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11498     hardcode_action=immediate
11499   fi
11500 else
11501   # We cannot hardcode anything, or else we can only hardcode existing
11502   # directories.
11503   hardcode_action=unsupported
11504 fi
11505 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11506 echo "${ECHO_T}$hardcode_action" >&6
11507
11508 if test "$hardcode_action" = relink; then
11509   # Fast installation is not supported
11510   enable_fast_install=no
11511 elif test "$shlibpath_overrides_runpath" = yes ||
11512      test "$enable_shared" = no; then
11513   # Fast installation is not necessary
11514   enable_fast_install=needless
11515 fi
11516
11517 striplib=
11518 old_striplib=
11519 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11520 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11521 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11522   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11523   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11524   echo "$as_me:$LINENO: result: yes" >&5
11525 echo "${ECHO_T}yes" >&6
11526 else
11527 # FIXME - insert some real tests, host_os isn't really good enough
11528   case $host_os in
11529    darwin*)
11530        if test -n "$STRIP" ; then
11531          striplib="$STRIP -x"
11532          echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6
11534        else
11535   echo "$as_me:$LINENO: result: no" >&5
11536 echo "${ECHO_T}no" >&6
11537 fi
11538        ;;
11539    *)
11540   echo "$as_me:$LINENO: result: no" >&5
11541 echo "${ECHO_T}no" >&6
11542     ;;
11543   esac
11544 fi
11545
11546 if test "x$enable_dlopen" != xyes; then
11547   enable_dlopen=unknown
11548   enable_dlopen_self=unknown
11549   enable_dlopen_self_static=unknown
11550 else
11551   lt_cv_dlopen=no
11552   lt_cv_dlopen_libs=
11553
11554   case $host_os in
11555   beos*)
11556     lt_cv_dlopen="load_add_on"
11557     lt_cv_dlopen_libs=
11558     lt_cv_dlopen_self=yes
11559     ;;
11560
11561   mingw* | pw32*)
11562     lt_cv_dlopen="LoadLibrary"
11563     lt_cv_dlopen_libs=
11564    ;;
11565
11566   cygwin*)
11567     lt_cv_dlopen="dlopen"
11568     lt_cv_dlopen_libs=
11569    ;;
11570
11571   darwin*)
11572   # if libdl is installed we need to link against it
11573     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11574 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11575 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11576   echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578   ac_check_lib_save_LIBS=$LIBS
11579 LIBS="-ldl  $LIBS"
11580 cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586
11587 /* Override any gcc2 internal prototype to avoid an error.  */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 /* We use char because int might match the return type of a gcc2
11592    builtin and then its argument prototype would still apply.  */
11593 char dlopen ();
11594 int
11595 main ()
11596 {
11597 dlopen ();
11598   ;
11599   return 0;
11600 }
11601 _ACEOF
11602 rm -f conftest.$ac_objext conftest$ac_exeext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604   (eval $ac_link) 2>conftest.er1
11605   ac_status=$?
11606   grep -v '^ *+' conftest.er1 >conftest.err
11607   rm -f conftest.er1
11608   cat conftest.err >&5
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -z "$ac_c_werror_flag"
11612                          || test ! -s conftest.err'
11613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614   (eval $ac_try) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; } &&
11618          { ac_try='test -s conftest$ac_exeext'
11619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620   (eval $ac_try) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); }; }; then
11624   ac_cv_lib_dl_dlopen=yes
11625 else
11626   echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_cv_lib_dl_dlopen=no
11630 fi
11631 rm -f conftest.err conftest.$ac_objext \
11632       conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11634 fi
11635 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11636 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11637 if test $ac_cv_lib_dl_dlopen = yes; then
11638   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11639 else
11640
11641     lt_cv_dlopen="dyld"
11642     lt_cv_dlopen_libs=
11643     lt_cv_dlopen_self=yes
11644
11645 fi
11646
11647    ;;
11648
11649   *)
11650     echo "$as_me:$LINENO: checking for shl_load" >&5
11651 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11652 if test "${ac_cv_func_shl_load+set}" = set; then
11653   echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655   cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h.  */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h.  */
11661 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11663 #define shl_load innocuous_shl_load
11664
11665 /* System header to define __stub macros and hopefully few prototypes,
11666     which can conflict with char shl_load (); below.
11667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11668     <limits.h> exists even on freestanding compilers.  */
11669
11670 #ifdef __STDC__
11671 # include <limits.h>
11672 #else
11673 # include <assert.h>
11674 #endif
11675
11676 #undef shl_load
11677
11678 /* Override any gcc2 internal prototype to avoid an error.  */
11679 #ifdef __cplusplus
11680 extern "C"
11681 {
11682 #endif
11683 /* We use char because int might match the return type of a gcc2
11684    builtin and then its argument prototype would still apply.  */
11685 char shl_load ();
11686 /* The GNU C library defines this for functions which it implements
11687     to always fail with ENOSYS.  Some functions are actually named
11688     something starting with __ and the normal name is an alias.  */
11689 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11690 choke me
11691 #else
11692 char (*f) () = shl_load;
11693 #endif
11694 #ifdef __cplusplus
11695 }
11696 #endif
11697
11698 int
11699 main ()
11700 {
11701 return f != shl_load;
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708   (eval $ac_link) 2>conftest.er1
11709   ac_status=$?
11710   grep -v '^ *+' conftest.er1 >conftest.err
11711   rm -f conftest.er1
11712   cat conftest.err >&5
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } &&
11715          { ac_try='test -z "$ac_c_werror_flag"
11716                          || test ! -s conftest.err'
11717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718   (eval $ac_try) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; } &&
11722          { ac_try='test -s conftest$ac_exeext'
11723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724   (eval $ac_try) 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; }; then
11728   ac_cv_func_shl_load=yes
11729 else
11730   echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733 ac_cv_func_shl_load=no
11734 fi
11735 rm -f conftest.err conftest.$ac_objext \
11736       conftest$ac_exeext conftest.$ac_ext
11737 fi
11738 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11739 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11740 if test $ac_cv_func_shl_load = yes; then
11741   lt_cv_dlopen="shl_load"
11742 else
11743   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11744 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11745 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   ac_check_lib_save_LIBS=$LIBS
11749 LIBS="-ldld  $LIBS"
11750 cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h.  */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h.  */
11756
11757 /* Override any gcc2 internal prototype to avoid an error.  */
11758 #ifdef __cplusplus
11759 extern "C"
11760 #endif
11761 /* We use char because int might match the return type of a gcc2
11762    builtin and then its argument prototype would still apply.  */
11763 char shl_load ();
11764 int
11765 main ()
11766 {
11767 shl_load ();
11768   ;
11769   return 0;
11770 }
11771 _ACEOF
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774   (eval $ac_link) 2>conftest.er1
11775   ac_status=$?
11776   grep -v '^ *+' conftest.er1 >conftest.err
11777   rm -f conftest.er1
11778   cat conftest.err >&5
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } &&
11781          { ac_try='test -z "$ac_c_werror_flag"
11782                          || test ! -s conftest.err'
11783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784   (eval $ac_try) 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; } &&
11788          { ac_try='test -s conftest$ac_exeext'
11789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790   (eval $ac_try) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; }; then
11794   ac_cv_lib_dld_shl_load=yes
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799 ac_cv_lib_dld_shl_load=no
11800 fi
11801 rm -f conftest.err conftest.$ac_objext \
11802       conftest$ac_exeext conftest.$ac_ext
11803 LIBS=$ac_check_lib_save_LIBS
11804 fi
11805 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11806 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11807 if test $ac_cv_lib_dld_shl_load = yes; then
11808   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11809 else
11810   echo "$as_me:$LINENO: checking for dlopen" >&5
11811 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11812 if test "${ac_cv_func_dlopen+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h.  */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h.  */
11821 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11823 #define dlopen innocuous_dlopen
11824
11825 /* System header to define __stub macros and hopefully few prototypes,
11826     which can conflict with char dlopen (); below.
11827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11828     <limits.h> exists even on freestanding compilers.  */
11829
11830 #ifdef __STDC__
11831 # include <limits.h>
11832 #else
11833 # include <assert.h>
11834 #endif
11835
11836 #undef dlopen
11837
11838 /* Override any gcc2 internal prototype to avoid an error.  */
11839 #ifdef __cplusplus
11840 extern "C"
11841 {
11842 #endif
11843 /* We use char because int might match the return type of a gcc2
11844    builtin and then its argument prototype would still apply.  */
11845 char dlopen ();
11846 /* The GNU C library defines this for functions which it implements
11847     to always fail with ENOSYS.  Some functions are actually named
11848     something starting with __ and the normal name is an alias.  */
11849 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11850 choke me
11851 #else
11852 char (*f) () = dlopen;
11853 #endif
11854 #ifdef __cplusplus
11855 }
11856 #endif
11857
11858 int
11859 main ()
11860 {
11861 return f != dlopen;
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext conftest$ac_exeext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11868   (eval $ac_link) 2>conftest.er1
11869   ac_status=$?
11870   grep -v '^ *+' conftest.er1 >conftest.err
11871   rm -f conftest.er1
11872   cat conftest.err >&5
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); } &&
11875          { ac_try='test -z "$ac_c_werror_flag"
11876                          || test ! -s conftest.err'
11877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878   (eval $ac_try) 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; } &&
11882          { ac_try='test -s conftest$ac_exeext'
11883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884   (eval $ac_try) 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; }; then
11888   ac_cv_func_dlopen=yes
11889 else
11890   echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 ac_cv_func_dlopen=no
11894 fi
11895 rm -f conftest.err conftest.$ac_objext \
11896       conftest$ac_exeext conftest.$ac_ext
11897 fi
11898 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11899 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11900 if test $ac_cv_func_dlopen = yes; then
11901   lt_cv_dlopen="dlopen"
11902 else
11903   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11904 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11905 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908   ac_check_lib_save_LIBS=$LIBS
11909 LIBS="-ldl  $LIBS"
11910 cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h.  */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h.  */
11916
11917 /* Override any gcc2 internal prototype to avoid an error.  */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 /* We use char because int might match the return type of a gcc2
11922    builtin and then its argument prototype would still apply.  */
11923 char dlopen ();
11924 int
11925 main ()
11926 {
11927 dlopen ();
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934   (eval $ac_link) 2>conftest.er1
11935   ac_status=$?
11936   grep -v '^ *+' conftest.er1 >conftest.err
11937   rm -f conftest.er1
11938   cat conftest.err >&5
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); } &&
11941          { ac_try='test -z "$ac_c_werror_flag"
11942                          || test ! -s conftest.err'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; } &&
11948          { ac_try='test -s conftest$ac_exeext'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954   ac_cv_lib_dl_dlopen=yes
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 ac_cv_lib_dl_dlopen=no
11960 fi
11961 rm -f conftest.err conftest.$ac_objext \
11962       conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11964 fi
11965 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11966 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11967 if test $ac_cv_lib_dl_dlopen = yes; then
11968   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11969 else
11970   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11971 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11973   echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975   ac_check_lib_save_LIBS=$LIBS
11976 LIBS="-lsvld  $LIBS"
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983
11984 /* Override any gcc2 internal prototype to avoid an error.  */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 /* We use char because int might match the return type of a gcc2
11989    builtin and then its argument prototype would still apply.  */
11990 char dlopen ();
11991 int
11992 main ()
11993 {
11994 dlopen ();
11995   ;
11996   return 0;
11997 }
11998 _ACEOF
11999 rm -f conftest.$ac_objext conftest$ac_exeext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001   (eval $ac_link) 2>conftest.er1
12002   ac_status=$?
12003   grep -v '^ *+' conftest.er1 >conftest.err
12004   rm -f conftest.er1
12005   cat conftest.err >&5
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); } &&
12008          { ac_try='test -z "$ac_c_werror_flag"
12009                          || test ! -s conftest.err'
12010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011   (eval $ac_try) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; } &&
12015          { ac_try='test -s conftest$ac_exeext'
12016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017   (eval $ac_try) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   ac_cv_lib_svld_dlopen=yes
12022 else
12023   echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026 ac_cv_lib_svld_dlopen=no
12027 fi
12028 rm -f conftest.err conftest.$ac_objext \
12029       conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_check_lib_save_LIBS
12031 fi
12032 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12033 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12034 if test $ac_cv_lib_svld_dlopen = yes; then
12035   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12036 else
12037   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12038 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12039 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-ldld  $LIBS"
12044 cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050
12051 /* Override any gcc2 internal prototype to avoid an error.  */
12052 #ifdef __cplusplus
12053 extern "C"
12054 #endif
12055 /* We use char because int might match the return type of a gcc2
12056    builtin and then its argument prototype would still apply.  */
12057 char dld_link ();
12058 int
12059 main ()
12060 {
12061 dld_link ();
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068   (eval $ac_link) 2>conftest.er1
12069   ac_status=$?
12070   grep -v '^ *+' conftest.er1 >conftest.err
12071   rm -f conftest.er1
12072   cat conftest.err >&5
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); } &&
12075          { ac_try='test -z "$ac_c_werror_flag"
12076                          || test ! -s conftest.err'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; } &&
12082          { ac_try='test -s conftest$ac_exeext'
12083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084   (eval $ac_try) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; }; then
12088   ac_cv_lib_dld_dld_link=yes
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 ac_cv_lib_dld_dld_link=no
12094 fi
12095 rm -f conftest.err conftest.$ac_objext \
12096       conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12098 fi
12099 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12100 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12101 if test $ac_cv_lib_dld_dld_link = yes; then
12102   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12103 fi
12104
12105
12106 fi
12107
12108
12109 fi
12110
12111
12112 fi
12113
12114
12115 fi
12116
12117
12118 fi
12119
12120     ;;
12121   esac
12122
12123   if test "x$lt_cv_dlopen" != xno; then
12124     enable_dlopen=yes
12125   else
12126     enable_dlopen=no
12127   fi
12128
12129   case $lt_cv_dlopen in
12130   dlopen)
12131     save_CPPFLAGS="$CPPFLAGS"
12132     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12133
12134     save_LDFLAGS="$LDFLAGS"
12135     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12136
12137     save_LIBS="$LIBS"
12138     LIBS="$lt_cv_dlopen_libs $LIBS"
12139
12140     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12141 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12142 if test "${lt_cv_dlopen_self+set}" = set; then
12143   echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145           if test "$cross_compiling" = yes; then :
12146   lt_cv_dlopen_self=cross
12147 else
12148   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12149   lt_status=$lt_dlunknown
12150   cat > conftest.$ac_ext <<EOF
12151 #line 12151 "configure"
12152 #include "confdefs.h"
12153
12154 #if HAVE_DLFCN_H
12155 #include <dlfcn.h>
12156 #endif
12157
12158 #include <stdio.h>
12159
12160 #ifdef RTLD_GLOBAL
12161 #  define LT_DLGLOBAL           RTLD_GLOBAL
12162 #else
12163 #  ifdef DL_GLOBAL
12164 #    define LT_DLGLOBAL         DL_GLOBAL
12165 #  else
12166 #    define LT_DLGLOBAL         0
12167 #  endif
12168 #endif
12169
12170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12171    find out it does not work in some platform. */
12172 #ifndef LT_DLLAZY_OR_NOW
12173 #  ifdef RTLD_LAZY
12174 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12175 #  else
12176 #    ifdef DL_LAZY
12177 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12178 #    else
12179 #      ifdef RTLD_NOW
12180 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12181 #      else
12182 #        ifdef DL_NOW
12183 #          define LT_DLLAZY_OR_NOW      DL_NOW
12184 #        else
12185 #          define LT_DLLAZY_OR_NOW      0
12186 #        endif
12187 #      endif
12188 #    endif
12189 #  endif
12190 #endif
12191
12192 #ifdef __cplusplus
12193 extern "C" void exit (int);
12194 #endif
12195
12196 void fnord() { int i=42;}
12197 int main ()
12198 {
12199   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12200   int status = $lt_dlunknown;
12201
12202   if (self)
12203     {
12204       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12205       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12206       /* dlclose (self); */
12207     }
12208
12209     exit (status);
12210 }
12211 EOF
12212   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12213   (eval $ac_link) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12217     (./conftest; exit; ) 2>/dev/null
12218     lt_status=$?
12219     case x$lt_status in
12220       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12221       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12222       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12223     esac
12224   else :
12225     # compilation failed
12226     lt_cv_dlopen_self=no
12227   fi
12228 fi
12229 rm -fr conftest*
12230
12231
12232 fi
12233 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12234 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12235
12236     if test "x$lt_cv_dlopen_self" = xyes; then
12237       LDFLAGS="$LDFLAGS $link_static_flag"
12238       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12239 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12240 if test "${lt_cv_dlopen_self_static+set}" = set; then
12241   echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243           if test "$cross_compiling" = yes; then :
12244   lt_cv_dlopen_self_static=cross
12245 else
12246   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12247   lt_status=$lt_dlunknown
12248   cat > conftest.$ac_ext <<EOF
12249 #line 12249 "configure"
12250 #include "confdefs.h"
12251
12252 #if HAVE_DLFCN_H
12253 #include <dlfcn.h>
12254 #endif
12255
12256 #include <stdio.h>
12257
12258 #ifdef RTLD_GLOBAL
12259 #  define LT_DLGLOBAL           RTLD_GLOBAL
12260 #else
12261 #  ifdef DL_GLOBAL
12262 #    define LT_DLGLOBAL         DL_GLOBAL
12263 #  else
12264 #    define LT_DLGLOBAL         0
12265 #  endif
12266 #endif
12267
12268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12269    find out it does not work in some platform. */
12270 #ifndef LT_DLLAZY_OR_NOW
12271 #  ifdef RTLD_LAZY
12272 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12273 #  else
12274 #    ifdef DL_LAZY
12275 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12276 #    else
12277 #      ifdef RTLD_NOW
12278 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12279 #      else
12280 #        ifdef DL_NOW
12281 #          define LT_DLLAZY_OR_NOW      DL_NOW
12282 #        else
12283 #          define LT_DLLAZY_OR_NOW      0
12284 #        endif
12285 #      endif
12286 #    endif
12287 #  endif
12288 #endif
12289
12290 #ifdef __cplusplus
12291 extern "C" void exit (int);
12292 #endif
12293
12294 void fnord() { int i=42;}
12295 int main ()
12296 {
12297   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12298   int status = $lt_dlunknown;
12299
12300   if (self)
12301     {
12302       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12303       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304       /* dlclose (self); */
12305     }
12306
12307     exit (status);
12308 }
12309 EOF
12310   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311   (eval $ac_link) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12315     (./conftest; exit; ) 2>/dev/null
12316     lt_status=$?
12317     case x$lt_status in
12318       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12319       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12320       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12321     esac
12322   else :
12323     # compilation failed
12324     lt_cv_dlopen_self_static=no
12325   fi
12326 fi
12327 rm -fr conftest*
12328
12329
12330 fi
12331 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12332 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12333     fi
12334
12335     CPPFLAGS="$save_CPPFLAGS"
12336     LDFLAGS="$save_LDFLAGS"
12337     LIBS="$save_LIBS"
12338     ;;
12339   esac
12340
12341   case $lt_cv_dlopen_self in
12342   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12343   *) enable_dlopen_self=unknown ;;
12344   esac
12345
12346   case $lt_cv_dlopen_self_static in
12347   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12348   *) enable_dlopen_self_static=unknown ;;
12349   esac
12350 fi
12351
12352
12353 # Report which librarie types wil actually be built
12354 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12355 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12356 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12357 echo "${ECHO_T}$can_build_shared" >&6
12358
12359 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12360 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12361 test "$can_build_shared" = "no" && enable_shared=no
12362
12363 # On AIX, shared libraries and static libraries use the same namespace, and
12364 # are all built from PIC.
12365 case "$host_os" in
12366 aix3*)
12367   test "$enable_shared" = yes && enable_static=no
12368   if test -n "$RANLIB"; then
12369     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12370     postinstall_cmds='$RANLIB $lib'
12371   fi
12372   ;;
12373
12374 aix4* | aix5*)
12375   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12376     test "$enable_shared" = yes && enable_static=no
12377   fi
12378     ;;
12379 esac
12380 echo "$as_me:$LINENO: result: $enable_shared" >&5
12381 echo "${ECHO_T}$enable_shared" >&6
12382
12383 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12385 # Make sure either enable_shared or enable_static is yes.
12386 test "$enable_shared" = yes || enable_static=yes
12387 echo "$as_me:$LINENO: result: $enable_static" >&5
12388 echo "${ECHO_T}$enable_static" >&6
12389
12390 # The else clause should only fire when bootstrapping the
12391 # libtool distribution, otherwise you forgot to ship ltmain.sh
12392 # with your package, and you will get complaints that there are
12393 # no rules to generate ltmain.sh.
12394 if test -f "$ltmain"; then
12395   # See if we are running on zsh, and set the options which allow our commands through
12396   # without removal of \ escapes.
12397   if test -n "${ZSH_VERSION+set}" ; then
12398     setopt NO_GLOB_SUBST
12399   fi
12400   # Now quote all the things that may contain metacharacters while being
12401   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12402   # variables and quote the copies for generation of the libtool script.
12403   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12404     SED SHELL STRIP \
12405     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12406     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12407     deplibs_check_method reload_flag reload_cmds need_locks \
12408     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12409     lt_cv_sys_global_symbol_to_c_name_address \
12410     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12411     old_postinstall_cmds old_postuninstall_cmds \
12412     compiler \
12413     CC \
12414     LD \
12415     lt_prog_compiler_wl \
12416     lt_prog_compiler_pic \
12417     lt_prog_compiler_static \
12418     lt_prog_compiler_no_builtin_flag \
12419     export_dynamic_flag_spec \
12420     thread_safe_flag_spec \
12421     whole_archive_flag_spec \
12422     enable_shared_with_static_runtimes \
12423     old_archive_cmds \
12424     old_archive_from_new_cmds \
12425     predep_objects \
12426     postdep_objects \
12427     predeps \
12428     postdeps \
12429     compiler_lib_search_path \
12430     archive_cmds \
12431     archive_expsym_cmds \
12432     postinstall_cmds \
12433     postuninstall_cmds \
12434     old_archive_from_expsyms_cmds \
12435     allow_undefined_flag \
12436     no_undefined_flag \
12437     export_symbols_cmds \
12438     hardcode_libdir_flag_spec \
12439     hardcode_libdir_flag_spec_ld \
12440     hardcode_libdir_separator \
12441     hardcode_automatic \
12442     module_cmds \
12443     module_expsym_cmds \
12444     lt_cv_prog_compiler_c_o \
12445     exclude_expsyms \
12446     include_expsyms; do
12447
12448     case $var in
12449     old_archive_cmds | \
12450     old_archive_from_new_cmds | \
12451     archive_cmds | \
12452     archive_expsym_cmds | \
12453     module_cmds | \
12454     module_expsym_cmds | \
12455     old_archive_from_expsyms_cmds | \
12456     export_symbols_cmds | \
12457     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12458     postinstall_cmds | postuninstall_cmds | \
12459     old_postinstall_cmds | old_postuninstall_cmds | \
12460     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12461       # Double-quote double-evaled strings.
12462       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12463       ;;
12464     *)
12465       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12466       ;;
12467     esac
12468   done
12469
12470   case $lt_echo in
12471   *'\$0 --fallback-echo"')
12472     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12473     ;;
12474   esac
12475
12476 cfgfile="${ofile}T"
12477   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12478   $rm -f "$cfgfile"
12479   { echo "$as_me:$LINENO: creating $ofile" >&5
12480 echo "$as_me: creating $ofile" >&6;}
12481
12482   cat <<__EOF__ >> "$cfgfile"
12483 #! $SHELL
12484
12485 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12486 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12488 #
12489 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12490 # Free Software Foundation, Inc.
12491 #
12492 # This file is part of GNU Libtool:
12493 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12494 #
12495 # This program is free software; you can redistribute it and/or modify
12496 # it under the terms of the GNU General Public License as published by
12497 # the Free Software Foundation; either version 2 of the License, or
12498 # (at your option) any later version.
12499 #
12500 # This program is distributed in the hope that it will be useful, but
12501 # WITHOUT ANY WARRANTY; without even the implied warranty of
12502 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12503 # General Public License for more details.
12504 #
12505 # You should have received a copy of the GNU General Public License
12506 # along with this program; if not, write to the Free Software
12507 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
12508 #
12509 # As a special exception to the GNU General Public License, if you
12510 # distribute this file as part of a program that contains a
12511 # configuration script generated by Autoconf, you may include it under
12512 # the same distribution terms that you use for the rest of that program.
12513
12514 # A sed program that does not truncate output.
12515 SED=$lt_SED
12516
12517 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12518 Xsed="$SED -e s/^X//"
12519
12520 # The HP-UX ksh and POSIX shell print the target directory to stdout
12521 # if CDPATH is set.
12522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12523
12524 # The names of the tagged configurations supported by this script.
12525 available_tags=
12526
12527 # ### BEGIN LIBTOOL CONFIG
12528
12529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12530
12531 # Shell to use when invoking shell scripts.
12532 SHELL=$lt_SHELL
12533
12534 # Whether or not to build shared libraries.
12535 build_libtool_libs=$enable_shared
12536
12537 # Whether or not to build static libraries.
12538 build_old_libs=$enable_static
12539
12540 # Whether or not to add -lc for building shared libraries.
12541 build_libtool_need_lc=$archive_cmds_need_lc
12542
12543 # Whether or not to disallow shared libs when runtime libs are static
12544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12545
12546 # Whether or not to optimize for fast installation.
12547 fast_install=$enable_fast_install
12548
12549 # The host system.
12550 host_alias=$host_alias
12551 host=$host
12552
12553 # An echo program that does not interpret backslashes.
12554 echo=$lt_echo
12555
12556 # The archiver.
12557 AR=$lt_AR
12558 AR_FLAGS=$lt_AR_FLAGS
12559
12560 # A C compiler.
12561 LTCC=$lt_LTCC
12562
12563 # A language-specific compiler.
12564 CC=$lt_compiler
12565
12566 # Is the compiler the GNU C compiler?
12567 with_gcc=$GCC
12568
12569 # An ERE matcher.
12570 EGREP=$lt_EGREP
12571
12572 # The linker used to build libraries.
12573 LD=$lt_LD
12574
12575 # Whether we need hard or soft links.
12576 LN_S=$lt_LN_S
12577
12578 # A BSD-compatible nm program.
12579 NM=$lt_NM
12580
12581 # A symbol stripping program
12582 STRIP=$lt_STRIP
12583
12584 # Used to examine libraries when file_magic_cmd begins "file"
12585 MAGIC_CMD=$MAGIC_CMD
12586
12587 # Used on cygwin: DLL creation program.
12588 DLLTOOL="$DLLTOOL"
12589
12590 # Used on cygwin: object dumper.
12591 OBJDUMP="$OBJDUMP"
12592
12593 # Used on cygwin: assembler.
12594 AS="$AS"
12595
12596 # The name of the directory that contains temporary libtool files.
12597 objdir=$objdir
12598
12599 # How to create reloadable object files.
12600 reload_flag=$lt_reload_flag
12601 reload_cmds=$lt_reload_cmds
12602
12603 # How to pass a linker flag through the compiler.
12604 wl=$lt_lt_prog_compiler_wl
12605
12606 # Object file suffix (normally "o").
12607 objext="$ac_objext"
12608
12609 # Old archive suffix (normally "a").
12610 libext="$libext"
12611
12612 # Shared library suffix (normally ".so").
12613 shrext_cmds='$shrext_cmds'
12614
12615 # Executable file suffix (normally "").
12616 exeext="$exeext"
12617
12618 # Additional compiler flags for building library objects.
12619 pic_flag=$lt_lt_prog_compiler_pic
12620 pic_mode=$pic_mode
12621
12622 # What is the maximum length of a command?
12623 max_cmd_len=$lt_cv_sys_max_cmd_len
12624
12625 # Does compiler simultaneously support -c and -o options?
12626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12627
12628 # Must we lock files when doing compilation ?
12629 need_locks=$lt_need_locks
12630
12631 # Do we need the lib prefix for modules?
12632 need_lib_prefix=$need_lib_prefix
12633
12634 # Do we need a version for libraries?
12635 need_version=$need_version
12636
12637 # Whether dlopen is supported.
12638 dlopen_support=$enable_dlopen
12639
12640 # Whether dlopen of programs is supported.
12641 dlopen_self=$enable_dlopen_self
12642
12643 # Whether dlopen of statically linked programs is supported.
12644 dlopen_self_static=$enable_dlopen_self_static
12645
12646 # Compiler flag to prevent dynamic linking.
12647 link_static_flag=$lt_lt_prog_compiler_static
12648
12649 # Compiler flag to turn off builtin functions.
12650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12651
12652 # Compiler flag to allow reflexive dlopens.
12653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12654
12655 # Compiler flag to generate shared objects directly from archives.
12656 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12657
12658 # Compiler flag to generate thread-safe objects.
12659 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12660
12661 # Library versioning type.
12662 version_type=$version_type
12663
12664 # Format of library name prefix.
12665 libname_spec=$lt_libname_spec
12666
12667 # List of archive names.  First name is the real one, the rest are links.
12668 # The last name is the one that the linker finds with -lNAME.
12669 library_names_spec=$lt_library_names_spec
12670
12671 # The coded name of the library, if different from the real name.
12672 soname_spec=$lt_soname_spec
12673
12674 # Commands used to build and install an old-style archive.
12675 RANLIB=$lt_RANLIB
12676 old_archive_cmds=$lt_old_archive_cmds
12677 old_postinstall_cmds=$lt_old_postinstall_cmds
12678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12679
12680 # Create an old-style archive from a shared archive.
12681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12682
12683 # Create a temporary old-style archive to link instead of a shared archive.
12684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12685
12686 # Commands used to build and install a shared archive.
12687 archive_cmds=$lt_archive_cmds
12688 archive_expsym_cmds=$lt_archive_expsym_cmds
12689 postinstall_cmds=$lt_postinstall_cmds
12690 postuninstall_cmds=$lt_postuninstall_cmds
12691
12692 # Commands used to build a loadable module (assumed same as above if empty)
12693 module_cmds=$lt_module_cmds
12694 module_expsym_cmds=$lt_module_expsym_cmds
12695
12696 # Commands to strip libraries.
12697 old_striplib=$lt_old_striplib
12698 striplib=$lt_striplib
12699
12700 # Dependencies to place before the objects being linked to create a
12701 # shared library.
12702 predep_objects=$lt_predep_objects
12703
12704 # Dependencies to place after the objects being linked to create a
12705 # shared library.
12706 postdep_objects=$lt_postdep_objects
12707
12708 # Dependencies to place before the objects being linked to create a
12709 # shared library.
12710 predeps=$lt_predeps
12711
12712 # Dependencies to place after the objects being linked to create a
12713 # shared library.
12714 postdeps=$lt_postdeps
12715
12716 # The library search path used internally by the compiler when linking
12717 # a shared library.
12718 compiler_lib_search_path=$lt_compiler_lib_search_path
12719
12720 # Method to check whether dependent libraries are shared objects.
12721 deplibs_check_method=$lt_deplibs_check_method
12722
12723 # Command to use when deplibs_check_method == file_magic.
12724 file_magic_cmd=$lt_file_magic_cmd
12725
12726 # Flag that allows shared libraries with undefined symbols to be built.
12727 allow_undefined_flag=$lt_allow_undefined_flag
12728
12729 # Flag that forces no undefined symbols.
12730 no_undefined_flag=$lt_no_undefined_flag
12731
12732 # Commands used to finish a libtool library installation in a directory.
12733 finish_cmds=$lt_finish_cmds
12734
12735 # Same as above, but a single script fragment to be evaled but not shown.
12736 finish_eval=$lt_finish_eval
12737
12738 # Take the output of nm and produce a listing of raw symbols and C names.
12739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12740
12741 # Transform the output of nm in a proper C declaration
12742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12743
12744 # Transform the output of nm in a C name address pair
12745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12746
12747 # This is the shared library runtime path variable.
12748 runpath_var=$runpath_var
12749
12750 # This is the shared library path variable.
12751 shlibpath_var=$shlibpath_var
12752
12753 # Is shlibpath searched before the hard-coded library search path?
12754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12755
12756 # How to hardcode a shared library path into an executable.
12757 hardcode_action=$hardcode_action
12758
12759 # Whether we should hardcode library paths into libraries.
12760 hardcode_into_libs=$hardcode_into_libs
12761
12762 # Flag to hardcode \$libdir into a binary during linking.
12763 # This must work even if \$libdir does not exist.
12764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12765
12766 # If ld is used when linking, flag to hardcode \$libdir into
12767 # a binary during linking. This must work even if \$libdir does
12768 # not exist.
12769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12770
12771 # Whether we need a single -rpath flag with a separated argument.
12772 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12773
12774 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12775 # resulting binary.
12776 hardcode_direct=$hardcode_direct
12777
12778 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12779 # resulting binary.
12780 hardcode_minus_L=$hardcode_minus_L
12781
12782 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12783 # the resulting binary.
12784 hardcode_shlibpath_var=$hardcode_shlibpath_var
12785
12786 # Set to yes if building a shared library automatically hardcodes DIR into the library
12787 # and all subsequent libraries and executables linked against it.
12788 hardcode_automatic=$hardcode_automatic
12789
12790 # Variables whose values should be saved in libtool wrapper scripts and
12791 # restored at relink time.
12792 variables_saved_for_relink="$variables_saved_for_relink"
12793
12794 # Whether libtool must link a program against all its dependency libraries.
12795 link_all_deplibs=$link_all_deplibs
12796
12797 # Compile-time system search path for libraries
12798 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12799
12800 # Run-time system search path for libraries
12801 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12802
12803 # Fix the shell variable \$srcfile for the compiler.
12804 fix_srcfile_path="$fix_srcfile_path"
12805
12806 # Set to yes if exported symbols are required.
12807 always_export_symbols=$always_export_symbols
12808
12809 # The commands to list exported symbols.
12810 export_symbols_cmds=$lt_export_symbols_cmds
12811
12812 # The commands to extract the exported symbol list from a shared archive.
12813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12814
12815 # Symbols that should not be listed in the preloaded symbols.
12816 exclude_expsyms=$lt_exclude_expsyms
12817
12818 # Symbols that must always be exported.
12819 include_expsyms=$lt_include_expsyms
12820
12821 # ### END LIBTOOL CONFIG
12822
12823 __EOF__
12824
12825
12826   case $host_os in
12827   aix3*)
12828     cat <<\EOF >> "$cfgfile"
12829
12830 # AIX sometimes has problems with the GCC collect2 program.  For some
12831 # reason, if we set the COLLECT_NAMES environment variable, the problems
12832 # vanish in a puff of smoke.
12833 if test "X${COLLECT_NAMES+set}" != Xset; then
12834   COLLECT_NAMES=
12835   export COLLECT_NAMES
12836 fi
12837 EOF
12838     ;;
12839   esac
12840
12841   # We use sed instead of cat because bash on DJGPP gets confused if
12842   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12843   # text mode, it properly converts lines to CR/LF.  This bash problem
12844   # is reportedly fixed, but why not run on old versions too?
12845   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12846
12847   mv -f "$cfgfile" "$ofile" || \
12848     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12849   chmod +x "$ofile"
12850
12851 else
12852   # If there is no Makefile yet, we rely on a make rule to execute
12853   # `config.status --recheck' to rerun these tests and create the
12854   # libtool script then.
12855   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12856   if test -f "$ltmain_in"; then
12857     test -f Makefile && make "$ltmain"
12858   fi
12859 fi
12860
12861
12862 ac_ext=c
12863 ac_cpp='$CPP $CPPFLAGS'
12864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12867
12868 CC="$lt_save_CC"
12869
12870
12871 # Check whether --with-tags or --without-tags was given.
12872 if test "${with_tags+set}" = set; then
12873   withval="$with_tags"
12874   tagnames="$withval"
12875 fi;
12876
12877 if test -f "$ltmain" && test -n "$tagnames"; then
12878   if test ! -f "${ofile}"; then
12879     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12880 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12881   fi
12882
12883   if test -z "$LTCC"; then
12884     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12885     if test -z "$LTCC"; then
12886       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12887 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12888     else
12889       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12890 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12891     fi
12892   fi
12893
12894   # Extract list of available tagged configurations in $ofile.
12895   # Note that this assumes the entire list is on one line.
12896   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12897
12898   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12899   for tagname in $tagnames; do
12900     IFS="$lt_save_ifs"
12901     # Check whether tagname contains only valid characters
12902     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12903     "") ;;
12904     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12905 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12906    { (exit 1); exit 1; }; }
12907         ;;
12908     esac
12909
12910     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12911     then
12912       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12913 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12914    { (exit 1); exit 1; }; }
12915     fi
12916
12917     # Update the list of available tags.
12918     if test -n "$tagname"; then
12919       echo appending configuration tag \"$tagname\" to $ofile
12920
12921       case $tagname in
12922       CXX)
12923         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12924             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12925             (test "X$CXX" != "Xg++"))) ; then
12926           ac_ext=cc
12927 ac_cpp='$CXXCPP $CPPFLAGS'
12928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12931
12932
12933
12934
12935 archive_cmds_need_lc_CXX=no
12936 allow_undefined_flag_CXX=
12937 always_export_symbols_CXX=no
12938 archive_expsym_cmds_CXX=
12939 export_dynamic_flag_spec_CXX=
12940 hardcode_direct_CXX=no
12941 hardcode_libdir_flag_spec_CXX=
12942 hardcode_libdir_flag_spec_ld_CXX=
12943 hardcode_libdir_separator_CXX=
12944 hardcode_minus_L_CXX=no
12945 hardcode_automatic_CXX=no
12946 module_cmds_CXX=
12947 module_expsym_cmds_CXX=
12948 link_all_deplibs_CXX=unknown
12949 old_archive_cmds_CXX=$old_archive_cmds
12950 no_undefined_flag_CXX=
12951 whole_archive_flag_spec_CXX=
12952 enable_shared_with_static_runtimes_CXX=no
12953
12954 # Dependencies to place before and after the object being linked:
12955 predep_objects_CXX=
12956 postdep_objects_CXX=
12957 predeps_CXX=
12958 postdeps_CXX=
12959 compiler_lib_search_path_CXX=
12960
12961 # Source file extension for C++ test sources.
12962 ac_ext=cc
12963
12964 # Object file extension for compiled C++ test sources.
12965 objext=o
12966 objext_CXX=$objext
12967
12968 # Code to be used in simple compile tests
12969 lt_simple_compile_test_code="int some_variable = 0;\n"
12970
12971 # Code to be used in simple link tests
12972 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12973
12974 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12975
12976 # If no C compiler was specified, use CC.
12977 LTCC=${LTCC-"$CC"}
12978
12979 # Allow CC to be a program name with arguments.
12980 compiler=$CC
12981
12982
12983 # Allow CC to be a program name with arguments.
12984 lt_save_CC=$CC
12985 lt_save_LD=$LD
12986 lt_save_GCC=$GCC
12987 GCC=$GXX
12988 lt_save_with_gnu_ld=$with_gnu_ld
12989 lt_save_path_LD=$lt_cv_path_LD
12990 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12991   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12992 else
12993   unset lt_cv_prog_gnu_ld
12994 fi
12995 if test -n "${lt_cv_path_LDCXX+set}"; then
12996   lt_cv_path_LD=$lt_cv_path_LDCXX
12997 else
12998   unset lt_cv_path_LD
12999 fi
13000 test -z "${LDCXX+set}" || LD=$LDCXX
13001 CC=${CXX-"c++"}
13002 compiler=$CC
13003 compiler_CXX=$CC
13004 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13005
13006 # We don't want -fno-exception wen compiling C++ code, so set the
13007 # no_builtin_flag separately
13008 if test "$GXX" = yes; then
13009   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13010 else
13011   lt_prog_compiler_no_builtin_flag_CXX=
13012 fi
13013
13014 if test "$GXX" = yes; then
13015   # Set up default GNU C++ configuration
13016
13017
13018 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13019 if test "${with_gnu_ld+set}" = set; then
13020   withval="$with_gnu_ld"
13021   test "$withval" = no || with_gnu_ld=yes
13022 else
13023   with_gnu_ld=no
13024 fi;
13025 ac_prog=ld
13026 if test "$GCC" = yes; then
13027   # Check if gcc -print-prog-name=ld gives a path.
13028   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13029 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13030   case $host in
13031   *-*-mingw*)
13032     # gcc leaves a trailing carriage return which upsets mingw
13033     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13034   *)
13035     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13036   esac
13037   case $ac_prog in
13038     # Accept absolute paths.
13039     [\\/]* | ?:[\\/]*)
13040       re_direlt='/[^/][^/]*/\.\./'
13041       # Canonicalize the pathname of ld
13042       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13043       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13044         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13045       done
13046       test -z "$LD" && LD="$ac_prog"
13047       ;;
13048   "")
13049     # If it fails, then pretend we aren't using GCC.
13050     ac_prog=ld
13051     ;;
13052   *)
13053     # If it is relative, then search for the first ld in PATH.
13054     with_gnu_ld=unknown
13055     ;;
13056   esac
13057 elif test "$with_gnu_ld" = yes; then
13058   echo "$as_me:$LINENO: checking for GNU ld" >&5
13059 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13060 else
13061   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13062 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13063 fi
13064 if test "${lt_cv_path_LD+set}" = set; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   if test -z "$LD"; then
13068   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13069   for ac_dir in $PATH; do
13070     IFS="$lt_save_ifs"
13071     test -z "$ac_dir" && ac_dir=.
13072     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13073       lt_cv_path_LD="$ac_dir/$ac_prog"
13074       # Check to see if the program is GNU ld.  I'd rather use --version,
13075       # but apparently some GNU ld's only accept -v.
13076       # Break only if it was the GNU/non-GNU ld that we prefer.
13077       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13078       *GNU* | *'with BFD'*)
13079         test "$with_gnu_ld" != no && break
13080         ;;
13081       *)
13082         test "$with_gnu_ld" != yes && break
13083         ;;
13084       esac
13085     fi
13086   done
13087   IFS="$lt_save_ifs"
13088 else
13089   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13090 fi
13091 fi
13092
13093 LD="$lt_cv_path_LD"
13094 if test -n "$LD"; then
13095   echo "$as_me:$LINENO: result: $LD" >&5
13096 echo "${ECHO_T}$LD" >&6
13097 else
13098   echo "$as_me:$LINENO: result: no" >&5
13099 echo "${ECHO_T}no" >&6
13100 fi
13101 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13102 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13103    { (exit 1); exit 1; }; }
13104 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13105 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13106 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13107   echo $ECHO_N "(cached) $ECHO_C" >&6
13108 else
13109   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13110 case `$LD -v 2>&1 </dev/null` in
13111 *GNU* | *'with BFD'*)
13112   lt_cv_prog_gnu_ld=yes
13113   ;;
13114 *)
13115   lt_cv_prog_gnu_ld=no
13116   ;;
13117 esac
13118 fi
13119 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13120 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13121 with_gnu_ld=$lt_cv_prog_gnu_ld
13122
13123
13124
13125   # Check if GNU C++ uses GNU ld as the underlying linker, since the
13126   # archiving commands below assume that GNU ld is being used.
13127   if test "$with_gnu_ld" = yes; then
13128     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13129     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'
13130
13131     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13132     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13133
13134     # If archive_cmds runs LD, not CC, wlarc should be empty
13135     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13136     #     investigate it a little bit more. (MM)
13137     wlarc='${wl}'
13138
13139     # ancient GNU ld didn't support --whole-archive et. al.
13140     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13141         grep 'no-whole-archive' > /dev/null; then
13142       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13143     else
13144       whole_archive_flag_spec_CXX=
13145     fi
13146   else
13147     with_gnu_ld=no
13148     wlarc=
13149
13150     # A generic and very simple default shared library creation
13151     # command for GNU C++ for the case where it uses the native
13152     # linker, instead of GNU ld.  If possible, this setting should
13153     # overridden to take advantage of the native linker features on
13154     # the platform it is being used on.
13155     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13156   fi
13157
13158   # Commands to make compiler produce verbose output that lists
13159   # what "hidden" libraries, object files and flags are used when
13160   # linking a shared library.
13161   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13162
13163 else
13164   GXX=no
13165   with_gnu_ld=no
13166   wlarc=
13167 fi
13168
13169 # PORTME: fill in a description of your system's C++ link characteristics
13170 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13171 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13172 ld_shlibs_CXX=yes
13173 case $host_os in
13174   aix3*)
13175     # FIXME: insert proper C++ library support
13176     ld_shlibs_CXX=no
13177     ;;
13178   aix4* | aix5*)
13179     if test "$host_cpu" = ia64; then
13180       # On IA64, the linker does run time linking by default, so we don't
13181       # have to do anything special.
13182       aix_use_runtimelinking=no
13183       exp_sym_flag='-Bexport'
13184       no_entry_flag=""
13185     else
13186       aix_use_runtimelinking=no
13187
13188       # Test if we are trying to use run time linking or normal
13189       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13190       # need to do runtime linking.
13191       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13192         for ld_flag in $LDFLAGS; do
13193           case $ld_flag in
13194           *-brtl*)
13195             aix_use_runtimelinking=yes
13196             break
13197             ;;
13198           esac
13199         done
13200       esac
13201
13202       exp_sym_flag='-bexport'
13203       no_entry_flag='-bnoentry'
13204     fi
13205
13206     # When large executables or shared objects are built, AIX ld can
13207     # have problems creating the table of contents.  If linking a library
13208     # or program results in "error TOC overflow" add -mminimal-toc to
13209     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13210     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13211
13212     archive_cmds_CXX=''
13213     hardcode_direct_CXX=yes
13214     hardcode_libdir_separator_CXX=':'
13215     link_all_deplibs_CXX=yes
13216
13217     if test "$GXX" = yes; then
13218       case $host_os in aix4.012|aix4.012.*)
13219       # We only want to do this on AIX 4.2 and lower, the check
13220       # below for broken collect2 doesn't work under 4.3+
13221         collect2name=`${CC} -print-prog-name=collect2`
13222         if test -f "$collect2name" && \
13223            strings "$collect2name" | grep resolve_lib_name >/dev/null
13224         then
13225           # We have reworked collect2
13226           hardcode_direct_CXX=yes
13227         else
13228           # We have old collect2
13229           hardcode_direct_CXX=unsupported
13230           # It fails to find uninstalled libraries when the uninstalled
13231           # path is not listed in the libpath.  Setting hardcode_minus_L
13232           # to unsupported forces relinking
13233           hardcode_minus_L_CXX=yes
13234           hardcode_libdir_flag_spec_CXX='-L$libdir'
13235           hardcode_libdir_separator_CXX=
13236         fi
13237       esac
13238       shared_flag='-shared'
13239     else
13240       # not using gcc
13241       if test "$host_cpu" = ia64; then
13242         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13243         # chokes on -Wl,-G. The following line is correct:
13244         shared_flag='-G'
13245       else
13246         if test "$aix_use_runtimelinking" = yes; then
13247           shared_flag='${wl}-G'
13248         else
13249           shared_flag='${wl}-bM:SRE'
13250         fi
13251       fi
13252     fi
13253
13254     # It seems that -bexpall does not export symbols beginning with
13255     # underscore (_), so it is better to generate a list of symbols to export.
13256     always_export_symbols_CXX=yes
13257     if test "$aix_use_runtimelinking" = yes; then
13258       # Warning - without using the other runtime loading flags (-brtl),
13259       # -berok will link without error, but may produce a broken library.
13260       allow_undefined_flag_CXX='-berok'
13261       # Determine the default libpath from the value encoded in an empty executable.
13262       cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h.  */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h.  */
13268
13269 int
13270 main ()
13271 {
13272
13273   ;
13274   return 0;
13275 }
13276 _ACEOF
13277 rm -f conftest.$ac_objext conftest$ac_exeext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13279   (eval $ac_link) 2>conftest.er1
13280   ac_status=$?
13281   grep -v '^ *+' conftest.er1 >conftest.err
13282   rm -f conftest.er1
13283   cat conftest.err >&5
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); } &&
13286          { ac_try='test -z "$ac_cxx_werror_flag"
13287                          || test ! -s conftest.err'
13288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289   (eval $ac_try) 2>&5
13290   ac_status=$?
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); }; } &&
13293          { ac_try='test -s conftest$ac_exeext'
13294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295   (eval $ac_try) 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }; }; then
13299
13300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13301 }'`
13302 # Check for a 64-bit object if we didn't find anything.
13303 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; }
13304 }'`; fi
13305 else
13306   echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 fi
13310 rm -f conftest.err conftest.$ac_objext \
13311       conftest$ac_exeext conftest.$ac_ext
13312 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13313
13314       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13315
13316       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13317      else
13318       if test "$host_cpu" = ia64; then
13319         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13320         allow_undefined_flag_CXX="-z nodefs"
13321         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13322       else
13323         # Determine the default libpath from the value encoded in an empty executable.
13324         cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h.  */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h.  */
13330
13331 int
13332 main ()
13333 {
13334
13335   ;
13336   return 0;
13337 }
13338 _ACEOF
13339 rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13341   (eval $ac_link) 2>conftest.er1
13342   ac_status=$?
13343   grep -v '^ *+' conftest.er1 >conftest.err
13344   rm -f conftest.er1
13345   cat conftest.err >&5
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } &&
13348          { ac_try='test -z "$ac_cxx_werror_flag"
13349                          || test ! -s conftest.err'
13350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351   (eval $ac_try) 2>&5
13352   ac_status=$?
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); }; } &&
13355          { ac_try='test -s conftest$ac_exeext'
13356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357   (eval $ac_try) 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); }; }; then
13361
13362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13363 }'`
13364 # Check for a 64-bit object if we didn't find anything.
13365 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; }
13366 }'`; fi
13367 else
13368   echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13370
13371 fi
13372 rm -f conftest.err conftest.$ac_objext \
13373       conftest$ac_exeext conftest.$ac_ext
13374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13375
13376         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13377         # Warning - without using the other run time loading flags,
13378         # -berok will link without error, but may produce a broken library.
13379         no_undefined_flag_CXX=' ${wl}-bernotok'
13380         allow_undefined_flag_CXX=' ${wl}-berok'
13381         # -bexpall does not export symbols beginning with underscore (_)
13382         always_export_symbols_CXX=yes
13383         # Exported symbols can be pulled into shared objects from archives
13384         whole_archive_flag_spec_CXX=' '
13385         archive_cmds_need_lc_CXX=yes
13386         # This is similar to how AIX traditionally builds it's shared libraries.
13387         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13388       fi
13389     fi
13390     ;;
13391   chorus*)
13392     case $cc_basename in
13393       *)
13394         # FIXME: insert proper C++ library support
13395         ld_shlibs_CXX=no
13396         ;;
13397     esac
13398     ;;
13399
13400
13401   cygwin* | mingw* | pw32*)
13402     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13403     # as there is no search path for DLLs.
13404     hardcode_libdir_flag_spec_CXX='-L$libdir'
13405     allow_undefined_flag_CXX=unsupported
13406     always_export_symbols_CXX=no
13407     enable_shared_with_static_runtimes_CXX=yes
13408
13409     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13410       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13411       # If the export-symbols file already is a .def file (1st line
13412       # is EXPORTS), use it as is; otherwise, prepend...
13413       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13414         cp $export_symbols $output_objdir/$soname.def;
13415       else
13416         echo EXPORTS > $output_objdir/$soname.def;
13417         cat $export_symbols >> $output_objdir/$soname.def;
13418       fi~
13419       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13420     else
13421       ld_shlibs_CXX=no
13422     fi
13423   ;;
13424       darwin* | rhapsody*)
13425         case "$host_os" in
13426         rhapsody* | darwin1.[012])
13427          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13428          ;;
13429        *) # Darwin 1.3 on
13430          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13431            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13432          else
13433            case ${MACOSX_DEPLOYMENT_TARGET} in
13434              10.[012])
13435                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13436                ;;
13437              10.*)
13438                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13439                ;;
13440            esac
13441          fi
13442          ;;
13443         esac
13444       archive_cmds_need_lc_CXX=no
13445       hardcode_direct_CXX=no
13446       hardcode_automatic_CXX=yes
13447       hardcode_shlibpath_var_CXX=unsupported
13448       whole_archive_flag_spec_CXX=''
13449       link_all_deplibs_CXX=yes
13450
13451     if test "$GXX" = yes ; then
13452       lt_int_apple_cc_single_mod=no
13453       output_verbose_link_cmd='echo'
13454       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13455        lt_int_apple_cc_single_mod=yes
13456       fi
13457       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13458        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13459       else
13460           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'
13461         fi
13462         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13463         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13464           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13465             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}'
13466           else
13467             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}'
13468           fi
13469             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}'
13470       else
13471       case "$cc_basename" in
13472         xlc*)
13473          output_verbose_link_cmd='echo'
13474           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'
13475           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13476           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13477           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}'
13478           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}'
13479           ;;
13480        *)
13481          ld_shlibs_CXX=no
13482           ;;
13483       esac
13484       fi
13485         ;;
13486
13487   dgux*)
13488     case $cc_basename in
13489       ec++)
13490         # FIXME: insert proper C++ library support
13491         ld_shlibs_CXX=no
13492         ;;
13493       ghcx)
13494         # Green Hills C++ Compiler
13495         # FIXME: insert proper C++ library support
13496         ld_shlibs_CXX=no
13497         ;;
13498       *)
13499         # FIXME: insert proper C++ library support
13500         ld_shlibs_CXX=no
13501         ;;
13502     esac
13503     ;;
13504   freebsd12*)
13505     # C++ shared libraries reported to be fairly broken before switch to ELF
13506     ld_shlibs_CXX=no
13507     ;;
13508   freebsd-elf*)
13509     archive_cmds_need_lc_CXX=no
13510     ;;
13511   freebsd* | kfreebsd*-gnu)
13512     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13513     # conventions
13514     ld_shlibs_CXX=yes
13515     ;;
13516   gnu*)
13517     ;;
13518   hpux9*)
13519     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13520     hardcode_libdir_separator_CXX=:
13521     export_dynamic_flag_spec_CXX='${wl}-E'
13522     hardcode_direct_CXX=yes
13523     hardcode_minus_L_CXX=yes # Not in the search PATH,
13524                                 # but as the default
13525                                 # location of the library.
13526
13527     case $cc_basename in
13528     CC)
13529       # FIXME: insert proper C++ library support
13530       ld_shlibs_CXX=no
13531       ;;
13532     aCC)
13533       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'
13534       # Commands to make compiler produce verbose output that lists
13535       # what "hidden" libraries, object files and flags are used when
13536       # linking a shared library.
13537       #
13538       # There doesn't appear to be a way to prevent this compiler from
13539       # explicitly linking system object files so we need to strip them
13540       # from the output so that they don't get included in the library
13541       # dependencies.
13542       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'
13543       ;;
13544     *)
13545       if test "$GXX" = yes; then
13546         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'
13547       else
13548         # FIXME: insert proper C++ library support
13549         ld_shlibs_CXX=no
13550       fi
13551       ;;
13552     esac
13553     ;;
13554   hpux10*|hpux11*)
13555     if test $with_gnu_ld = no; then
13556       case "$host_cpu" in
13557       hppa*64*)
13558         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13559         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13560         hardcode_libdir_separator_CXX=:
13561         ;;
13562       ia64*)
13563         hardcode_libdir_flag_spec_CXX='-L$libdir'
13564         ;;
13565       *)
13566         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13567         hardcode_libdir_separator_CXX=:
13568         export_dynamic_flag_spec_CXX='${wl}-E'
13569         ;;
13570       esac
13571     fi
13572     case "$host_cpu" in
13573     hppa*64*)
13574       hardcode_direct_CXX=no
13575       hardcode_shlibpath_var_CXX=no
13576       ;;
13577     ia64*)
13578       hardcode_direct_CXX=no
13579       hardcode_shlibpath_var_CXX=no
13580       hardcode_minus_L_CXX=yes # Not in the search PATH,
13581                                               # but as the default
13582                                               # location of the library.
13583       ;;
13584     *)
13585       hardcode_direct_CXX=yes
13586       hardcode_minus_L_CXX=yes # Not in the search PATH,
13587                                               # but as the default
13588                                               # location of the library.
13589       ;;
13590     esac
13591
13592     case $cc_basename in
13593       CC)
13594         # FIXME: insert proper C++ library support
13595         ld_shlibs_CXX=no
13596         ;;
13597       aCC)
13598         case "$host_cpu" in
13599         hppa*64*|ia64*)
13600           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13601           ;;
13602         *)
13603           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13604           ;;
13605         esac
13606         # Commands to make compiler produce verbose output that lists
13607         # what "hidden" libraries, object files and flags are used when
13608         # linking a shared library.
13609         #
13610         # There doesn't appear to be a way to prevent this compiler from
13611         # explicitly linking system object files so we need to strip them
13612         # from the output so that they don't get included in the library
13613         # dependencies.
13614         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'
13615         ;;
13616       *)
13617         if test "$GXX" = yes; then
13618           if test $with_gnu_ld = no; then
13619             case "$host_cpu" in
13620             ia64*|hppa*64*)
13621               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13622               ;;
13623             *)
13624               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'
13625               ;;
13626             esac
13627           fi
13628         else
13629           # FIXME: insert proper C++ library support
13630           ld_shlibs_CXX=no
13631         fi
13632         ;;
13633     esac
13634     ;;
13635   irix5* | irix6*)
13636     case $cc_basename in
13637       CC)
13638         # SGI C++
13639         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13640
13641         # Archives containing C++ object files must be created using
13642         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13643         # necessary to make sure instantiated templates are included
13644         # in the archive.
13645         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13646         ;;
13647       *)
13648         if test "$GXX" = yes; then
13649           if test "$with_gnu_ld" = no; then
13650             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13651           else
13652             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'
13653           fi
13654         fi
13655         link_all_deplibs_CXX=yes
13656         ;;
13657     esac
13658     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13659     hardcode_libdir_separator_CXX=:
13660     ;;
13661   linux*)
13662     case $cc_basename in
13663       KCC)
13664         # Kuck and Associates, Inc. (KAI) C++ Compiler
13665
13666         # KCC will only create a shared library if the output file
13667         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13668         # to its proper name (with version) after linking.
13669         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'
13670         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'
13671         # Commands to make compiler produce verbose output that lists
13672         # what "hidden" libraries, object files and flags are used when
13673         # linking a shared library.
13674         #
13675         # There doesn't appear to be a way to prevent this compiler from
13676         # explicitly linking system object files so we need to strip them
13677         # from the output so that they don't get included in the library
13678         # dependencies.
13679         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'
13680
13681         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13682         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13683
13684         # Archives containing C++ object files must be created using
13685         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13686         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13687         ;;
13688       icpc)
13689         # Intel C++
13690         with_gnu_ld=yes
13691         # version 8.0 and above of icpc choke on multiply defined symbols
13692         # if we add $predep_objects and $postdep_objects, however 7.1 and
13693         # earlier do not add the objects themselves.
13694         case `$CC -V 2>&1` in
13695         *"Version 7."*)
13696           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13697           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'
13698           ;;
13699         *)  # Version 8.0 or newer
13700           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13701         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13702           ;;
13703         esac
13704         archive_cmds_need_lc_CXX=no
13705         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13706         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13707         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13708         ;;
13709       cxx)
13710         # Compaq C++
13711         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13712         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'
13713
13714         runpath_var=LD_RUN_PATH
13715         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13716         hardcode_libdir_separator_CXX=:
13717
13718         # Commands to make compiler produce verbose output that lists
13719         # what "hidden" libraries, object files and flags are used when
13720         # linking a shared library.
13721         #
13722         # There doesn't appear to be a way to prevent this compiler from
13723         # explicitly linking system object files so we need to strip them
13724         # from the output so that they don't get included in the library
13725         # dependencies.
13726         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'
13727         ;;
13728     esac
13729     ;;
13730   lynxos*)
13731     # FIXME: insert proper C++ library support
13732     ld_shlibs_CXX=no
13733     ;;
13734   m88k*)
13735     # FIXME: insert proper C++ library support
13736     ld_shlibs_CXX=no
13737     ;;
13738   mvs*)
13739     case $cc_basename in
13740       cxx)
13741         # FIXME: insert proper C++ library support
13742         ld_shlibs_CXX=no
13743         ;;
13744       *)
13745         # FIXME: insert proper C++ library support
13746         ld_shlibs_CXX=no
13747         ;;
13748     esac
13749     ;;
13750   netbsd*)
13751     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13752       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13753       wlarc=
13754       hardcode_libdir_flag_spec_CXX='-R$libdir'
13755       hardcode_direct_CXX=yes
13756       hardcode_shlibpath_var_CXX=no
13757     fi
13758     # Workaround some broken pre-1.5 toolchains
13759     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13760     ;;
13761   openbsd2*)
13762     # C++ shared libraries are fairly broken
13763     ld_shlibs_CXX=no
13764     ;;
13765   openbsd*)
13766     hardcode_direct_CXX=yes
13767     hardcode_shlibpath_var_CXX=no
13768     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13769     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13770     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13771       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13772       export_dynamic_flag_spec_CXX='${wl}-E'
13773       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13774     fi
13775     output_verbose_link_cmd='echo'
13776     ;;
13777   osf3*)
13778     case $cc_basename in
13779       KCC)
13780         # Kuck and Associates, Inc. (KAI) C++ Compiler
13781
13782         # KCC will only create a shared library if the output file
13783         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13784         # to its proper name (with version) after linking.
13785         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'
13786
13787         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13788         hardcode_libdir_separator_CXX=:
13789
13790         # Archives containing C++ object files must be created using
13791         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13792         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13793
13794         ;;
13795       RCC)
13796         # Rational C++ 2.4.1
13797         # FIXME: insert proper C++ library support
13798         ld_shlibs_CXX=no
13799         ;;
13800       cxx)
13801         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13802         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13803
13804         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13805         hardcode_libdir_separator_CXX=:
13806
13807         # Commands to make compiler produce verbose output that lists
13808         # what "hidden" libraries, object files and flags are used when
13809         # linking a shared library.
13810         #
13811         # There doesn't appear to be a way to prevent this compiler from
13812         # explicitly linking system object files so we need to strip them
13813         # from the output so that they don't get included in the library
13814         # dependencies.
13815         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'
13816         ;;
13817       *)
13818         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13819           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13820           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13821
13822           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13823           hardcode_libdir_separator_CXX=:
13824
13825           # Commands to make compiler produce verbose output that lists
13826           # what "hidden" libraries, object files and flags are used when
13827           # linking a shared library.
13828           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13829
13830         else
13831           # FIXME: insert proper C++ library support
13832           ld_shlibs_CXX=no
13833         fi
13834         ;;
13835     esac
13836     ;;
13837   osf4* | osf5*)
13838     case $cc_basename in
13839       KCC)
13840         # Kuck and Associates, Inc. (KAI) C++ Compiler
13841
13842         # KCC will only create a shared library if the output file
13843         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13844         # to its proper name (with version) after linking.
13845         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'
13846
13847         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13848         hardcode_libdir_separator_CXX=:
13849
13850         # Archives containing C++ object files must be created using
13851         # the KAI C++ compiler.
13852         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13853         ;;
13854       RCC)
13855         # Rational C++ 2.4.1
13856         # FIXME: insert proper C++ library support
13857         ld_shlibs_CXX=no
13858         ;;
13859       cxx)
13860         allow_undefined_flag_CXX=' -expect_unresolved \*'
13861         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13862         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13863           echo "-hidden">> $lib.exp~
13864           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
13865           $rm $lib.exp'
13866
13867         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13868         hardcode_libdir_separator_CXX=:
13869
13870         # Commands to make compiler produce verbose output that lists
13871         # what "hidden" libraries, object files and flags are used when
13872         # linking a shared library.
13873         #
13874         # There doesn't appear to be a way to prevent this compiler from
13875         # explicitly linking system object files so we need to strip them
13876         # from the output so that they don't get included in the library
13877         # dependencies.
13878         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'
13879         ;;
13880       *)
13881         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13882           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13883          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13884
13885           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13886           hardcode_libdir_separator_CXX=:
13887
13888           # Commands to make compiler produce verbose output that lists
13889           # what "hidden" libraries, object files and flags are used when
13890           # linking a shared library.
13891           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13892
13893         else
13894           # FIXME: insert proper C++ library support
13895           ld_shlibs_CXX=no
13896         fi
13897         ;;
13898     esac
13899     ;;
13900   psos*)
13901     # FIXME: insert proper C++ library support
13902     ld_shlibs_CXX=no
13903     ;;
13904   sco*)
13905     archive_cmds_need_lc_CXX=no
13906     case $cc_basename in
13907       CC)
13908         # FIXME: insert proper C++ library support
13909         ld_shlibs_CXX=no
13910         ;;
13911       *)
13912         # FIXME: insert proper C++ library support
13913         ld_shlibs_CXX=no
13914         ;;
13915     esac
13916     ;;
13917   sunos4*)
13918     case $cc_basename in
13919       CC)
13920         # Sun C++ 4.x
13921         # FIXME: insert proper C++ library support
13922         ld_shlibs_CXX=no
13923         ;;
13924       lcc)
13925         # Lucid
13926         # FIXME: insert proper C++ library support
13927         ld_shlibs_CXX=no
13928         ;;
13929       *)
13930         # FIXME: insert proper C++ library support
13931         ld_shlibs_CXX=no
13932         ;;
13933     esac
13934     ;;
13935   solaris*)
13936     case $cc_basename in
13937       CC)
13938         # Sun C++ 4.2, 5.x and Centerline C++
13939         no_undefined_flag_CXX=' -zdefs'
13940         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13941         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13942         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13943
13944         hardcode_libdir_flag_spec_CXX='-R$libdir'
13945         hardcode_shlibpath_var_CXX=no
13946         case $host_os in
13947           solaris2.0-5 | solaris2.0-5.*) ;;
13948           *)
13949             # The C++ compiler is used as linker so we must use $wl
13950             # flag to pass the commands to the underlying system
13951             # linker.
13952             # Supported since Solaris 2.6 (maybe 2.5.1?)
13953             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13954             ;;
13955         esac
13956         link_all_deplibs_CXX=yes
13957
13958         # Commands to make compiler produce verbose output that lists
13959         # what "hidden" libraries, object files and flags are used when
13960         # linking a shared library.
13961         #
13962         # There doesn't appear to be a way to prevent this compiler from
13963         # explicitly linking system object files so we need to strip them
13964         # from the output so that they don't get included in the library
13965         # dependencies.
13966         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13967
13968         # Archives containing C++ object files must be created using
13969         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13970         # necessary to make sure instantiated templates are included
13971         # in the archive.
13972         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13973         ;;
13974       gcx)
13975         # Green Hills C++ Compiler
13976         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13977
13978         # The C++ compiler must be used to create the archive.
13979         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13980         ;;
13981       *)
13982         # GNU C++ compiler with Solaris linker
13983         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13984           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13985           if $CC --version | grep -v '^2\.7' > /dev/null; then
13986             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13987             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13988                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13989
13990             # Commands to make compiler produce verbose output that lists
13991             # what "hidden" libraries, object files and flags are used when
13992             # linking a shared library.
13993             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13994           else
13995             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13996             # platform.
13997             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13998             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13999                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14000
14001             # Commands to make compiler produce verbose output that lists
14002             # what "hidden" libraries, object files and flags are used when
14003             # linking a shared library.
14004             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14005           fi
14006
14007           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14008         fi
14009         ;;
14010     esac
14011     ;;
14012   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14013     archive_cmds_need_lc_CXX=no
14014     ;;
14015   tandem*)
14016     case $cc_basename in
14017       NCC)
14018         # NonStop-UX NCC 3.20
14019         # FIXME: insert proper C++ library support
14020         ld_shlibs_CXX=no
14021         ;;
14022       *)
14023         # FIXME: insert proper C++ library support
14024         ld_shlibs_CXX=no
14025         ;;
14026     esac
14027     ;;
14028   vxworks*)
14029     # FIXME: insert proper C++ library support
14030     ld_shlibs_CXX=no
14031     ;;
14032   *)
14033     # FIXME: insert proper C++ library support
14034     ld_shlibs_CXX=no
14035     ;;
14036 esac
14037 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14038 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14039 test "$ld_shlibs_CXX" = no && can_build_shared=no
14040
14041 GCC_CXX="$GXX"
14042 LD_CXX="$LD"
14043
14044 ## CAVEAT EMPTOR:
14045 ## There is no encapsulation within the following macros, do not change
14046 ## the running order or otherwise move them around unless you know exactly
14047 ## what you are doing...
14048
14049 cat > conftest.$ac_ext <<EOF
14050 class Foo
14051 {
14052 public:
14053   Foo (void) { a = 0; }
14054 private:
14055   int a;
14056 };
14057 EOF
14058
14059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14060   (eval $ac_compile) 2>&5
14061   ac_status=$?
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); }; then
14064   # Parse the compiler output and extract the necessary
14065   # objects, libraries and library flags.
14066
14067   # Sentinel used to keep track of whether or not we are before
14068   # the conftest object file.
14069   pre_test_object_deps_done=no
14070
14071   # The `*' in the case matches for architectures that use `case' in
14072   # $output_verbose_cmd can trigger glob expansion during the loop
14073   # eval without this substitution.
14074   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14075
14076   for p in `eval $output_verbose_link_cmd`; do
14077     case $p in
14078
14079     -L* | -R* | -l*)
14080        # Some compilers place space between "-{L,R}" and the path.
14081        # Remove the space.
14082        if test $p = "-L" \
14083           || test $p = "-R"; then
14084          prev=$p
14085          continue
14086        else
14087          prev=
14088        fi
14089
14090        if test "$pre_test_object_deps_done" = no; then
14091          case $p in
14092          -L* | -R*)
14093            # Internal compiler library paths should come after those
14094            # provided the user.  The postdeps already come after the
14095            # user supplied libs so there is no need to process them.
14096            if test -z "$compiler_lib_search_path_CXX"; then
14097              compiler_lib_search_path_CXX="${prev}${p}"
14098            else
14099              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14100            fi
14101            ;;
14102          # The "-l" case would never come before the object being
14103          # linked, so don't bother handling this case.
14104          esac
14105        else
14106          if test -z "$postdeps_CXX"; then
14107            postdeps_CXX="${prev}${p}"
14108          else
14109            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14110          fi
14111        fi
14112        ;;
14113
14114     *.$objext)
14115        # This assumes that the test object file only shows up
14116        # once in the compiler output.
14117        if test "$p" = "conftest.$objext"; then
14118          pre_test_object_deps_done=yes
14119          continue
14120        fi
14121
14122        if test "$pre_test_object_deps_done" = no; then
14123          if test -z "$predep_objects_CXX"; then
14124            predep_objects_CXX="$p"
14125          else
14126            predep_objects_CXX="$predep_objects_CXX $p"
14127          fi
14128        else
14129          if test -z "$postdep_objects_CXX"; then
14130            postdep_objects_CXX="$p"
14131          else
14132            postdep_objects_CXX="$postdep_objects_CXX $p"
14133          fi
14134        fi
14135        ;;
14136
14137     *) ;; # Ignore the rest.
14138
14139     esac
14140   done
14141
14142   # Clean up.
14143   rm -f a.out a.exe
14144 else
14145   echo "libtool.m4: error: problem compiling CXX test program"
14146 fi
14147
14148 $rm -f confest.$objext
14149
14150 case " $postdeps_CXX " in
14151 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14152 esac
14153
14154 lt_prog_compiler_wl_CXX=
14155 lt_prog_compiler_pic_CXX=
14156 lt_prog_compiler_static_CXX=
14157
14158 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14159 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14160
14161   # C++ specific cases for pic, static, wl, etc.
14162   if test "$GXX" = yes; then
14163     lt_prog_compiler_wl_CXX='-Wl,'
14164     lt_prog_compiler_static_CXX='-static'
14165
14166     case $host_os in
14167     aix*)
14168       # All AIX code is PIC.
14169       if test "$host_cpu" = ia64; then
14170         # AIX 5 now supports IA64 processor
14171         lt_prog_compiler_static_CXX='-Bstatic'
14172       fi
14173       ;;
14174     amigaos*)
14175       # FIXME: we need at least 68020 code to build shared libraries, but
14176       # adding the `-m68020' flag to GCC prevents building anything better,
14177       # like `-m68040'.
14178       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14179       ;;
14180     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14181       # PIC is the default for these OSes.
14182       ;;
14183     mingw* | os2* | pw32*)
14184       # This hack is so that the source file can tell whether it is being
14185       # built for inclusion in a dll (and should export symbols for example).
14186       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14187       ;;
14188     darwin* | rhapsody*)
14189       # PIC is the default on this platform
14190       # Common symbols not allowed in MH_DYLIB files
14191       lt_prog_compiler_pic_CXX='-fno-common'
14192       ;;
14193     *djgpp*)
14194       # DJGPP does not support shared libraries at all
14195       lt_prog_compiler_pic_CXX=
14196       ;;
14197     sysv4*MP*)
14198       if test -d /usr/nec; then
14199         lt_prog_compiler_pic_CXX=-Kconform_pic
14200       fi
14201       ;;
14202     hpux*)
14203       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14204       # not for PA HP-UX.
14205       case "$host_cpu" in
14206       hppa*64*|ia64*)
14207         ;;
14208       *)
14209         lt_prog_compiler_pic_CXX='-fPIC'
14210         ;;
14211       esac
14212       ;;
14213     *)
14214       lt_prog_compiler_pic_CXX='-fPIC'
14215       ;;
14216     esac
14217   else
14218     case $host_os in
14219       aix4* | aix5*)
14220         # All AIX code is PIC.
14221         if test "$host_cpu" = ia64; then
14222           # AIX 5 now supports IA64 processor
14223           lt_prog_compiler_static_CXX='-Bstatic'
14224         else
14225           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14226         fi
14227         ;;
14228       chorus*)
14229         case $cc_basename in
14230         cxch68)
14231           # Green Hills C++ Compiler
14232           # _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"
14233           ;;
14234         esac
14235         ;;
14236        darwin*)
14237          # PIC is the default on this platform
14238          # Common symbols not allowed in MH_DYLIB files
14239          case "$cc_basename" in
14240            xlc*)
14241            lt_prog_compiler_pic_CXX='-qnocommon'
14242            lt_prog_compiler_wl_CXX='-Wl,'
14243            ;;
14244          esac
14245        ;;
14246       dgux*)
14247         case $cc_basename in
14248           ec++)
14249             lt_prog_compiler_pic_CXX='-KPIC'
14250             ;;
14251           ghcx)
14252             # Green Hills C++ Compiler
14253             lt_prog_compiler_pic_CXX='-pic'
14254             ;;
14255           *)
14256             ;;
14257         esac
14258         ;;
14259       freebsd* | kfreebsd*-gnu)
14260         # FreeBSD uses GNU C++
14261         ;;
14262       hpux9* | hpux10* | hpux11*)
14263         case $cc_basename in
14264           CC)
14265             lt_prog_compiler_wl_CXX='-Wl,'
14266             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14267             if test "$host_cpu" != ia64; then
14268               lt_prog_compiler_pic_CXX='+Z'
14269             fi
14270             ;;
14271           aCC)
14272             lt_prog_compiler_wl_CXX='-Wl,'
14273             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14274             case "$host_cpu" in
14275             hppa*64*|ia64*)
14276               # +Z the default
14277               ;;
14278             *)
14279               lt_prog_compiler_pic_CXX='+Z'
14280               ;;
14281             esac
14282             ;;
14283           *)
14284             ;;
14285         esac
14286         ;;
14287       irix5* | irix6* | nonstopux*)
14288         case $cc_basename in
14289           CC)
14290             lt_prog_compiler_wl_CXX='-Wl,'
14291             lt_prog_compiler_static_CXX='-non_shared'
14292             # CC pic flag -KPIC is the default.
14293             ;;
14294           *)
14295             ;;
14296         esac
14297         ;;
14298       linux*)
14299         case $cc_basename in
14300           KCC)
14301             # KAI C++ Compiler
14302             lt_prog_compiler_wl_CXX='--backend -Wl,'
14303             lt_prog_compiler_pic_CXX='-fPIC'
14304             ;;
14305           icpc)
14306             # Intel C++
14307             lt_prog_compiler_wl_CXX='-Wl,'
14308             lt_prog_compiler_pic_CXX='-KPIC'
14309             lt_prog_compiler_static_CXX='-static'
14310             ;;
14311           cxx)
14312             # Compaq C++
14313             # Make sure the PIC flag is empty.  It appears that all Alpha
14314             # Linux and Compaq Tru64 Unix objects are PIC.
14315             lt_prog_compiler_pic_CXX=
14316             lt_prog_compiler_static_CXX='-non_shared'
14317             ;;
14318           *)
14319             ;;
14320         esac
14321         ;;
14322       lynxos*)
14323         ;;
14324       m88k*)
14325         ;;
14326       mvs*)
14327         case $cc_basename in
14328           cxx)
14329             lt_prog_compiler_pic_CXX='-W c,exportall'
14330             ;;
14331           *)
14332             ;;
14333         esac
14334         ;;
14335       netbsd*)
14336         ;;
14337       osf3* | osf4* | osf5*)
14338         case $cc_basename in
14339           KCC)
14340             lt_prog_compiler_wl_CXX='--backend -Wl,'
14341             ;;
14342           RCC)
14343             # Rational C++ 2.4.1
14344             lt_prog_compiler_pic_CXX='-pic'
14345             ;;
14346           cxx)
14347             # Digital/Compaq C++
14348             lt_prog_compiler_wl_CXX='-Wl,'
14349             # Make sure the PIC flag is empty.  It appears that all Alpha
14350             # Linux and Compaq Tru64 Unix objects are PIC.
14351             lt_prog_compiler_pic_CXX=
14352             lt_prog_compiler_static_CXX='-non_shared'
14353             ;;
14354           *)
14355             ;;
14356         esac
14357         ;;
14358       psos*)
14359         ;;
14360       sco*)
14361         case $cc_basename in
14362           CC)
14363             lt_prog_compiler_pic_CXX='-fPIC'
14364             ;;
14365           *)
14366             ;;
14367         esac
14368         ;;
14369       solaris*)
14370         case $cc_basename in
14371           CC)
14372             # Sun C++ 4.2, 5.x and Centerline C++
14373             lt_prog_compiler_pic_CXX='-KPIC'
14374             lt_prog_compiler_static_CXX='-Bstatic'
14375             lt_prog_compiler_wl_CXX='-Qoption ld '
14376             ;;
14377           gcx)
14378             # Green Hills C++ Compiler
14379             lt_prog_compiler_pic_CXX='-PIC'
14380             ;;
14381           *)
14382             ;;
14383         esac
14384         ;;
14385       sunos4*)
14386         case $cc_basename in
14387           CC)
14388             # Sun C++ 4.x
14389             lt_prog_compiler_pic_CXX='-pic'
14390             lt_prog_compiler_static_CXX='-Bstatic'
14391             ;;
14392           lcc)
14393             # Lucid
14394             lt_prog_compiler_pic_CXX='-pic'
14395             ;;
14396           *)
14397             ;;
14398         esac
14399         ;;
14400       tandem*)
14401         case $cc_basename in
14402           NCC)
14403             # NonStop-UX NCC 3.20
14404             lt_prog_compiler_pic_CXX='-KPIC'
14405             ;;
14406           *)
14407             ;;
14408         esac
14409         ;;
14410       unixware*)
14411         ;;
14412       vxworks*)
14413         ;;
14414       *)
14415         lt_prog_compiler_can_build_shared_CXX=no
14416         ;;
14417     esac
14418   fi
14419
14420 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14421 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14422
14423 #
14424 # Check to make sure the PIC flag actually works.
14425 #
14426 if test -n "$lt_prog_compiler_pic_CXX"; then
14427
14428 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14429 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14430 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14431   echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433   lt_prog_compiler_pic_works_CXX=no
14434   ac_outfile=conftest.$ac_objext
14435    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14436    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14437    # Insert the option either (1) after the last *FLAGS variable, or
14438    # (2) before a word containing "conftest.", or (3) at the end.
14439    # Note that $ac_compile itself does not contain backslashes and begins
14440    # with a dollar sign (not a hyphen), so the echo should work correctly.
14441    # The option is referenced via a variable to avoid confusing sed.
14442    lt_compile=`echo "$ac_compile" | $SED \
14443    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14445    -e 's:$: $lt_compiler_flag:'`
14446    (eval echo "\"\$as_me:14446: $lt_compile\"" >&5)
14447    (eval "$lt_compile" 2>conftest.err)
14448    ac_status=$?
14449    cat conftest.err >&5
14450    echo "$as_me:14450: \$? = $ac_status" >&5
14451    if (exit $ac_status) && test -s "$ac_outfile"; then
14452      # The compiler can only warn and ignore the option if not recognized
14453      # So say no if there are warnings
14454      if test ! -s conftest.err; then
14455        lt_prog_compiler_pic_works_CXX=yes
14456      fi
14457    fi
14458    $rm conftest*
14459
14460 fi
14461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14462 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14463
14464 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14465     case $lt_prog_compiler_pic_CXX in
14466      "" | " "*) ;;
14467      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14468      esac
14469 else
14470     lt_prog_compiler_pic_CXX=
14471      lt_prog_compiler_can_build_shared_CXX=no
14472 fi
14473
14474 fi
14475 case "$host_os" in
14476   # For platforms which do not support PIC, -DPIC is meaningless:
14477   *djgpp*)
14478     lt_prog_compiler_pic_CXX=
14479     ;;
14480   *)
14481     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14482     ;;
14483 esac
14484
14485 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14487 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14488   echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490   lt_cv_prog_compiler_c_o_CXX=no
14491    $rm -r conftest 2>/dev/null
14492    mkdir conftest
14493    cd conftest
14494    mkdir out
14495    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14496
14497    lt_compiler_flag="-o out/conftest2.$ac_objext"
14498    # Insert the option either (1) after the last *FLAGS variable, or
14499    # (2) before a word containing "conftest.", or (3) at the end.
14500    # Note that $ac_compile itself does not contain backslashes and begins
14501    # with a dollar sign (not a hyphen), so the echo should work correctly.
14502    lt_compile=`echo "$ac_compile" | $SED \
14503    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505    -e 's:$: $lt_compiler_flag:'`
14506    (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
14507    (eval "$lt_compile" 2>out/conftest.err)
14508    ac_status=$?
14509    cat out/conftest.err >&5
14510    echo "$as_me:14510: \$? = $ac_status" >&5
14511    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14512    then
14513      # The compiler can only warn and ignore the option if not recognized
14514      # So say no if there are warnings
14515      if test ! -s out/conftest.err; then
14516        lt_cv_prog_compiler_c_o_CXX=yes
14517      fi
14518    fi
14519    chmod u+w .
14520    $rm conftest*
14521    # SGI C++ compiler will create directory out/ii_files/ for
14522    # template instantiation
14523    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14524    $rm out/* && rmdir out
14525    cd ..
14526    rmdir conftest
14527    $rm conftest*
14528
14529 fi
14530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14531 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14532
14533
14534 hard_links="nottested"
14535 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14536   # do not overwrite the value of need_locks provided by the user
14537   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14538 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14539   hard_links=yes
14540   $rm conftest*
14541   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14542   touch conftest.a
14543   ln conftest.a conftest.b 2>&5 || hard_links=no
14544   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14545   echo "$as_me:$LINENO: result: $hard_links" >&5
14546 echo "${ECHO_T}$hard_links" >&6
14547   if test "$hard_links" = no; then
14548     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14549 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14550     need_locks=warn
14551   fi
14552 else
14553   need_locks=no
14554 fi
14555
14556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14558
14559   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14560   case $host_os in
14561   aix4* | aix5*)
14562     # If we're using GNU nm, then we don't want the "-C" option.
14563     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14564     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14565       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'
14566     else
14567       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'
14568     fi
14569     ;;
14570   pw32*)
14571     export_symbols_cmds_CXX="$ltdll_cmds"
14572   ;;
14573   cygwin* | mingw*)
14574     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14575   ;;
14576   *)
14577     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14578   ;;
14579   esac
14580
14581 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14582 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14583 test "$ld_shlibs_CXX" = no && can_build_shared=no
14584
14585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14586 if test "$GCC" = yes; then
14587   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14588 fi
14589
14590 #
14591 # Do we need to explicitly link libc?
14592 #
14593 case "x$archive_cmds_need_lc_CXX" in
14594 x|xyes)
14595   # Assume -lc should be added
14596   archive_cmds_need_lc_CXX=yes
14597
14598   if test "$enable_shared" = yes && test "$GCC" = yes; then
14599     case $archive_cmds_CXX in
14600     *'~'*)
14601       # FIXME: we may have to deal with multi-command sequences.
14602       ;;
14603     '$CC '*)
14604       # Test whether the compiler implicitly links with -lc since on some
14605       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14606       # to ld, don't add -lc before -lgcc.
14607       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14609       $rm conftest*
14610       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14611
14612       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613   (eval $ac_compile) 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } 2>conftest.err; then
14617         soname=conftest
14618         lib=conftest
14619         libobjs=conftest.$ac_objext
14620         deplibs=
14621         wl=$lt_prog_compiler_wl_CXX
14622         compiler_flags=-v
14623         linker_flags=-v
14624         verstring=
14625         output_objdir=.
14626         libname=conftest
14627         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14628         allow_undefined_flag_CXX=
14629         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14630   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }
14634         then
14635           archive_cmds_need_lc_CXX=no
14636         else
14637           archive_cmds_need_lc_CXX=yes
14638         fi
14639         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14640       else
14641         cat conftest.err 1>&5
14642       fi
14643       $rm conftest*
14644       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14645 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14646       ;;
14647     esac
14648   fi
14649   ;;
14650 esac
14651
14652 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14653 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14654 library_names_spec=
14655 libname_spec='lib$name'
14656 soname_spec=
14657 shrext_cmds=".so"
14658 postinstall_cmds=
14659 postuninstall_cmds=
14660 finish_cmds=
14661 finish_eval=
14662 shlibpath_var=
14663 shlibpath_overrides_runpath=unknown
14664 version_type=none
14665 dynamic_linker="$host_os ld.so"
14666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14667 if test "$GCC" = yes; then
14668   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14669   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14670     # if the path contains ";" then we assume it to be the separator
14671     # otherwise default to the standard path separator (i.e. ":") - it is
14672     # assumed that no part of a normal pathname contains ";" but that should
14673     # okay in the real world where ";" in dirpaths is itself problematic.
14674     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14675   else
14676     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14677   fi
14678 else
14679   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14680 fi
14681 need_lib_prefix=unknown
14682 hardcode_into_libs=no
14683
14684 # when you set need_version to no, make sure it does not cause -set_version
14685 # flags to be left without arguments
14686 need_version=unknown
14687
14688 case $host_os in
14689 aix3*)
14690   version_type=linux
14691   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14692   shlibpath_var=LIBPATH
14693
14694   # AIX 3 has no versioning support, so we append a major version to the name.
14695   soname_spec='${libname}${release}${shared_ext}$major'
14696   ;;
14697
14698 aix4* | aix5*)
14699   version_type=linux
14700   need_lib_prefix=no
14701   need_version=no
14702   hardcode_into_libs=yes
14703   if test "$host_cpu" = ia64; then
14704     # AIX 5 supports IA64
14705     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14706     shlibpath_var=LD_LIBRARY_PATH
14707   else
14708     # With GCC up to 2.95.x, collect2 would create an import file
14709     # for dependence libraries.  The import file would start with
14710     # the line `#! .'.  This would cause the generated library to
14711     # depend on `.', always an invalid library.  This was fixed in
14712     # development snapshots of GCC prior to 3.0.
14713     case $host_os in
14714       aix4 | aix4.[01] | aix4.[01].*)
14715       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14716            echo ' yes '
14717            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14718         :
14719       else
14720         can_build_shared=no
14721       fi
14722       ;;
14723     esac
14724     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14725     # soname into executable. Probably we can add versioning support to
14726     # collect2, so additional links can be useful in future.
14727     if test "$aix_use_runtimelinking" = yes; then
14728       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14729       # instead of lib<name>.a to let people know that these are not
14730       # typical AIX shared libraries.
14731       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732     else
14733       # We preserve .a as extension for shared libraries through AIX4.2
14734       # and later when we are not doing run time linking.
14735       library_names_spec='${libname}${release}.a $libname.a'
14736       soname_spec='${libname}${release}${shared_ext}$major'
14737     fi
14738     shlibpath_var=LIBPATH
14739   fi
14740   ;;
14741
14742 amigaos*)
14743   library_names_spec='$libname.ixlibrary $libname.a'
14744   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14745   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'
14746   ;;
14747
14748 beos*)
14749   library_names_spec='${libname}${shared_ext}'
14750   dynamic_linker="$host_os ld.so"
14751   shlibpath_var=LIBRARY_PATH
14752   ;;
14753
14754 bsdi[45]*)
14755   version_type=linux
14756   need_version=no
14757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758   soname_spec='${libname}${release}${shared_ext}$major'
14759   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14760   shlibpath_var=LD_LIBRARY_PATH
14761   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14762   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14763   # the default ld.so.conf also contains /usr/contrib/lib and
14764   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14765   # libtool to hard-code these into programs
14766   ;;
14767
14768 cygwin* | mingw* | pw32*)
14769   version_type=windows
14770   shrext_cmds=".dll"
14771   need_version=no
14772   need_lib_prefix=no
14773
14774   case $GCC,$host_os in
14775   yes,cygwin* | yes,mingw* | yes,pw32*)
14776     library_names_spec='$libname.dll.a'
14777     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14778     postinstall_cmds='base_file=`basename \${file}`~
14779       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14780       dldir=$destdir/`dirname \$dlpath`~
14781       test -d \$dldir || mkdir -p \$dldir~
14782       $install_prog $dir/$dlname \$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*)
14871   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14872   version_type=freebsd-$objformat
14873   case $version_type in
14874     freebsd-elf*)
14875       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14876       need_version=no
14877       need_lib_prefix=no
14878       ;;
14879     freebsd-*)
14880       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14881       need_version=yes
14882       ;;
14883   esac
14884   shlibpath_var=LD_LIBRARY_PATH
14885   case $host_os in
14886   freebsd2*)
14887     shlibpath_overrides_runpath=yes
14888     ;;
14889   freebsd3.01* | freebsdelf3.01*)
14890     shlibpath_overrides_runpath=yes
14891     hardcode_into_libs=yes
14892     ;;
14893   *) # from 3.2 on
14894     shlibpath_overrides_runpath=no
14895     hardcode_into_libs=yes
14896     ;;
14897   esac
14898   ;;
14899
14900 gnu*)
14901   version_type=linux
14902   need_lib_prefix=no
14903   need_version=no
14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14905   soname_spec='${libname}${release}${shared_ext}$major'
14906   shlibpath_var=LD_LIBRARY_PATH
14907   hardcode_into_libs=yes
14908   ;;
14909
14910 hpux9* | hpux10* | hpux11*)
14911   # Give a soname corresponding to the major version so that dld.sl refuses to
14912   # link against other versions.
14913   version_type=sunos
14914   need_lib_prefix=no
14915   need_version=no
14916   case "$host_cpu" in
14917   ia64*)
14918     shrext_cmds='.so'
14919     hardcode_into_libs=yes
14920     dynamic_linker="$host_os dld.so"
14921     shlibpath_var=LD_LIBRARY_PATH
14922     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924     soname_spec='${libname}${release}${shared_ext}$major'
14925     if test "X$HPUX_IA64_MODE" = X32; then
14926       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14927     else
14928       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14929     fi
14930     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14931     ;;
14932    hppa*64*)
14933      shrext_cmds='.sl'
14934      hardcode_into_libs=yes
14935      dynamic_linker="$host_os dld.sl"
14936      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14937      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14938      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939      soname_spec='${libname}${release}${shared_ext}$major'
14940      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14941      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14942      ;;
14943    *)
14944     shrext_cmds='.sl'
14945     dynamic_linker="$host_os dld.sl"
14946     shlibpath_var=SHLIB_PATH
14947     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949     soname_spec='${libname}${release}${shared_ext}$major'
14950     ;;
14951   esac
14952   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14953   postinstall_cmds='chmod 555 $lib'
14954   ;;
14955
14956 irix5* | irix6* | nonstopux*)
14957   case $host_os in
14958     nonstopux*) version_type=nonstopux ;;
14959     *)
14960         if test "$lt_cv_prog_gnu_ld" = yes; then
14961                 version_type=linux
14962         else
14963                 version_type=irix
14964         fi ;;
14965   esac
14966   need_lib_prefix=no
14967   need_version=no
14968   soname_spec='${libname}${release}${shared_ext}$major'
14969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14970   case $host_os in
14971   irix5* | nonstopux*)
14972     libsuff= shlibsuff=
14973     ;;
14974   *)
14975     case $LD in # libtool.m4 will add one of these switches to LD
14976     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14977       libsuff= shlibsuff= libmagic=32-bit;;
14978     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14979       libsuff=32 shlibsuff=N32 libmagic=N32;;
14980     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14981       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14982     *) libsuff= shlibsuff= libmagic=never-match;;
14983     esac
14984     ;;
14985   esac
14986   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14987   shlibpath_overrides_runpath=no
14988   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14989   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14990   hardcode_into_libs=yes
14991   ;;
14992
14993 # No shared lib support for Linux oldld, aout, or coff.
14994 linux*oldld* | linux*aout* | linux*coff*)
14995   dynamic_linker=no
14996   ;;
14997
14998 # This must be Linux ELF.
14999 linux*)
15000   version_type=linux
15001   need_lib_prefix=no
15002   need_version=no
15003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004   soname_spec='${libname}${release}${shared_ext}$major'
15005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15006   shlibpath_var=LD_LIBRARY_PATH
15007   shlibpath_overrides_runpath=no
15008   # This implies no fast_install, which is unacceptable.
15009   # Some rework will be needed to allow for fast_install
15010   # before this can be enabled.
15011   hardcode_into_libs=yes
15012
15013   # Append ld.so.conf contents to the search path
15014   if test -f /etc/ld.so.conf; then
15015     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15016     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15017   fi
15018
15019   # We used to test for /lib/ld.so.1 and disable shared libraries on
15020   # powerpc, because MkLinux only supported shared libraries with the
15021   # GNU dynamic linker.  Since this was broken with cross compilers,
15022   # most powerpc-linux boxes support dynamic linking these days and
15023   # people can always --disable-shared, the test was removed, and we
15024   # assume the GNU/Linux dynamic linker is in use.
15025   dynamic_linker='GNU/Linux ld.so'
15026   ;;
15027
15028 knetbsd*-gnu)
15029   version_type=linux
15030   need_lib_prefix=no
15031   need_version=no
15032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15033   soname_spec='${libname}${release}${shared_ext}$major'
15034   shlibpath_var=LD_LIBRARY_PATH
15035   shlibpath_overrides_runpath=no
15036   hardcode_into_libs=yes
15037   dynamic_linker='GNU ld.so'
15038   ;;
15039
15040 netbsd*)
15041   version_type=sunos
15042   need_lib_prefix=no
15043   need_version=no
15044   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15046     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15047     dynamic_linker='NetBSD (a.out) ld.so'
15048   else
15049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15050     soname_spec='${libname}${release}${shared_ext}$major'
15051     dynamic_linker='NetBSD ld.elf_so'
15052   fi
15053   shlibpath_var=LD_LIBRARY_PATH
15054   shlibpath_overrides_runpath=yes
15055   hardcode_into_libs=yes
15056   ;;
15057
15058 newsos6)
15059   version_type=linux
15060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061   shlibpath_var=LD_LIBRARY_PATH
15062   shlibpath_overrides_runpath=yes
15063   ;;
15064
15065 nto-qnx*)
15066   version_type=linux
15067   need_lib_prefix=no
15068   need_version=no
15069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070   soname_spec='${libname}${release}${shared_ext}$major'
15071   shlibpath_var=LD_LIBRARY_PATH
15072   shlibpath_overrides_runpath=yes
15073   ;;
15074
15075 openbsd*)
15076   version_type=sunos
15077   need_lib_prefix=no
15078   need_version=no
15079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15080   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15081   shlibpath_var=LD_LIBRARY_PATH
15082   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15083     case $host_os in
15084       openbsd2.[89] | openbsd2.[89].*)
15085         shlibpath_overrides_runpath=no
15086         ;;
15087       *)
15088         shlibpath_overrides_runpath=yes
15089         ;;
15090       esac
15091   else
15092     shlibpath_overrides_runpath=yes
15093   fi
15094   ;;
15095
15096 os2*)
15097   libname_spec='$name'
15098   shrext_cmds=".dll"
15099   need_lib_prefix=no
15100   library_names_spec='$libname${shared_ext} $libname.a'
15101   dynamic_linker='OS/2 ld.exe'
15102   shlibpath_var=LIBPATH
15103   ;;
15104
15105 osf3* | osf4* | osf5*)
15106   version_type=osf
15107   need_lib_prefix=no
15108   need_version=no
15109   soname_spec='${libname}${release}${shared_ext}$major'
15110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111   shlibpath_var=LD_LIBRARY_PATH
15112   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15113   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15114   ;;
15115
15116 sco3.2v5*)
15117   version_type=osf
15118   soname_spec='${libname}${release}${shared_ext}$major'
15119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120   shlibpath_var=LD_LIBRARY_PATH
15121   ;;
15122
15123 solaris*)
15124   version_type=linux
15125   need_lib_prefix=no
15126   need_version=no
15127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128   soname_spec='${libname}${release}${shared_ext}$major'
15129   shlibpath_var=LD_LIBRARY_PATH
15130   shlibpath_overrides_runpath=yes
15131   hardcode_into_libs=yes
15132   # ldd complains unless libraries are executable
15133   postinstall_cmds='chmod +x $lib'
15134   ;;
15135
15136 sunos4*)
15137   version_type=sunos
15138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15139   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15140   shlibpath_var=LD_LIBRARY_PATH
15141   shlibpath_overrides_runpath=yes
15142   if test "$with_gnu_ld" = yes; then
15143     need_lib_prefix=no
15144   fi
15145   need_version=yes
15146   ;;
15147
15148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15149   version_type=linux
15150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151   soname_spec='${libname}${release}${shared_ext}$major'
15152   shlibpath_var=LD_LIBRARY_PATH
15153   case $host_vendor in
15154     sni)
15155       shlibpath_overrides_runpath=no
15156       need_lib_prefix=no
15157       export_dynamic_flag_spec='${wl}-Blargedynsym'
15158       runpath_var=LD_RUN_PATH
15159       ;;
15160     siemens)
15161       need_lib_prefix=no
15162       ;;
15163     motorola)
15164       need_lib_prefix=no
15165       need_version=no
15166       shlibpath_overrides_runpath=no
15167       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15168       ;;
15169   esac
15170   ;;
15171
15172 sysv4*MP*)
15173   if test -d /usr/nec ;then
15174     version_type=linux
15175     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15176     soname_spec='$libname${shared_ext}.$major'
15177     shlibpath_var=LD_LIBRARY_PATH
15178   fi
15179   ;;
15180
15181 uts4*)
15182   version_type=linux
15183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184   soname_spec='${libname}${release}${shared_ext}$major'
15185   shlibpath_var=LD_LIBRARY_PATH
15186   ;;
15187
15188 *)
15189   dynamic_linker=no
15190   ;;
15191 esac
15192 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15193 echo "${ECHO_T}$dynamic_linker" >&6
15194 test "$dynamic_linker" = no && can_build_shared=no
15195
15196 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15197 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15198 hardcode_action_CXX=
15199 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15200    test -n "$runpath_var_CXX" || \
15201    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15202
15203   # We can hardcode non-existant directories.
15204   if test "$hardcode_direct_CXX" != no &&
15205      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15206      # have to relink, otherwise we might link with an installed library
15207      # when we should be linking with a yet-to-be-installed one
15208      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15209      test "$hardcode_minus_L_CXX" != no; then
15210     # Linking always hardcodes the temporary library directory.
15211     hardcode_action_CXX=relink
15212   else
15213     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15214     hardcode_action_CXX=immediate
15215   fi
15216 else
15217   # We cannot hardcode anything, or else we can only hardcode existing
15218   # directories.
15219   hardcode_action_CXX=unsupported
15220 fi
15221 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15222 echo "${ECHO_T}$hardcode_action_CXX" >&6
15223
15224 if test "$hardcode_action_CXX" = relink; then
15225   # Fast installation is not supported
15226   enable_fast_install=no
15227 elif test "$shlibpath_overrides_runpath" = yes ||
15228      test "$enable_shared" = no; then
15229   # Fast installation is not necessary
15230   enable_fast_install=needless
15231 fi
15232
15233 striplib=
15234 old_striplib=
15235 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15236 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15237 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15238   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15239   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15240   echo "$as_me:$LINENO: result: yes" >&5
15241 echo "${ECHO_T}yes" >&6
15242 else
15243 # FIXME - insert some real tests, host_os isn't really good enough
15244   case $host_os in
15245    darwin*)
15246        if test -n "$STRIP" ; then
15247          striplib="$STRIP -x"
15248          echo "$as_me:$LINENO: result: yes" >&5
15249 echo "${ECHO_T}yes" >&6
15250        else
15251   echo "$as_me:$LINENO: result: no" >&5
15252 echo "${ECHO_T}no" >&6
15253 fi
15254        ;;
15255    *)
15256   echo "$as_me:$LINENO: result: no" >&5
15257 echo "${ECHO_T}no" >&6
15258     ;;
15259   esac
15260 fi
15261
15262 if test "x$enable_dlopen" != xyes; then
15263   enable_dlopen=unknown
15264   enable_dlopen_self=unknown
15265   enable_dlopen_self_static=unknown
15266 else
15267   lt_cv_dlopen=no
15268   lt_cv_dlopen_libs=
15269
15270   case $host_os in
15271   beos*)
15272     lt_cv_dlopen="load_add_on"
15273     lt_cv_dlopen_libs=
15274     lt_cv_dlopen_self=yes
15275     ;;
15276
15277   mingw* | pw32*)
15278     lt_cv_dlopen="LoadLibrary"
15279     lt_cv_dlopen_libs=
15280    ;;
15281
15282   cygwin*)
15283     lt_cv_dlopen="dlopen"
15284     lt_cv_dlopen_libs=
15285    ;;
15286
15287   darwin*)
15288   # if libdl is installed we need to link against it
15289     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   ac_check_lib_save_LIBS=$LIBS
15295 LIBS="-ldl  $LIBS"
15296 cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302
15303 /* Override any gcc2 internal prototype to avoid an error.  */
15304 #ifdef __cplusplus
15305 extern "C"
15306 #endif
15307 /* We use char because int might match the return type of a gcc2
15308    builtin and then its argument prototype would still apply.  */
15309 char dlopen ();
15310 int
15311 main ()
15312 {
15313 dlopen ();
15314   ;
15315   return 0;
15316 }
15317 _ACEOF
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320   (eval $ac_link) 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } &&
15327          { ac_try='test -z "$ac_cxx_werror_flag"
15328                          || test ! -s conftest.err'
15329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330   (eval $ac_try) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; } &&
15334          { ac_try='test -s conftest$ac_exeext'
15335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336   (eval $ac_try) 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; }; then
15340   ac_cv_lib_dl_dlopen=yes
15341 else
15342   echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15344
15345 ac_cv_lib_dl_dlopen=no
15346 fi
15347 rm -f conftest.err conftest.$ac_objext \
15348       conftest$ac_exeext conftest.$ac_ext
15349 LIBS=$ac_check_lib_save_LIBS
15350 fi
15351 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15353 if test $ac_cv_lib_dl_dlopen = yes; then
15354   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15355 else
15356
15357     lt_cv_dlopen="dyld"
15358     lt_cv_dlopen_libs=
15359     lt_cv_dlopen_self=yes
15360
15361 fi
15362
15363    ;;
15364
15365   *)
15366     echo "$as_me:$LINENO: checking for shl_load" >&5
15367 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15368 if test "${ac_cv_func_shl_load+set}" = set; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15379 #define shl_load innocuous_shl_load
15380
15381 /* System header to define __stub macros and hopefully few prototypes,
15382     which can conflict with char shl_load (); below.
15383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384     <limits.h> exists even on freestanding compilers.  */
15385
15386 #ifdef __STDC__
15387 # include <limits.h>
15388 #else
15389 # include <assert.h>
15390 #endif
15391
15392 #undef shl_load
15393
15394 /* Override any gcc2 internal prototype to avoid an error.  */
15395 #ifdef __cplusplus
15396 extern "C"
15397 {
15398 #endif
15399 /* We use char because int might match the return type of a gcc2
15400    builtin and then its argument prototype would still apply.  */
15401 char shl_load ();
15402 /* The GNU C library defines this for functions which it implements
15403     to always fail with ENOSYS.  Some functions are actually named
15404     something starting with __ and the normal name is an alias.  */
15405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15406 choke me
15407 #else
15408 char (*f) () = shl_load;
15409 #endif
15410 #ifdef __cplusplus
15411 }
15412 #endif
15413
15414 int
15415 main ()
15416 {
15417 return f != shl_load;
15418   ;
15419   return 0;
15420 }
15421 _ACEOF
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424   (eval $ac_link) 2>conftest.er1
15425   ac_status=$?
15426   grep -v '^ *+' conftest.er1 >conftest.err
15427   rm -f conftest.er1
15428   cat conftest.err >&5
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); } &&
15431          { ac_try='test -z "$ac_cxx_werror_flag"
15432                          || test ! -s conftest.err'
15433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434   (eval $ac_try) 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; } &&
15438          { ac_try='test -s conftest$ac_exeext'
15439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440   (eval $ac_try) 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; }; then
15444   ac_cv_func_shl_load=yes
15445 else
15446   echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449 ac_cv_func_shl_load=no
15450 fi
15451 rm -f conftest.err conftest.$ac_objext \
15452       conftest$ac_exeext conftest.$ac_ext
15453 fi
15454 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15455 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15456 if test $ac_cv_func_shl_load = yes; then
15457   lt_cv_dlopen="shl_load"
15458 else
15459   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15460 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15462   echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464   ac_check_lib_save_LIBS=$LIBS
15465 LIBS="-ldld  $LIBS"
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472
15473 /* Override any gcc2 internal prototype to avoid an error.  */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 /* We use char because int might match the return type of a gcc2
15478    builtin and then its argument prototype would still apply.  */
15479 char shl_load ();
15480 int
15481 main ()
15482 {
15483 shl_load ();
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15490   (eval $ac_link) 2>conftest.er1
15491   ac_status=$?
15492   grep -v '^ *+' conftest.er1 >conftest.err
15493   rm -f conftest.er1
15494   cat conftest.err >&5
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } &&
15497          { ac_try='test -z "$ac_cxx_werror_flag"
15498                          || test ! -s conftest.err'
15499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500   (eval $ac_try) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; } &&
15504          { ac_try='test -s conftest$ac_exeext'
15505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506   (eval $ac_try) 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); }; }; then
15510   ac_cv_lib_dld_shl_load=yes
15511 else
15512   echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15514
15515 ac_cv_lib_dld_shl_load=no
15516 fi
15517 rm -f conftest.err conftest.$ac_objext \
15518       conftest$ac_exeext conftest.$ac_ext
15519 LIBS=$ac_check_lib_save_LIBS
15520 fi
15521 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15522 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15523 if test $ac_cv_lib_dld_shl_load = yes; then
15524   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15525 else
15526   echo "$as_me:$LINENO: checking for dlopen" >&5
15527 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15528 if test "${ac_cv_func_dlopen+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15539 #define dlopen innocuous_dlopen
15540
15541 /* System header to define __stub macros and hopefully few prototypes,
15542     which can conflict with char dlopen (); below.
15543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544     <limits.h> exists even on freestanding compilers.  */
15545
15546 #ifdef __STDC__
15547 # include <limits.h>
15548 #else
15549 # include <assert.h>
15550 #endif
15551
15552 #undef dlopen
15553
15554 /* Override any gcc2 internal prototype to avoid an error.  */
15555 #ifdef __cplusplus
15556 extern "C"
15557 {
15558 #endif
15559 /* We use char because int might match the return type of a gcc2
15560    builtin and then its argument prototype would still apply.  */
15561 char dlopen ();
15562 /* The GNU C library defines this for functions which it implements
15563     to always fail with ENOSYS.  Some functions are actually named
15564     something starting with __ and the normal name is an alias.  */
15565 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15566 choke me
15567 #else
15568 char (*f) () = dlopen;
15569 #endif
15570 #ifdef __cplusplus
15571 }
15572 #endif
15573
15574 int
15575 main ()
15576 {
15577 return f != dlopen;
15578   ;
15579   return 0;
15580 }
15581 _ACEOF
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15584   (eval $ac_link) 2>conftest.er1
15585   ac_status=$?
15586   grep -v '^ *+' conftest.er1 >conftest.err
15587   rm -f conftest.er1
15588   cat conftest.err >&5
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); } &&
15591          { ac_try='test -z "$ac_cxx_werror_flag"
15592                          || test ! -s conftest.err'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; } &&
15598          { ac_try='test -s conftest$ac_exeext'
15599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600   (eval $ac_try) 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); }; }; then
15604   ac_cv_func_dlopen=yes
15605 else
15606   echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609 ac_cv_func_dlopen=no
15610 fi
15611 rm -f conftest.err conftest.$ac_objext \
15612       conftest$ac_exeext conftest.$ac_ext
15613 fi
15614 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15615 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15616 if test $ac_cv_func_dlopen = yes; then
15617   lt_cv_dlopen="dlopen"
15618 else
15619   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15622   echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624   ac_check_lib_save_LIBS=$LIBS
15625 LIBS="-ldl  $LIBS"
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632
15633 /* Override any gcc2 internal prototype to avoid an error.  */
15634 #ifdef __cplusplus
15635 extern "C"
15636 #endif
15637 /* We use char because int might match the return type of a gcc2
15638    builtin and then its argument prototype would still apply.  */
15639 char dlopen ();
15640 int
15641 main ()
15642 {
15643 dlopen ();
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15650   (eval $ac_link) 2>conftest.er1
15651   ac_status=$?
15652   grep -v '^ *+' conftest.er1 >conftest.err
15653   rm -f conftest.er1
15654   cat conftest.err >&5
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); } &&
15657          { ac_try='test -z "$ac_cxx_werror_flag"
15658                          || test ! -s conftest.err'
15659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660   (eval $ac_try) 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; } &&
15664          { ac_try='test -s conftest$ac_exeext'
15665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666   (eval $ac_try) 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); }; }; then
15670   ac_cv_lib_dl_dlopen=yes
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 ac_cv_lib_dl_dlopen=no
15676 fi
15677 rm -f conftest.err conftest.$ac_objext \
15678       conftest$ac_exeext conftest.$ac_ext
15679 LIBS=$ac_check_lib_save_LIBS
15680 fi
15681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15683 if test $ac_cv_lib_dl_dlopen = yes; then
15684   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15685 else
15686   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15687 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15688 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15689   echo $ECHO_N "(cached) $ECHO_C" >&6
15690 else
15691   ac_check_lib_save_LIBS=$LIBS
15692 LIBS="-lsvld  $LIBS"
15693 cat >conftest.$ac_ext <<_ACEOF
15694 /* confdefs.h.  */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h.  */
15699
15700 /* Override any gcc2 internal prototype to avoid an error.  */
15701 #ifdef __cplusplus
15702 extern "C"
15703 #endif
15704 /* We use char because int might match the return type of a gcc2
15705    builtin and then its argument prototype would still apply.  */
15706 char dlopen ();
15707 int
15708 main ()
15709 {
15710 dlopen ();
15711   ;
15712   return 0;
15713 }
15714 _ACEOF
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717   (eval $ac_link) 2>conftest.er1
15718   ac_status=$?
15719   grep -v '^ *+' conftest.er1 >conftest.err
15720   rm -f conftest.er1
15721   cat conftest.err >&5
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); } &&
15724          { ac_try='test -z "$ac_cxx_werror_flag"
15725                          || test ! -s conftest.err'
15726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727   (eval $ac_try) 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); }; } &&
15731          { ac_try='test -s conftest$ac_exeext'
15732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733   (eval $ac_try) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); }; }; then
15737   ac_cv_lib_svld_dlopen=yes
15738 else
15739   echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742 ac_cv_lib_svld_dlopen=no
15743 fi
15744 rm -f conftest.err conftest.$ac_objext \
15745       conftest$ac_exeext conftest.$ac_ext
15746 LIBS=$ac_check_lib_save_LIBS
15747 fi
15748 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15749 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15750 if test $ac_cv_lib_svld_dlopen = yes; then
15751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15752 else
15753   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15754 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15755 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15756   echo $ECHO_N "(cached) $ECHO_C" >&6
15757 else
15758   ac_check_lib_save_LIBS=$LIBS
15759 LIBS="-ldld  $LIBS"
15760 cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h.  */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h.  */
15766
15767 /* Override any gcc2 internal prototype to avoid an error.  */
15768 #ifdef __cplusplus
15769 extern "C"
15770 #endif
15771 /* We use char because int might match the return type of a gcc2
15772    builtin and then its argument prototype would still apply.  */
15773 char dld_link ();
15774 int
15775 main ()
15776 {
15777 dld_link ();
15778   ;
15779   return 0;
15780 }
15781 _ACEOF
15782 rm -f conftest.$ac_objext conftest$ac_exeext
15783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15784   (eval $ac_link) 2>conftest.er1
15785   ac_status=$?
15786   grep -v '^ *+' conftest.er1 >conftest.err
15787   rm -f conftest.er1
15788   cat conftest.err >&5
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); } &&
15791          { ac_try='test -z "$ac_cxx_werror_flag"
15792                          || test ! -s conftest.err'
15793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794   (eval $ac_try) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; } &&
15798          { ac_try='test -s conftest$ac_exeext'
15799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800   (eval $ac_try) 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; }; then
15804   ac_cv_lib_dld_dld_link=yes
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_cv_lib_dld_dld_link=no
15810 fi
15811 rm -f conftest.err conftest.$ac_objext \
15812       conftest$ac_exeext conftest.$ac_ext
15813 LIBS=$ac_check_lib_save_LIBS
15814 fi
15815 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15816 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15817 if test $ac_cv_lib_dld_dld_link = yes; then
15818   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15819 fi
15820
15821
15822 fi
15823
15824
15825 fi
15826
15827
15828 fi
15829
15830
15831 fi
15832
15833
15834 fi
15835
15836     ;;
15837   esac
15838
15839   if test "x$lt_cv_dlopen" != xno; then
15840     enable_dlopen=yes
15841   else
15842     enable_dlopen=no
15843   fi
15844
15845   case $lt_cv_dlopen in
15846   dlopen)
15847     save_CPPFLAGS="$CPPFLAGS"
15848     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15849
15850     save_LDFLAGS="$LDFLAGS"
15851     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15852
15853     save_LIBS="$LIBS"
15854     LIBS="$lt_cv_dlopen_libs $LIBS"
15855
15856     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15857 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15858 if test "${lt_cv_dlopen_self+set}" = set; then
15859   echo $ECHO_N "(cached) $ECHO_C" >&6
15860 else
15861           if test "$cross_compiling" = yes; then :
15862   lt_cv_dlopen_self=cross
15863 else
15864   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15865   lt_status=$lt_dlunknown
15866   cat > conftest.$ac_ext <<EOF
15867 #line 15867 "configure"
15868 #include "confdefs.h"
15869
15870 #if HAVE_DLFCN_H
15871 #include <dlfcn.h>
15872 #endif
15873
15874 #include <stdio.h>
15875
15876 #ifdef RTLD_GLOBAL
15877 #  define LT_DLGLOBAL           RTLD_GLOBAL
15878 #else
15879 #  ifdef DL_GLOBAL
15880 #    define LT_DLGLOBAL         DL_GLOBAL
15881 #  else
15882 #    define LT_DLGLOBAL         0
15883 #  endif
15884 #endif
15885
15886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15887    find out it does not work in some platform. */
15888 #ifndef LT_DLLAZY_OR_NOW
15889 #  ifdef RTLD_LAZY
15890 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15891 #  else
15892 #    ifdef DL_LAZY
15893 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15894 #    else
15895 #      ifdef RTLD_NOW
15896 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15897 #      else
15898 #        ifdef DL_NOW
15899 #          define LT_DLLAZY_OR_NOW      DL_NOW
15900 #        else
15901 #          define LT_DLLAZY_OR_NOW      0
15902 #        endif
15903 #      endif
15904 #    endif
15905 #  endif
15906 #endif
15907
15908 #ifdef __cplusplus
15909 extern "C" void exit (int);
15910 #endif
15911
15912 void fnord() { int i=42;}
15913 int main ()
15914 {
15915   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15916   int status = $lt_dlunknown;
15917
15918   if (self)
15919     {
15920       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15921       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15922       /* dlclose (self); */
15923     }
15924
15925     exit (status);
15926 }
15927 EOF
15928   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15929   (eval $ac_link) 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15933     (./conftest; exit; ) 2>/dev/null
15934     lt_status=$?
15935     case x$lt_status in
15936       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15937       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15938       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15939     esac
15940   else :
15941     # compilation failed
15942     lt_cv_dlopen_self=no
15943   fi
15944 fi
15945 rm -fr conftest*
15946
15947
15948 fi
15949 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15950 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15951
15952     if test "x$lt_cv_dlopen_self" = xyes; then
15953       LDFLAGS="$LDFLAGS $link_static_flag"
15954       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15955 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15956 if test "${lt_cv_dlopen_self_static+set}" = set; then
15957   echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959           if test "$cross_compiling" = yes; then :
15960   lt_cv_dlopen_self_static=cross
15961 else
15962   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15963   lt_status=$lt_dlunknown
15964   cat > conftest.$ac_ext <<EOF
15965 #line 15965 "configure"
15966 #include "confdefs.h"
15967
15968 #if HAVE_DLFCN_H
15969 #include <dlfcn.h>
15970 #endif
15971
15972 #include <stdio.h>
15973
15974 #ifdef RTLD_GLOBAL
15975 #  define LT_DLGLOBAL           RTLD_GLOBAL
15976 #else
15977 #  ifdef DL_GLOBAL
15978 #    define LT_DLGLOBAL         DL_GLOBAL
15979 #  else
15980 #    define LT_DLGLOBAL         0
15981 #  endif
15982 #endif
15983
15984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15985    find out it does not work in some platform. */
15986 #ifndef LT_DLLAZY_OR_NOW
15987 #  ifdef RTLD_LAZY
15988 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15989 #  else
15990 #    ifdef DL_LAZY
15991 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15992 #    else
15993 #      ifdef RTLD_NOW
15994 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15995 #      else
15996 #        ifdef DL_NOW
15997 #          define LT_DLLAZY_OR_NOW      DL_NOW
15998 #        else
15999 #          define LT_DLLAZY_OR_NOW      0
16000 #        endif
16001 #      endif
16002 #    endif
16003 #  endif
16004 #endif
16005
16006 #ifdef __cplusplus
16007 extern "C" void exit (int);
16008 #endif
16009
16010 void fnord() { int i=42;}
16011 int main ()
16012 {
16013   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16014   int status = $lt_dlunknown;
16015
16016   if (self)
16017     {
16018       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16019       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16020       /* dlclose (self); */
16021     }
16022
16023     exit (status);
16024 }
16025 EOF
16026   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16027   (eval $ac_link) 2>&5
16028   ac_status=$?
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16031     (./conftest; exit; ) 2>/dev/null
16032     lt_status=$?
16033     case x$lt_status in
16034       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16035       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16036       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16037     esac
16038   else :
16039     # compilation failed
16040     lt_cv_dlopen_self_static=no
16041   fi
16042 fi
16043 rm -fr conftest*
16044
16045
16046 fi
16047 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16048 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16049     fi
16050
16051     CPPFLAGS="$save_CPPFLAGS"
16052     LDFLAGS="$save_LDFLAGS"
16053     LIBS="$save_LIBS"
16054     ;;
16055   esac
16056
16057   case $lt_cv_dlopen_self in
16058   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16059   *) enable_dlopen_self=unknown ;;
16060   esac
16061
16062   case $lt_cv_dlopen_self_static in
16063   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16064   *) enable_dlopen_self_static=unknown ;;
16065   esac
16066 fi
16067
16068
16069 # The else clause should only fire when bootstrapping the
16070 # libtool distribution, otherwise you forgot to ship ltmain.sh
16071 # with your package, and you will get complaints that there are
16072 # no rules to generate ltmain.sh.
16073 if test -f "$ltmain"; then
16074   # See if we are running on zsh, and set the options which allow our commands through
16075   # without removal of \ escapes.
16076   if test -n "${ZSH_VERSION+set}" ; then
16077     setopt NO_GLOB_SUBST
16078   fi
16079   # Now quote all the things that may contain metacharacters while being
16080   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16081   # variables and quote the copies for generation of the libtool script.
16082   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16083     SED SHELL STRIP \
16084     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16085     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16086     deplibs_check_method reload_flag reload_cmds need_locks \
16087     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16088     lt_cv_sys_global_symbol_to_c_name_address \
16089     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16090     old_postinstall_cmds old_postuninstall_cmds \
16091     compiler_CXX \
16092     CC_CXX \
16093     LD_CXX \
16094     lt_prog_compiler_wl_CXX \
16095     lt_prog_compiler_pic_CXX \
16096     lt_prog_compiler_static_CXX \
16097     lt_prog_compiler_no_builtin_flag_CXX \
16098     export_dynamic_flag_spec_CXX \
16099     thread_safe_flag_spec_CXX \
16100     whole_archive_flag_spec_CXX \
16101     enable_shared_with_static_runtimes_CXX \
16102     old_archive_cmds_CXX \
16103     old_archive_from_new_cmds_CXX \
16104     predep_objects_CXX \
16105     postdep_objects_CXX \
16106     predeps_CXX \
16107     postdeps_CXX \
16108     compiler_lib_search_path_CXX \
16109     archive_cmds_CXX \
16110     archive_expsym_cmds_CXX \
16111     postinstall_cmds_CXX \
16112     postuninstall_cmds_CXX \
16113     old_archive_from_expsyms_cmds_CXX \
16114     allow_undefined_flag_CXX \
16115     no_undefined_flag_CXX \
16116     export_symbols_cmds_CXX \
16117     hardcode_libdir_flag_spec_CXX \
16118     hardcode_libdir_flag_spec_ld_CXX \
16119     hardcode_libdir_separator_CXX \
16120     hardcode_automatic_CXX \
16121     module_cmds_CXX \
16122     module_expsym_cmds_CXX \
16123     lt_cv_prog_compiler_c_o_CXX \
16124     exclude_expsyms_CXX \
16125     include_expsyms_CXX; do
16126
16127     case $var in
16128     old_archive_cmds_CXX | \
16129     old_archive_from_new_cmds_CXX | \
16130     archive_cmds_CXX | \
16131     archive_expsym_cmds_CXX | \
16132     module_cmds_CXX | \
16133     module_expsym_cmds_CXX | \
16134     old_archive_from_expsyms_cmds_CXX | \
16135     export_symbols_cmds_CXX | \
16136     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16137     postinstall_cmds | postuninstall_cmds | \
16138     old_postinstall_cmds | old_postuninstall_cmds | \
16139     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16140       # Double-quote double-evaled strings.
16141       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16142       ;;
16143     *)
16144       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16145       ;;
16146     esac
16147   done
16148
16149   case $lt_echo in
16150   *'\$0 --fallback-echo"')
16151     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16152     ;;
16153   esac
16154
16155 cfgfile="$ofile"
16156
16157   cat <<__EOF__ >> "$cfgfile"
16158 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16159
16160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16161
16162 # Shell to use when invoking shell scripts.
16163 SHELL=$lt_SHELL
16164
16165 # Whether or not to build shared libraries.
16166 build_libtool_libs=$enable_shared
16167
16168 # Whether or not to build static libraries.
16169 build_old_libs=$enable_static
16170
16171 # Whether or not to add -lc for building shared libraries.
16172 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16173
16174 # Whether or not to disallow shared libs when runtime libs are static
16175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16176
16177 # Whether or not to optimize for fast installation.
16178 fast_install=$enable_fast_install
16179
16180 # The host system.
16181 host_alias=$host_alias
16182 host=$host
16183
16184 # An echo program that does not interpret backslashes.
16185 echo=$lt_echo
16186
16187 # The archiver.
16188 AR=$lt_AR
16189 AR_FLAGS=$lt_AR_FLAGS
16190
16191 # A C compiler.
16192 LTCC=$lt_LTCC
16193
16194 # A language-specific compiler.
16195 CC=$lt_compiler_CXX
16196
16197 # Is the compiler the GNU C compiler?
16198 with_gcc=$GCC_CXX
16199
16200 # An ERE matcher.
16201 EGREP=$lt_EGREP
16202
16203 # The linker used to build libraries.
16204 LD=$lt_LD_CXX
16205
16206 # Whether we need hard or soft links.
16207 LN_S=$lt_LN_S
16208
16209 # A BSD-compatible nm program.
16210 NM=$lt_NM
16211
16212 # A symbol stripping program
16213 STRIP=$lt_STRIP
16214
16215 # Used to examine libraries when file_magic_cmd begins "file"
16216 MAGIC_CMD=$MAGIC_CMD
16217
16218 # Used on cygwin: DLL creation program.
16219 DLLTOOL="$DLLTOOL"
16220
16221 # Used on cygwin: object dumper.
16222 OBJDUMP="$OBJDUMP"
16223
16224 # Used on cygwin: assembler.
16225 AS="$AS"
16226
16227 # The name of the directory that contains temporary libtool files.
16228 objdir=$objdir
16229
16230 # How to create reloadable object files.
16231 reload_flag=$lt_reload_flag
16232 reload_cmds=$lt_reload_cmds
16233
16234 # How to pass a linker flag through the compiler.
16235 wl=$lt_lt_prog_compiler_wl_CXX
16236
16237 # Object file suffix (normally "o").
16238 objext="$ac_objext"
16239
16240 # Old archive suffix (normally "a").
16241 libext="$libext"
16242
16243 # Shared library suffix (normally ".so").
16244 shrext_cmds='$shrext_cmds'
16245
16246 # Executable file suffix (normally "").
16247 exeext="$exeext"
16248
16249 # Additional compiler flags for building library objects.
16250 pic_flag=$lt_lt_prog_compiler_pic_CXX
16251 pic_mode=$pic_mode
16252
16253 # What is the maximum length of a command?
16254 max_cmd_len=$lt_cv_sys_max_cmd_len
16255
16256 # Does compiler simultaneously support -c and -o options?
16257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16258
16259 # Must we lock files when doing compilation ?
16260 need_locks=$lt_need_locks
16261
16262 # Do we need the lib prefix for modules?
16263 need_lib_prefix=$need_lib_prefix
16264
16265 # Do we need a version for libraries?
16266 need_version=$need_version
16267
16268 # Whether dlopen is supported.
16269 dlopen_support=$enable_dlopen
16270
16271 # Whether dlopen of programs is supported.
16272 dlopen_self=$enable_dlopen_self
16273
16274 # Whether dlopen of statically linked programs is supported.
16275 dlopen_self_static=$enable_dlopen_self_static
16276
16277 # Compiler flag to prevent dynamic linking.
16278 link_static_flag=$lt_lt_prog_compiler_static_CXX
16279
16280 # Compiler flag to turn off builtin functions.
16281 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16282
16283 # Compiler flag to allow reflexive dlopens.
16284 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16285
16286 # Compiler flag to generate shared objects directly from archives.
16287 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16288
16289 # Compiler flag to generate thread-safe objects.
16290 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16291
16292 # Library versioning type.
16293 version_type=$version_type
16294
16295 # Format of library name prefix.
16296 libname_spec=$lt_libname_spec
16297
16298 # List of archive names.  First name is the real one, the rest are links.
16299 # The last name is the one that the linker finds with -lNAME.
16300 library_names_spec=$lt_library_names_spec
16301
16302 # The coded name of the library, if different from the real name.
16303 soname_spec=$lt_soname_spec
16304
16305 # Commands used to build and install an old-style archive.
16306 RANLIB=$lt_RANLIB
16307 old_archive_cmds=$lt_old_archive_cmds_CXX
16308 old_postinstall_cmds=$lt_old_postinstall_cmds
16309 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16310
16311 # Create an old-style archive from a shared archive.
16312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16313
16314 # Create a temporary old-style archive to link instead of a shared archive.
16315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16316
16317 # Commands used to build and install a shared archive.
16318 archive_cmds=$lt_archive_cmds_CXX
16319 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16320 postinstall_cmds=$lt_postinstall_cmds
16321 postuninstall_cmds=$lt_postuninstall_cmds
16322
16323 # Commands used to build a loadable module (assumed same as above if empty)
16324 module_cmds=$lt_module_cmds_CXX
16325 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16326
16327 # Commands to strip libraries.
16328 old_striplib=$lt_old_striplib
16329 striplib=$lt_striplib
16330
16331 # Dependencies to place before the objects being linked to create a
16332 # shared library.
16333 predep_objects=$lt_predep_objects_CXX
16334
16335 # Dependencies to place after the objects being linked to create a
16336 # shared library.
16337 postdep_objects=$lt_postdep_objects_CXX
16338
16339 # Dependencies to place before the objects being linked to create a
16340 # shared library.
16341 predeps=$lt_predeps_CXX
16342
16343 # Dependencies to place after the objects being linked to create a
16344 # shared library.
16345 postdeps=$lt_postdeps_CXX
16346
16347 # The library search path used internally by the compiler when linking
16348 # a shared library.
16349 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16350
16351 # Method to check whether dependent libraries are shared objects.
16352 deplibs_check_method=$lt_deplibs_check_method
16353
16354 # Command to use when deplibs_check_method == file_magic.
16355 file_magic_cmd=$lt_file_magic_cmd
16356
16357 # Flag that allows shared libraries with undefined symbols to be built.
16358 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16359
16360 # Flag that forces no undefined symbols.
16361 no_undefined_flag=$lt_no_undefined_flag_CXX
16362
16363 # Commands used to finish a libtool library installation in a directory.
16364 finish_cmds=$lt_finish_cmds
16365
16366 # Same as above, but a single script fragment to be evaled but not shown.
16367 finish_eval=$lt_finish_eval
16368
16369 # Take the output of nm and produce a listing of raw symbols and C names.
16370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16371
16372 # Transform the output of nm in a proper C declaration
16373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16374
16375 # Transform the output of nm in a C name address pair
16376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16377
16378 # This is the shared library runtime path variable.
16379 runpath_var=$runpath_var
16380
16381 # This is the shared library path variable.
16382 shlibpath_var=$shlibpath_var
16383
16384 # Is shlibpath searched before the hard-coded library search path?
16385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16386
16387 # How to hardcode a shared library path into an executable.
16388 hardcode_action=$hardcode_action_CXX
16389
16390 # Whether we should hardcode library paths into libraries.
16391 hardcode_into_libs=$hardcode_into_libs
16392
16393 # Flag to hardcode \$libdir into a binary during linking.
16394 # This must work even if \$libdir does not exist.
16395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16396
16397 # If ld is used when linking, flag to hardcode \$libdir into
16398 # a binary during linking. This must work even if \$libdir does
16399 # not exist.
16400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16401
16402 # Whether we need a single -rpath flag with a separated argument.
16403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16404
16405 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16406 # resulting binary.
16407 hardcode_direct=$hardcode_direct_CXX
16408
16409 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16410 # resulting binary.
16411 hardcode_minus_L=$hardcode_minus_L_CXX
16412
16413 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16414 # the resulting binary.
16415 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16416
16417 # Set to yes if building a shared library automatically hardcodes DIR into the library
16418 # and all subsequent libraries and executables linked against it.
16419 hardcode_automatic=$hardcode_automatic_CXX
16420
16421 # Variables whose values should be saved in libtool wrapper scripts and
16422 # restored at relink time.
16423 variables_saved_for_relink="$variables_saved_for_relink"
16424
16425 # Whether libtool must link a program against all its dependency libraries.
16426 link_all_deplibs=$link_all_deplibs_CXX
16427
16428 # Compile-time system search path for libraries
16429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16430
16431 # Run-time system search path for libraries
16432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16433
16434 # Fix the shell variable \$srcfile for the compiler.
16435 fix_srcfile_path="$fix_srcfile_path_CXX"
16436
16437 # Set to yes if exported symbols are required.
16438 always_export_symbols=$always_export_symbols_CXX
16439
16440 # The commands to list exported symbols.
16441 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16442
16443 # The commands to extract the exported symbol list from a shared archive.
16444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16445
16446 # Symbols that should not be listed in the preloaded symbols.
16447 exclude_expsyms=$lt_exclude_expsyms_CXX
16448
16449 # Symbols that must always be exported.
16450 include_expsyms=$lt_include_expsyms_CXX
16451
16452 # ### END LIBTOOL TAG CONFIG: $tagname
16453
16454 __EOF__
16455
16456
16457 else
16458   # If there is no Makefile yet, we rely on a make rule to execute
16459   # `config.status --recheck' to rerun these tests and create the
16460   # libtool script then.
16461   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16462   if test -f "$ltmain_in"; then
16463     test -f Makefile && make "$ltmain"
16464   fi
16465 fi
16466
16467
16468 ac_ext=c
16469 ac_cpp='$CPP $CPPFLAGS'
16470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16473
16474 CC=$lt_save_CC
16475 LDCXX=$LD
16476 LD=$lt_save_LD
16477 GCC=$lt_save_GCC
16478 with_gnu_ldcxx=$with_gnu_ld
16479 with_gnu_ld=$lt_save_with_gnu_ld
16480 lt_cv_path_LDCXX=$lt_cv_path_LD
16481 lt_cv_path_LD=$lt_save_path_LD
16482 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16483 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16484
16485         else
16486           tagname=""
16487         fi
16488         ;;
16489
16490       F77)
16491         if test -n "$F77" && test "X$F77" != "Xno"; then
16492
16493 ac_ext=f
16494 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16495 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16496 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16497
16498
16499 archive_cmds_need_lc_F77=no
16500 allow_undefined_flag_F77=
16501 always_export_symbols_F77=no
16502 archive_expsym_cmds_F77=
16503 export_dynamic_flag_spec_F77=
16504 hardcode_direct_F77=no
16505 hardcode_libdir_flag_spec_F77=
16506 hardcode_libdir_flag_spec_ld_F77=
16507 hardcode_libdir_separator_F77=
16508 hardcode_minus_L_F77=no
16509 hardcode_automatic_F77=no
16510 module_cmds_F77=
16511 module_expsym_cmds_F77=
16512 link_all_deplibs_F77=unknown
16513 old_archive_cmds_F77=$old_archive_cmds
16514 no_undefined_flag_F77=
16515 whole_archive_flag_spec_F77=
16516 enable_shared_with_static_runtimes_F77=no
16517
16518 # Source file extension for f77 test sources.
16519 ac_ext=f
16520
16521 # Object file extension for compiled f77 test sources.
16522 objext=o
16523 objext_F77=$objext
16524
16525 # Code to be used in simple compile tests
16526 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
16527
16528 # Code to be used in simple link tests
16529 lt_simple_link_test_code="      program t\n      end\n"
16530
16531 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16532
16533 # If no C compiler was specified, use CC.
16534 LTCC=${LTCC-"$CC"}
16535
16536 # Allow CC to be a program name with arguments.
16537 compiler=$CC
16538
16539
16540 # Allow CC to be a program name with arguments.
16541 lt_save_CC="$CC"
16542 CC=${F77-"f77"}
16543 compiler=$CC
16544 compiler_F77=$CC
16545 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16546
16547 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16548 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16549 echo "$as_me:$LINENO: result: $can_build_shared" >&5
16550 echo "${ECHO_T}$can_build_shared" >&6
16551
16552 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16553 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16554 test "$can_build_shared" = "no" && enable_shared=no
16555
16556 # On AIX, shared libraries and static libraries use the same namespace, and
16557 # are all built from PIC.
16558 case "$host_os" in
16559 aix3*)
16560   test "$enable_shared" = yes && enable_static=no
16561   if test -n "$RANLIB"; then
16562     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16563     postinstall_cmds='$RANLIB $lib'
16564   fi
16565   ;;
16566 aix4* | aix5*)
16567   test "$enable_shared" = yes && enable_static=no
16568   ;;
16569 esac
16570 echo "$as_me:$LINENO: result: $enable_shared" >&5
16571 echo "${ECHO_T}$enable_shared" >&6
16572
16573 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16574 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16575 # Make sure either enable_shared or enable_static is yes.
16576 test "$enable_shared" = yes || enable_static=yes
16577 echo "$as_me:$LINENO: result: $enable_static" >&5
16578 echo "${ECHO_T}$enable_static" >&6
16579
16580 test "$ld_shlibs_F77" = no && can_build_shared=no
16581
16582 GCC_F77="$G77"
16583 LD_F77="$LD"
16584
16585 lt_prog_compiler_wl_F77=
16586 lt_prog_compiler_pic_F77=
16587 lt_prog_compiler_static_F77=
16588
16589 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16590 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16591
16592   if test "$GCC" = yes; then
16593     lt_prog_compiler_wl_F77='-Wl,'
16594     lt_prog_compiler_static_F77='-static'
16595
16596     case $host_os in
16597       aix*)
16598       # All AIX code is PIC.
16599       if test "$host_cpu" = ia64; then
16600         # AIX 5 now supports IA64 processor
16601         lt_prog_compiler_static_F77='-Bstatic'
16602       fi
16603       ;;
16604
16605     amigaos*)
16606       # FIXME: we need at least 68020 code to build shared libraries, but
16607       # adding the `-m68020' flag to GCC prevents building anything better,
16608       # like `-m68040'.
16609       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16610       ;;
16611
16612     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16613       # PIC is the default for these OSes.
16614       ;;
16615
16616     mingw* | pw32* | os2*)
16617       # This hack is so that the source file can tell whether it is being
16618       # built for inclusion in a dll (and should export symbols for example).
16619       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16620       ;;
16621
16622     darwin* | rhapsody*)
16623       # PIC is the default on this platform
16624       # Common symbols not allowed in MH_DYLIB files
16625       lt_prog_compiler_pic_F77='-fno-common'
16626       ;;
16627
16628     msdosdjgpp*)
16629       # Just because we use GCC doesn't mean we suddenly get shared libraries
16630       # on systems that don't support them.
16631       lt_prog_compiler_can_build_shared_F77=no
16632       enable_shared=no
16633       ;;
16634
16635     sysv4*MP*)
16636       if test -d /usr/nec; then
16637         lt_prog_compiler_pic_F77=-Kconform_pic
16638       fi
16639       ;;
16640
16641     hpux*)
16642       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16643       # not for PA HP-UX.
16644       case "$host_cpu" in
16645       hppa*64*|ia64*)
16646         # +Z the default
16647         ;;
16648       *)
16649         lt_prog_compiler_pic_F77='-fPIC'
16650         ;;
16651       esac
16652       ;;
16653
16654     *)
16655       lt_prog_compiler_pic_F77='-fPIC'
16656       ;;
16657     esac
16658   else
16659     # PORTME Check for flag to pass linker flags through the system compiler.
16660     case $host_os in
16661     aix*)
16662       lt_prog_compiler_wl_F77='-Wl,'
16663       if test "$host_cpu" = ia64; then
16664         # AIX 5 now supports IA64 processor
16665         lt_prog_compiler_static_F77='-Bstatic'
16666       else
16667         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16668       fi
16669       ;;
16670       darwin*)
16671         # PIC is the default on this platform
16672         # Common symbols not allowed in MH_DYLIB files
16673        case "$cc_basename" in
16674          xlc*)
16675          lt_prog_compiler_pic_F77='-qnocommon'
16676          lt_prog_compiler_wl_F77='-Wl,'
16677          ;;
16678        esac
16679        ;;
16680
16681     mingw* | pw32* | os2*)
16682       # This hack is so that the source file can tell whether it is being
16683       # built for inclusion in a dll (and should export symbols for example).
16684       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16685       ;;
16686
16687     hpux9* | hpux10* | hpux11*)
16688       lt_prog_compiler_wl_F77='-Wl,'
16689       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16690       # not for PA HP-UX.
16691       case "$host_cpu" in
16692       hppa*64*|ia64*)
16693         # +Z the default
16694         ;;
16695       *)
16696         lt_prog_compiler_pic_F77='+Z'
16697         ;;
16698       esac
16699       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16700       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16701       ;;
16702
16703     irix5* | irix6* | nonstopux*)
16704       lt_prog_compiler_wl_F77='-Wl,'
16705       # PIC (with -KPIC) is the default.
16706       lt_prog_compiler_static_F77='-non_shared'
16707       ;;
16708
16709     newsos6)
16710       lt_prog_compiler_pic_F77='-KPIC'
16711       lt_prog_compiler_static_F77='-Bstatic'
16712       ;;
16713
16714     linux*)
16715       case $CC in
16716       icc* | ecc*)
16717         lt_prog_compiler_wl_F77='-Wl,'
16718         lt_prog_compiler_pic_F77='-KPIC'
16719         lt_prog_compiler_static_F77='-static'
16720         ;;
16721       ccc*)
16722         lt_prog_compiler_wl_F77='-Wl,'
16723         # All Alpha code is PIC.
16724         lt_prog_compiler_static_F77='-non_shared'
16725         ;;
16726       esac
16727       ;;
16728
16729     osf3* | osf4* | osf5*)
16730       lt_prog_compiler_wl_F77='-Wl,'
16731       # All OSF/1 code is PIC.
16732       lt_prog_compiler_static_F77='-non_shared'
16733       ;;
16734
16735     sco3.2v5*)
16736       lt_prog_compiler_pic_F77='-Kpic'
16737       lt_prog_compiler_static_F77='-dn'
16738       ;;
16739
16740     solaris*)
16741       lt_prog_compiler_wl_F77='-Wl,'
16742       lt_prog_compiler_pic_F77='-KPIC'
16743       lt_prog_compiler_static_F77='-Bstatic'
16744       ;;
16745
16746     sunos4*)
16747       lt_prog_compiler_wl_F77='-Qoption ld '
16748       lt_prog_compiler_pic_F77='-PIC'
16749       lt_prog_compiler_static_F77='-Bstatic'
16750       ;;
16751
16752     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16753       lt_prog_compiler_wl_F77='-Wl,'
16754       lt_prog_compiler_pic_F77='-KPIC'
16755       lt_prog_compiler_static_F77='-Bstatic'
16756       ;;
16757
16758     sysv4*MP*)
16759       if test -d /usr/nec ;then
16760         lt_prog_compiler_pic_F77='-Kconform_pic'
16761         lt_prog_compiler_static_F77='-Bstatic'
16762       fi
16763       ;;
16764
16765     uts4*)
16766       lt_prog_compiler_pic_F77='-pic'
16767       lt_prog_compiler_static_F77='-Bstatic'
16768       ;;
16769
16770     *)
16771       lt_prog_compiler_can_build_shared_F77=no
16772       ;;
16773     esac
16774   fi
16775
16776 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16777 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16778
16779 #
16780 # Check to make sure the PIC flag actually works.
16781 #
16782 if test -n "$lt_prog_compiler_pic_F77"; then
16783
16784 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16785 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16786 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16787   echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789   lt_prog_compiler_pic_works_F77=no
16790   ac_outfile=conftest.$ac_objext
16791    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16792    lt_compiler_flag="$lt_prog_compiler_pic_F77"
16793    # Insert the option either (1) after the last *FLAGS variable, or
16794    # (2) before a word containing "conftest.", or (3) at the end.
16795    # Note that $ac_compile itself does not contain backslashes and begins
16796    # with a dollar sign (not a hyphen), so the echo should work correctly.
16797    # The option is referenced via a variable to avoid confusing sed.
16798    lt_compile=`echo "$ac_compile" | $SED \
16799    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16801    -e 's:$: $lt_compiler_flag:'`
16802    (eval echo "\"\$as_me:16802: $lt_compile\"" >&5)
16803    (eval "$lt_compile" 2>conftest.err)
16804    ac_status=$?
16805    cat conftest.err >&5
16806    echo "$as_me:16806: \$? = $ac_status" >&5
16807    if (exit $ac_status) && test -s "$ac_outfile"; then
16808      # The compiler can only warn and ignore the option if not recognized
16809      # So say no if there are warnings
16810      if test ! -s conftest.err; then
16811        lt_prog_compiler_pic_works_F77=yes
16812      fi
16813    fi
16814    $rm conftest*
16815
16816 fi
16817 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16818 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16819
16820 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16821     case $lt_prog_compiler_pic_F77 in
16822      "" | " "*) ;;
16823      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16824      esac
16825 else
16826     lt_prog_compiler_pic_F77=
16827      lt_prog_compiler_can_build_shared_F77=no
16828 fi
16829
16830 fi
16831 case "$host_os" in
16832   # For platforms which do not support PIC, -DPIC is meaningless:
16833   *djgpp*)
16834     lt_prog_compiler_pic_F77=
16835     ;;
16836   *)
16837     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16838     ;;
16839 esac
16840
16841 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16843 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846   lt_cv_prog_compiler_c_o_F77=no
16847    $rm -r conftest 2>/dev/null
16848    mkdir conftest
16849    cd conftest
16850    mkdir out
16851    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16852
16853    lt_compiler_flag="-o out/conftest2.$ac_objext"
16854    # Insert the option either (1) after the last *FLAGS variable, or
16855    # (2) before a word containing "conftest.", or (3) at the end.
16856    # Note that $ac_compile itself does not contain backslashes and begins
16857    # with a dollar sign (not a hyphen), so the echo should work correctly.
16858    lt_compile=`echo "$ac_compile" | $SED \
16859    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16861    -e 's:$: $lt_compiler_flag:'`
16862    (eval echo "\"\$as_me:16862: $lt_compile\"" >&5)
16863    (eval "$lt_compile" 2>out/conftest.err)
16864    ac_status=$?
16865    cat out/conftest.err >&5
16866    echo "$as_me:16866: \$? = $ac_status" >&5
16867    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16868    then
16869      # The compiler can only warn and ignore the option if not recognized
16870      # So say no if there are warnings
16871      if test ! -s out/conftest.err; then
16872        lt_cv_prog_compiler_c_o_F77=yes
16873      fi
16874    fi
16875    chmod u+w .
16876    $rm conftest*
16877    # SGI C++ compiler will create directory out/ii_files/ for
16878    # template instantiation
16879    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16880    $rm out/* && rmdir out
16881    cd ..
16882    rmdir conftest
16883    $rm conftest*
16884
16885 fi
16886 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16888
16889
16890 hard_links="nottested"
16891 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16892   # do not overwrite the value of need_locks provided by the user
16893   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16895   hard_links=yes
16896   $rm conftest*
16897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16898   touch conftest.a
16899   ln conftest.a conftest.b 2>&5 || hard_links=no
16900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16901   echo "$as_me:$LINENO: result: $hard_links" >&5
16902 echo "${ECHO_T}$hard_links" >&6
16903   if test "$hard_links" = no; then
16904     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16906     need_locks=warn
16907   fi
16908 else
16909   need_locks=no
16910 fi
16911
16912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16914
16915   runpath_var=
16916   allow_undefined_flag_F77=
16917   enable_shared_with_static_runtimes_F77=no
16918   archive_cmds_F77=
16919   archive_expsym_cmds_F77=
16920   old_archive_From_new_cmds_F77=
16921   old_archive_from_expsyms_cmds_F77=
16922   export_dynamic_flag_spec_F77=
16923   whole_archive_flag_spec_F77=
16924   thread_safe_flag_spec_F77=
16925   hardcode_libdir_flag_spec_F77=
16926   hardcode_libdir_flag_spec_ld_F77=
16927   hardcode_libdir_separator_F77=
16928   hardcode_direct_F77=no
16929   hardcode_minus_L_F77=no
16930   hardcode_shlibpath_var_F77=unsupported
16931   link_all_deplibs_F77=unknown
16932   hardcode_automatic_F77=no
16933   module_cmds_F77=
16934   module_expsym_cmds_F77=
16935   always_export_symbols_F77=no
16936   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16937   # include_expsyms should be a list of space-separated symbols to be *always*
16938   # included in the symbol list
16939   include_expsyms_F77=
16940   # exclude_expsyms can be an extended regexp of symbols to exclude
16941   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16942   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16943   # as well as any symbol that contains `d'.
16944   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16945   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16946   # platforms (ab)use it in PIC code, but their linkers get confused if
16947   # the symbol is explicitly referenced.  Since portable code cannot
16948   # rely on this symbol name, it's probably fine to never include it in
16949   # preloaded symbol tables.
16950   extract_expsyms_cmds=
16951
16952   case $host_os in
16953   cygwin* | mingw* | pw32*)
16954     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16955     # When not using gcc, we currently assume that we are using
16956     # Microsoft Visual C++.
16957     if test "$GCC" != yes; then
16958       with_gnu_ld=no
16959     fi
16960     ;;
16961   openbsd*)
16962     with_gnu_ld=no
16963     ;;
16964   esac
16965
16966   ld_shlibs_F77=yes
16967   if test "$with_gnu_ld" = yes; then
16968     # If archive_cmds runs LD, not CC, wlarc should be empty
16969     wlarc='${wl}'
16970
16971     # See if GNU ld supports shared libraries.
16972     case $host_os in
16973     aix3* | aix4* | aix5*)
16974       # On AIX/PPC, the GNU linker is very broken
16975       if test "$host_cpu" != ia64; then
16976         ld_shlibs_F77=no
16977         cat <<EOF 1>&2
16978
16979 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16980 *** to be unable to reliably create shared libraries on AIX.
16981 *** Therefore, libtool is disabling shared libraries support.  If you
16982 *** really care for shared libraries, you may want to modify your PATH
16983 *** so that a non-GNU linker is found, and then restart.
16984
16985 EOF
16986       fi
16987       ;;
16988
16989     amigaos*)
16990       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)'
16991       hardcode_libdir_flag_spec_F77='-L$libdir'
16992       hardcode_minus_L_F77=yes
16993
16994       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16995       # that the semantics of dynamic libraries on AmigaOS, at least up
16996       # to version 4, is to share data among multiple programs linked
16997       # with the same dynamic library.  Since this doesn't match the
16998       # behavior of shared libraries on other platforms, we can't use
16999       # them.
17000       ld_shlibs_F77=no
17001       ;;
17002
17003     beos*)
17004       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17005         allow_undefined_flag_F77=unsupported
17006         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17007         # support --undefined.  This deserves some investigation.  FIXME
17008         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17009       else
17010         ld_shlibs_F77=no
17011       fi
17012       ;;
17013
17014     cygwin* | mingw* | pw32*)
17015       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17016       # as there is no search path for DLLs.
17017       hardcode_libdir_flag_spec_F77='-L$libdir'
17018       allow_undefined_flag_F77=unsupported
17019       always_export_symbols_F77=no
17020       enable_shared_with_static_runtimes_F77=yes
17021       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17022
17023       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17024         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17025         # If the export-symbols file already is a .def file (1st line
17026         # is EXPORTS), use it as is; otherwise, prepend...
17027         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17028           cp $export_symbols $output_objdir/$soname.def;
17029         else
17030           echo EXPORTS > $output_objdir/$soname.def;
17031           cat $export_symbols >> $output_objdir/$soname.def;
17032         fi~
17033         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17034       else
17035         ld_shlibs=no
17036       fi
17037       ;;
17038
17039     netbsd*)
17040       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17041         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17042         wlarc=
17043       else
17044         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17045         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17046       fi
17047       ;;
17048
17049     solaris* | sysv5*)
17050       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17051         ld_shlibs_F77=no
17052         cat <<EOF 1>&2
17053
17054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17055 *** create shared libraries on Solaris systems.  Therefore, libtool
17056 *** is disabling shared libraries support.  We urge you to upgrade GNU
17057 *** binutils to release 2.9.1 or newer.  Another option is to modify
17058 *** your PATH or compiler configuration so that the native linker is
17059 *** used, and then restart.
17060
17061 EOF
17062       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17063         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17064         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17065       else
17066         ld_shlibs_F77=no
17067       fi
17068       ;;
17069
17070     sunos4*)
17071       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17072       wlarc=
17073       hardcode_direct_F77=yes
17074       hardcode_shlibpath_var_F77=no
17075       ;;
17076
17077   linux*)
17078     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17079         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17080         archive_cmds_F77="$tmp_archive_cmds"
17081       supports_anon_versioning=no
17082       case `$LD -v 2>/dev/null` in
17083         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17084         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17085         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17086         *\ 2.11.*) ;; # other 2.11 versions
17087         *) supports_anon_versioning=yes ;;
17088       esac
17089       if test $supports_anon_versioning = yes; then
17090         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17092 $echo "local: *; };" >> $output_objdir/$libname.ver~
17093         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17094       else
17095         archive_expsym_cmds_F77="$tmp_archive_cmds"
17096       fi
17097     else
17098       ld_shlibs_F77=no
17099     fi
17100     ;;
17101
17102     *)
17103       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17106       else
17107         ld_shlibs_F77=no
17108       fi
17109       ;;
17110     esac
17111
17112     if test "$ld_shlibs_F77" = yes; then
17113       runpath_var=LD_RUN_PATH
17114       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17115       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17116       # ancient GNU ld didn't support --whole-archive et. al.
17117       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17118         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17119       else
17120         whole_archive_flag_spec_F77=
17121       fi
17122     fi
17123   else
17124     # PORTME fill in a description of your system's linker (not GNU ld)
17125     case $host_os in
17126     aix3*)
17127       allow_undefined_flag_F77=unsupported
17128       always_export_symbols_F77=yes
17129       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'
17130       # Note: this linker hardcodes the directories in LIBPATH if there
17131       # are no directories specified by -L.
17132       hardcode_minus_L_F77=yes
17133       if test "$GCC" = yes && test -z "$link_static_flag"; then
17134         # Neither direct hardcoding nor static linking is supported with a
17135         # broken collect2.
17136         hardcode_direct_F77=unsupported
17137       fi
17138       ;;
17139
17140     aix4* | aix5*)
17141       if test "$host_cpu" = ia64; then
17142         # On IA64, the linker does run time linking by default, so we don't
17143         # have to do anything special.
17144         aix_use_runtimelinking=no
17145         exp_sym_flag='-Bexport'
17146         no_entry_flag=""
17147       else
17148         # If we're using GNU nm, then we don't want the "-C" option.
17149         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17150         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17151           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'
17152         else
17153           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'
17154         fi
17155         aix_use_runtimelinking=no
17156
17157         # Test if we are trying to use run time linking or normal
17158         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17159         # need to do runtime linking.
17160         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17161           for ld_flag in $LDFLAGS; do
17162           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17163             aix_use_runtimelinking=yes
17164             break
17165           fi
17166           done
17167         esac
17168
17169         exp_sym_flag='-bexport'
17170         no_entry_flag='-bnoentry'
17171       fi
17172
17173       # When large executables or shared objects are built, AIX ld can
17174       # have problems creating the table of contents.  If linking a library
17175       # or program results in "error TOC overflow" add -mminimal-toc to
17176       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17177       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17178
17179       archive_cmds_F77=''
17180       hardcode_direct_F77=yes
17181       hardcode_libdir_separator_F77=':'
17182       link_all_deplibs_F77=yes
17183
17184       if test "$GCC" = yes; then
17185         case $host_os in aix4.012|aix4.012.*)
17186         # We only want to do this on AIX 4.2 and lower, the check
17187         # below for broken collect2 doesn't work under 4.3+
17188           collect2name=`${CC} -print-prog-name=collect2`
17189           if test -f "$collect2name" && \
17190            strings "$collect2name" | grep resolve_lib_name >/dev/null
17191           then
17192           # We have reworked collect2
17193           hardcode_direct_F77=yes
17194           else
17195           # We have old collect2
17196           hardcode_direct_F77=unsupported
17197           # It fails to find uninstalled libraries when the uninstalled
17198           # path is not listed in the libpath.  Setting hardcode_minus_L
17199           # to unsupported forces relinking
17200           hardcode_minus_L_F77=yes
17201           hardcode_libdir_flag_spec_F77='-L$libdir'
17202           hardcode_libdir_separator_F77=
17203           fi
17204         esac
17205         shared_flag='-shared'
17206       else
17207         # not using gcc
17208         if test "$host_cpu" = ia64; then
17209         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17210         # chokes on -Wl,-G. The following line is correct:
17211           shared_flag='-G'
17212         else
17213         if test "$aix_use_runtimelinking" = yes; then
17214             shared_flag='${wl}-G'
17215           else
17216             shared_flag='${wl}-bM:SRE'
17217         fi
17218         fi
17219       fi
17220
17221       # It seems that -bexpall does not export symbols beginning with
17222       # underscore (_), so it is better to generate a list of symbols to export.
17223       always_export_symbols_F77=yes
17224       if test "$aix_use_runtimelinking" = yes; then
17225         # Warning - without using the other runtime loading flags (-brtl),
17226         # -berok will link without error, but may produce a broken library.
17227         allow_undefined_flag_F77='-berok'
17228        # Determine the default libpath from the value encoded in an empty executable.
17229        cat >conftest.$ac_ext <<_ACEOF
17230       program main
17231
17232       end
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236   (eval $ac_link) 2>conftest.er1
17237   ac_status=$?
17238   grep -v '^ *+' conftest.er1 >conftest.err
17239   rm -f conftest.er1
17240   cat conftest.err >&5
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); } &&
17243          { ac_try='test -z "$ac_f77_werror_flag"
17244                          || test ! -s conftest.err'
17245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246   (eval $ac_try) 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); }; } &&
17250          { ac_try='test -s conftest$ac_exeext'
17251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252   (eval $ac_try) 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }; }; then
17256
17257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17258 }'`
17259 # Check for a 64-bit object if we didn't find anything.
17260 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; }
17261 }'`; fi
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 fi
17267 rm -f conftest.err conftest.$ac_objext \
17268       conftest$ac_exeext conftest.$ac_ext
17269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17270
17271        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17272         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17273        else
17274         if test "$host_cpu" = ia64; then
17275           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17276           allow_undefined_flag_F77="-z nodefs"
17277           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17278         else
17279          # Determine the default libpath from the value encoded in an empty executable.
17280          cat >conftest.$ac_ext <<_ACEOF
17281       program main
17282
17283       end
17284 _ACEOF
17285 rm -f conftest.$ac_objext conftest$ac_exeext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287   (eval $ac_link) 2>conftest.er1
17288   ac_status=$?
17289   grep -v '^ *+' conftest.er1 >conftest.err
17290   rm -f conftest.er1
17291   cat conftest.err >&5
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); } &&
17294          { ac_try='test -z "$ac_f77_werror_flag"
17295                          || test ! -s conftest.err'
17296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297   (eval $ac_try) 2>&5
17298   ac_status=$?
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); }; } &&
17301          { ac_try='test -s conftest$ac_exeext'
17302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303   (eval $ac_try) 2>&5
17304   ac_status=$?
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); }; }; then
17307
17308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17309 }'`
17310 # Check for a 64-bit object if we didn't find anything.
17311 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; }
17312 }'`; fi
17313 else
17314   echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317 fi
17318 rm -f conftest.err conftest.$ac_objext \
17319       conftest$ac_exeext conftest.$ac_ext
17320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17321
17322          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17323           # Warning - without using the other run time loading flags,
17324           # -berok will link without error, but may produce a broken library.
17325           no_undefined_flag_F77=' ${wl}-bernotok'
17326           allow_undefined_flag_F77=' ${wl}-berok'
17327           # -bexpall does not export symbols beginning with underscore (_)
17328           always_export_symbols_F77=yes
17329           # Exported symbols can be pulled into shared objects from archives
17330           whole_archive_flag_spec_F77=' '
17331           archive_cmds_need_lc_F77=yes
17332           # This is similar to how AIX traditionally builds it's shared libraries.
17333           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17334         fi
17335       fi
17336       ;;
17337
17338     amigaos*)
17339       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)'
17340       hardcode_libdir_flag_spec_F77='-L$libdir'
17341       hardcode_minus_L_F77=yes
17342       # see comment about different semantics on the GNU ld section
17343       ld_shlibs_F77=no
17344       ;;
17345
17346     bsdi[45]*)
17347       export_dynamic_flag_spec_F77=-rdynamic
17348       ;;
17349
17350     cygwin* | mingw* | pw32*)
17351       # When not using gcc, we currently assume that we are using
17352       # Microsoft Visual C++.
17353       # hardcode_libdir_flag_spec is actually meaningless, as there is
17354       # no search path for DLLs.
17355       hardcode_libdir_flag_spec_F77=' '
17356       allow_undefined_flag_F77=unsupported
17357       # Tell ltmain to make .lib files, not .a files.
17358       libext=lib
17359       # Tell ltmain to make .dll files, not .so files.
17360       shrext_cmds=".dll"
17361       # FIXME: Setting linknames here is a bad hack.
17362       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17363       # The linker will automatically build a .lib file if we build a DLL.
17364       old_archive_From_new_cmds_F77='true'
17365       # FIXME: Should let the user specify the lib program.
17366       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17367       fix_srcfile_path='`cygpath -w "$srcfile"`'
17368       enable_shared_with_static_runtimes_F77=yes
17369       ;;
17370
17371     darwin* | rhapsody*)
17372       case "$host_os" in
17373         rhapsody* | darwin1.[012])
17374          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17375          ;;
17376        *) # Darwin 1.3 on
17377          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17378            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17379          else
17380            case ${MACOSX_DEPLOYMENT_TARGET} in
17381              10.[012])
17382                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17383                ;;
17384              10.*)
17385                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17386                ;;
17387            esac
17388          fi
17389          ;;
17390       esac
17391       archive_cmds_need_lc_F77=no
17392       hardcode_direct_F77=no
17393       hardcode_automatic_F77=yes
17394       hardcode_shlibpath_var_F77=unsupported
17395       whole_archive_flag_spec_F77=''
17396       link_all_deplibs_F77=yes
17397     if test "$GCC" = yes ; then
17398         output_verbose_link_cmd='echo'
17399         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17400       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17401       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17402       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}'
17403       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}'
17404     else
17405       case "$cc_basename" in
17406         xlc*)
17407          output_verbose_link_cmd='echo'
17408          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17409          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17410           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17411          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}'
17412           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}'
17413           ;;
17414        *)
17415          ld_shlibs_F77=no
17416           ;;
17417       esac
17418     fi
17419       ;;
17420
17421     dgux*)
17422       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17423       hardcode_libdir_flag_spec_F77='-L$libdir'
17424       hardcode_shlibpath_var_F77=no
17425       ;;
17426
17427     freebsd1*)
17428       ld_shlibs_F77=no
17429       ;;
17430
17431     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17432     # support.  Future versions do this automatically, but an explicit c++rt0.o
17433     # does not break anything, and helps significantly (at the cost of a little
17434     # extra space).
17435     freebsd2.2*)
17436       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17437       hardcode_libdir_flag_spec_F77='-R$libdir'
17438       hardcode_direct_F77=yes
17439       hardcode_shlibpath_var_F77=no
17440       ;;
17441
17442     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17443     freebsd2*)
17444       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17445       hardcode_direct_F77=yes
17446       hardcode_minus_L_F77=yes
17447       hardcode_shlibpath_var_F77=no
17448       ;;
17449
17450     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17451     freebsd* | kfreebsd*-gnu)
17452       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17453       hardcode_libdir_flag_spec_F77='-R$libdir'
17454       hardcode_direct_F77=yes
17455       hardcode_shlibpath_var_F77=no
17456       ;;
17457
17458     hpux9*)
17459       if test "$GCC" = yes; then
17460         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'
17461       else
17462         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'
17463       fi
17464       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17465       hardcode_libdir_separator_F77=:
17466       hardcode_direct_F77=yes
17467
17468       # hardcode_minus_L: Not really in the search PATH,
17469       # but as the default location of the library.
17470       hardcode_minus_L_F77=yes
17471       export_dynamic_flag_spec_F77='${wl}-E'
17472       ;;
17473
17474     hpux10* | hpux11*)
17475       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17476         case "$host_cpu" in
17477         hppa*64*|ia64*)
17478           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17479           ;;
17480         *)
17481           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17482           ;;
17483         esac
17484       else
17485         case "$host_cpu" in
17486         hppa*64*|ia64*)
17487           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17488           ;;
17489         *)
17490           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17491           ;;
17492         esac
17493       fi
17494       if test "$with_gnu_ld" = no; then
17495         case "$host_cpu" in
17496         hppa*64*)
17497           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17498           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17499           hardcode_libdir_separator_F77=:
17500           hardcode_direct_F77=no
17501           hardcode_shlibpath_var_F77=no
17502           ;;
17503         ia64*)
17504           hardcode_libdir_flag_spec_F77='-L$libdir'
17505           hardcode_direct_F77=no
17506           hardcode_shlibpath_var_F77=no
17507
17508           # hardcode_minus_L: Not really in the search PATH,
17509           # but as the default location of the library.
17510           hardcode_minus_L_F77=yes
17511           ;;
17512         *)
17513           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17514           hardcode_libdir_separator_F77=:
17515           hardcode_direct_F77=yes
17516           export_dynamic_flag_spec_F77='${wl}-E'
17517
17518           # hardcode_minus_L: Not really in the search PATH,
17519           # but as the default location of the library.
17520           hardcode_minus_L_F77=yes
17521           ;;
17522         esac
17523       fi
17524       ;;
17525
17526     irix5* | irix6* | nonstopux*)
17527       if test "$GCC" = yes; then
17528         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'
17529       else
17530         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'
17531         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17532       fi
17533       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17534       hardcode_libdir_separator_F77=:
17535       link_all_deplibs_F77=yes
17536       ;;
17537
17538     netbsd*)
17539       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17540         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17541       else
17542         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17543       fi
17544       hardcode_libdir_flag_spec_F77='-R$libdir'
17545       hardcode_direct_F77=yes
17546       hardcode_shlibpath_var_F77=no
17547       ;;
17548
17549     newsos6)
17550       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551       hardcode_direct_F77=yes
17552       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17553       hardcode_libdir_separator_F77=:
17554       hardcode_shlibpath_var_F77=no
17555       ;;
17556
17557     openbsd*)
17558       hardcode_direct_F77=yes
17559       hardcode_shlibpath_var_F77=no
17560       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17561         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17562         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17563         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17564         export_dynamic_flag_spec_F77='${wl}-E'
17565       else
17566        case $host_os in
17567          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17568            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17569            hardcode_libdir_flag_spec_F77='-R$libdir'
17570            ;;
17571          *)
17572            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17573            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17574            ;;
17575        esac
17576       fi
17577       ;;
17578
17579     os2*)
17580       hardcode_libdir_flag_spec_F77='-L$libdir'
17581       hardcode_minus_L_F77=yes
17582       allow_undefined_flag_F77=unsupported
17583       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'
17584       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17585       ;;
17586
17587     osf3*)
17588       if test "$GCC" = yes; then
17589         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17590         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'
17591       else
17592         allow_undefined_flag_F77=' -expect_unresolved \*'
17593         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'
17594       fi
17595       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17596       hardcode_libdir_separator_F77=:
17597       ;;
17598
17599     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17600       if test "$GCC" = yes; then
17601         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17602         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'
17603         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17604       else
17605         allow_undefined_flag_F77=' -expect_unresolved \*'
17606         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'
17607         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~
17608         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17609
17610         # Both c and cxx compiler support -rpath directly
17611         hardcode_libdir_flag_spec_F77='-rpath $libdir'
17612       fi
17613       hardcode_libdir_separator_F77=:
17614       ;;
17615
17616     sco3.2v5*)
17617       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618       hardcode_shlibpath_var_F77=no
17619       export_dynamic_flag_spec_F77='${wl}-Bexport'
17620       runpath_var=LD_RUN_PATH
17621       hardcode_runpath_var=yes
17622       ;;
17623
17624     solaris*)
17625       no_undefined_flag_F77=' -z text'
17626       if test "$GCC" = yes; then
17627         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17628         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17629           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17630       else
17631         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17633         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17634       fi
17635       hardcode_libdir_flag_spec_F77='-R$libdir'
17636       hardcode_shlibpath_var_F77=no
17637       case $host_os in
17638       solaris2.[0-5] | solaris2.[0-5].*) ;;
17639       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17640         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17641       esac
17642       link_all_deplibs_F77=yes
17643       ;;
17644
17645     sunos4*)
17646       if test "x$host_vendor" = xsequent; then
17647         # Use $CC to link under sequent, because it throws in some extra .o
17648         # files that make .init and .fini sections work.
17649         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17650       else
17651         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17652       fi
17653       hardcode_libdir_flag_spec_F77='-L$libdir'
17654       hardcode_direct_F77=yes
17655       hardcode_minus_L_F77=yes
17656       hardcode_shlibpath_var_F77=no
17657       ;;
17658
17659     sysv4)
17660       case $host_vendor in
17661         sni)
17662           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17663           hardcode_direct_F77=yes # is this really true???
17664         ;;
17665         siemens)
17666           ## LD is ld it makes a PLAMLIB
17667           ## CC just makes a GrossModule.
17668           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17669           reload_cmds_F77='$CC -r -o $output$reload_objs'
17670           hardcode_direct_F77=no
17671         ;;
17672         motorola)
17673           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17675         ;;
17676       esac
17677       runpath_var='LD_RUN_PATH'
17678       hardcode_shlibpath_var_F77=no
17679       ;;
17680
17681     sysv4.3*)
17682       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17683       hardcode_shlibpath_var_F77=no
17684       export_dynamic_flag_spec_F77='-Bexport'
17685       ;;
17686
17687     sysv4*MP*)
17688       if test -d /usr/nec; then
17689         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17690         hardcode_shlibpath_var_F77=no
17691         runpath_var=LD_RUN_PATH
17692         hardcode_runpath_var=yes
17693         ld_shlibs_F77=yes
17694       fi
17695       ;;
17696
17697     sysv4.2uw2*)
17698       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17699       hardcode_direct_F77=yes
17700       hardcode_minus_L_F77=no
17701       hardcode_shlibpath_var_F77=no
17702       hardcode_runpath_var=yes
17703       runpath_var=LD_RUN_PATH
17704       ;;
17705
17706    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17707       no_undefined_flag_F77='${wl}-z ${wl}text'
17708       if test "$GCC" = yes; then
17709         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17710       else
17711         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17712       fi
17713       runpath_var='LD_RUN_PATH'
17714       hardcode_shlibpath_var_F77=no
17715       ;;
17716
17717     sysv5*)
17718       no_undefined_flag_F77=' -z text'
17719       # $CC -shared without GNU ld will not create a library from C++
17720       # object files and a static libstdc++, better avoid it by now
17721       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17723                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17724       hardcode_libdir_flag_spec_F77=
17725       hardcode_shlibpath_var_F77=no
17726       runpath_var='LD_RUN_PATH'
17727       ;;
17728
17729     uts4*)
17730       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731       hardcode_libdir_flag_spec_F77='-L$libdir'
17732       hardcode_shlibpath_var_F77=no
17733       ;;
17734
17735     *)
17736       ld_shlibs_F77=no
17737       ;;
17738     esac
17739   fi
17740
17741 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17742 echo "${ECHO_T}$ld_shlibs_F77" >&6
17743 test "$ld_shlibs_F77" = no && can_build_shared=no
17744
17745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17746 if test "$GCC" = yes; then
17747   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17748 fi
17749
17750 #
17751 # Do we need to explicitly link libc?
17752 #
17753 case "x$archive_cmds_need_lc_F77" in
17754 x|xyes)
17755   # Assume -lc should be added
17756   archive_cmds_need_lc_F77=yes
17757
17758   if test "$enable_shared" = yes && test "$GCC" = yes; then
17759     case $archive_cmds_F77 in
17760     *'~'*)
17761       # FIXME: we may have to deal with multi-command sequences.
17762       ;;
17763     '$CC '*)
17764       # Test whether the compiler implicitly links with -lc since on some
17765       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17766       # to ld, don't add -lc before -lgcc.
17767       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17768 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17769       $rm conftest*
17770       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17771
17772       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773   (eval $ac_compile) 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); } 2>conftest.err; then
17777         soname=conftest
17778         lib=conftest
17779         libobjs=conftest.$ac_objext
17780         deplibs=
17781         wl=$lt_prog_compiler_wl_F77
17782         compiler_flags=-v
17783         linker_flags=-v
17784         verstring=
17785         output_objdir=.
17786         libname=conftest
17787         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17788         allow_undefined_flag_F77=
17789         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17790   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }
17794         then
17795           archive_cmds_need_lc_F77=no
17796         else
17797           archive_cmds_need_lc_F77=yes
17798         fi
17799         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17800       else
17801         cat conftest.err 1>&5
17802       fi
17803       $rm conftest*
17804       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17805 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17806       ;;
17807     esac
17808   fi
17809   ;;
17810 esac
17811
17812 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17813 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17814 library_names_spec=
17815 libname_spec='lib$name'
17816 soname_spec=
17817 shrext_cmds=".so"
17818 postinstall_cmds=
17819 postuninstall_cmds=
17820 finish_cmds=
17821 finish_eval=
17822 shlibpath_var=
17823 shlibpath_overrides_runpath=unknown
17824 version_type=none
17825 dynamic_linker="$host_os ld.so"
17826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17827 if test "$GCC" = yes; then
17828   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17829   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17830     # if the path contains ";" then we assume it to be the separator
17831     # otherwise default to the standard path separator (i.e. ":") - it is
17832     # assumed that no part of a normal pathname contains ";" but that should
17833     # okay in the real world where ";" in dirpaths is itself problematic.
17834     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17835   else
17836     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17837   fi
17838 else
17839   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17840 fi
17841 need_lib_prefix=unknown
17842 hardcode_into_libs=no
17843
17844 # when you set need_version to no, make sure it does not cause -set_version
17845 # flags to be left without arguments
17846 need_version=unknown
17847
17848 case $host_os in
17849 aix3*)
17850   version_type=linux
17851   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17852   shlibpath_var=LIBPATH
17853
17854   # AIX 3 has no versioning support, so we append a major version to the name.
17855   soname_spec='${libname}${release}${shared_ext}$major'
17856   ;;
17857
17858 aix4* | aix5*)
17859   version_type=linux
17860   need_lib_prefix=no
17861   need_version=no
17862   hardcode_into_libs=yes
17863   if test "$host_cpu" = ia64; then
17864     # AIX 5 supports IA64
17865     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17866     shlibpath_var=LD_LIBRARY_PATH
17867   else
17868     # With GCC up to 2.95.x, collect2 would create an import file
17869     # for dependence libraries.  The import file would start with
17870     # the line `#! .'.  This would cause the generated library to
17871     # depend on `.', always an invalid library.  This was fixed in
17872     # development snapshots of GCC prior to 3.0.
17873     case $host_os in
17874       aix4 | aix4.[01] | aix4.[01].*)
17875       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17876            echo ' yes '
17877            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17878         :
17879       else
17880         can_build_shared=no
17881       fi
17882       ;;
17883     esac
17884     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17885     # soname into executable. Probably we can add versioning support to
17886     # collect2, so additional links can be useful in future.
17887     if test "$aix_use_runtimelinking" = yes; then
17888       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17889       # instead of lib<name>.a to let people know that these are not
17890       # typical AIX shared libraries.
17891       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17892     else
17893       # We preserve .a as extension for shared libraries through AIX4.2
17894       # and later when we are not doing run time linking.
17895       library_names_spec='${libname}${release}.a $libname.a'
17896       soname_spec='${libname}${release}${shared_ext}$major'
17897     fi
17898     shlibpath_var=LIBPATH
17899   fi
17900   ;;
17901
17902 amigaos*)
17903   library_names_spec='$libname.ixlibrary $libname.a'
17904   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17905   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'
17906   ;;
17907
17908 beos*)
17909   library_names_spec='${libname}${shared_ext}'
17910   dynamic_linker="$host_os ld.so"
17911   shlibpath_var=LIBRARY_PATH
17912   ;;
17913
17914 bsdi[45]*)
17915   version_type=linux
17916   need_version=no
17917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918   soname_spec='${libname}${release}${shared_ext}$major'
17919   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17920   shlibpath_var=LD_LIBRARY_PATH
17921   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17922   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17923   # the default ld.so.conf also contains /usr/contrib/lib and
17924   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17925   # libtool to hard-code these into programs
17926   ;;
17927
17928 cygwin* | mingw* | pw32*)
17929   version_type=windows
17930   shrext_cmds=".dll"
17931   need_version=no
17932   need_lib_prefix=no
17933
17934   case $GCC,$host_os in
17935   yes,cygwin* | yes,mingw* | yes,pw32*)
17936     library_names_spec='$libname.dll.a'
17937     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17938     postinstall_cmds='base_file=`basename \${file}`~
17939       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17940       dldir=$destdir/`dirname \$dlpath`~
17941       test -d \$dldir || mkdir -p \$dldir~
17942       $install_prog $dir/$dlname \$dldir/$dlname'
17943     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17944       dlpath=$dir/\$dldll~
17945        $rm \$dlpath'
17946     shlibpath_overrides_runpath=yes
17947
17948     case $host_os in
17949     cygwin*)
17950       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17951       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17952       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17953       ;;
17954     mingw*)
17955       # MinGW DLLs use traditional 'lib' prefix
17956       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17957       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17958       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17959         # It is most probably a Windows format PATH printed by
17960         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17961         # path with ; separators, and with drive letters. We can handle the
17962         # drive letters (cygwin fileutils understands them), so leave them,
17963         # especially as we might pass files found there to a mingw objdump,
17964         # which wouldn't understand a cygwinified path. Ahh.
17965         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17966       else
17967         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17968       fi
17969       ;;
17970     pw32*)
17971       # pw32 DLLs use 'pw' prefix rather than 'lib'
17972       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17973       ;;
17974     esac
17975     ;;
17976
17977   *)
17978     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17979     ;;
17980   esac
17981   dynamic_linker='Win32 ld.exe'
17982   # FIXME: first we should search . and the directory the executable is in
17983   shlibpath_var=PATH
17984   ;;
17985
17986 darwin* | rhapsody*)
17987   dynamic_linker="$host_os dyld"
17988   version_type=darwin
17989   need_lib_prefix=no
17990   need_version=no
17991   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17992   soname_spec='${libname}${release}${major}$shared_ext'
17993   shlibpath_overrides_runpath=yes
17994   shlibpath_var=DYLD_LIBRARY_PATH
17995   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17996   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17997   if test "$GCC" = yes; then
17998     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"`
17999   else
18000     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18001   fi
18002   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18003   ;;
18004
18005 dgux*)
18006   version_type=linux
18007   need_lib_prefix=no
18008   need_version=no
18009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18010   soname_spec='${libname}${release}${shared_ext}$major'
18011   shlibpath_var=LD_LIBRARY_PATH
18012   ;;
18013
18014 freebsd1*)
18015   dynamic_linker=no
18016   ;;
18017
18018 kfreebsd*-gnu)
18019   version_type=linux
18020   need_lib_prefix=no
18021   need_version=no
18022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18023   soname_spec='${libname}${release}${shared_ext}$major'
18024   shlibpath_var=LD_LIBRARY_PATH
18025   shlibpath_overrides_runpath=no
18026   hardcode_into_libs=yes
18027   dynamic_linker='GNU ld.so'
18028   ;;
18029
18030 freebsd*)
18031   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18032   version_type=freebsd-$objformat
18033   case $version_type in
18034     freebsd-elf*)
18035       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18036       need_version=no
18037       need_lib_prefix=no
18038       ;;
18039     freebsd-*)
18040       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18041       need_version=yes
18042       ;;
18043   esac
18044   shlibpath_var=LD_LIBRARY_PATH
18045   case $host_os in
18046   freebsd2*)
18047     shlibpath_overrides_runpath=yes
18048     ;;
18049   freebsd3.01* | freebsdelf3.01*)
18050     shlibpath_overrides_runpath=yes
18051     hardcode_into_libs=yes
18052     ;;
18053   *) # from 3.2 on
18054     shlibpath_overrides_runpath=no
18055     hardcode_into_libs=yes
18056     ;;
18057   esac
18058   ;;
18059
18060 gnu*)
18061   version_type=linux
18062   need_lib_prefix=no
18063   need_version=no
18064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18065   soname_spec='${libname}${release}${shared_ext}$major'
18066   shlibpath_var=LD_LIBRARY_PATH
18067   hardcode_into_libs=yes
18068   ;;
18069
18070 hpux9* | hpux10* | hpux11*)
18071   # Give a soname corresponding to the major version so that dld.sl refuses to
18072   # link against other versions.
18073   version_type=sunos
18074   need_lib_prefix=no
18075   need_version=no
18076   case "$host_cpu" in
18077   ia64*)
18078     shrext_cmds='.so'
18079     hardcode_into_libs=yes
18080     dynamic_linker="$host_os dld.so"
18081     shlibpath_var=LD_LIBRARY_PATH
18082     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084     soname_spec='${libname}${release}${shared_ext}$major'
18085     if test "X$HPUX_IA64_MODE" = X32; then
18086       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18087     else
18088       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18089     fi
18090     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18091     ;;
18092    hppa*64*)
18093      shrext_cmds='.sl'
18094      hardcode_into_libs=yes
18095      dynamic_linker="$host_os dld.sl"
18096      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18097      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18098      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18099      soname_spec='${libname}${release}${shared_ext}$major'
18100      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18101      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18102      ;;
18103    *)
18104     shrext_cmds='.sl'
18105     dynamic_linker="$host_os dld.sl"
18106     shlibpath_var=SHLIB_PATH
18107     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109     soname_spec='${libname}${release}${shared_ext}$major'
18110     ;;
18111   esac
18112   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18113   postinstall_cmds='chmod 555 $lib'
18114   ;;
18115
18116 irix5* | irix6* | nonstopux*)
18117   case $host_os in
18118     nonstopux*) version_type=nonstopux ;;
18119     *)
18120         if test "$lt_cv_prog_gnu_ld" = yes; then
18121                 version_type=linux
18122         else
18123                 version_type=irix
18124         fi ;;
18125   esac
18126   need_lib_prefix=no
18127   need_version=no
18128   soname_spec='${libname}${release}${shared_ext}$major'
18129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18130   case $host_os in
18131   irix5* | nonstopux*)
18132     libsuff= shlibsuff=
18133     ;;
18134   *)
18135     case $LD in # libtool.m4 will add one of these switches to LD
18136     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18137       libsuff= shlibsuff= libmagic=32-bit;;
18138     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18139       libsuff=32 shlibsuff=N32 libmagic=N32;;
18140     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18141       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18142     *) libsuff= shlibsuff= libmagic=never-match;;
18143     esac
18144     ;;
18145   esac
18146   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18147   shlibpath_overrides_runpath=no
18148   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18149   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18150   hardcode_into_libs=yes
18151   ;;
18152
18153 # No shared lib support for Linux oldld, aout, or coff.
18154 linux*oldld* | linux*aout* | linux*coff*)
18155   dynamic_linker=no
18156   ;;
18157
18158 # This must be Linux ELF.
18159 linux*)
18160   version_type=linux
18161   need_lib_prefix=no
18162   need_version=no
18163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164   soname_spec='${libname}${release}${shared_ext}$major'
18165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18166   shlibpath_var=LD_LIBRARY_PATH
18167   shlibpath_overrides_runpath=no
18168   # This implies no fast_install, which is unacceptable.
18169   # Some rework will be needed to allow for fast_install
18170   # before this can be enabled.
18171   hardcode_into_libs=yes
18172
18173   # Append ld.so.conf contents to the search path
18174   if test -f /etc/ld.so.conf; then
18175     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18176     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18177   fi
18178
18179   # We used to test for /lib/ld.so.1 and disable shared libraries on
18180   # powerpc, because MkLinux only supported shared libraries with the
18181   # GNU dynamic linker.  Since this was broken with cross compilers,
18182   # most powerpc-linux boxes support dynamic linking these days and
18183   # people can always --disable-shared, the test was removed, and we
18184   # assume the GNU/Linux dynamic linker is in use.
18185   dynamic_linker='GNU/Linux ld.so'
18186   ;;
18187
18188 knetbsd*-gnu)
18189   version_type=linux
18190   need_lib_prefix=no
18191   need_version=no
18192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18193   soname_spec='${libname}${release}${shared_ext}$major'
18194   shlibpath_var=LD_LIBRARY_PATH
18195   shlibpath_overrides_runpath=no
18196   hardcode_into_libs=yes
18197   dynamic_linker='GNU ld.so'
18198   ;;
18199
18200 netbsd*)
18201   version_type=sunos
18202   need_lib_prefix=no
18203   need_version=no
18204   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18206     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18207     dynamic_linker='NetBSD (a.out) ld.so'
18208   else
18209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18210     soname_spec='${libname}${release}${shared_ext}$major'
18211     dynamic_linker='NetBSD ld.elf_so'
18212   fi
18213   shlibpath_var=LD_LIBRARY_PATH
18214   shlibpath_overrides_runpath=yes
18215   hardcode_into_libs=yes
18216   ;;
18217
18218 newsos6)
18219   version_type=linux
18220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221   shlibpath_var=LD_LIBRARY_PATH
18222   shlibpath_overrides_runpath=yes
18223   ;;
18224
18225 nto-qnx*)
18226   version_type=linux
18227   need_lib_prefix=no
18228   need_version=no
18229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18230   soname_spec='${libname}${release}${shared_ext}$major'
18231   shlibpath_var=LD_LIBRARY_PATH
18232   shlibpath_overrides_runpath=yes
18233   ;;
18234
18235 openbsd*)
18236   version_type=sunos
18237   need_lib_prefix=no
18238   need_version=no
18239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18241   shlibpath_var=LD_LIBRARY_PATH
18242   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18243     case $host_os in
18244       openbsd2.[89] | openbsd2.[89].*)
18245         shlibpath_overrides_runpath=no
18246         ;;
18247       *)
18248         shlibpath_overrides_runpath=yes
18249         ;;
18250       esac
18251   else
18252     shlibpath_overrides_runpath=yes
18253   fi
18254   ;;
18255
18256 os2*)
18257   libname_spec='$name'
18258   shrext_cmds=".dll"
18259   need_lib_prefix=no
18260   library_names_spec='$libname${shared_ext} $libname.a'
18261   dynamic_linker='OS/2 ld.exe'
18262   shlibpath_var=LIBPATH
18263   ;;
18264
18265 osf3* | osf4* | osf5*)
18266   version_type=osf
18267   need_lib_prefix=no
18268   need_version=no
18269   soname_spec='${libname}${release}${shared_ext}$major'
18270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271   shlibpath_var=LD_LIBRARY_PATH
18272   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18273   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18274   ;;
18275
18276 sco3.2v5*)
18277   version_type=osf
18278   soname_spec='${libname}${release}${shared_ext}$major'
18279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18280   shlibpath_var=LD_LIBRARY_PATH
18281   ;;
18282
18283 solaris*)
18284   version_type=linux
18285   need_lib_prefix=no
18286   need_version=no
18287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18288   soname_spec='${libname}${release}${shared_ext}$major'
18289   shlibpath_var=LD_LIBRARY_PATH
18290   shlibpath_overrides_runpath=yes
18291   hardcode_into_libs=yes
18292   # ldd complains unless libraries are executable
18293   postinstall_cmds='chmod +x $lib'
18294   ;;
18295
18296 sunos4*)
18297   version_type=sunos
18298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18299   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18300   shlibpath_var=LD_LIBRARY_PATH
18301   shlibpath_overrides_runpath=yes
18302   if test "$with_gnu_ld" = yes; then
18303     need_lib_prefix=no
18304   fi
18305   need_version=yes
18306   ;;
18307
18308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18309   version_type=linux
18310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18311   soname_spec='${libname}${release}${shared_ext}$major'
18312   shlibpath_var=LD_LIBRARY_PATH
18313   case $host_vendor in
18314     sni)
18315       shlibpath_overrides_runpath=no
18316       need_lib_prefix=no
18317       export_dynamic_flag_spec='${wl}-Blargedynsym'
18318       runpath_var=LD_RUN_PATH
18319       ;;
18320     siemens)
18321       need_lib_prefix=no
18322       ;;
18323     motorola)
18324       need_lib_prefix=no
18325       need_version=no
18326       shlibpath_overrides_runpath=no
18327       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18328       ;;
18329   esac
18330   ;;
18331
18332 sysv4*MP*)
18333   if test -d /usr/nec ;then
18334     version_type=linux
18335     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18336     soname_spec='$libname${shared_ext}.$major'
18337     shlibpath_var=LD_LIBRARY_PATH
18338   fi
18339   ;;
18340
18341 uts4*)
18342   version_type=linux
18343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18344   soname_spec='${libname}${release}${shared_ext}$major'
18345   shlibpath_var=LD_LIBRARY_PATH
18346   ;;
18347
18348 *)
18349   dynamic_linker=no
18350   ;;
18351 esac
18352 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18353 echo "${ECHO_T}$dynamic_linker" >&6
18354 test "$dynamic_linker" = no && can_build_shared=no
18355
18356 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18357 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18358 hardcode_action_F77=
18359 if test -n "$hardcode_libdir_flag_spec_F77" || \
18360    test -n "$runpath_var_F77" || \
18361    test "X$hardcode_automatic_F77" = "Xyes" ; then
18362
18363   # We can hardcode non-existant directories.
18364   if test "$hardcode_direct_F77" != no &&
18365      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18366      # have to relink, otherwise we might link with an installed library
18367      # when we should be linking with a yet-to-be-installed one
18368      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18369      test "$hardcode_minus_L_F77" != no; then
18370     # Linking always hardcodes the temporary library directory.
18371     hardcode_action_F77=relink
18372   else
18373     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18374     hardcode_action_F77=immediate
18375   fi
18376 else
18377   # We cannot hardcode anything, or else we can only hardcode existing
18378   # directories.
18379   hardcode_action_F77=unsupported
18380 fi
18381 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18382 echo "${ECHO_T}$hardcode_action_F77" >&6
18383
18384 if test "$hardcode_action_F77" = relink; then
18385   # Fast installation is not supported
18386   enable_fast_install=no
18387 elif test "$shlibpath_overrides_runpath" = yes ||
18388      test "$enable_shared" = no; then
18389   # Fast installation is not necessary
18390   enable_fast_install=needless
18391 fi
18392
18393 striplib=
18394 old_striplib=
18395 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18396 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18397 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18398   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18399   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18400   echo "$as_me:$LINENO: result: yes" >&5
18401 echo "${ECHO_T}yes" >&6
18402 else
18403 # FIXME - insert some real tests, host_os isn't really good enough
18404   case $host_os in
18405    darwin*)
18406        if test -n "$STRIP" ; then
18407          striplib="$STRIP -x"
18408          echo "$as_me:$LINENO: result: yes" >&5
18409 echo "${ECHO_T}yes" >&6
18410        else
18411   echo "$as_me:$LINENO: result: no" >&5
18412 echo "${ECHO_T}no" >&6
18413 fi
18414        ;;
18415    *)
18416   echo "$as_me:$LINENO: result: no" >&5
18417 echo "${ECHO_T}no" >&6
18418     ;;
18419   esac
18420 fi
18421
18422
18423
18424 # The else clause should only fire when bootstrapping the
18425 # libtool distribution, otherwise you forgot to ship ltmain.sh
18426 # with your package, and you will get complaints that there are
18427 # no rules to generate ltmain.sh.
18428 if test -f "$ltmain"; then
18429   # See if we are running on zsh, and set the options which allow our commands through
18430   # without removal of \ escapes.
18431   if test -n "${ZSH_VERSION+set}" ; then
18432     setopt NO_GLOB_SUBST
18433   fi
18434   # Now quote all the things that may contain metacharacters while being
18435   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18436   # variables and quote the copies for generation of the libtool script.
18437   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18438     SED SHELL STRIP \
18439     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18440     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18441     deplibs_check_method reload_flag reload_cmds need_locks \
18442     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18443     lt_cv_sys_global_symbol_to_c_name_address \
18444     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18445     old_postinstall_cmds old_postuninstall_cmds \
18446     compiler_F77 \
18447     CC_F77 \
18448     LD_F77 \
18449     lt_prog_compiler_wl_F77 \
18450     lt_prog_compiler_pic_F77 \
18451     lt_prog_compiler_static_F77 \
18452     lt_prog_compiler_no_builtin_flag_F77 \
18453     export_dynamic_flag_spec_F77 \
18454     thread_safe_flag_spec_F77 \
18455     whole_archive_flag_spec_F77 \
18456     enable_shared_with_static_runtimes_F77 \
18457     old_archive_cmds_F77 \
18458     old_archive_from_new_cmds_F77 \
18459     predep_objects_F77 \
18460     postdep_objects_F77 \
18461     predeps_F77 \
18462     postdeps_F77 \
18463     compiler_lib_search_path_F77 \
18464     archive_cmds_F77 \
18465     archive_expsym_cmds_F77 \
18466     postinstall_cmds_F77 \
18467     postuninstall_cmds_F77 \
18468     old_archive_from_expsyms_cmds_F77 \
18469     allow_undefined_flag_F77 \
18470     no_undefined_flag_F77 \
18471     export_symbols_cmds_F77 \
18472     hardcode_libdir_flag_spec_F77 \
18473     hardcode_libdir_flag_spec_ld_F77 \
18474     hardcode_libdir_separator_F77 \
18475     hardcode_automatic_F77 \
18476     module_cmds_F77 \
18477     module_expsym_cmds_F77 \
18478     lt_cv_prog_compiler_c_o_F77 \
18479     exclude_expsyms_F77 \
18480     include_expsyms_F77; do
18481
18482     case $var in
18483     old_archive_cmds_F77 | \
18484     old_archive_from_new_cmds_F77 | \
18485     archive_cmds_F77 | \
18486     archive_expsym_cmds_F77 | \
18487     module_cmds_F77 | \
18488     module_expsym_cmds_F77 | \
18489     old_archive_from_expsyms_cmds_F77 | \
18490     export_symbols_cmds_F77 | \
18491     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18492     postinstall_cmds | postuninstall_cmds | \
18493     old_postinstall_cmds | old_postuninstall_cmds | \
18494     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18495       # Double-quote double-evaled strings.
18496       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18497       ;;
18498     *)
18499       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18500       ;;
18501     esac
18502   done
18503
18504   case $lt_echo in
18505   *'\$0 --fallback-echo"')
18506     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18507     ;;
18508   esac
18509
18510 cfgfile="$ofile"
18511
18512   cat <<__EOF__ >> "$cfgfile"
18513 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18514
18515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18516
18517 # Shell to use when invoking shell scripts.
18518 SHELL=$lt_SHELL
18519
18520 # Whether or not to build shared libraries.
18521 build_libtool_libs=$enable_shared
18522
18523 # Whether or not to build static libraries.
18524 build_old_libs=$enable_static
18525
18526 # Whether or not to add -lc for building shared libraries.
18527 build_libtool_need_lc=$archive_cmds_need_lc_F77
18528
18529 # Whether or not to disallow shared libs when runtime libs are static
18530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18531
18532 # Whether or not to optimize for fast installation.
18533 fast_install=$enable_fast_install
18534
18535 # The host system.
18536 host_alias=$host_alias
18537 host=$host
18538
18539 # An echo program that does not interpret backslashes.
18540 echo=$lt_echo
18541
18542 # The archiver.
18543 AR=$lt_AR
18544 AR_FLAGS=$lt_AR_FLAGS
18545
18546 # A C compiler.
18547 LTCC=$lt_LTCC
18548
18549 # A language-specific compiler.
18550 CC=$lt_compiler_F77
18551
18552 # Is the compiler the GNU C compiler?
18553 with_gcc=$GCC_F77
18554
18555 # An ERE matcher.
18556 EGREP=$lt_EGREP
18557
18558 # The linker used to build libraries.
18559 LD=$lt_LD_F77
18560
18561 # Whether we need hard or soft links.
18562 LN_S=$lt_LN_S
18563
18564 # A BSD-compatible nm program.
18565 NM=$lt_NM
18566
18567 # A symbol stripping program
18568 STRIP=$lt_STRIP
18569
18570 # Used to examine libraries when file_magic_cmd begins "file"
18571 MAGIC_CMD=$MAGIC_CMD
18572
18573 # Used on cygwin: DLL creation program.
18574 DLLTOOL="$DLLTOOL"
18575
18576 # Used on cygwin: object dumper.
18577 OBJDUMP="$OBJDUMP"
18578
18579 # Used on cygwin: assembler.
18580 AS="$AS"
18581
18582 # The name of the directory that contains temporary libtool files.
18583 objdir=$objdir
18584
18585 # How to create reloadable object files.
18586 reload_flag=$lt_reload_flag
18587 reload_cmds=$lt_reload_cmds
18588
18589 # How to pass a linker flag through the compiler.
18590 wl=$lt_lt_prog_compiler_wl_F77
18591
18592 # Object file suffix (normally "o").
18593 objext="$ac_objext"
18594
18595 # Old archive suffix (normally "a").
18596 libext="$libext"
18597
18598 # Shared library suffix (normally ".so").
18599 shrext_cmds='$shrext_cmds'
18600
18601 # Executable file suffix (normally "").
18602 exeext="$exeext"
18603
18604 # Additional compiler flags for building library objects.
18605 pic_flag=$lt_lt_prog_compiler_pic_F77
18606 pic_mode=$pic_mode
18607
18608 # What is the maximum length of a command?
18609 max_cmd_len=$lt_cv_sys_max_cmd_len
18610
18611 # Does compiler simultaneously support -c and -o options?
18612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18613
18614 # Must we lock files when doing compilation ?
18615 need_locks=$lt_need_locks
18616
18617 # Do we need the lib prefix for modules?
18618 need_lib_prefix=$need_lib_prefix
18619
18620 # Do we need a version for libraries?
18621 need_version=$need_version
18622
18623 # Whether dlopen is supported.
18624 dlopen_support=$enable_dlopen
18625
18626 # Whether dlopen of programs is supported.
18627 dlopen_self=$enable_dlopen_self
18628
18629 # Whether dlopen of statically linked programs is supported.
18630 dlopen_self_static=$enable_dlopen_self_static
18631
18632 # Compiler flag to prevent dynamic linking.
18633 link_static_flag=$lt_lt_prog_compiler_static_F77
18634
18635 # Compiler flag to turn off builtin functions.
18636 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18637
18638 # Compiler flag to allow reflexive dlopens.
18639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18640
18641 # Compiler flag to generate shared objects directly from archives.
18642 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18643
18644 # Compiler flag to generate thread-safe objects.
18645 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18646
18647 # Library versioning type.
18648 version_type=$version_type
18649
18650 # Format of library name prefix.
18651 libname_spec=$lt_libname_spec
18652
18653 # List of archive names.  First name is the real one, the rest are links.
18654 # The last name is the one that the linker finds with -lNAME.
18655 library_names_spec=$lt_library_names_spec
18656
18657 # The coded name of the library, if different from the real name.
18658 soname_spec=$lt_soname_spec
18659
18660 # Commands used to build and install an old-style archive.
18661 RANLIB=$lt_RANLIB
18662 old_archive_cmds=$lt_old_archive_cmds_F77
18663 old_postinstall_cmds=$lt_old_postinstall_cmds
18664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18665
18666 # Create an old-style archive from a shared archive.
18667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18668
18669 # Create a temporary old-style archive to link instead of a shared archive.
18670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18671
18672 # Commands used to build and install a shared archive.
18673 archive_cmds=$lt_archive_cmds_F77
18674 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18675 postinstall_cmds=$lt_postinstall_cmds
18676 postuninstall_cmds=$lt_postuninstall_cmds
18677
18678 # Commands used to build a loadable module (assumed same as above if empty)
18679 module_cmds=$lt_module_cmds_F77
18680 module_expsym_cmds=$lt_module_expsym_cmds_F77
18681
18682 # Commands to strip libraries.
18683 old_striplib=$lt_old_striplib
18684 striplib=$lt_striplib
18685
18686 # Dependencies to place before the objects being linked to create a
18687 # shared library.
18688 predep_objects=$lt_predep_objects_F77
18689
18690 # Dependencies to place after the objects being linked to create a
18691 # shared library.
18692 postdep_objects=$lt_postdep_objects_F77
18693
18694 # Dependencies to place before the objects being linked to create a
18695 # shared library.
18696 predeps=$lt_predeps_F77
18697
18698 # Dependencies to place after the objects being linked to create a
18699 # shared library.
18700 postdeps=$lt_postdeps_F77
18701
18702 # The library search path used internally by the compiler when linking
18703 # a shared library.
18704 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18705
18706 # Method to check whether dependent libraries are shared objects.
18707 deplibs_check_method=$lt_deplibs_check_method
18708
18709 # Command to use when deplibs_check_method == file_magic.
18710 file_magic_cmd=$lt_file_magic_cmd
18711
18712 # Flag that allows shared libraries with undefined symbols to be built.
18713 allow_undefined_flag=$lt_allow_undefined_flag_F77
18714
18715 # Flag that forces no undefined symbols.
18716 no_undefined_flag=$lt_no_undefined_flag_F77
18717
18718 # Commands used to finish a libtool library installation in a directory.
18719 finish_cmds=$lt_finish_cmds
18720
18721 # Same as above, but a single script fragment to be evaled but not shown.
18722 finish_eval=$lt_finish_eval
18723
18724 # Take the output of nm and produce a listing of raw symbols and C names.
18725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18726
18727 # Transform the output of nm in a proper C declaration
18728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18729
18730 # Transform the output of nm in a C name address pair
18731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18732
18733 # This is the shared library runtime path variable.
18734 runpath_var=$runpath_var
18735
18736 # This is the shared library path variable.
18737 shlibpath_var=$shlibpath_var
18738
18739 # Is shlibpath searched before the hard-coded library search path?
18740 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18741
18742 # How to hardcode a shared library path into an executable.
18743 hardcode_action=$hardcode_action_F77
18744
18745 # Whether we should hardcode library paths into libraries.
18746 hardcode_into_libs=$hardcode_into_libs
18747
18748 # Flag to hardcode \$libdir into a binary during linking.
18749 # This must work even if \$libdir does not exist.
18750 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18751
18752 # If ld is used when linking, flag to hardcode \$libdir into
18753 # a binary during linking. This must work even if \$libdir does
18754 # not exist.
18755 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18756
18757 # Whether we need a single -rpath flag with a separated argument.
18758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18759
18760 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18761 # resulting binary.
18762 hardcode_direct=$hardcode_direct_F77
18763
18764 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18765 # resulting binary.
18766 hardcode_minus_L=$hardcode_minus_L_F77
18767
18768 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18769 # the resulting binary.
18770 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18771
18772 # Set to yes if building a shared library automatically hardcodes DIR into the library
18773 # and all subsequent libraries and executables linked against it.
18774 hardcode_automatic=$hardcode_automatic_F77
18775
18776 # Variables whose values should be saved in libtool wrapper scripts and
18777 # restored at relink time.
18778 variables_saved_for_relink="$variables_saved_for_relink"
18779
18780 # Whether libtool must link a program against all its dependency libraries.
18781 link_all_deplibs=$link_all_deplibs_F77
18782
18783 # Compile-time system search path for libraries
18784 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18785
18786 # Run-time system search path for libraries
18787 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18788
18789 # Fix the shell variable \$srcfile for the compiler.
18790 fix_srcfile_path="$fix_srcfile_path_F77"
18791
18792 # Set to yes if exported symbols are required.
18793 always_export_symbols=$always_export_symbols_F77
18794
18795 # The commands to list exported symbols.
18796 export_symbols_cmds=$lt_export_symbols_cmds_F77
18797
18798 # The commands to extract the exported symbol list from a shared archive.
18799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18800
18801 # Symbols that should not be listed in the preloaded symbols.
18802 exclude_expsyms=$lt_exclude_expsyms_F77
18803
18804 # Symbols that must always be exported.
18805 include_expsyms=$lt_include_expsyms_F77
18806
18807 # ### END LIBTOOL TAG CONFIG: $tagname
18808
18809 __EOF__
18810
18811
18812 else
18813   # If there is no Makefile yet, we rely on a make rule to execute
18814   # `config.status --recheck' to rerun these tests and create the
18815   # libtool script then.
18816   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18817   if test -f "$ltmain_in"; then
18818     test -f Makefile && make "$ltmain"
18819   fi
18820 fi
18821
18822
18823 ac_ext=c
18824 ac_cpp='$CPP $CPPFLAGS'
18825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18828
18829 CC="$lt_save_CC"
18830
18831         else
18832           tagname=""
18833         fi
18834         ;;
18835
18836       GCJ)
18837         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18838
18839
18840
18841 # Source file extension for Java test sources.
18842 ac_ext=java
18843
18844 # Object file extension for compiled Java test sources.
18845 objext=o
18846 objext_GCJ=$objext
18847
18848 # Code to be used in simple compile tests
18849 lt_simple_compile_test_code="class foo {}\n"
18850
18851 # Code to be used in simple link tests
18852 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18853
18854 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18855
18856 # If no C compiler was specified, use CC.
18857 LTCC=${LTCC-"$CC"}
18858
18859 # Allow CC to be a program name with arguments.
18860 compiler=$CC
18861
18862
18863 # Allow CC to be a program name with arguments.
18864 lt_save_CC="$CC"
18865 CC=${GCJ-"gcj"}
18866 compiler=$CC
18867 compiler_GCJ=$CC
18868
18869 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18870 archive_cmds_need_lc_GCJ=no
18871
18872 ## CAVEAT EMPTOR:
18873 ## There is no encapsulation within the following macros, do not change
18874 ## the running order or otherwise move them around unless you know exactly
18875 ## what you are doing...
18876
18877 lt_prog_compiler_no_builtin_flag_GCJ=
18878
18879 if test "$GCC" = yes; then
18880   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18881
18882
18883 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18884 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18885 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18886   echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888   lt_cv_prog_compiler_rtti_exceptions=no
18889   ac_outfile=conftest.$ac_objext
18890    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18891    lt_compiler_flag="-fno-rtti -fno-exceptions"
18892    # Insert the option either (1) after the last *FLAGS variable, or
18893    # (2) before a word containing "conftest.", or (3) at the end.
18894    # Note that $ac_compile itself does not contain backslashes and begins
18895    # with a dollar sign (not a hyphen), so the echo should work correctly.
18896    # The option is referenced via a variable to avoid confusing sed.
18897    lt_compile=`echo "$ac_compile" | $SED \
18898    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18900    -e 's:$: $lt_compiler_flag:'`
18901    (eval echo "\"\$as_me:18901: $lt_compile\"" >&5)
18902    (eval "$lt_compile" 2>conftest.err)
18903    ac_status=$?
18904    cat conftest.err >&5
18905    echo "$as_me:18905: \$? = $ac_status" >&5
18906    if (exit $ac_status) && test -s "$ac_outfile"; then
18907      # The compiler can only warn and ignore the option if not recognized
18908      # So say no if there are warnings
18909      if test ! -s conftest.err; then
18910        lt_cv_prog_compiler_rtti_exceptions=yes
18911      fi
18912    fi
18913    $rm conftest*
18914
18915 fi
18916 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18917 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18918
18919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18920     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18921 else
18922     :
18923 fi
18924
18925 fi
18926
18927 lt_prog_compiler_wl_GCJ=
18928 lt_prog_compiler_pic_GCJ=
18929 lt_prog_compiler_static_GCJ=
18930
18931 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18932 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18933
18934   if test "$GCC" = yes; then
18935     lt_prog_compiler_wl_GCJ='-Wl,'
18936     lt_prog_compiler_static_GCJ='-static'
18937
18938     case $host_os in
18939       aix*)
18940       # All AIX code is PIC.
18941       if test "$host_cpu" = ia64; then
18942         # AIX 5 now supports IA64 processor
18943         lt_prog_compiler_static_GCJ='-Bstatic'
18944       fi
18945       ;;
18946
18947     amigaos*)
18948       # FIXME: we need at least 68020 code to build shared libraries, but
18949       # adding the `-m68020' flag to GCC prevents building anything better,
18950       # like `-m68040'.
18951       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18952       ;;
18953
18954     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18955       # PIC is the default for these OSes.
18956       ;;
18957
18958     mingw* | pw32* | os2*)
18959       # This hack is so that the source file can tell whether it is being
18960       # built for inclusion in a dll (and should export symbols for example).
18961       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18962       ;;
18963
18964     darwin* | rhapsody*)
18965       # PIC is the default on this platform
18966       # Common symbols not allowed in MH_DYLIB files
18967       lt_prog_compiler_pic_GCJ='-fno-common'
18968       ;;
18969
18970     msdosdjgpp*)
18971       # Just because we use GCC doesn't mean we suddenly get shared libraries
18972       # on systems that don't support them.
18973       lt_prog_compiler_can_build_shared_GCJ=no
18974       enable_shared=no
18975       ;;
18976
18977     sysv4*MP*)
18978       if test -d /usr/nec; then
18979         lt_prog_compiler_pic_GCJ=-Kconform_pic
18980       fi
18981       ;;
18982
18983     hpux*)
18984       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18985       # not for PA HP-UX.
18986       case "$host_cpu" in
18987       hppa*64*|ia64*)
18988         # +Z the default
18989         ;;
18990       *)
18991         lt_prog_compiler_pic_GCJ='-fPIC'
18992         ;;
18993       esac
18994       ;;
18995
18996     *)
18997       lt_prog_compiler_pic_GCJ='-fPIC'
18998       ;;
18999     esac
19000   else
19001     # PORTME Check for flag to pass linker flags through the system compiler.
19002     case $host_os in
19003     aix*)
19004       lt_prog_compiler_wl_GCJ='-Wl,'
19005       if test "$host_cpu" = ia64; then
19006         # AIX 5 now supports IA64 processor
19007         lt_prog_compiler_static_GCJ='-Bstatic'
19008       else
19009         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19010       fi
19011       ;;
19012       darwin*)
19013         # PIC is the default on this platform
19014         # Common symbols not allowed in MH_DYLIB files
19015        case "$cc_basename" in
19016          xlc*)
19017          lt_prog_compiler_pic_GCJ='-qnocommon'
19018          lt_prog_compiler_wl_GCJ='-Wl,'
19019          ;;
19020        esac
19021        ;;
19022
19023     mingw* | pw32* | os2*)
19024       # This hack is so that the source file can tell whether it is being
19025       # built for inclusion in a dll (and should export symbols for example).
19026       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19027       ;;
19028
19029     hpux9* | hpux10* | hpux11*)
19030       lt_prog_compiler_wl_GCJ='-Wl,'
19031       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19032       # not for PA HP-UX.
19033       case "$host_cpu" in
19034       hppa*64*|ia64*)
19035         # +Z the default
19036         ;;
19037       *)
19038         lt_prog_compiler_pic_GCJ='+Z'
19039         ;;
19040       esac
19041       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19042       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19043       ;;
19044
19045     irix5* | irix6* | nonstopux*)
19046       lt_prog_compiler_wl_GCJ='-Wl,'
19047       # PIC (with -KPIC) is the default.
19048       lt_prog_compiler_static_GCJ='-non_shared'
19049       ;;
19050
19051     newsos6)
19052       lt_prog_compiler_pic_GCJ='-KPIC'
19053       lt_prog_compiler_static_GCJ='-Bstatic'
19054       ;;
19055
19056     linux*)
19057       case $CC in
19058       icc* | ecc*)
19059         lt_prog_compiler_wl_GCJ='-Wl,'
19060         lt_prog_compiler_pic_GCJ='-KPIC'
19061         lt_prog_compiler_static_GCJ='-static'
19062         ;;
19063       ccc*)
19064         lt_prog_compiler_wl_GCJ='-Wl,'
19065         # All Alpha code is PIC.
19066         lt_prog_compiler_static_GCJ='-non_shared'
19067         ;;
19068       esac
19069       ;;
19070
19071     osf3* | osf4* | osf5*)
19072       lt_prog_compiler_wl_GCJ='-Wl,'
19073       # All OSF/1 code is PIC.
19074       lt_prog_compiler_static_GCJ='-non_shared'
19075       ;;
19076
19077     sco3.2v5*)
19078       lt_prog_compiler_pic_GCJ='-Kpic'
19079       lt_prog_compiler_static_GCJ='-dn'
19080       ;;
19081
19082     solaris*)
19083       lt_prog_compiler_wl_GCJ='-Wl,'
19084       lt_prog_compiler_pic_GCJ='-KPIC'
19085       lt_prog_compiler_static_GCJ='-Bstatic'
19086       ;;
19087
19088     sunos4*)
19089       lt_prog_compiler_wl_GCJ='-Qoption ld '
19090       lt_prog_compiler_pic_GCJ='-PIC'
19091       lt_prog_compiler_static_GCJ='-Bstatic'
19092       ;;
19093
19094     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19095       lt_prog_compiler_wl_GCJ='-Wl,'
19096       lt_prog_compiler_pic_GCJ='-KPIC'
19097       lt_prog_compiler_static_GCJ='-Bstatic'
19098       ;;
19099
19100     sysv4*MP*)
19101       if test -d /usr/nec ;then
19102         lt_prog_compiler_pic_GCJ='-Kconform_pic'
19103         lt_prog_compiler_static_GCJ='-Bstatic'
19104       fi
19105       ;;
19106
19107     uts4*)
19108       lt_prog_compiler_pic_GCJ='-pic'
19109       lt_prog_compiler_static_GCJ='-Bstatic'
19110       ;;
19111
19112     *)
19113       lt_prog_compiler_can_build_shared_GCJ=no
19114       ;;
19115     esac
19116   fi
19117
19118 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19119 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
19120
19121 #
19122 # Check to make sure the PIC flag actually works.
19123 #
19124 if test -n "$lt_prog_compiler_pic_GCJ"; then
19125
19126 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19127 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
19128 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19129   echo $ECHO_N "(cached) $ECHO_C" >&6
19130 else
19131   lt_prog_compiler_pic_works_GCJ=no
19132   ac_outfile=conftest.$ac_objext
19133    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19134    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19135    # Insert the option either (1) after the last *FLAGS variable, or
19136    # (2) before a word containing "conftest.", or (3) at the end.
19137    # Note that $ac_compile itself does not contain backslashes and begins
19138    # with a dollar sign (not a hyphen), so the echo should work correctly.
19139    # The option is referenced via a variable to avoid confusing sed.
19140    lt_compile=`echo "$ac_compile" | $SED \
19141    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19142    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19143    -e 's:$: $lt_compiler_flag:'`
19144    (eval echo "\"\$as_me:19144: $lt_compile\"" >&5)
19145    (eval "$lt_compile" 2>conftest.err)
19146    ac_status=$?
19147    cat conftest.err >&5
19148    echo "$as_me:19148: \$? = $ac_status" >&5
19149    if (exit $ac_status) && test -s "$ac_outfile"; then
19150      # The compiler can only warn and ignore the option if not recognized
19151      # So say no if there are warnings
19152      if test ! -s conftest.err; then
19153        lt_prog_compiler_pic_works_GCJ=yes
19154      fi
19155    fi
19156    $rm conftest*
19157
19158 fi
19159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19160 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
19161
19162 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19163     case $lt_prog_compiler_pic_GCJ in
19164      "" | " "*) ;;
19165      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19166      esac
19167 else
19168     lt_prog_compiler_pic_GCJ=
19169      lt_prog_compiler_can_build_shared_GCJ=no
19170 fi
19171
19172 fi
19173 case "$host_os" in
19174   # For platforms which do not support PIC, -DPIC is meaningless:
19175   *djgpp*)
19176     lt_prog_compiler_pic_GCJ=
19177     ;;
19178   *)
19179     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19180     ;;
19181 esac
19182
19183 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19184 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19185 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   lt_cv_prog_compiler_c_o_GCJ=no
19189    $rm -r conftest 2>/dev/null
19190    mkdir conftest
19191    cd conftest
19192    mkdir out
19193    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19194
19195    lt_compiler_flag="-o out/conftest2.$ac_objext"
19196    # Insert the option either (1) after the last *FLAGS variable, or
19197    # (2) before a word containing "conftest.", or (3) at the end.
19198    # Note that $ac_compile itself does not contain backslashes and begins
19199    # with a dollar sign (not a hyphen), so the echo should work correctly.
19200    lt_compile=`echo "$ac_compile" | $SED \
19201    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19202    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19203    -e 's:$: $lt_compiler_flag:'`
19204    (eval echo "\"\$as_me:19204: $lt_compile\"" >&5)
19205    (eval "$lt_compile" 2>out/conftest.err)
19206    ac_status=$?
19207    cat out/conftest.err >&5
19208    echo "$as_me:19208: \$? = $ac_status" >&5
19209    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19210    then
19211      # The compiler can only warn and ignore the option if not recognized
19212      # So say no if there are warnings
19213      if test ! -s out/conftest.err; then
19214        lt_cv_prog_compiler_c_o_GCJ=yes
19215      fi
19216    fi
19217    chmod u+w .
19218    $rm conftest*
19219    # SGI C++ compiler will create directory out/ii_files/ for
19220    # template instantiation
19221    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19222    $rm out/* && rmdir out
19223    cd ..
19224    rmdir conftest
19225    $rm conftest*
19226
19227 fi
19228 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19229 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19230
19231
19232 hard_links="nottested"
19233 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19234   # do not overwrite the value of need_locks provided by the user
19235   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19236 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19237   hard_links=yes
19238   $rm conftest*
19239   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19240   touch conftest.a
19241   ln conftest.a conftest.b 2>&5 || hard_links=no
19242   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19243   echo "$as_me:$LINENO: result: $hard_links" >&5
19244 echo "${ECHO_T}$hard_links" >&6
19245   if test "$hard_links" = no; then
19246     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19247 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19248     need_locks=warn
19249   fi
19250 else
19251   need_locks=no
19252 fi
19253
19254 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19255 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19256
19257   runpath_var=
19258   allow_undefined_flag_GCJ=
19259   enable_shared_with_static_runtimes_GCJ=no
19260   archive_cmds_GCJ=
19261   archive_expsym_cmds_GCJ=
19262   old_archive_From_new_cmds_GCJ=
19263   old_archive_from_expsyms_cmds_GCJ=
19264   export_dynamic_flag_spec_GCJ=
19265   whole_archive_flag_spec_GCJ=
19266   thread_safe_flag_spec_GCJ=
19267   hardcode_libdir_flag_spec_GCJ=
19268   hardcode_libdir_flag_spec_ld_GCJ=
19269   hardcode_libdir_separator_GCJ=
19270   hardcode_direct_GCJ=no
19271   hardcode_minus_L_GCJ=no
19272   hardcode_shlibpath_var_GCJ=unsupported
19273   link_all_deplibs_GCJ=unknown
19274   hardcode_automatic_GCJ=no
19275   module_cmds_GCJ=
19276   module_expsym_cmds_GCJ=
19277   always_export_symbols_GCJ=no
19278   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19279   # include_expsyms should be a list of space-separated symbols to be *always*
19280   # included in the symbol list
19281   include_expsyms_GCJ=
19282   # exclude_expsyms can be an extended regexp of symbols to exclude
19283   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19284   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19285   # as well as any symbol that contains `d'.
19286   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19287   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19288   # platforms (ab)use it in PIC code, but their linkers get confused if
19289   # the symbol is explicitly referenced.  Since portable code cannot
19290   # rely on this symbol name, it's probably fine to never include it in
19291   # preloaded symbol tables.
19292   extract_expsyms_cmds=
19293
19294   case $host_os in
19295   cygwin* | mingw* | pw32*)
19296     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19297     # When not using gcc, we currently assume that we are using
19298     # Microsoft Visual C++.
19299     if test "$GCC" != yes; then
19300       with_gnu_ld=no
19301     fi
19302     ;;
19303   openbsd*)
19304     with_gnu_ld=no
19305     ;;
19306   esac
19307
19308   ld_shlibs_GCJ=yes
19309   if test "$with_gnu_ld" = yes; then
19310     # If archive_cmds runs LD, not CC, wlarc should be empty
19311     wlarc='${wl}'
19312
19313     # See if GNU ld supports shared libraries.
19314     case $host_os in
19315     aix3* | aix4* | aix5*)
19316       # On AIX/PPC, the GNU linker is very broken
19317       if test "$host_cpu" != ia64; then
19318         ld_shlibs_GCJ=no
19319         cat <<EOF 1>&2
19320
19321 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19322 *** to be unable to reliably create shared libraries on AIX.
19323 *** Therefore, libtool is disabling shared libraries support.  If you
19324 *** really care for shared libraries, you may want to modify your PATH
19325 *** so that a non-GNU linker is found, and then restart.
19326
19327 EOF
19328       fi
19329       ;;
19330
19331     amigaos*)
19332       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)'
19333       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19334       hardcode_minus_L_GCJ=yes
19335
19336       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19337       # that the semantics of dynamic libraries on AmigaOS, at least up
19338       # to version 4, is to share data among multiple programs linked
19339       # with the same dynamic library.  Since this doesn't match the
19340       # behavior of shared libraries on other platforms, we can't use
19341       # them.
19342       ld_shlibs_GCJ=no
19343       ;;
19344
19345     beos*)
19346       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19347         allow_undefined_flag_GCJ=unsupported
19348         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19349         # support --undefined.  This deserves some investigation.  FIXME
19350         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351       else
19352         ld_shlibs_GCJ=no
19353       fi
19354       ;;
19355
19356     cygwin* | mingw* | pw32*)
19357       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19358       # as there is no search path for DLLs.
19359       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19360       allow_undefined_flag_GCJ=unsupported
19361       always_export_symbols_GCJ=no
19362       enable_shared_with_static_runtimes_GCJ=yes
19363       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19364
19365       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19366         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19367         # If the export-symbols file already is a .def file (1st line
19368         # is EXPORTS), use it as is; otherwise, prepend...
19369         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19370           cp $export_symbols $output_objdir/$soname.def;
19371         else
19372           echo EXPORTS > $output_objdir/$soname.def;
19373           cat $export_symbols >> $output_objdir/$soname.def;
19374         fi~
19375         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19376       else
19377         ld_shlibs=no
19378       fi
19379       ;;
19380
19381     netbsd*)
19382       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19383         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19384         wlarc=
19385       else
19386         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19387         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19388       fi
19389       ;;
19390
19391     solaris* | sysv5*)
19392       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19393         ld_shlibs_GCJ=no
19394         cat <<EOF 1>&2
19395
19396 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19397 *** create shared libraries on Solaris systems.  Therefore, libtool
19398 *** is disabling shared libraries support.  We urge you to upgrade GNU
19399 *** binutils to release 2.9.1 or newer.  Another option is to modify
19400 *** your PATH or compiler configuration so that the native linker is
19401 *** used, and then restart.
19402
19403 EOF
19404       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19405         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19406         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19407       else
19408         ld_shlibs_GCJ=no
19409       fi
19410       ;;
19411
19412     sunos4*)
19413       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19414       wlarc=
19415       hardcode_direct_GCJ=yes
19416       hardcode_shlibpath_var_GCJ=no
19417       ;;
19418
19419   linux*)
19420     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19421         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19422         archive_cmds_GCJ="$tmp_archive_cmds"
19423       supports_anon_versioning=no
19424       case `$LD -v 2>/dev/null` in
19425         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19426         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19427         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19428         *\ 2.11.*) ;; # other 2.11 versions
19429         *) supports_anon_versioning=yes ;;
19430       esac
19431       if test $supports_anon_versioning = yes; then
19432         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19434 $echo "local: *; };" >> $output_objdir/$libname.ver~
19435         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19436       else
19437         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
19438       fi
19439     else
19440       ld_shlibs_GCJ=no
19441     fi
19442     ;;
19443
19444     *)
19445       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19446         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19447         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19448       else
19449         ld_shlibs_GCJ=no
19450       fi
19451       ;;
19452     esac
19453
19454     if test "$ld_shlibs_GCJ" = yes; then
19455       runpath_var=LD_RUN_PATH
19456       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19457       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19458       # ancient GNU ld didn't support --whole-archive et. al.
19459       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19460         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19461       else
19462         whole_archive_flag_spec_GCJ=
19463       fi
19464     fi
19465   else
19466     # PORTME fill in a description of your system's linker (not GNU ld)
19467     case $host_os in
19468     aix3*)
19469       allow_undefined_flag_GCJ=unsupported
19470       always_export_symbols_GCJ=yes
19471       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'
19472       # Note: this linker hardcodes the directories in LIBPATH if there
19473       # are no directories specified by -L.
19474       hardcode_minus_L_GCJ=yes
19475       if test "$GCC" = yes && test -z "$link_static_flag"; then
19476         # Neither direct hardcoding nor static linking is supported with a
19477         # broken collect2.
19478         hardcode_direct_GCJ=unsupported
19479       fi
19480       ;;
19481
19482     aix4* | aix5*)
19483       if test "$host_cpu" = ia64; then
19484         # On IA64, the linker does run time linking by default, so we don't
19485         # have to do anything special.
19486         aix_use_runtimelinking=no
19487         exp_sym_flag='-Bexport'
19488         no_entry_flag=""
19489       else
19490         # If we're using GNU nm, then we don't want the "-C" option.
19491         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19492         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19493           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'
19494         else
19495           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'
19496         fi
19497         aix_use_runtimelinking=no
19498
19499         # Test if we are trying to use run time linking or normal
19500         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19501         # need to do runtime linking.
19502         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19503           for ld_flag in $LDFLAGS; do
19504           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19505             aix_use_runtimelinking=yes
19506             break
19507           fi
19508           done
19509         esac
19510
19511         exp_sym_flag='-bexport'
19512         no_entry_flag='-bnoentry'
19513       fi
19514
19515       # When large executables or shared objects are built, AIX ld can
19516       # have problems creating the table of contents.  If linking a library
19517       # or program results in "error TOC overflow" add -mminimal-toc to
19518       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19519       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19520
19521       archive_cmds_GCJ=''
19522       hardcode_direct_GCJ=yes
19523       hardcode_libdir_separator_GCJ=':'
19524       link_all_deplibs_GCJ=yes
19525
19526       if test "$GCC" = yes; then
19527         case $host_os in aix4.012|aix4.012.*)
19528         # We only want to do this on AIX 4.2 and lower, the check
19529         # below for broken collect2 doesn't work under 4.3+
19530           collect2name=`${CC} -print-prog-name=collect2`
19531           if test -f "$collect2name" && \
19532            strings "$collect2name" | grep resolve_lib_name >/dev/null
19533           then
19534           # We have reworked collect2
19535           hardcode_direct_GCJ=yes
19536           else
19537           # We have old collect2
19538           hardcode_direct_GCJ=unsupported
19539           # It fails to find uninstalled libraries when the uninstalled
19540           # path is not listed in the libpath.  Setting hardcode_minus_L
19541           # to unsupported forces relinking
19542           hardcode_minus_L_GCJ=yes
19543           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19544           hardcode_libdir_separator_GCJ=
19545           fi
19546         esac
19547         shared_flag='-shared'
19548       else
19549         # not using gcc
19550         if test "$host_cpu" = ia64; then
19551         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19552         # chokes on -Wl,-G. The following line is correct:
19553           shared_flag='-G'
19554         else
19555         if test "$aix_use_runtimelinking" = yes; then
19556             shared_flag='${wl}-G'
19557           else
19558             shared_flag='${wl}-bM:SRE'
19559         fi
19560         fi
19561       fi
19562
19563       # It seems that -bexpall does not export symbols beginning with
19564       # underscore (_), so it is better to generate a list of symbols to export.
19565       always_export_symbols_GCJ=yes
19566       if test "$aix_use_runtimelinking" = yes; then
19567         # Warning - without using the other runtime loading flags (-brtl),
19568         # -berok will link without error, but may produce a broken library.
19569         allow_undefined_flag_GCJ='-berok'
19570        # Determine the default libpath from the value encoded in an empty executable.
19571        cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h.  */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h.  */
19577
19578 int
19579 main ()
19580 {
19581
19582   ;
19583   return 0;
19584 }
19585 _ACEOF
19586 rm -f conftest.$ac_objext conftest$ac_exeext
19587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19588   (eval $ac_link) 2>conftest.er1
19589   ac_status=$?
19590   grep -v '^ *+' conftest.er1 >conftest.err
19591   rm -f conftest.er1
19592   cat conftest.err >&5
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); } &&
19595          { ac_try='test -z "$ac_c_werror_flag"
19596                          || test ! -s conftest.err'
19597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598   (eval $ac_try) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; } &&
19602          { ac_try='test -s conftest$ac_exeext'
19603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604   (eval $ac_try) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; }; then
19608
19609 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19610 }'`
19611 # Check for a 64-bit object if we didn't find anything.
19612 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; }
19613 }'`; fi
19614 else
19615   echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 fi
19619 rm -f conftest.err conftest.$ac_objext \
19620       conftest$ac_exeext conftest.$ac_ext
19621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19622
19623        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19624         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19625        else
19626         if test "$host_cpu" = ia64; then
19627           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19628           allow_undefined_flag_GCJ="-z nodefs"
19629           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19630         else
19631          # Determine the default libpath from the value encoded in an empty executable.
19632          cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h.  */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h.  */
19638
19639 int
19640 main ()
19641 {
19642
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19649   (eval $ac_link) 2>conftest.er1
19650   ac_status=$?
19651   grep -v '^ *+' conftest.er1 >conftest.err
19652   rm -f conftest.er1
19653   cat conftest.err >&5
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } &&
19656          { ac_try='test -z "$ac_c_werror_flag"
19657                          || test ! -s conftest.err'
19658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659   (eval $ac_try) 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; } &&
19663          { ac_try='test -s conftest$ac_exeext'
19664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665   (eval $ac_try) 2>&5
19666   ac_status=$?
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); }; }; then
19669
19670 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19671 }'`
19672 # Check for a 64-bit object if we didn't find anything.
19673 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; }
19674 }'`; fi
19675 else
19676   echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679 fi
19680 rm -f conftest.err conftest.$ac_objext \
19681       conftest$ac_exeext conftest.$ac_ext
19682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19683
19684          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19685           # Warning - without using the other run time loading flags,
19686           # -berok will link without error, but may produce a broken library.
19687           no_undefined_flag_GCJ=' ${wl}-bernotok'
19688           allow_undefined_flag_GCJ=' ${wl}-berok'
19689           # -bexpall does not export symbols beginning with underscore (_)
19690           always_export_symbols_GCJ=yes
19691           # Exported symbols can be pulled into shared objects from archives
19692           whole_archive_flag_spec_GCJ=' '
19693           archive_cmds_need_lc_GCJ=yes
19694           # This is similar to how AIX traditionally builds it's shared libraries.
19695           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19696         fi
19697       fi
19698       ;;
19699
19700     amigaos*)
19701       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)'
19702       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19703       hardcode_minus_L_GCJ=yes
19704       # see comment about different semantics on the GNU ld section
19705       ld_shlibs_GCJ=no
19706       ;;
19707
19708     bsdi[45]*)
19709       export_dynamic_flag_spec_GCJ=-rdynamic
19710       ;;
19711
19712     cygwin* | mingw* | pw32*)
19713       # When not using gcc, we currently assume that we are using
19714       # Microsoft Visual C++.
19715       # hardcode_libdir_flag_spec is actually meaningless, as there is
19716       # no search path for DLLs.
19717       hardcode_libdir_flag_spec_GCJ=' '
19718       allow_undefined_flag_GCJ=unsupported
19719       # Tell ltmain to make .lib files, not .a files.
19720       libext=lib
19721       # Tell ltmain to make .dll files, not .so files.
19722       shrext_cmds=".dll"
19723       # FIXME: Setting linknames here is a bad hack.
19724       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19725       # The linker will automatically build a .lib file if we build a DLL.
19726       old_archive_From_new_cmds_GCJ='true'
19727       # FIXME: Should let the user specify the lib program.
19728       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19729       fix_srcfile_path='`cygpath -w "$srcfile"`'
19730       enable_shared_with_static_runtimes_GCJ=yes
19731       ;;
19732
19733     darwin* | rhapsody*)
19734       case "$host_os" in
19735         rhapsody* | darwin1.[012])
19736          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19737          ;;
19738        *) # Darwin 1.3 on
19739          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19740            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19741          else
19742            case ${MACOSX_DEPLOYMENT_TARGET} in
19743              10.[012])
19744                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19745                ;;
19746              10.*)
19747                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19748                ;;
19749            esac
19750          fi
19751          ;;
19752       esac
19753       archive_cmds_need_lc_GCJ=no
19754       hardcode_direct_GCJ=no
19755       hardcode_automatic_GCJ=yes
19756       hardcode_shlibpath_var_GCJ=unsupported
19757       whole_archive_flag_spec_GCJ=''
19758       link_all_deplibs_GCJ=yes
19759     if test "$GCC" = yes ; then
19760         output_verbose_link_cmd='echo'
19761         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19762       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19763       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19764       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}'
19765       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}'
19766     else
19767       case "$cc_basename" in
19768         xlc*)
19769          output_verbose_link_cmd='echo'
19770          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19771          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19772           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19773          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}'
19774           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}'
19775           ;;
19776        *)
19777          ld_shlibs_GCJ=no
19778           ;;
19779       esac
19780     fi
19781       ;;
19782
19783     dgux*)
19784       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19785       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19786       hardcode_shlibpath_var_GCJ=no
19787       ;;
19788
19789     freebsd1*)
19790       ld_shlibs_GCJ=no
19791       ;;
19792
19793     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19794     # support.  Future versions do this automatically, but an explicit c++rt0.o
19795     # does not break anything, and helps significantly (at the cost of a little
19796     # extra space).
19797     freebsd2.2*)
19798       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19799       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19800       hardcode_direct_GCJ=yes
19801       hardcode_shlibpath_var_GCJ=no
19802       ;;
19803
19804     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19805     freebsd2*)
19806       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19807       hardcode_direct_GCJ=yes
19808       hardcode_minus_L_GCJ=yes
19809       hardcode_shlibpath_var_GCJ=no
19810       ;;
19811
19812     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19813     freebsd* | kfreebsd*-gnu)
19814       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19815       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19816       hardcode_direct_GCJ=yes
19817       hardcode_shlibpath_var_GCJ=no
19818       ;;
19819
19820     hpux9*)
19821       if test "$GCC" = yes; then
19822         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'
19823       else
19824         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'
19825       fi
19826       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19827       hardcode_libdir_separator_GCJ=:
19828       hardcode_direct_GCJ=yes
19829
19830       # hardcode_minus_L: Not really in the search PATH,
19831       # but as the default location of the library.
19832       hardcode_minus_L_GCJ=yes
19833       export_dynamic_flag_spec_GCJ='${wl}-E'
19834       ;;
19835
19836     hpux10* | hpux11*)
19837       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19838         case "$host_cpu" in
19839         hppa*64*|ia64*)
19840           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19841           ;;
19842         *)
19843           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19844           ;;
19845         esac
19846       else
19847         case "$host_cpu" in
19848         hppa*64*|ia64*)
19849           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19850           ;;
19851         *)
19852           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19853           ;;
19854         esac
19855       fi
19856       if test "$with_gnu_ld" = no; then
19857         case "$host_cpu" in
19858         hppa*64*)
19859           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19860           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19861           hardcode_libdir_separator_GCJ=:
19862           hardcode_direct_GCJ=no
19863           hardcode_shlibpath_var_GCJ=no
19864           ;;
19865         ia64*)
19866           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19867           hardcode_direct_GCJ=no
19868           hardcode_shlibpath_var_GCJ=no
19869
19870           # hardcode_minus_L: Not really in the search PATH,
19871           # but as the default location of the library.
19872           hardcode_minus_L_GCJ=yes
19873           ;;
19874         *)
19875           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19876           hardcode_libdir_separator_GCJ=:
19877           hardcode_direct_GCJ=yes
19878           export_dynamic_flag_spec_GCJ='${wl}-E'
19879
19880           # hardcode_minus_L: Not really in the search PATH,
19881           # but as the default location of the library.
19882           hardcode_minus_L_GCJ=yes
19883           ;;
19884         esac
19885       fi
19886       ;;
19887
19888     irix5* | irix6* | nonstopux*)
19889       if test "$GCC" = yes; then
19890         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'
19891       else
19892         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'
19893         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19894       fi
19895       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19896       hardcode_libdir_separator_GCJ=:
19897       link_all_deplibs_GCJ=yes
19898       ;;
19899
19900     netbsd*)
19901       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19902         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19903       else
19904         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19905       fi
19906       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19907       hardcode_direct_GCJ=yes
19908       hardcode_shlibpath_var_GCJ=no
19909       ;;
19910
19911     newsos6)
19912       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19913       hardcode_direct_GCJ=yes
19914       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19915       hardcode_libdir_separator_GCJ=:
19916       hardcode_shlibpath_var_GCJ=no
19917       ;;
19918
19919     openbsd*)
19920       hardcode_direct_GCJ=yes
19921       hardcode_shlibpath_var_GCJ=no
19922       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19923         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19924         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19925         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19926         export_dynamic_flag_spec_GCJ='${wl}-E'
19927       else
19928        case $host_os in
19929          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19930            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19931            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19932            ;;
19933          *)
19934            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19935            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19936            ;;
19937        esac
19938       fi
19939       ;;
19940
19941     os2*)
19942       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19943       hardcode_minus_L_GCJ=yes
19944       allow_undefined_flag_GCJ=unsupported
19945       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'
19946       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19947       ;;
19948
19949     osf3*)
19950       if test "$GCC" = yes; then
19951         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19952         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'
19953       else
19954         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19955         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'
19956       fi
19957       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19958       hardcode_libdir_separator_GCJ=:
19959       ;;
19960
19961     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19962       if test "$GCC" = yes; then
19963         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19964         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'
19965         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19966       else
19967         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19968         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'
19969         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~
19970         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19971
19972         # Both c and cxx compiler support -rpath directly
19973         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19974       fi
19975       hardcode_libdir_separator_GCJ=:
19976       ;;
19977
19978     sco3.2v5*)
19979       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19980       hardcode_shlibpath_var_GCJ=no
19981       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19982       runpath_var=LD_RUN_PATH
19983       hardcode_runpath_var=yes
19984       ;;
19985
19986     solaris*)
19987       no_undefined_flag_GCJ=' -z text'
19988       if test "$GCC" = yes; then
19989         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19990         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19991           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19992       else
19993         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19994         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19995         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19996       fi
19997       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19998       hardcode_shlibpath_var_GCJ=no
19999       case $host_os in
20000       solaris2.[0-5] | solaris2.[0-5].*) ;;
20001       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20002         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20003       esac
20004       link_all_deplibs_GCJ=yes
20005       ;;
20006
20007     sunos4*)
20008       if test "x$host_vendor" = xsequent; then
20009         # Use $CC to link under sequent, because it throws in some extra .o
20010         # files that make .init and .fini sections work.
20011         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20012       else
20013         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20014       fi
20015       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20016       hardcode_direct_GCJ=yes
20017       hardcode_minus_L_GCJ=yes
20018       hardcode_shlibpath_var_GCJ=no
20019       ;;
20020
20021     sysv4)
20022       case $host_vendor in
20023         sni)
20024           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20025           hardcode_direct_GCJ=yes # is this really true???
20026         ;;
20027         siemens)
20028           ## LD is ld it makes a PLAMLIB
20029           ## CC just makes a GrossModule.
20030           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20031           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20032           hardcode_direct_GCJ=no
20033         ;;
20034         motorola)
20035           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20036           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20037         ;;
20038       esac
20039       runpath_var='LD_RUN_PATH'
20040       hardcode_shlibpath_var_GCJ=no
20041       ;;
20042
20043     sysv4.3*)
20044       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20045       hardcode_shlibpath_var_GCJ=no
20046       export_dynamic_flag_spec_GCJ='-Bexport'
20047       ;;
20048
20049     sysv4*MP*)
20050       if test -d /usr/nec; then
20051         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20052         hardcode_shlibpath_var_GCJ=no
20053         runpath_var=LD_RUN_PATH
20054         hardcode_runpath_var=yes
20055         ld_shlibs_GCJ=yes
20056       fi
20057       ;;
20058
20059     sysv4.2uw2*)
20060       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20061       hardcode_direct_GCJ=yes
20062       hardcode_minus_L_GCJ=no
20063       hardcode_shlibpath_var_GCJ=no
20064       hardcode_runpath_var=yes
20065       runpath_var=LD_RUN_PATH
20066       ;;
20067
20068    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20069       no_undefined_flag_GCJ='${wl}-z ${wl}text'
20070       if test "$GCC" = yes; then
20071         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20072       else
20073         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20074       fi
20075       runpath_var='LD_RUN_PATH'
20076       hardcode_shlibpath_var_GCJ=no
20077       ;;
20078
20079     sysv5*)
20080       no_undefined_flag_GCJ=' -z text'
20081       # $CC -shared without GNU ld will not create a library from C++
20082       # object files and a static libstdc++, better avoid it by now
20083       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20084       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20085                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20086       hardcode_libdir_flag_spec_GCJ=
20087       hardcode_shlibpath_var_GCJ=no
20088       runpath_var='LD_RUN_PATH'
20089       ;;
20090
20091     uts4*)
20092       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20093       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20094       hardcode_shlibpath_var_GCJ=no
20095       ;;
20096
20097     *)
20098       ld_shlibs_GCJ=no
20099       ;;
20100     esac
20101   fi
20102
20103 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20104 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20105 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20106
20107 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20108 if test "$GCC" = yes; then
20109   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20110 fi
20111
20112 #
20113 # Do we need to explicitly link libc?
20114 #
20115 case "x$archive_cmds_need_lc_GCJ" in
20116 x|xyes)
20117   # Assume -lc should be added
20118   archive_cmds_need_lc_GCJ=yes
20119
20120   if test "$enable_shared" = yes && test "$GCC" = yes; then
20121     case $archive_cmds_GCJ in
20122     *'~'*)
20123       # FIXME: we may have to deal with multi-command sequences.
20124       ;;
20125     '$CC '*)
20126       # Test whether the compiler implicitly links with -lc since on some
20127       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20128       # to ld, don't add -lc before -lgcc.
20129       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20130 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20131       $rm conftest*
20132       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20133
20134       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135   (eval $ac_compile) 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } 2>conftest.err; then
20139         soname=conftest
20140         lib=conftest
20141         libobjs=conftest.$ac_objext
20142         deplibs=
20143         wl=$lt_prog_compiler_wl_GCJ
20144         compiler_flags=-v
20145         linker_flags=-v
20146         verstring=
20147         output_objdir=.
20148         libname=conftest
20149         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20150         allow_undefined_flag_GCJ=
20151         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20152   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); }
20156         then
20157           archive_cmds_need_lc_GCJ=no
20158         else
20159           archive_cmds_need_lc_GCJ=yes
20160         fi
20161         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20162       else
20163         cat conftest.err 1>&5
20164       fi
20165       $rm conftest*
20166       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20167 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20168       ;;
20169     esac
20170   fi
20171   ;;
20172 esac
20173
20174 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20176 library_names_spec=
20177 libname_spec='lib$name'
20178 soname_spec=
20179 shrext_cmds=".so"
20180 postinstall_cmds=
20181 postuninstall_cmds=
20182 finish_cmds=
20183 finish_eval=
20184 shlibpath_var=
20185 shlibpath_overrides_runpath=unknown
20186 version_type=none
20187 dynamic_linker="$host_os ld.so"
20188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20189 if test "$GCC" = yes; then
20190   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20191   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20192     # if the path contains ";" then we assume it to be the separator
20193     # otherwise default to the standard path separator (i.e. ":") - it is
20194     # assumed that no part of a normal pathname contains ";" but that should
20195     # okay in the real world where ";" in dirpaths is itself problematic.
20196     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20197   else
20198     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20199   fi
20200 else
20201   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20202 fi
20203 need_lib_prefix=unknown
20204 hardcode_into_libs=no
20205
20206 # when you set need_version to no, make sure it does not cause -set_version
20207 # flags to be left without arguments
20208 need_version=unknown
20209
20210 case $host_os in
20211 aix3*)
20212   version_type=linux
20213   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20214   shlibpath_var=LIBPATH
20215
20216   # AIX 3 has no versioning support, so we append a major version to the name.
20217   soname_spec='${libname}${release}${shared_ext}$major'
20218   ;;
20219
20220 aix4* | aix5*)
20221   version_type=linux
20222   need_lib_prefix=no
20223   need_version=no
20224   hardcode_into_libs=yes
20225   if test "$host_cpu" = ia64; then
20226     # AIX 5 supports IA64
20227     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20228     shlibpath_var=LD_LIBRARY_PATH
20229   else
20230     # With GCC up to 2.95.x, collect2 would create an import file
20231     # for dependence libraries.  The import file would start with
20232     # the line `#! .'.  This would cause the generated library to
20233     # depend on `.', always an invalid library.  This was fixed in
20234     # development snapshots of GCC prior to 3.0.
20235     case $host_os in
20236       aix4 | aix4.[01] | aix4.[01].*)
20237       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20238            echo ' yes '
20239            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20240         :
20241       else
20242         can_build_shared=no
20243       fi
20244       ;;
20245     esac
20246     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20247     # soname into executable. Probably we can add versioning support to
20248     # collect2, so additional links can be useful in future.
20249     if test "$aix_use_runtimelinking" = yes; then
20250       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20251       # instead of lib<name>.a to let people know that these are not
20252       # typical AIX shared libraries.
20253       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254     else
20255       # We preserve .a as extension for shared libraries through AIX4.2
20256       # and later when we are not doing run time linking.
20257       library_names_spec='${libname}${release}.a $libname.a'
20258       soname_spec='${libname}${release}${shared_ext}$major'
20259     fi
20260     shlibpath_var=LIBPATH
20261   fi
20262   ;;
20263
20264 amigaos*)
20265   library_names_spec='$libname.ixlibrary $libname.a'
20266   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20267   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'
20268   ;;
20269
20270 beos*)
20271   library_names_spec='${libname}${shared_ext}'
20272   dynamic_linker="$host_os ld.so"
20273   shlibpath_var=LIBRARY_PATH
20274   ;;
20275
20276 bsdi[45]*)
20277   version_type=linux
20278   need_version=no
20279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280   soname_spec='${libname}${release}${shared_ext}$major'
20281   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20282   shlibpath_var=LD_LIBRARY_PATH
20283   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20284   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20285   # the default ld.so.conf also contains /usr/contrib/lib and
20286   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20287   # libtool to hard-code these into programs
20288   ;;
20289
20290 cygwin* | mingw* | pw32*)
20291   version_type=windows
20292   shrext_cmds=".dll"
20293   need_version=no
20294   need_lib_prefix=no
20295
20296   case $GCC,$host_os in
20297   yes,cygwin* | yes,mingw* | yes,pw32*)
20298     library_names_spec='$libname.dll.a'
20299     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20300     postinstall_cmds='base_file=`basename \${file}`~
20301       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20302       dldir=$destdir/`dirname \$dlpath`~
20303       test -d \$dldir || mkdir -p \$dldir~
20304       $install_prog $dir/$dlname \$dldir/$dlname'
20305     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20306       dlpath=$dir/\$dldll~
20307        $rm \$dlpath'
20308     shlibpath_overrides_runpath=yes
20309
20310     case $host_os in
20311     cygwin*)
20312       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20313       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20314       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20315       ;;
20316     mingw*)
20317       # MinGW DLLs use traditional 'lib' prefix
20318       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20319       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20320       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20321         # It is most probably a Windows format PATH printed by
20322         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20323         # path with ; separators, and with drive letters. We can handle the
20324         # drive letters (cygwin fileutils understands them), so leave them,
20325         # especially as we might pass files found there to a mingw objdump,
20326         # which wouldn't understand a cygwinified path. Ahh.
20327         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20328       else
20329         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20330       fi
20331       ;;
20332     pw32*)
20333       # pw32 DLLs use 'pw' prefix rather than 'lib'
20334       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20335       ;;
20336     esac
20337     ;;
20338
20339   *)
20340     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20341     ;;
20342   esac
20343   dynamic_linker='Win32 ld.exe'
20344   # FIXME: first we should search . and the directory the executable is in
20345   shlibpath_var=PATH
20346   ;;
20347
20348 darwin* | rhapsody*)
20349   dynamic_linker="$host_os dyld"
20350   version_type=darwin
20351   need_lib_prefix=no
20352   need_version=no
20353   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20354   soname_spec='${libname}${release}${major}$shared_ext'
20355   shlibpath_overrides_runpath=yes
20356   shlibpath_var=DYLD_LIBRARY_PATH
20357   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20358   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20359   if test "$GCC" = yes; then
20360     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"`
20361   else
20362     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20363   fi
20364   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20365   ;;
20366
20367 dgux*)
20368   version_type=linux
20369   need_lib_prefix=no
20370   need_version=no
20371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20372   soname_spec='${libname}${release}${shared_ext}$major'
20373   shlibpath_var=LD_LIBRARY_PATH
20374   ;;
20375
20376 freebsd1*)
20377   dynamic_linker=no
20378   ;;
20379
20380 kfreebsd*-gnu)
20381   version_type=linux
20382   need_lib_prefix=no
20383   need_version=no
20384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20385   soname_spec='${libname}${release}${shared_ext}$major'
20386   shlibpath_var=LD_LIBRARY_PATH
20387   shlibpath_overrides_runpath=no
20388   hardcode_into_libs=yes
20389   dynamic_linker='GNU ld.so'
20390   ;;
20391
20392 freebsd*)
20393   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20394   version_type=freebsd-$objformat
20395   case $version_type in
20396     freebsd-elf*)
20397       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20398       need_version=no
20399       need_lib_prefix=no
20400       ;;
20401     freebsd-*)
20402       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20403       need_version=yes
20404       ;;
20405   esac
20406   shlibpath_var=LD_LIBRARY_PATH
20407   case $host_os in
20408   freebsd2*)
20409     shlibpath_overrides_runpath=yes
20410     ;;
20411   freebsd3.01* | freebsdelf3.01*)
20412     shlibpath_overrides_runpath=yes
20413     hardcode_into_libs=yes
20414     ;;
20415   *) # from 3.2 on
20416     shlibpath_overrides_runpath=no
20417     hardcode_into_libs=yes
20418     ;;
20419   esac
20420   ;;
20421
20422 gnu*)
20423   version_type=linux
20424   need_lib_prefix=no
20425   need_version=no
20426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20427   soname_spec='${libname}${release}${shared_ext}$major'
20428   shlibpath_var=LD_LIBRARY_PATH
20429   hardcode_into_libs=yes
20430   ;;
20431
20432 hpux9* | hpux10* | hpux11*)
20433   # Give a soname corresponding to the major version so that dld.sl refuses to
20434   # link against other versions.
20435   version_type=sunos
20436   need_lib_prefix=no
20437   need_version=no
20438   case "$host_cpu" in
20439   ia64*)
20440     shrext_cmds='.so'
20441     hardcode_into_libs=yes
20442     dynamic_linker="$host_os dld.so"
20443     shlibpath_var=LD_LIBRARY_PATH
20444     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20446     soname_spec='${libname}${release}${shared_ext}$major'
20447     if test "X$HPUX_IA64_MODE" = X32; then
20448       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20449     else
20450       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20451     fi
20452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20453     ;;
20454    hppa*64*)
20455      shrext_cmds='.sl'
20456      hardcode_into_libs=yes
20457      dynamic_linker="$host_os dld.sl"
20458      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20459      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20460      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20461      soname_spec='${libname}${release}${shared_ext}$major'
20462      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20463      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20464      ;;
20465    *)
20466     shrext_cmds='.sl'
20467     dynamic_linker="$host_os dld.sl"
20468     shlibpath_var=SHLIB_PATH
20469     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20471     soname_spec='${libname}${release}${shared_ext}$major'
20472     ;;
20473   esac
20474   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20475   postinstall_cmds='chmod 555 $lib'
20476   ;;
20477
20478 irix5* | irix6* | nonstopux*)
20479   case $host_os in
20480     nonstopux*) version_type=nonstopux ;;
20481     *)
20482         if test "$lt_cv_prog_gnu_ld" = yes; then
20483                 version_type=linux
20484         else
20485                 version_type=irix
20486         fi ;;
20487   esac
20488   need_lib_prefix=no
20489   need_version=no
20490   soname_spec='${libname}${release}${shared_ext}$major'
20491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20492   case $host_os in
20493   irix5* | nonstopux*)
20494     libsuff= shlibsuff=
20495     ;;
20496   *)
20497     case $LD in # libtool.m4 will add one of these switches to LD
20498     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20499       libsuff= shlibsuff= libmagic=32-bit;;
20500     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20501       libsuff=32 shlibsuff=N32 libmagic=N32;;
20502     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20503       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20504     *) libsuff= shlibsuff= libmagic=never-match;;
20505     esac
20506     ;;
20507   esac
20508   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20509   shlibpath_overrides_runpath=no
20510   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20511   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20512   hardcode_into_libs=yes
20513   ;;
20514
20515 # No shared lib support for Linux oldld, aout, or coff.
20516 linux*oldld* | linux*aout* | linux*coff*)
20517   dynamic_linker=no
20518   ;;
20519
20520 # This must be Linux ELF.
20521 linux*)
20522   version_type=linux
20523   need_lib_prefix=no
20524   need_version=no
20525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526   soname_spec='${libname}${release}${shared_ext}$major'
20527   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20528   shlibpath_var=LD_LIBRARY_PATH
20529   shlibpath_overrides_runpath=no
20530   # This implies no fast_install, which is unacceptable.
20531   # Some rework will be needed to allow for fast_install
20532   # before this can be enabled.
20533   hardcode_into_libs=yes
20534
20535   # Append ld.so.conf contents to the search path
20536   if test -f /etc/ld.so.conf; then
20537     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20538     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20539   fi
20540
20541   # We used to test for /lib/ld.so.1 and disable shared libraries on
20542   # powerpc, because MkLinux only supported shared libraries with the
20543   # GNU dynamic linker.  Since this was broken with cross compilers,
20544   # most powerpc-linux boxes support dynamic linking these days and
20545   # people can always --disable-shared, the test was removed, and we
20546   # assume the GNU/Linux dynamic linker is in use.
20547   dynamic_linker='GNU/Linux ld.so'
20548   ;;
20549
20550 knetbsd*-gnu)
20551   version_type=linux
20552   need_lib_prefix=no
20553   need_version=no
20554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20555   soname_spec='${libname}${release}${shared_ext}$major'
20556   shlibpath_var=LD_LIBRARY_PATH
20557   shlibpath_overrides_runpath=no
20558   hardcode_into_libs=yes
20559   dynamic_linker='GNU ld.so'
20560   ;;
20561
20562 netbsd*)
20563   version_type=sunos
20564   need_lib_prefix=no
20565   need_version=no
20566   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20568     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20569     dynamic_linker='NetBSD (a.out) ld.so'
20570   else
20571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20572     soname_spec='${libname}${release}${shared_ext}$major'
20573     dynamic_linker='NetBSD ld.elf_so'
20574   fi
20575   shlibpath_var=LD_LIBRARY_PATH
20576   shlibpath_overrides_runpath=yes
20577   hardcode_into_libs=yes
20578   ;;
20579
20580 newsos6)
20581   version_type=linux
20582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20583   shlibpath_var=LD_LIBRARY_PATH
20584   shlibpath_overrides_runpath=yes
20585   ;;
20586
20587 nto-qnx*)
20588   version_type=linux
20589   need_lib_prefix=no
20590   need_version=no
20591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20592   soname_spec='${libname}${release}${shared_ext}$major'
20593   shlibpath_var=LD_LIBRARY_PATH
20594   shlibpath_overrides_runpath=yes
20595   ;;
20596
20597 openbsd*)
20598   version_type=sunos
20599   need_lib_prefix=no
20600   need_version=no
20601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20602   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20603   shlibpath_var=LD_LIBRARY_PATH
20604   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20605     case $host_os in
20606       openbsd2.[89] | openbsd2.[89].*)
20607         shlibpath_overrides_runpath=no
20608         ;;
20609       *)
20610         shlibpath_overrides_runpath=yes
20611         ;;
20612       esac
20613   else
20614     shlibpath_overrides_runpath=yes
20615   fi
20616   ;;
20617
20618 os2*)
20619   libname_spec='$name'
20620   shrext_cmds=".dll"
20621   need_lib_prefix=no
20622   library_names_spec='$libname${shared_ext} $libname.a'
20623   dynamic_linker='OS/2 ld.exe'
20624   shlibpath_var=LIBPATH
20625   ;;
20626
20627 osf3* | osf4* | osf5*)
20628   version_type=osf
20629   need_lib_prefix=no
20630   need_version=no
20631   soname_spec='${libname}${release}${shared_ext}$major'
20632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20633   shlibpath_var=LD_LIBRARY_PATH
20634   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20635   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20636   ;;
20637
20638 sco3.2v5*)
20639   version_type=osf
20640   soname_spec='${libname}${release}${shared_ext}$major'
20641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20642   shlibpath_var=LD_LIBRARY_PATH
20643   ;;
20644
20645 solaris*)
20646   version_type=linux
20647   need_lib_prefix=no
20648   need_version=no
20649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20650   soname_spec='${libname}${release}${shared_ext}$major'
20651   shlibpath_var=LD_LIBRARY_PATH
20652   shlibpath_overrides_runpath=yes
20653   hardcode_into_libs=yes
20654   # ldd complains unless libraries are executable
20655   postinstall_cmds='chmod +x $lib'
20656   ;;
20657
20658 sunos4*)
20659   version_type=sunos
20660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20661   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20662   shlibpath_var=LD_LIBRARY_PATH
20663   shlibpath_overrides_runpath=yes
20664   if test "$with_gnu_ld" = yes; then
20665     need_lib_prefix=no
20666   fi
20667   need_version=yes
20668   ;;
20669
20670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20671   version_type=linux
20672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673   soname_spec='${libname}${release}${shared_ext}$major'
20674   shlibpath_var=LD_LIBRARY_PATH
20675   case $host_vendor in
20676     sni)
20677       shlibpath_overrides_runpath=no
20678       need_lib_prefix=no
20679       export_dynamic_flag_spec='${wl}-Blargedynsym'
20680       runpath_var=LD_RUN_PATH
20681       ;;
20682     siemens)
20683       need_lib_prefix=no
20684       ;;
20685     motorola)
20686       need_lib_prefix=no
20687       need_version=no
20688       shlibpath_overrides_runpath=no
20689       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20690       ;;
20691   esac
20692   ;;
20693
20694 sysv4*MP*)
20695   if test -d /usr/nec ;then
20696     version_type=linux
20697     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20698     soname_spec='$libname${shared_ext}.$major'
20699     shlibpath_var=LD_LIBRARY_PATH
20700   fi
20701   ;;
20702
20703 uts4*)
20704   version_type=linux
20705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20706   soname_spec='${libname}${release}${shared_ext}$major'
20707   shlibpath_var=LD_LIBRARY_PATH
20708   ;;
20709
20710 *)
20711   dynamic_linker=no
20712   ;;
20713 esac
20714 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20715 echo "${ECHO_T}$dynamic_linker" >&6
20716 test "$dynamic_linker" = no && can_build_shared=no
20717
20718 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20719 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20720 hardcode_action_GCJ=
20721 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20722    test -n "$runpath_var_GCJ" || \
20723    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20724
20725   # We can hardcode non-existant directories.
20726   if test "$hardcode_direct_GCJ" != no &&
20727      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20728      # have to relink, otherwise we might link with an installed library
20729      # when we should be linking with a yet-to-be-installed one
20730      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20731      test "$hardcode_minus_L_GCJ" != no; then
20732     # Linking always hardcodes the temporary library directory.
20733     hardcode_action_GCJ=relink
20734   else
20735     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20736     hardcode_action_GCJ=immediate
20737   fi
20738 else
20739   # We cannot hardcode anything, or else we can only hardcode existing
20740   # directories.
20741   hardcode_action_GCJ=unsupported
20742 fi
20743 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20744 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20745
20746 if test "$hardcode_action_GCJ" = relink; then
20747   # Fast installation is not supported
20748   enable_fast_install=no
20749 elif test "$shlibpath_overrides_runpath" = yes ||
20750      test "$enable_shared" = no; then
20751   # Fast installation is not necessary
20752   enable_fast_install=needless
20753 fi
20754
20755 striplib=
20756 old_striplib=
20757 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20758 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20759 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20760   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20761   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20762   echo "$as_me:$LINENO: result: yes" >&5
20763 echo "${ECHO_T}yes" >&6
20764 else
20765 # FIXME - insert some real tests, host_os isn't really good enough
20766   case $host_os in
20767    darwin*)
20768        if test -n "$STRIP" ; then
20769          striplib="$STRIP -x"
20770          echo "$as_me:$LINENO: result: yes" >&5
20771 echo "${ECHO_T}yes" >&6
20772        else
20773   echo "$as_me:$LINENO: result: no" >&5
20774 echo "${ECHO_T}no" >&6
20775 fi
20776        ;;
20777    *)
20778   echo "$as_me:$LINENO: result: no" >&5
20779 echo "${ECHO_T}no" >&6
20780     ;;
20781   esac
20782 fi
20783
20784 if test "x$enable_dlopen" != xyes; then
20785   enable_dlopen=unknown
20786   enable_dlopen_self=unknown
20787   enable_dlopen_self_static=unknown
20788 else
20789   lt_cv_dlopen=no
20790   lt_cv_dlopen_libs=
20791
20792   case $host_os in
20793   beos*)
20794     lt_cv_dlopen="load_add_on"
20795     lt_cv_dlopen_libs=
20796     lt_cv_dlopen_self=yes
20797     ;;
20798
20799   mingw* | pw32*)
20800     lt_cv_dlopen="LoadLibrary"
20801     lt_cv_dlopen_libs=
20802    ;;
20803
20804   cygwin*)
20805     lt_cv_dlopen="dlopen"
20806     lt_cv_dlopen_libs=
20807    ;;
20808
20809   darwin*)
20810   # if libdl is installed we need to link against it
20811     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20812 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-ldl  $LIBS"
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824
20825 /* Override any gcc2 internal prototype to avoid an error.  */
20826 #ifdef __cplusplus
20827 extern "C"
20828 #endif
20829 /* We use char because int might match the return type of a gcc2
20830    builtin and then its argument prototype would still apply.  */
20831 char dlopen ();
20832 int
20833 main ()
20834 {
20835 dlopen ();
20836   ;
20837   return 0;
20838 }
20839 _ACEOF
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20842   (eval $ac_link) 2>conftest.er1
20843   ac_status=$?
20844   grep -v '^ *+' conftest.er1 >conftest.err
20845   rm -f conftest.er1
20846   cat conftest.err >&5
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); } &&
20849          { ac_try='test -z "$ac_c_werror_flag"
20850                          || test ! -s conftest.err'
20851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852   (eval $ac_try) 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); }; } &&
20856          { ac_try='test -s conftest$ac_exeext'
20857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858   (eval $ac_try) 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); }; }; then
20862   ac_cv_lib_dl_dlopen=yes
20863 else
20864   echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 ac_cv_lib_dl_dlopen=no
20868 fi
20869 rm -f conftest.err conftest.$ac_objext \
20870       conftest$ac_exeext conftest.$ac_ext
20871 LIBS=$ac_check_lib_save_LIBS
20872 fi
20873 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20874 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20875 if test $ac_cv_lib_dl_dlopen = yes; then
20876   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20877 else
20878
20879     lt_cv_dlopen="dyld"
20880     lt_cv_dlopen_libs=
20881     lt_cv_dlopen_self=yes
20882
20883 fi
20884
20885    ;;
20886
20887   *)
20888     echo "$as_me:$LINENO: checking for shl_load" >&5
20889 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20890 if test "${ac_cv_func_shl_load+set}" = set; then
20891   echo $ECHO_N "(cached) $ECHO_C" >&6
20892 else
20893   cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20901 #define shl_load innocuous_shl_load
20902
20903 /* System header to define __stub macros and hopefully few prototypes,
20904     which can conflict with char shl_load (); below.
20905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20906     <limits.h> exists even on freestanding compilers.  */
20907
20908 #ifdef __STDC__
20909 # include <limits.h>
20910 #else
20911 # include <assert.h>
20912 #endif
20913
20914 #undef shl_load
20915
20916 /* Override any gcc2 internal prototype to avoid an error.  */
20917 #ifdef __cplusplus
20918 extern "C"
20919 {
20920 #endif
20921 /* We use char because int might match the return type of a gcc2
20922    builtin and then its argument prototype would still apply.  */
20923 char shl_load ();
20924 /* The GNU C library defines this for functions which it implements
20925     to always fail with ENOSYS.  Some functions are actually named
20926     something starting with __ and the normal name is an alias.  */
20927 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20928 choke me
20929 #else
20930 char (*f) () = shl_load;
20931 #endif
20932 #ifdef __cplusplus
20933 }
20934 #endif
20935
20936 int
20937 main ()
20938 {
20939 return f != shl_load;
20940   ;
20941   return 0;
20942 }
20943 _ACEOF
20944 rm -f conftest.$ac_objext conftest$ac_exeext
20945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20946   (eval $ac_link) 2>conftest.er1
20947   ac_status=$?
20948   grep -v '^ *+' conftest.er1 >conftest.err
20949   rm -f conftest.er1
20950   cat conftest.err >&5
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); } &&
20953          { ac_try='test -z "$ac_c_werror_flag"
20954                          || test ! -s conftest.err'
20955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956   (eval $ac_try) 2>&5
20957   ac_status=$?
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); }; } &&
20960          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20966   ac_cv_func_shl_load=yes
20967 else
20968   echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971 ac_cv_func_shl_load=no
20972 fi
20973 rm -f conftest.err conftest.$ac_objext \
20974       conftest$ac_exeext conftest.$ac_ext
20975 fi
20976 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20977 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20978 if test $ac_cv_func_shl_load = yes; then
20979   lt_cv_dlopen="shl_load"
20980 else
20981   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20982 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20983 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20984   echo $ECHO_N "(cached) $ECHO_C" >&6
20985 else
20986   ac_check_lib_save_LIBS=$LIBS
20987 LIBS="-ldld  $LIBS"
20988 cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h.  */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h.  */
20994
20995 /* Override any gcc2 internal prototype to avoid an error.  */
20996 #ifdef __cplusplus
20997 extern "C"
20998 #endif
20999 /* We use char because int might match the return type of a gcc2
21000    builtin and then its argument prototype would still apply.  */
21001 char shl_load ();
21002 int
21003 main ()
21004 {
21005 shl_load ();
21006   ;
21007   return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest.$ac_objext conftest$ac_exeext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21012   (eval $ac_link) 2>conftest.er1
21013   ac_status=$?
21014   grep -v '^ *+' conftest.er1 >conftest.err
21015   rm -f conftest.er1
21016   cat conftest.err >&5
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); } &&
21019          { ac_try='test -z "$ac_c_werror_flag"
21020                          || test ! -s conftest.err'
21021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022   (eval $ac_try) 2>&5
21023   ac_status=$?
21024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025   (exit $ac_status); }; } &&
21026          { ac_try='test -s conftest$ac_exeext'
21027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21028   (eval $ac_try) 2>&5
21029   ac_status=$?
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); }; }; then
21032   ac_cv_lib_dld_shl_load=yes
21033 else
21034   echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037 ac_cv_lib_dld_shl_load=no
21038 fi
21039 rm -f conftest.err conftest.$ac_objext \
21040       conftest$ac_exeext conftest.$ac_ext
21041 LIBS=$ac_check_lib_save_LIBS
21042 fi
21043 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21044 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21045 if test $ac_cv_lib_dld_shl_load = yes; then
21046   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21047 else
21048   echo "$as_me:$LINENO: checking for dlopen" >&5
21049 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21050 if test "${ac_cv_func_dlopen+set}" = set; then
21051   echo $ECHO_N "(cached) $ECHO_C" >&6
21052 else
21053   cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21061 #define dlopen innocuous_dlopen
21062
21063 /* System header to define __stub macros and hopefully few prototypes,
21064     which can conflict with char dlopen (); below.
21065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21066     <limits.h> exists even on freestanding compilers.  */
21067
21068 #ifdef __STDC__
21069 # include <limits.h>
21070 #else
21071 # include <assert.h>
21072 #endif
21073
21074 #undef dlopen
21075
21076 /* Override any gcc2 internal prototype to avoid an error.  */
21077 #ifdef __cplusplus
21078 extern "C"
21079 {
21080 #endif
21081 /* We use char because int might match the return type of a gcc2
21082    builtin and then its argument prototype would still apply.  */
21083 char dlopen ();
21084 /* The GNU C library defines this for functions which it implements
21085     to always fail with ENOSYS.  Some functions are actually named
21086     something starting with __ and the normal name is an alias.  */
21087 #if defined (__stub_dlopen) || defined (__stub___dlopen)
21088 choke me
21089 #else
21090 char (*f) () = dlopen;
21091 #endif
21092 #ifdef __cplusplus
21093 }
21094 #endif
21095
21096 int
21097 main ()
21098 {
21099 return f != dlopen;
21100   ;
21101   return 0;
21102 }
21103 _ACEOF
21104 rm -f conftest.$ac_objext conftest$ac_exeext
21105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21106   (eval $ac_link) 2>conftest.er1
21107   ac_status=$?
21108   grep -v '^ *+' conftest.er1 >conftest.err
21109   rm -f conftest.er1
21110   cat conftest.err >&5
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); } &&
21113          { ac_try='test -z "$ac_c_werror_flag"
21114                          || test ! -s conftest.err'
21115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116   (eval $ac_try) 2>&5
21117   ac_status=$?
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); }; } &&
21120          { ac_try='test -s conftest$ac_exeext'
21121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122   (eval $ac_try) 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); }; }; then
21126   ac_cv_func_dlopen=yes
21127 else
21128   echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131 ac_cv_func_dlopen=no
21132 fi
21133 rm -f conftest.err conftest.$ac_objext \
21134       conftest$ac_exeext conftest.$ac_ext
21135 fi
21136 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21137 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21138 if test $ac_cv_func_dlopen = yes; then
21139   lt_cv_dlopen="dlopen"
21140 else
21141   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21144   echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146   ac_check_lib_save_LIBS=$LIBS
21147 LIBS="-ldl  $LIBS"
21148 cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154
21155 /* Override any gcc2 internal prototype to avoid an error.  */
21156 #ifdef __cplusplus
21157 extern "C"
21158 #endif
21159 /* We use char because int might match the return type of a gcc2
21160    builtin and then its argument prototype would still apply.  */
21161 char dlopen ();
21162 int
21163 main ()
21164 {
21165 dlopen ();
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext conftest$ac_exeext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21172   (eval $ac_link) 2>conftest.er1
21173   ac_status=$?
21174   grep -v '^ *+' conftest.er1 >conftest.err
21175   rm -f conftest.er1
21176   cat conftest.err >&5
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); } &&
21179          { ac_try='test -z "$ac_c_werror_flag"
21180                          || test ! -s conftest.err'
21181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182   (eval $ac_try) 2>&5
21183   ac_status=$?
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); }; } &&
21186          { ac_try='test -s conftest$ac_exeext'
21187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188   (eval $ac_try) 2>&5
21189   ac_status=$?
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); }; }; then
21192   ac_cv_lib_dl_dlopen=yes
21193 else
21194   echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197 ac_cv_lib_dl_dlopen=no
21198 fi
21199 rm -f conftest.err conftest.$ac_objext \
21200       conftest$ac_exeext conftest.$ac_ext
21201 LIBS=$ac_check_lib_save_LIBS
21202 fi
21203 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21205 if test $ac_cv_lib_dl_dlopen = yes; then
21206   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21207 else
21208   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21209 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21210 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21211   echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21213   ac_check_lib_save_LIBS=$LIBS
21214 LIBS="-lsvld  $LIBS"
21215 cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h.  */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h.  */
21221
21222 /* Override any gcc2 internal prototype to avoid an error.  */
21223 #ifdef __cplusplus
21224 extern "C"
21225 #endif
21226 /* We use char because int might match the return type of a gcc2
21227    builtin and then its argument prototype would still apply.  */
21228 char dlopen ();
21229 int
21230 main ()
21231 {
21232 dlopen ();
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext conftest$ac_exeext
21238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21239   (eval $ac_link) 2>conftest.er1
21240   ac_status=$?
21241   grep -v '^ *+' conftest.er1 >conftest.err
21242   rm -f conftest.er1
21243   cat conftest.err >&5
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); } &&
21246          { ac_try='test -z "$ac_c_werror_flag"
21247                          || test ! -s conftest.err'
21248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249   (eval $ac_try) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; } &&
21253          { ac_try='test -s conftest$ac_exeext'
21254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255   (eval $ac_try) 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; }; then
21259   ac_cv_lib_svld_dlopen=yes
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 ac_cv_lib_svld_dlopen=no
21265 fi
21266 rm -f conftest.err conftest.$ac_objext \
21267       conftest$ac_exeext conftest.$ac_ext
21268 LIBS=$ac_check_lib_save_LIBS
21269 fi
21270 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21271 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21272 if test $ac_cv_lib_svld_dlopen = yes; then
21273   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21274 else
21275   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21276 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21277 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21278   echo $ECHO_N "(cached) $ECHO_C" >&6
21279 else
21280   ac_check_lib_save_LIBS=$LIBS
21281 LIBS="-ldld  $LIBS"
21282 cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h.  */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h.  */
21288
21289 /* Override any gcc2 internal prototype to avoid an error.  */
21290 #ifdef __cplusplus
21291 extern "C"
21292 #endif
21293 /* We use char because int might match the return type of a gcc2
21294    builtin and then its argument prototype would still apply.  */
21295 char dld_link ();
21296 int
21297 main ()
21298 {
21299 dld_link ();
21300   ;
21301   return 0;
21302 }
21303 _ACEOF
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21306   (eval $ac_link) 2>conftest.er1
21307   ac_status=$?
21308   grep -v '^ *+' conftest.er1 >conftest.err
21309   rm -f conftest.er1
21310   cat conftest.err >&5
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); } &&
21313          { ac_try='test -z "$ac_c_werror_flag"
21314                          || test ! -s conftest.err'
21315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316   (eval $ac_try) 2>&5
21317   ac_status=$?
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); }; } &&
21320          { ac_try='test -s conftest$ac_exeext'
21321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322   (eval $ac_try) 2>&5
21323   ac_status=$?
21324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); }; }; then
21326   ac_cv_lib_dld_dld_link=yes
21327 else
21328   echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21330
21331 ac_cv_lib_dld_dld_link=no
21332 fi
21333 rm -f conftest.err conftest.$ac_objext \
21334       conftest$ac_exeext conftest.$ac_ext
21335 LIBS=$ac_check_lib_save_LIBS
21336 fi
21337 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21338 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21339 if test $ac_cv_lib_dld_dld_link = yes; then
21340   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21341 fi
21342
21343
21344 fi
21345
21346
21347 fi
21348
21349
21350 fi
21351
21352
21353 fi
21354
21355
21356 fi
21357
21358     ;;
21359   esac
21360
21361   if test "x$lt_cv_dlopen" != xno; then
21362     enable_dlopen=yes
21363   else
21364     enable_dlopen=no
21365   fi
21366
21367   case $lt_cv_dlopen in
21368   dlopen)
21369     save_CPPFLAGS="$CPPFLAGS"
21370     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21371
21372     save_LDFLAGS="$LDFLAGS"
21373     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21374
21375     save_LIBS="$LIBS"
21376     LIBS="$lt_cv_dlopen_libs $LIBS"
21377
21378     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21379 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21380 if test "${lt_cv_dlopen_self+set}" = set; then
21381   echo $ECHO_N "(cached) $ECHO_C" >&6
21382 else
21383           if test "$cross_compiling" = yes; then :
21384   lt_cv_dlopen_self=cross
21385 else
21386   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21387   lt_status=$lt_dlunknown
21388   cat > conftest.$ac_ext <<EOF
21389 #line 21389 "configure"
21390 #include "confdefs.h"
21391
21392 #if HAVE_DLFCN_H
21393 #include <dlfcn.h>
21394 #endif
21395
21396 #include <stdio.h>
21397
21398 #ifdef RTLD_GLOBAL
21399 #  define LT_DLGLOBAL           RTLD_GLOBAL
21400 #else
21401 #  ifdef DL_GLOBAL
21402 #    define LT_DLGLOBAL         DL_GLOBAL
21403 #  else
21404 #    define LT_DLGLOBAL         0
21405 #  endif
21406 #endif
21407
21408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21409    find out it does not work in some platform. */
21410 #ifndef LT_DLLAZY_OR_NOW
21411 #  ifdef RTLD_LAZY
21412 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21413 #  else
21414 #    ifdef DL_LAZY
21415 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21416 #    else
21417 #      ifdef RTLD_NOW
21418 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21419 #      else
21420 #        ifdef DL_NOW
21421 #          define LT_DLLAZY_OR_NOW      DL_NOW
21422 #        else
21423 #          define LT_DLLAZY_OR_NOW      0
21424 #        endif
21425 #      endif
21426 #    endif
21427 #  endif
21428 #endif
21429
21430 #ifdef __cplusplus
21431 extern "C" void exit (int);
21432 #endif
21433
21434 void fnord() { int i=42;}
21435 int main ()
21436 {
21437   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21438   int status = $lt_dlunknown;
21439
21440   if (self)
21441     {
21442       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21443       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21444       /* dlclose (self); */
21445     }
21446
21447     exit (status);
21448 }
21449 EOF
21450   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21451   (eval $ac_link) 2>&5
21452   ac_status=$?
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21455     (./conftest; exit; ) 2>/dev/null
21456     lt_status=$?
21457     case x$lt_status in
21458       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21459       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21460       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21461     esac
21462   else :
21463     # compilation failed
21464     lt_cv_dlopen_self=no
21465   fi
21466 fi
21467 rm -fr conftest*
21468
21469
21470 fi
21471 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21472 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21473
21474     if test "x$lt_cv_dlopen_self" = xyes; then
21475       LDFLAGS="$LDFLAGS $link_static_flag"
21476       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21477 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21478 if test "${lt_cv_dlopen_self_static+set}" = set; then
21479   echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481           if test "$cross_compiling" = yes; then :
21482   lt_cv_dlopen_self_static=cross
21483 else
21484   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21485   lt_status=$lt_dlunknown
21486   cat > conftest.$ac_ext <<EOF
21487 #line 21487 "configure"
21488 #include "confdefs.h"
21489
21490 #if HAVE_DLFCN_H
21491 #include <dlfcn.h>
21492 #endif
21493
21494 #include <stdio.h>
21495
21496 #ifdef RTLD_GLOBAL
21497 #  define LT_DLGLOBAL           RTLD_GLOBAL
21498 #else
21499 #  ifdef DL_GLOBAL
21500 #    define LT_DLGLOBAL         DL_GLOBAL
21501 #  else
21502 #    define LT_DLGLOBAL         0
21503 #  endif
21504 #endif
21505
21506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21507    find out it does not work in some platform. */
21508 #ifndef LT_DLLAZY_OR_NOW
21509 #  ifdef RTLD_LAZY
21510 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21511 #  else
21512 #    ifdef DL_LAZY
21513 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21514 #    else
21515 #      ifdef RTLD_NOW
21516 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21517 #      else
21518 #        ifdef DL_NOW
21519 #          define LT_DLLAZY_OR_NOW      DL_NOW
21520 #        else
21521 #          define LT_DLLAZY_OR_NOW      0
21522 #        endif
21523 #      endif
21524 #    endif
21525 #  endif
21526 #endif
21527
21528 #ifdef __cplusplus
21529 extern "C" void exit (int);
21530 #endif
21531
21532 void fnord() { int i=42;}
21533 int main ()
21534 {
21535   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21536   int status = $lt_dlunknown;
21537
21538   if (self)
21539     {
21540       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21541       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21542       /* dlclose (self); */
21543     }
21544
21545     exit (status);
21546 }
21547 EOF
21548   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21549   (eval $ac_link) 2>&5
21550   ac_status=$?
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21553     (./conftest; exit; ) 2>/dev/null
21554     lt_status=$?
21555     case x$lt_status in
21556       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21557       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21558       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21559     esac
21560   else :
21561     # compilation failed
21562     lt_cv_dlopen_self_static=no
21563   fi
21564 fi
21565 rm -fr conftest*
21566
21567
21568 fi
21569 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21570 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21571     fi
21572
21573     CPPFLAGS="$save_CPPFLAGS"
21574     LDFLAGS="$save_LDFLAGS"
21575     LIBS="$save_LIBS"
21576     ;;
21577   esac
21578
21579   case $lt_cv_dlopen_self in
21580   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21581   *) enable_dlopen_self=unknown ;;
21582   esac
21583
21584   case $lt_cv_dlopen_self_static in
21585   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21586   *) enable_dlopen_self_static=unknown ;;
21587   esac
21588 fi
21589
21590
21591 # The else clause should only fire when bootstrapping the
21592 # libtool distribution, otherwise you forgot to ship ltmain.sh
21593 # with your package, and you will get complaints that there are
21594 # no rules to generate ltmain.sh.
21595 if test -f "$ltmain"; then
21596   # See if we are running on zsh, and set the options which allow our commands through
21597   # without removal of \ escapes.
21598   if test -n "${ZSH_VERSION+set}" ; then
21599     setopt NO_GLOB_SUBST
21600   fi
21601   # Now quote all the things that may contain metacharacters while being
21602   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21603   # variables and quote the copies for generation of the libtool script.
21604   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21605     SED SHELL STRIP \
21606     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21607     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21608     deplibs_check_method reload_flag reload_cmds need_locks \
21609     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21610     lt_cv_sys_global_symbol_to_c_name_address \
21611     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21612     old_postinstall_cmds old_postuninstall_cmds \
21613     compiler_GCJ \
21614     CC_GCJ \
21615     LD_GCJ \
21616     lt_prog_compiler_wl_GCJ \
21617     lt_prog_compiler_pic_GCJ \
21618     lt_prog_compiler_static_GCJ \
21619     lt_prog_compiler_no_builtin_flag_GCJ \
21620     export_dynamic_flag_spec_GCJ \
21621     thread_safe_flag_spec_GCJ \
21622     whole_archive_flag_spec_GCJ \
21623     enable_shared_with_static_runtimes_GCJ \
21624     old_archive_cmds_GCJ \
21625     old_archive_from_new_cmds_GCJ \
21626     predep_objects_GCJ \
21627     postdep_objects_GCJ \
21628     predeps_GCJ \
21629     postdeps_GCJ \
21630     compiler_lib_search_path_GCJ \
21631     archive_cmds_GCJ \
21632     archive_expsym_cmds_GCJ \
21633     postinstall_cmds_GCJ \
21634     postuninstall_cmds_GCJ \
21635     old_archive_from_expsyms_cmds_GCJ \
21636     allow_undefined_flag_GCJ \
21637     no_undefined_flag_GCJ \
21638     export_symbols_cmds_GCJ \
21639     hardcode_libdir_flag_spec_GCJ \
21640     hardcode_libdir_flag_spec_ld_GCJ \
21641     hardcode_libdir_separator_GCJ \
21642     hardcode_automatic_GCJ \
21643     module_cmds_GCJ \
21644     module_expsym_cmds_GCJ \
21645     lt_cv_prog_compiler_c_o_GCJ \
21646     exclude_expsyms_GCJ \
21647     include_expsyms_GCJ; do
21648
21649     case $var in
21650     old_archive_cmds_GCJ | \
21651     old_archive_from_new_cmds_GCJ | \
21652     archive_cmds_GCJ | \
21653     archive_expsym_cmds_GCJ | \
21654     module_cmds_GCJ | \
21655     module_expsym_cmds_GCJ | \
21656     old_archive_from_expsyms_cmds_GCJ | \
21657     export_symbols_cmds_GCJ | \
21658     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21659     postinstall_cmds | postuninstall_cmds | \
21660     old_postinstall_cmds | old_postuninstall_cmds | \
21661     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21662       # Double-quote double-evaled strings.
21663       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21664       ;;
21665     *)
21666       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21667       ;;
21668     esac
21669   done
21670
21671   case $lt_echo in
21672   *'\$0 --fallback-echo"')
21673     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21674     ;;
21675   esac
21676
21677 cfgfile="$ofile"
21678
21679   cat <<__EOF__ >> "$cfgfile"
21680 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21681
21682 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21683
21684 # Shell to use when invoking shell scripts.
21685 SHELL=$lt_SHELL
21686
21687 # Whether or not to build shared libraries.
21688 build_libtool_libs=$enable_shared
21689
21690 # Whether or not to build static libraries.
21691 build_old_libs=$enable_static
21692
21693 # Whether or not to add -lc for building shared libraries.
21694 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21695
21696 # Whether or not to disallow shared libs when runtime libs are static
21697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21698
21699 # Whether or not to optimize for fast installation.
21700 fast_install=$enable_fast_install
21701
21702 # The host system.
21703 host_alias=$host_alias
21704 host=$host
21705
21706 # An echo program that does not interpret backslashes.
21707 echo=$lt_echo
21708
21709 # The archiver.
21710 AR=$lt_AR
21711 AR_FLAGS=$lt_AR_FLAGS
21712
21713 # A C compiler.
21714 LTCC=$lt_LTCC
21715
21716 # A language-specific compiler.
21717 CC=$lt_compiler_GCJ
21718
21719 # Is the compiler the GNU C compiler?
21720 with_gcc=$GCC_GCJ
21721
21722 # An ERE matcher.
21723 EGREP=$lt_EGREP
21724
21725 # The linker used to build libraries.
21726 LD=$lt_LD_GCJ
21727
21728 # Whether we need hard or soft links.
21729 LN_S=$lt_LN_S
21730
21731 # A BSD-compatible nm program.
21732 NM=$lt_NM
21733
21734 # A symbol stripping program
21735 STRIP=$lt_STRIP
21736
21737 # Used to examine libraries when file_magic_cmd begins "file"
21738 MAGIC_CMD=$MAGIC_CMD
21739
21740 # Used on cygwin: DLL creation program.
21741 DLLTOOL="$DLLTOOL"
21742
21743 # Used on cygwin: object dumper.
21744 OBJDUMP="$OBJDUMP"
21745
21746 # Used on cygwin: assembler.
21747 AS="$AS"
21748
21749 # The name of the directory that contains temporary libtool files.
21750 objdir=$objdir
21751
21752 # How to create reloadable object files.
21753 reload_flag=$lt_reload_flag
21754 reload_cmds=$lt_reload_cmds
21755
21756 # How to pass a linker flag through the compiler.
21757 wl=$lt_lt_prog_compiler_wl_GCJ
21758
21759 # Object file suffix (normally "o").
21760 objext="$ac_objext"
21761
21762 # Old archive suffix (normally "a").
21763 libext="$libext"
21764
21765 # Shared library suffix (normally ".so").
21766 shrext_cmds='$shrext_cmds'
21767
21768 # Executable file suffix (normally "").
21769 exeext="$exeext"
21770
21771 # Additional compiler flags for building library objects.
21772 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21773 pic_mode=$pic_mode
21774
21775 # What is the maximum length of a command?
21776 max_cmd_len=$lt_cv_sys_max_cmd_len
21777
21778 # Does compiler simultaneously support -c and -o options?
21779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21780
21781 # Must we lock files when doing compilation ?
21782 need_locks=$lt_need_locks
21783
21784 # Do we need the lib prefix for modules?
21785 need_lib_prefix=$need_lib_prefix
21786
21787 # Do we need a version for libraries?
21788 need_version=$need_version
21789
21790 # Whether dlopen is supported.
21791 dlopen_support=$enable_dlopen
21792
21793 # Whether dlopen of programs is supported.
21794 dlopen_self=$enable_dlopen_self
21795
21796 # Whether dlopen of statically linked programs is supported.
21797 dlopen_self_static=$enable_dlopen_self_static
21798
21799 # Compiler flag to prevent dynamic linking.
21800 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21801
21802 # Compiler flag to turn off builtin functions.
21803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21804
21805 # Compiler flag to allow reflexive dlopens.
21806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21807
21808 # Compiler flag to generate shared objects directly from archives.
21809 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21810
21811 # Compiler flag to generate thread-safe objects.
21812 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21813
21814 # Library versioning type.
21815 version_type=$version_type
21816
21817 # Format of library name prefix.
21818 libname_spec=$lt_libname_spec
21819
21820 # List of archive names.  First name is the real one, the rest are links.
21821 # The last name is the one that the linker finds with -lNAME.
21822 library_names_spec=$lt_library_names_spec
21823
21824 # The coded name of the library, if different from the real name.
21825 soname_spec=$lt_soname_spec
21826
21827 # Commands used to build and install an old-style archive.
21828 RANLIB=$lt_RANLIB
21829 old_archive_cmds=$lt_old_archive_cmds_GCJ
21830 old_postinstall_cmds=$lt_old_postinstall_cmds
21831 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21832
21833 # Create an old-style archive from a shared archive.
21834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21835
21836 # Create a temporary old-style archive to link instead of a shared archive.
21837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21838
21839 # Commands used to build and install a shared archive.
21840 archive_cmds=$lt_archive_cmds_GCJ
21841 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21842 postinstall_cmds=$lt_postinstall_cmds
21843 postuninstall_cmds=$lt_postuninstall_cmds
21844
21845 # Commands used to build a loadable module (assumed same as above if empty)
21846 module_cmds=$lt_module_cmds_GCJ
21847 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21848
21849 # Commands to strip libraries.
21850 old_striplib=$lt_old_striplib
21851 striplib=$lt_striplib
21852
21853 # Dependencies to place before the objects being linked to create a
21854 # shared library.
21855 predep_objects=$lt_predep_objects_GCJ
21856
21857 # Dependencies to place after the objects being linked to create a
21858 # shared library.
21859 postdep_objects=$lt_postdep_objects_GCJ
21860
21861 # Dependencies to place before the objects being linked to create a
21862 # shared library.
21863 predeps=$lt_predeps_GCJ
21864
21865 # Dependencies to place after the objects being linked to create a
21866 # shared library.
21867 postdeps=$lt_postdeps_GCJ
21868
21869 # The library search path used internally by the compiler when linking
21870 # a shared library.
21871 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21872
21873 # Method to check whether dependent libraries are shared objects.
21874 deplibs_check_method=$lt_deplibs_check_method
21875
21876 # Command to use when deplibs_check_method == file_magic.
21877 file_magic_cmd=$lt_file_magic_cmd
21878
21879 # Flag that allows shared libraries with undefined symbols to be built.
21880 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21881
21882 # Flag that forces no undefined symbols.
21883 no_undefined_flag=$lt_no_undefined_flag_GCJ
21884
21885 # Commands used to finish a libtool library installation in a directory.
21886 finish_cmds=$lt_finish_cmds
21887
21888 # Same as above, but a single script fragment to be evaled but not shown.
21889 finish_eval=$lt_finish_eval
21890
21891 # Take the output of nm and produce a listing of raw symbols and C names.
21892 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21893
21894 # Transform the output of nm in a proper C declaration
21895 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21896
21897 # Transform the output of nm in a C name address pair
21898 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21899
21900 # This is the shared library runtime path variable.
21901 runpath_var=$runpath_var
21902
21903 # This is the shared library path variable.
21904 shlibpath_var=$shlibpath_var
21905
21906 # Is shlibpath searched before the hard-coded library search path?
21907 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21908
21909 # How to hardcode a shared library path into an executable.
21910 hardcode_action=$hardcode_action_GCJ
21911
21912 # Whether we should hardcode library paths into libraries.
21913 hardcode_into_libs=$hardcode_into_libs
21914
21915 # Flag to hardcode \$libdir into a binary during linking.
21916 # This must work even if \$libdir does not exist.
21917 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21918
21919 # If ld is used when linking, flag to hardcode \$libdir into
21920 # a binary during linking. This must work even if \$libdir does
21921 # not exist.
21922 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21923
21924 # Whether we need a single -rpath flag with a separated argument.
21925 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21926
21927 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21928 # resulting binary.
21929 hardcode_direct=$hardcode_direct_GCJ
21930
21931 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21932 # resulting binary.
21933 hardcode_minus_L=$hardcode_minus_L_GCJ
21934
21935 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21936 # the resulting binary.
21937 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21938
21939 # Set to yes if building a shared library automatically hardcodes DIR into the library
21940 # and all subsequent libraries and executables linked against it.
21941 hardcode_automatic=$hardcode_automatic_GCJ
21942
21943 # Variables whose values should be saved in libtool wrapper scripts and
21944 # restored at relink time.
21945 variables_saved_for_relink="$variables_saved_for_relink"
21946
21947 # Whether libtool must link a program against all its dependency libraries.
21948 link_all_deplibs=$link_all_deplibs_GCJ
21949
21950 # Compile-time system search path for libraries
21951 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21952
21953 # Run-time system search path for libraries
21954 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21955
21956 # Fix the shell variable \$srcfile for the compiler.
21957 fix_srcfile_path="$fix_srcfile_path_GCJ"
21958
21959 # Set to yes if exported symbols are required.
21960 always_export_symbols=$always_export_symbols_GCJ
21961
21962 # The commands to list exported symbols.
21963 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21964
21965 # The commands to extract the exported symbol list from a shared archive.
21966 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21967
21968 # Symbols that should not be listed in the preloaded symbols.
21969 exclude_expsyms=$lt_exclude_expsyms_GCJ
21970
21971 # Symbols that must always be exported.
21972 include_expsyms=$lt_include_expsyms_GCJ
21973
21974 # ### END LIBTOOL TAG CONFIG: $tagname
21975
21976 __EOF__
21977
21978
21979 else
21980   # If there is no Makefile yet, we rely on a make rule to execute
21981   # `config.status --recheck' to rerun these tests and create the
21982   # libtool script then.
21983   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21984   if test -f "$ltmain_in"; then
21985     test -f Makefile && make "$ltmain"
21986   fi
21987 fi
21988
21989
21990 ac_ext=c
21991 ac_cpp='$CPP $CPPFLAGS'
21992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21995
21996 CC="$lt_save_CC"
21997
21998         else
21999           tagname=""
22000         fi
22001         ;;
22002
22003       RC)
22004
22005
22006
22007 # Source file extension for RC test sources.
22008 ac_ext=rc
22009
22010 # Object file extension for compiled RC test sources.
22011 objext=o
22012 objext_RC=$objext
22013
22014 # Code to be used in simple compile tests
22015 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22016
22017 # Code to be used in simple link tests
22018 lt_simple_link_test_code="$lt_simple_compile_test_code"
22019
22020 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22021
22022 # If no C compiler was specified, use CC.
22023 LTCC=${LTCC-"$CC"}
22024
22025 # Allow CC to be a program name with arguments.
22026 compiler=$CC
22027
22028
22029 # Allow CC to be a program name with arguments.
22030 lt_save_CC="$CC"
22031 CC=${RC-"windres"}
22032 compiler=$CC
22033 compiler_RC=$CC
22034 lt_cv_prog_compiler_c_o_RC=yes
22035
22036 # The else clause should only fire when bootstrapping the
22037 # libtool distribution, otherwise you forgot to ship ltmain.sh
22038 # with your package, and you will get complaints that there are
22039 # no rules to generate ltmain.sh.
22040 if test -f "$ltmain"; then
22041   # See if we are running on zsh, and set the options which allow our commands through
22042   # without removal of \ escapes.
22043   if test -n "${ZSH_VERSION+set}" ; then
22044     setopt NO_GLOB_SUBST
22045   fi
22046   # Now quote all the things that may contain metacharacters while being
22047   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22048   # variables and quote the copies for generation of the libtool script.
22049   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22050     SED SHELL STRIP \
22051     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22052     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22053     deplibs_check_method reload_flag reload_cmds need_locks \
22054     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22055     lt_cv_sys_global_symbol_to_c_name_address \
22056     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22057     old_postinstall_cmds old_postuninstall_cmds \
22058     compiler_RC \
22059     CC_RC \
22060     LD_RC \
22061     lt_prog_compiler_wl_RC \
22062     lt_prog_compiler_pic_RC \
22063     lt_prog_compiler_static_RC \
22064     lt_prog_compiler_no_builtin_flag_RC \
22065     export_dynamic_flag_spec_RC \
22066     thread_safe_flag_spec_RC \
22067     whole_archive_flag_spec_RC \
22068     enable_shared_with_static_runtimes_RC \
22069     old_archive_cmds_RC \
22070     old_archive_from_new_cmds_RC \
22071     predep_objects_RC \
22072     postdep_objects_RC \
22073     predeps_RC \
22074     postdeps_RC \
22075     compiler_lib_search_path_RC \
22076     archive_cmds_RC \
22077     archive_expsym_cmds_RC \
22078     postinstall_cmds_RC \
22079     postuninstall_cmds_RC \
22080     old_archive_from_expsyms_cmds_RC \
22081     allow_undefined_flag_RC \
22082     no_undefined_flag_RC \
22083     export_symbols_cmds_RC \
22084     hardcode_libdir_flag_spec_RC \
22085     hardcode_libdir_flag_spec_ld_RC \
22086     hardcode_libdir_separator_RC \
22087     hardcode_automatic_RC \
22088     module_cmds_RC \
22089     module_expsym_cmds_RC \
22090     lt_cv_prog_compiler_c_o_RC \
22091     exclude_expsyms_RC \
22092     include_expsyms_RC; do
22093
22094     case $var in
22095     old_archive_cmds_RC | \
22096     old_archive_from_new_cmds_RC | \
22097     archive_cmds_RC | \
22098     archive_expsym_cmds_RC | \
22099     module_cmds_RC | \
22100     module_expsym_cmds_RC | \
22101     old_archive_from_expsyms_cmds_RC | \
22102     export_symbols_cmds_RC | \
22103     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22104     postinstall_cmds | postuninstall_cmds | \
22105     old_postinstall_cmds | old_postuninstall_cmds | \
22106     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22107       # Double-quote double-evaled strings.
22108       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22109       ;;
22110     *)
22111       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22112       ;;
22113     esac
22114   done
22115
22116   case $lt_echo in
22117   *'\$0 --fallback-echo"')
22118     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22119     ;;
22120   esac
22121
22122 cfgfile="$ofile"
22123
22124   cat <<__EOF__ >> "$cfgfile"
22125 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22126
22127 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22128
22129 # Shell to use when invoking shell scripts.
22130 SHELL=$lt_SHELL
22131
22132 # Whether or not to build shared libraries.
22133 build_libtool_libs=$enable_shared
22134
22135 # Whether or not to build static libraries.
22136 build_old_libs=$enable_static
22137
22138 # Whether or not to add -lc for building shared libraries.
22139 build_libtool_need_lc=$archive_cmds_need_lc_RC
22140
22141 # Whether or not to disallow shared libs when runtime libs are static
22142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22143
22144 # Whether or not to optimize for fast installation.
22145 fast_install=$enable_fast_install
22146
22147 # The host system.
22148 host_alias=$host_alias
22149 host=$host
22150
22151 # An echo program that does not interpret backslashes.
22152 echo=$lt_echo
22153
22154 # The archiver.
22155 AR=$lt_AR
22156 AR_FLAGS=$lt_AR_FLAGS
22157
22158 # A C compiler.
22159 LTCC=$lt_LTCC
22160
22161 # A language-specific compiler.
22162 CC=$lt_compiler_RC
22163
22164 # Is the compiler the GNU C compiler?
22165 with_gcc=$GCC_RC
22166
22167 # An ERE matcher.
22168 EGREP=$lt_EGREP
22169
22170 # The linker used to build libraries.
22171 LD=$lt_LD_RC
22172
22173 # Whether we need hard or soft links.
22174 LN_S=$lt_LN_S
22175
22176 # A BSD-compatible nm program.
22177 NM=$lt_NM
22178
22179 # A symbol stripping program
22180 STRIP=$lt_STRIP
22181
22182 # Used to examine libraries when file_magic_cmd begins "file"
22183 MAGIC_CMD=$MAGIC_CMD
22184
22185 # Used on cygwin: DLL creation program.
22186 DLLTOOL="$DLLTOOL"
22187
22188 # Used on cygwin: object dumper.
22189 OBJDUMP="$OBJDUMP"
22190
22191 # Used on cygwin: assembler.
22192 AS="$AS"
22193
22194 # The name of the directory that contains temporary libtool files.
22195 objdir=$objdir
22196
22197 # How to create reloadable object files.
22198 reload_flag=$lt_reload_flag
22199 reload_cmds=$lt_reload_cmds
22200
22201 # How to pass a linker flag through the compiler.
22202 wl=$lt_lt_prog_compiler_wl_RC
22203
22204 # Object file suffix (normally "o").
22205 objext="$ac_objext"
22206
22207 # Old archive suffix (normally "a").
22208 libext="$libext"
22209
22210 # Shared library suffix (normally ".so").
22211 shrext_cmds='$shrext_cmds'
22212
22213 # Executable file suffix (normally "").
22214 exeext="$exeext"
22215
22216 # Additional compiler flags for building library objects.
22217 pic_flag=$lt_lt_prog_compiler_pic_RC
22218 pic_mode=$pic_mode
22219
22220 # What is the maximum length of a command?
22221 max_cmd_len=$lt_cv_sys_max_cmd_len
22222
22223 # Does compiler simultaneously support -c and -o options?
22224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22225
22226 # Must we lock files when doing compilation ?
22227 need_locks=$lt_need_locks
22228
22229 # Do we need the lib prefix for modules?
22230 need_lib_prefix=$need_lib_prefix
22231
22232 # Do we need a version for libraries?
22233 need_version=$need_version
22234
22235 # Whether dlopen is supported.
22236 dlopen_support=$enable_dlopen
22237
22238 # Whether dlopen of programs is supported.
22239 dlopen_self=$enable_dlopen_self
22240
22241 # Whether dlopen of statically linked programs is supported.
22242 dlopen_self_static=$enable_dlopen_self_static
22243
22244 # Compiler flag to prevent dynamic linking.
22245 link_static_flag=$lt_lt_prog_compiler_static_RC
22246
22247 # Compiler flag to turn off builtin functions.
22248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22249
22250 # Compiler flag to allow reflexive dlopens.
22251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22252
22253 # Compiler flag to generate shared objects directly from archives.
22254 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22255
22256 # Compiler flag to generate thread-safe objects.
22257 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22258
22259 # Library versioning type.
22260 version_type=$version_type
22261
22262 # Format of library name prefix.
22263 libname_spec=$lt_libname_spec
22264
22265 # List of archive names.  First name is the real one, the rest are links.
22266 # The last name is the one that the linker finds with -lNAME.
22267 library_names_spec=$lt_library_names_spec
22268
22269 # The coded name of the library, if different from the real name.
22270 soname_spec=$lt_soname_spec
22271
22272 # Commands used to build and install an old-style archive.
22273 RANLIB=$lt_RANLIB
22274 old_archive_cmds=$lt_old_archive_cmds_RC
22275 old_postinstall_cmds=$lt_old_postinstall_cmds
22276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22277
22278 # Create an old-style archive from a shared archive.
22279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22280
22281 # Create a temporary old-style archive to link instead of a shared archive.
22282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22283
22284 # Commands used to build and install a shared archive.
22285 archive_cmds=$lt_archive_cmds_RC
22286 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22287 postinstall_cmds=$lt_postinstall_cmds
22288 postuninstall_cmds=$lt_postuninstall_cmds
22289
22290 # Commands used to build a loadable module (assumed same as above if empty)
22291 module_cmds=$lt_module_cmds_RC
22292 module_expsym_cmds=$lt_module_expsym_cmds_RC
22293
22294 # Commands to strip libraries.
22295 old_striplib=$lt_old_striplib
22296 striplib=$lt_striplib
22297
22298 # Dependencies to place before the objects being linked to create a
22299 # shared library.
22300 predep_objects=$lt_predep_objects_RC
22301
22302 # Dependencies to place after the objects being linked to create a
22303 # shared library.
22304 postdep_objects=$lt_postdep_objects_RC
22305
22306 # Dependencies to place before the objects being linked to create a
22307 # shared library.
22308 predeps=$lt_predeps_RC
22309
22310 # Dependencies to place after the objects being linked to create a
22311 # shared library.
22312 postdeps=$lt_postdeps_RC
22313
22314 # The library search path used internally by the compiler when linking
22315 # a shared library.
22316 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22317
22318 # Method to check whether dependent libraries are shared objects.
22319 deplibs_check_method=$lt_deplibs_check_method
22320
22321 # Command to use when deplibs_check_method == file_magic.
22322 file_magic_cmd=$lt_file_magic_cmd
22323
22324 # Flag that allows shared libraries with undefined symbols to be built.
22325 allow_undefined_flag=$lt_allow_undefined_flag_RC
22326
22327 # Flag that forces no undefined symbols.
22328 no_undefined_flag=$lt_no_undefined_flag_RC
22329
22330 # Commands used to finish a libtool library installation in a directory.
22331 finish_cmds=$lt_finish_cmds
22332
22333 # Same as above, but a single script fragment to be evaled but not shown.
22334 finish_eval=$lt_finish_eval
22335
22336 # Take the output of nm and produce a listing of raw symbols and C names.
22337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22338
22339 # Transform the output of nm in a proper C declaration
22340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22341
22342 # Transform the output of nm in a C name address pair
22343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22344
22345 # This is the shared library runtime path variable.
22346 runpath_var=$runpath_var
22347
22348 # This is the shared library path variable.
22349 shlibpath_var=$shlibpath_var
22350
22351 # Is shlibpath searched before the hard-coded library search path?
22352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22353
22354 # How to hardcode a shared library path into an executable.
22355 hardcode_action=$hardcode_action_RC
22356
22357 # Whether we should hardcode library paths into libraries.
22358 hardcode_into_libs=$hardcode_into_libs
22359
22360 # Flag to hardcode \$libdir into a binary during linking.
22361 # This must work even if \$libdir does not exist.
22362 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22363
22364 # If ld is used when linking, flag to hardcode \$libdir into
22365 # a binary during linking. This must work even if \$libdir does
22366 # not exist.
22367 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22368
22369 # Whether we need a single -rpath flag with a separated argument.
22370 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22371
22372 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22373 # resulting binary.
22374 hardcode_direct=$hardcode_direct_RC
22375
22376 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22377 # resulting binary.
22378 hardcode_minus_L=$hardcode_minus_L_RC
22379
22380 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22381 # the resulting binary.
22382 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22383
22384 # Set to yes if building a shared library automatically hardcodes DIR into the library
22385 # and all subsequent libraries and executables linked against it.
22386 hardcode_automatic=$hardcode_automatic_RC
22387
22388 # Variables whose values should be saved in libtool wrapper scripts and
22389 # restored at relink time.
22390 variables_saved_for_relink="$variables_saved_for_relink"
22391
22392 # Whether libtool must link a program against all its dependency libraries.
22393 link_all_deplibs=$link_all_deplibs_RC
22394
22395 # Compile-time system search path for libraries
22396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22397
22398 # Run-time system search path for libraries
22399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22400
22401 # Fix the shell variable \$srcfile for the compiler.
22402 fix_srcfile_path="$fix_srcfile_path_RC"
22403
22404 # Set to yes if exported symbols are required.
22405 always_export_symbols=$always_export_symbols_RC
22406
22407 # The commands to list exported symbols.
22408 export_symbols_cmds=$lt_export_symbols_cmds_RC
22409
22410 # The commands to extract the exported symbol list from a shared archive.
22411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22412
22413 # Symbols that should not be listed in the preloaded symbols.
22414 exclude_expsyms=$lt_exclude_expsyms_RC
22415
22416 # Symbols that must always be exported.
22417 include_expsyms=$lt_include_expsyms_RC
22418
22419 # ### END LIBTOOL TAG CONFIG: $tagname
22420
22421 __EOF__
22422
22423
22424 else
22425   # If there is no Makefile yet, we rely on a make rule to execute
22426   # `config.status --recheck' to rerun these tests and create the
22427   # libtool script then.
22428   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22429   if test -f "$ltmain_in"; then
22430     test -f Makefile && make "$ltmain"
22431   fi
22432 fi
22433
22434
22435 ac_ext=c
22436 ac_cpp='$CPP $CPPFLAGS'
22437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22440
22441 CC="$lt_save_CC"
22442
22443         ;;
22444
22445       *)
22446         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22447 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22448    { (exit 1); exit 1; }; }
22449         ;;
22450       esac
22451
22452       # Append the new tag name to the list of available tags.
22453       if test -n "$tagname" ; then
22454       available_tags="$available_tags $tagname"
22455     fi
22456     fi
22457   done
22458   IFS="$lt_save_ifs"
22459
22460   # Now substitute the updated list of available tags.
22461   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22462     mv "${ofile}T" "$ofile"
22463     chmod +x "$ofile"
22464   else
22465     rm -f "${ofile}T"
22466     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22467 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22468    { (exit 1); exit 1; }; }
22469   fi
22470 fi
22471
22472
22473
22474 # This can be used to rebuild libtool when needed
22475 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22476
22477 # Always use our own libtool.
22478 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22479
22480 # Prevent multiple expansion
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501                 O=lo
22502                 A=la
22503                 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
22504                 LIBTOOL_MODE_COMPILE='--mode=compile'
22505                 LIBTOOL_MODE_INSTALL='--mode=install'
22506                 LIBTOOL_MODE_LINK='--mode=link'
22507                 ;;
22508         *)
22509                 O=o
22510                 A=a
22511                 LIBTOOL=
22512
22513                 LIBTOOL_MKDEP_SED=
22514                 LIBTOOL_MODE_COMPILE=
22515                 LIBTOOL_MODE_INSTALL=
22516                 LIBTOOL_MODE_LINK=
22517                 ;;
22518 esac
22519
22520 #
22521 # File name extension for static archive files, for those few places
22522 # where they are treated differently from dynamic ones.
22523 #
22524 SA=a
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534 #
22535 # Here begins a very long section to determine the system's networking
22536 # capabilities.  The order of the tests is signficant.
22537 #
22538
22539 #
22540 # IPv6
22541 #
22542 # Check whether --enable-ipv6 or --disable-ipv6 was given.
22543 if test "${enable_ipv6+set}" = set; then
22544   enableval="$enable_ipv6"
22545
22546 fi;
22547
22548 case "$enable_ipv6" in
22549         yes|''|autodetect)
22550                 cat >>confdefs.h <<\_ACEOF
22551 #define WANT_IPV6 1
22552 _ACEOF
22553
22554                 ;;
22555         no)
22556                 ;;
22557 esac
22558
22559 #
22560 # We do the IPv6 compilation checking after libtool so that we can put
22561 # the right suffix on the files.
22562 #
22563 echo "$as_me:$LINENO: checking for IPv6 structures" >&5
22564 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6
22565 cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h.  */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h.  */
22571
22572 #include <sys/types.h>
22573 #include <sys/socket.h>
22574 #include <netinet/in.h>
22575 int
22576 main ()
22577 {
22578 struct sockaddr_in6 sin6; return (0);
22579   ;
22580   return 0;
22581 }
22582 _ACEOF
22583 rm -f conftest.$ac_objext
22584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22585   (eval $ac_compile) 2>conftest.er1
22586   ac_status=$?
22587   grep -v '^ *+' conftest.er1 >conftest.err
22588   rm -f conftest.er1
22589   cat conftest.err >&5
22590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591   (exit $ac_status); } &&
22592          { ac_try='test -z "$ac_c_werror_flag"
22593                          || test ! -s conftest.err'
22594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595   (eval $ac_try) 2>&5
22596   ac_status=$?
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); }; } &&
22599          { ac_try='test -s conftest.$ac_objext'
22600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601   (eval $ac_try) 2>&5
22602   ac_status=$?
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); }; }; then
22605   echo "$as_me:$LINENO: result: yes" >&5
22606 echo "${ECHO_T}yes" >&6
22607          found_ipv6=yes
22608 else
22609   echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22611
22612 echo "$as_me:$LINENO: result: no" >&5
22613 echo "${ECHO_T}no" >&6
22614          found_ipv6=no
22615 fi
22616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22617
22618 #
22619 # See whether IPv6 support is provided via a Kame add-on.
22620 # This is done before other IPv6 linking tests to LIBS is properly set.
22621 #
22622 echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
22623 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6
22624
22625 # Check whether --with-kame or --without-kame was given.
22626 if test "${with_kame+set}" = set; then
22627   withval="$with_kame"
22628   use_kame="$withval"
22629 else
22630   use_kame="no"
22631 fi;
22632
22633 case "$use_kame" in
22634         no)
22635                 ;;
22636         yes)
22637                 kame_path=/usr/local/v6
22638                 ;;
22639         *)
22640                 kame_path="$use_kame"
22641                 ;;
22642 esac
22643
22644 case "$use_kame" in
22645         no)
22646                 echo "$as_me:$LINENO: result: no" >&5
22647 echo "${ECHO_T}no" >&6
22648                 ;;
22649         *)
22650                 if test -f $kame_path/lib/libinet6.a; then
22651                         echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
22652 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6
22653                         LIBS="-L$kame_path/lib -linet6 $LIBS"
22654                 else
22655                         { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
22656
22657 Please choose the proper path with the following command:
22658
22659     configure --with-kame=PATH
22660 " >&5
22661 echo "$as_me: error: $kame_path/lib/libinet6.a not found.
22662
22663 Please choose the proper path with the following command:
22664
22665     configure --with-kame=PATH
22666 " >&2;}
22667    { (exit 1); exit 1; }; }
22668                 fi
22669                 ;;
22670 esac
22671
22672 #
22673 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
22674 # Including it on Kame-using platforms is very bad, though, because
22675 # Kame uses #error against direct inclusion.   So include it on only
22676 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
22677 # This is done before the in6_pktinfo check because that's what
22678 # netinet6/in6.h is needed for.
22679 #
22680
22681 case "$host" in
22682 *-bsdi4.[01]*)
22683         ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
22684         isc_netinet6in6_hack="#include <netinet6/in6.h>"
22685         ;;
22686 *)
22687         ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
22688         isc_netinet6in6_hack=""
22689         ;;
22690 esac
22691
22692
22693 #
22694 # This is similar to the netinet6/in6.h issue.
22695 #
22696 case "$host" in
22697 *-UnixWare*)
22698         ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
22699         ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
22700         isc_netinetin6_hack="#include <netinet/in6.h>"
22701         ;;
22702 *)
22703         ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
22704         ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
22705         isc_netinetin6_hack=""
22706         ;;
22707 esac
22708
22709 #
22710 # Now delve deeper into the suitability of the IPv6 support.
22711 #
22712 case "$found_ipv6" in
22713         yes)
22714                 HAS_INET6_STRUCTS="#define HAS_INET6_STRUCTS 1"
22715
22716                 echo "$as_me:$LINENO: checking for in6_addr" >&5
22717 echo $ECHO_N "checking for in6_addr... $ECHO_C" >&6
22718                 cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h.  */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h.  */
22724
22725 #include <sys/types.h>
22726 #include <sys/socket.h>
22727 #include <netinet/in.h>
22728 $isc_netinetin6_hack
22729 $isc_netinet6in6_hack
22730
22731 int
22732 main ()
22733 {
22734 struct in6_addr in6; return (0);
22735   ;
22736   return 0;
22737 }
22738 _ACEOF
22739 rm -f conftest.$ac_objext
22740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22741   (eval $ac_compile) 2>conftest.er1
22742   ac_status=$?
22743   grep -v '^ *+' conftest.er1 >conftest.err
22744   rm -f conftest.er1
22745   cat conftest.err >&5
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); } &&
22748          { ac_try='test -z "$ac_c_werror_flag"
22749                          || test ! -s conftest.err'
22750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751   (eval $ac_try) 2>&5
22752   ac_status=$?
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); }; } &&
22755          { ac_try='test -s conftest.$ac_objext'
22756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22757   (eval $ac_try) 2>&5
22758   ac_status=$?
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); }; }; then
22761   echo "$as_me:$LINENO: result: yes" >&5
22762 echo "${ECHO_T}yes" >&6
22763                  HAS_IN_ADDR6="#undef HAS_IN_ADDR6"
22764                  isc_in_addr6_hack=""
22765 else
22766   echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22768
22769 echo "$as_me:$LINENO: result: no" >&5
22770 echo "${ECHO_T}no" >&6
22771                  HAS_IN_ADDR6="#define HAS_IN_ADDR6 1"
22772                  isc_in_addr6_hack="#define in6_addr in_addr6"
22773 fi
22774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22775
22776                 echo "$as_me:$LINENO: checking for in6addr_any" >&5
22777 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
22778                 cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784
22785 #include <sys/types.h>
22786 #include <sys/socket.h>
22787 #include <netinet/in.h>
22788 $isc_netinetin6_hack
22789 $isc_netinet6in6_hack
22790 $isc_in_addr6_hack
22791
22792 int
22793 main ()
22794 {
22795 struct in6_addr in6; in6 = in6addr_any; return (0);
22796   ;
22797   return 0;
22798 }
22799 _ACEOF
22800 rm -f conftest.$ac_objext conftest$ac_exeext
22801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22802   (eval $ac_link) 2>conftest.er1
22803   ac_status=$?
22804   grep -v '^ *+' conftest.er1 >conftest.err
22805   rm -f conftest.er1
22806   cat conftest.err >&5
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); } &&
22809          { ac_try='test -z "$ac_c_werror_flag"
22810                          || test ! -s conftest.err'
22811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812   (eval $ac_try) 2>&5
22813   ac_status=$?
22814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); }; } &&
22816          { ac_try='test -s conftest$ac_exeext'
22817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818   (eval $ac_try) 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); }; }; then
22822   echo "$as_me:$LINENO: result: yes" >&5
22823 echo "${ECHO_T}yes" >&6
22824                          NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY"
22825 else
22826   echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 echo "$as_me:$LINENO: result: no" >&5
22830 echo "${ECHO_T}no" >&6
22831                          NEED_IN6ADDR_ANY="#define NEED_IN6ADDR_ANY 1"
22832 fi
22833 rm -f conftest.err conftest.$ac_objext \
22834       conftest$ac_exeext conftest.$ac_ext
22835
22836                 echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
22837 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6
22838                 cat >conftest.$ac_ext <<_ACEOF
22839 /* confdefs.h.  */
22840 _ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h.  */
22844
22845 #include <sys/types.h>
22846 #include <sys/socket.h>
22847 #include <netinet/in.h>
22848 $isc_netinetin6_hack
22849 $isc_netinet6in6_hack
22850
22851 int
22852 main ()
22853 {
22854 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
22855   ;
22856   return 0;
22857 }
22858 _ACEOF
22859 rm -f conftest.$ac_objext
22860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22861   (eval $ac_compile) 2>conftest.er1
22862   ac_status=$?
22863   grep -v '^ *+' conftest.er1 >conftest.err
22864   rm -f conftest.er1
22865   cat conftest.err >&5
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } &&
22868          { ac_try='test -z "$ac_c_werror_flag"
22869                          || test ! -s conftest.err'
22870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871   (eval $ac_try) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); }; } &&
22875          { ac_try='test -s conftest.$ac_objext'
22876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877   (eval $ac_try) 2>&5
22878   ac_status=$?
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); }; }; then
22881   echo "$as_me:$LINENO: result: yes" >&5
22882 echo "${ECHO_T}yes" >&6
22883                          result="#define HAVE_SIN6_SCOPE_ID 1"
22884 else
22885   echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22887
22888 echo "$as_me:$LINENO: result: no" >&5
22889 echo "${ECHO_T}no" >&6
22890                          result="#undef HAVE_SIN6_SCOPE_ID"
22891 fi
22892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22893                 HAVE_SIN6_SCOPE_ID="$result"
22894
22895                 echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
22896 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
22897                 cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h.  */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h.  */
22903
22904 #include <sys/types.h>
22905 #include <sys/socket.h>
22906 #include <netinet/in.h>
22907 $isc_netinetin6_hack
22908 $isc_netinet6in6_hack
22909
22910 int
22911 main ()
22912 {
22913 struct in6_pktinfo xyzzy; return (0);
22914   ;
22915   return 0;
22916 }
22917 _ACEOF
22918 rm -f conftest.$ac_objext
22919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22920   (eval $ac_compile) 2>conftest.er1
22921   ac_status=$?
22922   grep -v '^ *+' conftest.er1 >conftest.err
22923   rm -f conftest.er1
22924   cat conftest.err >&5
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); } &&
22927          { ac_try='test -z "$ac_c_werror_flag"
22928                          || test ! -s conftest.err'
22929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930   (eval $ac_try) 2>&5
22931   ac_status=$?
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); }; } &&
22934          { ac_try='test -s conftest.$ac_objext'
22935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936   (eval $ac_try) 2>&5
22937   ac_status=$?
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); }; }; then
22940   echo "$as_me:$LINENO: result: yes" >&5
22941 echo "${ECHO_T}yes" >&6
22942                          ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
22943 else
22944   echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22946
22947 echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
22948 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6
22949                          ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
22950 fi
22951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22952
22953                 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22954 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
22955                 cat >conftest.$ac_ext <<_ACEOF
22956 /* confdefs.h.  */
22957 _ACEOF
22958 cat confdefs.h >>conftest.$ac_ext
22959 cat >>conftest.$ac_ext <<_ACEOF
22960 /* end confdefs.h.  */
22961
22962 #include <sys/types.h>
22963 #include <sys/socket.h>
22964 #include <netinet/in.h>
22965 $isc_netinetin6_hack
22966 $isc_netinet6in6_hack
22967
22968 int
22969 main ()
22970 {
22971 struct sockaddr_storage xyzzy; return (0);
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 rm -f conftest.$ac_objext
22977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22978   (eval $ac_compile) 2>conftest.er1
22979   ac_status=$?
22980   grep -v '^ *+' conftest.er1 >conftest.err
22981   rm -f conftest.er1
22982   cat conftest.err >&5
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); } &&
22985          { ac_try='test -z "$ac_c_werror_flag"
22986                          || test ! -s conftest.err'
22987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988   (eval $ac_try) 2>&5
22989   ac_status=$?
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); }; } &&
22992          { ac_try='test -s conftest.$ac_objext'
22993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994   (eval $ac_try) 2>&5
22995   ac_status=$?
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); }; }; then
22998   echo "$as_me:$LINENO: result: yes" >&5
22999 echo "${ECHO_T}yes" >&6
23000                          HAVE_SOCKADDR_STORAGE="#define HAVE_SOCKADDR_STORAGE 1"
23001 else
23002   echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23004
23005 echo "$as_me:$LINENO: result: no" >&5
23006 echo "${ECHO_T}no" >&6
23007                          HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
23008 fi
23009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23010                 ;;
23011         no)
23012                 HAS_INET6_STRUCTS="#undef HAS_INET6_STRUCTS"
23013                 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY"
23014                 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23015                 HAVE_SIN6_SCOPE_ID="#define HAVE_SIN6_SCOPE_ID 1"
23016                 HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
23017                 ISC_IPV6_H="ipv6.h"
23018                 ISC_IPV6_O="ipv6.$O"
23019                 ISC_ISCIPV6_O="unix/ipv6.$O"
23020                 ISC_IPV6_C="ipv6.c"
23021                 ;;
23022 esac
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038 #
23039 # Check for network functions that are often missing.  We do this
23040 # after the libtool checking, so we can put the right suffix on
23041 # the files.  It also needs to come after checking for a Kame add-on,
23042 # which provides some (all?) of the desired functions.
23043 #
23044 echo "$as_me:$LINENO: checking for inet_ntop" >&5
23045 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
23046 cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052
23053 #include <sys/types.h>
23054 #include <netinet/in.h>
23055 #include <arpa/inet.h>
23056 int
23057 main ()
23058 {
23059 inet_ntop(0, 0, 0, 0); return (0);
23060   ;
23061   return 0;
23062 }
23063 _ACEOF
23064 rm -f conftest.$ac_objext conftest$ac_exeext
23065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23066   (eval $ac_link) 2>conftest.er1
23067   ac_status=$?
23068   grep -v '^ *+' conftest.er1 >conftest.err
23069   rm -f conftest.er1
23070   cat conftest.err >&5
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); } &&
23073          { ac_try='test -z "$ac_c_werror_flag"
23074                          || test ! -s conftest.err'
23075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076   (eval $ac_try) 2>&5
23077   ac_status=$?
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); }; } &&
23080          { ac_try='test -s conftest$ac_exeext'
23081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082   (eval $ac_try) 2>&5
23083   ac_status=$?
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); }; }; then
23086   echo "$as_me:$LINENO: result: yes" >&5
23087 echo "${ECHO_T}yes" >&6
23088         ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
23089 else
23090   echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 echo "$as_me:$LINENO: result: no" >&5
23094 echo "${ECHO_T}no" >&6
23095         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
23096         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
23097         ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
23098 fi
23099 rm -f conftest.err conftest.$ac_objext \
23100       conftest$ac_exeext conftest.$ac_ext
23101 echo "$as_me:$LINENO: checking for inet_pton" >&5
23102 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
23103 cat >conftest.$ac_ext <<_ACEOF
23104 /* confdefs.h.  */
23105 _ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h.  */
23109
23110 #include <sys/types.h>
23111 #include <netinet/in.h>
23112 #include <arpa/inet.h>
23113 int
23114 main ()
23115 {
23116 inet_pton(0, 0, 0); return (0);
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123   (eval $ac_link) 2>conftest.er1
23124   ac_status=$?
23125   grep -v '^ *+' conftest.er1 >conftest.err
23126   rm -f conftest.er1
23127   cat conftest.err >&5
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); } &&
23130          { ac_try='test -z "$ac_c_werror_flag"
23131                          || test ! -s conftest.err'
23132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133   (eval $ac_try) 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); }; } &&
23137          { ac_try='test -s conftest$ac_exeext'
23138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); }; }; then
23143   echo "$as_me:$LINENO: result: yes" >&5
23144 echo "${ECHO_T}yes" >&6
23145         ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
23146 else
23147   echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23149
23150 echo "$as_me:$LINENO: result: no" >&5
23151 echo "${ECHO_T}no" >&6
23152         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
23153         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
23154         ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
23155 fi
23156 rm -f conftest.err conftest.$ac_objext \
23157       conftest$ac_exeext conftest.$ac_ext
23158 echo "$as_me:$LINENO: checking for inet_aton" >&5
23159 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
23160 cat >conftest.$ac_ext <<_ACEOF
23161 /* confdefs.h.  */
23162 _ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h.  */
23166
23167 #include <sys/types.h>
23168 #include <netinet/in.h>
23169 #include <arpa/inet.h>
23170 int
23171 main ()
23172 {
23173 struct in_addr in; inet_aton(0, &in); return (0);
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 rm -f conftest.$ac_objext conftest$ac_exeext
23179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23180   (eval $ac_link) 2>conftest.er1
23181   ac_status=$?
23182   grep -v '^ *+' conftest.er1 >conftest.err
23183   rm -f conftest.er1
23184   cat conftest.err >&5
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); } &&
23187          { ac_try='test -z "$ac_c_werror_flag"
23188                          || test ! -s conftest.err'
23189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190   (eval $ac_try) 2>&5
23191   ac_status=$?
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); }; } &&
23194          { ac_try='test -s conftest$ac_exeext'
23195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196   (eval $ac_try) 2>&5
23197   ac_status=$?
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); }; }; then
23200   echo "$as_me:$LINENO: result: yes" >&5
23201 echo "${ECHO_T}yes" >&6
23202         ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
23203 else
23204   echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23206
23207 echo "$as_me:$LINENO: result: no" >&5
23208 echo "${ECHO_T}no" >&6
23209         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
23210         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
23211         ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
23212 fi
23213 rm -f conftest.err conftest.$ac_objext \
23214       conftest$ac_exeext conftest.$ac_ext
23215
23216
23217
23218
23219
23220 #
23221 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
23222 #
23223 case "$host" in
23224         *-dec-osf*)
23225                 # Turn on 4.4BSD style sa_len support.
23226                 cat >>confdefs.h <<\_ACEOF
23227 #define _SOCKADDR_LEN 1
23228 _ACEOF
23229
23230                 ;;
23231 esac
23232
23233 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
23234 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
23235 cat >conftest.$ac_ext <<_ACEOF
23236 /* confdefs.h.  */
23237 _ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h.  */
23241
23242 #include <sys/types.h>
23243 #include <sys/socket.h>
23244 int
23245 main ()
23246 {
23247 struct sockaddr sa; sa.sa_len = 0; return (0);
23248   ;
23249   return 0;
23250 }
23251 _ACEOF
23252 rm -f conftest.$ac_objext
23253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23254   (eval $ac_compile) 2>conftest.er1
23255   ac_status=$?
23256   grep -v '^ *+' conftest.er1 >conftest.err
23257   rm -f conftest.er1
23258   cat conftest.err >&5
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); } &&
23261          { ac_try='test -z "$ac_c_werror_flag"
23262                          || test ! -s conftest.err'
23263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264   (eval $ac_try) 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); }; } &&
23268          { ac_try='test -s conftest.$ac_objext'
23269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270   (eval $ac_try) 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); }; }; then
23274   echo "$as_me:$LINENO: result: yes" >&5
23275 echo "${ECHO_T}yes" >&6
23276         HAVE_SA_LEN="#define HAVE_SA_LEN 1"
23277 else
23278   echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281 echo "$as_me:$LINENO: result: no" >&5
23282 echo "${ECHO_T}no" >&6
23283         HAVE_SA_LEN="#undef HAVE_SA_LEN"
23284 fi
23285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23286
23287
23288 # HAVE_MINIMUM_IFREQ
23289
23290 case "$host" in
23291         *-bsdi2345*)    have_minimum_ifreq=yes;;
23292         *-darwin*)      have_minimum_ifreq=yes;;
23293         *-freebsd*)     have_minimum_ifreq=yes;;
23294         *-lynxos*)      have_minimum_ifreq=yes;;
23295         *-netbsd*)      have_minimum_ifreq=yes;;
23296         *-next*)        have_minimum_ifreq=yes;;
23297         *-openbsd*)     have_minimum_ifreq=yes;;
23298         *-rhapsody*)    have_minimum_ifreq=yes;;
23299 esac
23300
23301 case "$have_minimum_ifreq" in
23302         yes)
23303                 HAVE_MINIMUM_IFREQ="#define HAVE_MINIMUM_IFREQ 1";;
23304         no)
23305                 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
23306         *)
23307                 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
23308 esac
23309
23310
23311 # PORT_DIR
23312 PORT_DIR=port/unknown
23313 SOLARIS_BITTYPES="#undef NEED_SOLARIS_BITTYPES"
23314 BSD_COMP="#undef BSD_COMP"
23315 USE_FIONBIO_IOCTL="#undef USE_FIONBIO_IOCTL"
23316 PORT_NONBLOCK="#define PORT_NONBLOCK O_NONBLOCK"
23317 HAVE_MD5="#undef HAVE_MD5"
23318 USE_POLL="#undef HAVE_POLL"
23319 SOLARIS2="#undef SOLARIS2"
23320 case "$host" in
23321         *aix3.2*)       PORT_DIR="port/aix32";;
23322         *aix4*)         PORT_DIR="port/aix4";;
23323         *aix5*)         PORT_DIR="port/aix5";;
23324         *aux3*)         PORT_DIR="port/aux3";;
23325         *-bsdi2*)       PORT_DIR="port/bsdos2";;
23326         *-bsdi*)        PORT_DIR="port/bsdos";;
23327         *-cygwin*)
23328                         PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
23329                         PORT_DIR="port/cygwin";;
23330         *-darwin*)      PORT_DIR="port/darwin";;
23331         *-osf*)         PORT_DIR="port/decunix";;
23332         *-freebsd*)     PORT_DIR="port/freebsd";;
23333         *-hpux9*)       PORT_DIR="port/hpux9";;
23334         *-hpux10*)      PORT_DIR="port/hpux10";;
23335         *-hpux11*)      PORT_DIR="port/hpux";;
23336         *-irix*)        PORT_DIR="port/irix";;
23337         *-linux*)       PORT_DIR="port/linux";;
23338         *-lynxos*)      PORT_DIR="port/lynxos";;
23339         *-mpe*)         PORT_DIR="port/mpe";;
23340         *-netbsd*)      PORT_DIR="port/netbsd";;
23341         *-next*)        PORT_DIR="port/next";;
23342         *-openbsd*)     PORT_DIR="port/openbsd";;
23343         *-qnx*)         PORT_DIR="port/qnx";;
23344         *-rhapsody*)    PORT_DIR="port/rhapsody";;
23345         *-sunos4*)
23346                         PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
23347                         PORT_DIR="port/sunos";;
23348         *-solaris2.[01234])
23349                         BSD_COMP="#define BSD_COMP 1"
23350                         SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
23351                         USE_FIONBIO_IOCTL="#define USE_FIONBIO_IOCTL 1"
23352                         SOLARIS2="#define SOLARIS2 1"
23353                         PORT_DIR="port/solaris";;
23354         *-solaris2.5)
23355                         BSD_COMP="#define BSD_COMP 1"
23356                         SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
23357                         SOLARIS2="#define SOLARIS2 1"
23358                         PORT_DIR="port/solaris";;
23359         *-solaris2.[67])
23360                         BSD_COMP="#define BSD_COMP 1"
23361                         SOLARIS2="#define SOLARIS2 1"
23362                         PORT_DIR="port/solaris";;
23363         *-solaris2*)    BSD_COMP="#define BSD_COMP 1"
23364                         USE_POLL="#define USE_POLL 1"
23365                         HAVE_MD5="#define HAVE_MD5 1"
23366                         SOLARIS2="#define SOLARIS2 1"
23367                         PORT_DIR="port/solaris";;
23368         *-ultrix*)      PORT_DIR="port/ultrix";;
23369         *-sco-sysv*uw2.0*)      PORT_DIR="port/unixware20";;
23370         *-sco-sysv*uw2.1.2*)    PORT_DIR="port/unixware212";;
23371         *-sco-sysv*uw7*)        PORT_DIR="port/unixware7";;
23372 esac
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382 PORT_INCLUDE=${PORT_DIR}/include
23383
23384
23385 #
23386 # Look for a 4.4BSD or 4.3BSD struct msghdr
23387 #
23388 echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5
23389 echo $ECHO_N "checking for struct msghdr flavor... $ECHO_C" >&6
23390 cat >conftest.$ac_ext <<_ACEOF
23391 /* confdefs.h.  */
23392 _ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h.  */
23396
23397 #include <sys/types.h>
23398 #include <sys/socket.h>
23399 int
23400 main ()
23401 {
23402 struct msghdr msg; msg.msg_flags = 0; return (0);
23403   ;
23404   return 0;
23405 }
23406 _ACEOF
23407 rm -f conftest.$ac_objext
23408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23409   (eval $ac_compile) 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_objext'
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   echo "$as_me:$LINENO: result: 4.4BSD" >&5
23430 echo "${ECHO_T}4.4BSD" >&6
23431         ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
23432 else
23433   echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23435
23436 echo "$as_me:$LINENO: result: 4.3BSD" >&5
23437 echo "${ECHO_T}4.3BSD" >&6
23438         ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
23439 fi
23440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23441
23442
23443 #
23444 # Look for in_port_t.
23445 #
23446 echo "$as_me:$LINENO: checking for type in_port_t" >&5
23447 echo $ECHO_N "checking for type in_port_t... $ECHO_C" >&6
23448 cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h.  */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h.  */
23454
23455 #include <sys/types.h>
23456 #include <netinet/in.h>
23457 int
23458 main ()
23459 {
23460 in_port_t port = 25; return (0);
23461   ;
23462   return 0;
23463 }
23464 _ACEOF
23465 rm -f conftest.$ac_objext
23466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467   (eval $ac_compile) 2>conftest.er1
23468   ac_status=$?
23469   grep -v '^ *+' conftest.er1 >conftest.err
23470   rm -f conftest.er1
23471   cat conftest.err >&5
23472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473   (exit $ac_status); } &&
23474          { ac_try='test -z "$ac_c_werror_flag"
23475                          || test ! -s conftest.err'
23476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477   (eval $ac_try) 2>&5
23478   ac_status=$?
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); }; } &&
23481          { ac_try='test -s conftest.$ac_objext'
23482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483   (eval $ac_try) 2>&5
23484   ac_status=$?
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); }; }; then
23487   echo "$as_me:$LINENO: result: yes" >&5
23488 echo "${ECHO_T}yes" >&6
23489         ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
23490 else
23491   echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23493
23494 echo "$as_me:$LINENO: result: no" >&5
23495 echo "${ECHO_T}no" >&6
23496         ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
23497 fi
23498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23499
23500
23501 #
23502 # Check for addrinfo
23503 #
23504 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23505 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512
23513 #include <netdb.h>
23514 int
23515 main ()
23516 {
23517 struct addrinfo a; return (0);
23518   ;
23519   return 0;
23520 }
23521 _ACEOF
23522 rm -f conftest.$ac_objext
23523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23524   (eval $ac_compile) 2>conftest.er1
23525   ac_status=$?
23526   grep -v '^ *+' conftest.er1 >conftest.err
23527   rm -f conftest.er1
23528   cat conftest.err >&5
23529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530   (exit $ac_status); } &&
23531          { ac_try='test -z "$ac_c_werror_flag"
23532                          || test ! -s conftest.err'
23533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534   (eval $ac_try) 2>&5
23535   ac_status=$?
23536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); }; } &&
23538          { ac_try='test -s conftest.$ac_objext'
23539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540   (eval $ac_try) 2>&5
23541   ac_status=$?
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); }; }; then
23544   echo "$as_me:$LINENO: result: yes" >&5
23545 echo "${ECHO_T}yes" >&6
23546         cat >>confdefs.h <<\_ACEOF
23547 #define HAVE_ADDRINFO 1
23548 _ACEOF
23549
23550 else
23551   echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554 echo "$as_me:$LINENO: result: no" >&5
23555 echo "${ECHO_T}no" >&6
23556 fi
23557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23558
23559 echo "$as_me:$LINENO: checking for int sethostent" >&5
23560 echo $ECHO_N "checking for int sethostent... $ECHO_C" >&6
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 #include <netdb.h>
23569 int
23570 main ()
23571 {
23572 int i = sethostent(0); return(0);
23573   ;
23574   return 0;
23575 }
23576 _ACEOF
23577 rm -f conftest.$ac_objext
23578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23579   (eval $ac_compile) 2>conftest.er1
23580   ac_status=$?
23581   grep -v '^ *+' conftest.er1 >conftest.err
23582   rm -f conftest.er1
23583   cat conftest.err >&5
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } &&
23586          { ac_try='test -z "$ac_c_werror_flag"
23587                          || test ! -s conftest.err'
23588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589   (eval $ac_try) 2>&5
23590   ac_status=$?
23591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); }; } &&
23593          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23599   echo "$as_me:$LINENO: result: yes" >&5
23600 echo "${ECHO_T}yes" >&6
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605 echo "$as_me:$LINENO: result: no" >&5
23606 echo "${ECHO_T}no" >&6
23607 fi
23608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23609
23610 echo "$as_me:$LINENO: checking for int endhostent" >&5
23611 echo $ECHO_N "checking for int endhostent... $ECHO_C" >&6
23612 cat >conftest.$ac_ext <<_ACEOF
23613 /* confdefs.h.  */
23614 _ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h.  */
23618
23619 #include <netdb.h>
23620 int
23621 main ()
23622 {
23623 int i = endhostent(); return(0);
23624   ;
23625   return 0;
23626 }
23627 _ACEOF
23628 rm -f conftest.$ac_objext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23630   (eval $ac_compile) 2>conftest.er1
23631   ac_status=$?
23632   grep -v '^ *+' conftest.er1 >conftest.err
23633   rm -f conftest.er1
23634   cat conftest.err >&5
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); } &&
23637          { ac_try='test -z "$ac_c_werror_flag"
23638                          || test ! -s conftest.err'
23639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640   (eval $ac_try) 2>&5
23641   ac_status=$?
23642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643   (exit $ac_status); }; } &&
23644          { ac_try='test -s conftest.$ac_objext'
23645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646   (eval $ac_try) 2>&5
23647   ac_status=$?
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); }; }; then
23650   echo "$as_me:$LINENO: result: yes" >&5
23651 echo "${ECHO_T}yes" >&6
23652         ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
23653 else
23654   echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657 echo "$as_me:$LINENO: result: no" >&5
23658 echo "${ECHO_T}no" >&6
23659         ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
23660 fi
23661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23662
23663
23664 echo "$as_me:$LINENO: checking for int setnetent" >&5
23665 echo $ECHO_N "checking for int setnetent... $ECHO_C" >&6
23666 cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h.  */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h.  */
23672
23673 #include <netdb.h>
23674 int
23675 main ()
23676 {
23677 int i = setnetent(0); return(0);
23678   ;
23679   return 0;
23680 }
23681 _ACEOF
23682 rm -f conftest.$ac_objext
23683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23684   (eval $ac_compile) 2>conftest.er1
23685   ac_status=$?
23686   grep -v '^ *+' conftest.er1 >conftest.err
23687   rm -f conftest.er1
23688   cat conftest.err >&5
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); } &&
23691          { ac_try='test -z "$ac_c_werror_flag"
23692                          || test ! -s conftest.err'
23693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694   (eval $ac_try) 2>&5
23695   ac_status=$?
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); }; } &&
23698          { ac_try='test -s conftest.$ac_objext'
23699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23700   (eval $ac_try) 2>&5
23701   ac_status=$?
23702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703   (exit $ac_status); }; }; then
23704   echo "$as_me:$LINENO: result: yes" >&5
23705 echo "${ECHO_T}yes" >&6
23706         ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
23707 else
23708   echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23710
23711 echo "$as_me:$LINENO: result: no" >&5
23712 echo "${ECHO_T}no" >&6
23713         ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
23714 fi
23715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23716
23717
23718 echo "$as_me:$LINENO: checking for int endnetent" >&5
23719 echo $ECHO_N "checking for int endnetent... $ECHO_C" >&6
23720 cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h.  */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h.  */
23726
23727 #include <netdb.h>
23728 int
23729 main ()
23730 {
23731 int i = endnetent(); return(0);
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   echo "$as_me:$LINENO: result: yes" >&5
23759 echo "${ECHO_T}yes" >&6
23760         ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
23761 else
23762   echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23764
23765 echo "$as_me:$LINENO: result: no" >&5
23766 echo "${ECHO_T}no" >&6
23767         ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
23768 fi
23769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23770
23771
23772 echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5
23773 echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6
23774 cat >conftest.$ac_ext <<_ACEOF
23775 /* confdefs.h.  */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h.  */
23780
23781 #include <netdb.h>
23782 struct hostent *gethostbyaddr(const void *, size_t, int);
23783 int
23784 main ()
23785 {
23786 return(0);
23787   ;
23788   return 0;
23789 }
23790 _ACEOF
23791 rm -f conftest.$ac_objext
23792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23793   (eval $ac_compile) 2>conftest.er1
23794   ac_status=$?
23795   grep -v '^ *+' conftest.er1 >conftest.err
23796   rm -f conftest.er1
23797   cat conftest.err >&5
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); } &&
23800          { ac_try='test -z "$ac_c_werror_flag"
23801                          || test ! -s conftest.err'
23802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803   (eval $ac_try) 2>&5
23804   ac_status=$?
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); }; } &&
23807          { ac_try='test -s conftest.$ac_objext'
23808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809   (eval $ac_try) 2>&5
23810   ac_status=$?
23811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812   (exit $ac_status); }; }; then
23813   echo "$as_me:$LINENO: result: yes" >&5
23814 echo "${ECHO_T}yes" >&6
23815         ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
23816 else
23817   echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23819
23820 echo "$as_me:$LINENO: result: no" >&5
23821 echo "${ECHO_T}no" >&6
23822         ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
23823 fi
23824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23825
23826
23827 echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
23828 echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6
23829 cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h.  */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h.  */
23835
23836 #include <netdb.h>
23837 int
23838 main ()
23839 {
23840 h_errno = 1; return(0);
23841   ;
23842   return 0;
23843 }
23844 _ACEOF
23845 rm -f conftest.$ac_objext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23847   (eval $ac_compile) 2>conftest.er1
23848   ac_status=$?
23849   grep -v '^ *+' conftest.er1 >conftest.err
23850   rm -f conftest.er1
23851   cat conftest.err >&5
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); } &&
23854          { ac_try='test -z "$ac_c_werror_flag"
23855                          || test ! -s conftest.err'
23856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857   (eval $ac_try) 2>&5
23858   ac_status=$?
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); }; } &&
23861          { ac_try='test -s conftest.$ac_objext'
23862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863   (eval $ac_try) 2>&5
23864   ac_status=$?
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); }; }; then
23867   echo "$as_me:$LINENO: result: yes" >&5
23868 echo "${ECHO_T}yes" >&6
23869         ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
23870 else
23871   echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.$ac_ext >&5
23873
23874 echo "$as_me:$LINENO: result: no" >&5
23875 echo "${ECHO_T}no" >&6
23876         ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
23877 fi
23878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23879
23880
23881 echo "$as_me:$LINENO: checking for getipnodebyname" >&5
23882 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
23883 if test "${ac_cv_func_getipnodebyname+set}" = set; then
23884   echo $ECHO_N "(cached) $ECHO_C" >&6
23885 else
23886   cat >conftest.$ac_ext <<_ACEOF
23887 /* confdefs.h.  */
23888 _ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h.  */
23892 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
23893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23894 #define getipnodebyname innocuous_getipnodebyname
23895
23896 /* System header to define __stub macros and hopefully few prototypes,
23897     which can conflict with char getipnodebyname (); below.
23898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23899     <limits.h> exists even on freestanding compilers.  */
23900
23901 #ifdef __STDC__
23902 # include <limits.h>
23903 #else
23904 # include <assert.h>
23905 #endif
23906
23907 #undef getipnodebyname
23908
23909 /* Override any gcc2 internal prototype to avoid an error.  */
23910 #ifdef __cplusplus
23911 extern "C"
23912 {
23913 #endif
23914 /* We use char because int might match the return type of a gcc2
23915    builtin and then its argument prototype would still apply.  */
23916 char getipnodebyname ();
23917 /* The GNU C library defines this for functions which it implements
23918     to always fail with ENOSYS.  Some functions are actually named
23919     something starting with __ and the normal name is an alias.  */
23920 #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
23921 choke me
23922 #else
23923 char (*f) () = getipnodebyname;
23924 #endif
23925 #ifdef __cplusplus
23926 }
23927 #endif
23928
23929 int
23930 main ()
23931 {
23932 return f != getipnodebyname;
23933   ;
23934   return 0;
23935 }
23936 _ACEOF
23937 rm -f conftest.$ac_objext conftest$ac_exeext
23938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23939   (eval $ac_link) 2>conftest.er1
23940   ac_status=$?
23941   grep -v '^ *+' conftest.er1 >conftest.err
23942   rm -f conftest.er1
23943   cat conftest.err >&5
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); } &&
23946          { ac_try='test -z "$ac_c_werror_flag"
23947                          || test ! -s conftest.err'
23948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23949   (eval $ac_try) 2>&5
23950   ac_status=$?
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); }; } &&
23953          { ac_try='test -s conftest$ac_exeext'
23954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955   (eval $ac_try) 2>&5
23956   ac_status=$?
23957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958   (exit $ac_status); }; }; then
23959   ac_cv_func_getipnodebyname=yes
23960 else
23961   echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23963
23964 ac_cv_func_getipnodebyname=no
23965 fi
23966 rm -f conftest.err conftest.$ac_objext \
23967       conftest$ac_exeext conftest.$ac_ext
23968 fi
23969 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
23970 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
23971 if test $ac_cv_func_getipnodebyname = yes; then
23972   ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
23973 else
23974   ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
23975 fi
23976
23977 echo "$as_me:$LINENO: checking for getnameinfo" >&5
23978 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
23979 if test "${ac_cv_func_getnameinfo+set}" = set; then
23980   echo $ECHO_N "(cached) $ECHO_C" >&6
23981 else
23982   cat >conftest.$ac_ext <<_ACEOF
23983 /* confdefs.h.  */
23984 _ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h.  */
23988 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
23989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23990 #define getnameinfo innocuous_getnameinfo
23991
23992 /* System header to define __stub macros and hopefully few prototypes,
23993     which can conflict with char getnameinfo (); below.
23994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23995     <limits.h> exists even on freestanding compilers.  */
23996
23997 #ifdef __STDC__
23998 # include <limits.h>
23999 #else
24000 # include <assert.h>
24001 #endif
24002
24003 #undef getnameinfo
24004
24005 /* Override any gcc2 internal prototype to avoid an error.  */
24006 #ifdef __cplusplus
24007 extern "C"
24008 {
24009 #endif
24010 /* We use char because int might match the return type of a gcc2
24011    builtin and then its argument prototype would still apply.  */
24012 char getnameinfo ();
24013 /* The GNU C library defines this for functions which it implements
24014     to always fail with ENOSYS.  Some functions are actually named
24015     something starting with __ and the normal name is an alias.  */
24016 #if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
24017 choke me
24018 #else
24019 char (*f) () = getnameinfo;
24020 #endif
24021 #ifdef __cplusplus
24022 }
24023 #endif
24024
24025 int
24026 main ()
24027 {
24028 return f != getnameinfo;
24029   ;
24030   return 0;
24031 }
24032 _ACEOF
24033 rm -f conftest.$ac_objext conftest$ac_exeext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24035   (eval $ac_link) 2>conftest.er1
24036   ac_status=$?
24037   grep -v '^ *+' conftest.er1 >conftest.err
24038   rm -f conftest.er1
24039   cat conftest.err >&5
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); } &&
24042          { ac_try='test -z "$ac_c_werror_flag"
24043                          || test ! -s conftest.err'
24044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24045   (eval $ac_try) 2>&5
24046   ac_status=$?
24047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048   (exit $ac_status); }; } &&
24049          { ac_try='test -s conftest$ac_exeext'
24050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051   (eval $ac_try) 2>&5
24052   ac_status=$?
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); }; }; then
24055   ac_cv_func_getnameinfo=yes
24056 else
24057   echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24059
24060 ac_cv_func_getnameinfo=no
24061 fi
24062 rm -f conftest.err conftest.$ac_objext \
24063       conftest$ac_exeext conftest.$ac_ext
24064 fi
24065 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24066 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6
24067 if test $ac_cv_func_getnameinfo = yes; then
24068   ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
24069 else
24070   ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
24071 fi
24072
24073 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
24074 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
24075 if test "${ac_cv_func_getaddrinfo+set}" = set; then
24076   echo $ECHO_N "(cached) $ECHO_C" >&6
24077 else
24078   cat >conftest.$ac_ext <<_ACEOF
24079 /* confdefs.h.  */
24080 _ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h.  */
24084 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
24085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24086 #define getaddrinfo innocuous_getaddrinfo
24087
24088 /* System header to define __stub macros and hopefully few prototypes,
24089     which can conflict with char getaddrinfo (); below.
24090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24091     <limits.h> exists even on freestanding compilers.  */
24092
24093 #ifdef __STDC__
24094 # include <limits.h>
24095 #else
24096 # include <assert.h>
24097 #endif
24098
24099 #undef getaddrinfo
24100
24101 /* Override any gcc2 internal prototype to avoid an error.  */
24102 #ifdef __cplusplus
24103 extern "C"
24104 {
24105 #endif
24106 /* We use char because int might match the return type of a gcc2
24107    builtin and then its argument prototype would still apply.  */
24108 char getaddrinfo ();
24109 /* The GNU C library defines this for functions which it implements
24110     to always fail with ENOSYS.  Some functions are actually named
24111     something starting with __ and the normal name is an alias.  */
24112 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
24113 choke me
24114 #else
24115 char (*f) () = getaddrinfo;
24116 #endif
24117 #ifdef __cplusplus
24118 }
24119 #endif
24120
24121 int
24122 main ()
24123 {
24124 return f != getaddrinfo;
24125   ;
24126   return 0;
24127 }
24128 _ACEOF
24129 rm -f conftest.$ac_objext conftest$ac_exeext
24130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24131   (eval $ac_link) 2>conftest.er1
24132   ac_status=$?
24133   grep -v '^ *+' conftest.er1 >conftest.err
24134   rm -f conftest.er1
24135   cat conftest.err >&5
24136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); } &&
24138          { ac_try='test -z "$ac_c_werror_flag"
24139                          || test ! -s conftest.err'
24140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24141   (eval $ac_try) 2>&5
24142   ac_status=$?
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); }; } &&
24145          { ac_try='test -s conftest$ac_exeext'
24146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147   (eval $ac_try) 2>&5
24148   ac_status=$?
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); }; }; then
24151   ac_cv_func_getaddrinfo=yes
24152 else
24153   echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24155
24156 ac_cv_func_getaddrinfo=no
24157 fi
24158 rm -f conftest.err conftest.$ac_objext \
24159       conftest$ac_exeext conftest.$ac_ext
24160 fi
24161 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
24162 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
24163 if test $ac_cv_func_getaddrinfo = yes; then
24164   ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
24165         cat >>confdefs.h <<\_ACEOF
24166 #define HAVE_GETADDRINFO 1
24167 _ACEOF
24168
24169 else
24170   ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
24171 fi
24172
24173 echo "$as_me:$LINENO: checking for gai_strerror" >&5
24174 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
24175 if test "${ac_cv_func_gai_strerror+set}" = set; then
24176   echo $ECHO_N "(cached) $ECHO_C" >&6
24177 else
24178   cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h.  */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h.  */
24184 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
24185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24186 #define gai_strerror innocuous_gai_strerror
24187
24188 /* System header to define __stub macros and hopefully few prototypes,
24189     which can conflict with char gai_strerror (); below.
24190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24191     <limits.h> exists even on freestanding compilers.  */
24192
24193 #ifdef __STDC__
24194 # include <limits.h>
24195 #else
24196 # include <assert.h>
24197 #endif
24198
24199 #undef gai_strerror
24200
24201 /* Override any gcc2 internal prototype to avoid an error.  */
24202 #ifdef __cplusplus
24203 extern "C"
24204 {
24205 #endif
24206 /* We use char because int might match the return type of a gcc2
24207    builtin and then its argument prototype would still apply.  */
24208 char gai_strerror ();
24209 /* The GNU C library defines this for functions which it implements
24210     to always fail with ENOSYS.  Some functions are actually named
24211     something starting with __ and the normal name is an alias.  */
24212 #if defined (__stub_gai_strerror) || defined (__stub___gai_strerror)
24213 choke me
24214 #else
24215 char (*f) () = gai_strerror;
24216 #endif
24217 #ifdef __cplusplus
24218 }
24219 #endif
24220
24221 int
24222 main ()
24223 {
24224 return f != gai_strerror;
24225   ;
24226   return 0;
24227 }
24228 _ACEOF
24229 rm -f conftest.$ac_objext conftest$ac_exeext
24230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24231   (eval $ac_link) 2>conftest.er1
24232   ac_status=$?
24233   grep -v '^ *+' conftest.er1 >conftest.err
24234   rm -f conftest.er1
24235   cat conftest.err >&5
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } &&
24238          { ac_try='test -z "$ac_c_werror_flag"
24239                          || test ! -s conftest.err'
24240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24241   (eval $ac_try) 2>&5
24242   ac_status=$?
24243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244   (exit $ac_status); }; } &&
24245          { ac_try='test -s conftest$ac_exeext'
24246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24247   (eval $ac_try) 2>&5
24248   ac_status=$?
24249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250   (exit $ac_status); }; }; then
24251   ac_cv_func_gai_strerror=yes
24252 else
24253   echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24255
24256 ac_cv_func_gai_strerror=no
24257 fi
24258 rm -f conftest.err conftest.$ac_objext \
24259       conftest$ac_exeext conftest.$ac_ext
24260 fi
24261 echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
24262 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6
24263 if test $ac_cv_func_gai_strerror = yes; then
24264   cat >>confdefs.h <<\_ACEOF
24265 #define HAVE_GAISTRERROR 1
24266 _ACEOF
24267
24268 fi
24269
24270
24271
24272
24273 echo "$as_me:$LINENO: checking for pselect" >&5
24274 echo $ECHO_N "checking for pselect... $ECHO_C" >&6
24275 if test "${ac_cv_func_pselect+set}" = set; then
24276   echo $ECHO_N "(cached) $ECHO_C" >&6
24277 else
24278   cat >conftest.$ac_ext <<_ACEOF
24279 /* confdefs.h.  */
24280 _ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h.  */
24284 /* Define pselect to an innocuous variant, in case <limits.h> declares pselect.
24285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24286 #define pselect innocuous_pselect
24287
24288 /* System header to define __stub macros and hopefully few prototypes,
24289     which can conflict with char pselect (); below.
24290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24291     <limits.h> exists even on freestanding compilers.  */
24292
24293 #ifdef __STDC__
24294 # include <limits.h>
24295 #else
24296 # include <assert.h>
24297 #endif
24298
24299 #undef pselect
24300
24301 /* Override any gcc2 internal prototype to avoid an error.  */
24302 #ifdef __cplusplus
24303 extern "C"
24304 {
24305 #endif
24306 /* We use char because int might match the return type of a gcc2
24307    builtin and then its argument prototype would still apply.  */
24308 char pselect ();
24309 /* The GNU C library defines this for functions which it implements
24310     to always fail with ENOSYS.  Some functions are actually named
24311     something starting with __ and the normal name is an alias.  */
24312 #if defined (__stub_pselect) || defined (__stub___pselect)
24313 choke me
24314 #else
24315 char (*f) () = pselect;
24316 #endif
24317 #ifdef __cplusplus
24318 }
24319 #endif
24320
24321 int
24322 main ()
24323 {
24324 return f != pselect;
24325   ;
24326   return 0;
24327 }
24328 _ACEOF
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24331   (eval $ac_link) 2>conftest.er1
24332   ac_status=$?
24333   grep -v '^ *+' conftest.er1 >conftest.err
24334   rm -f conftest.er1
24335   cat conftest.err >&5
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); } &&
24338          { ac_try='test -z "$ac_c_werror_flag"
24339                          || test ! -s conftest.err'
24340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341   (eval $ac_try) 2>&5
24342   ac_status=$?
24343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344   (exit $ac_status); }; } &&
24345          { ac_try='test -s conftest$ac_exeext'
24346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347   (eval $ac_try) 2>&5
24348   ac_status=$?
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); }; }; then
24351   ac_cv_func_pselect=yes
24352 else
24353   echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356 ac_cv_func_pselect=no
24357 fi
24358 rm -f conftest.err conftest.$ac_objext \
24359       conftest$ac_exeext conftest.$ac_ext
24360 fi
24361 echo "$as_me:$LINENO: result: $ac_cv_func_pselect" >&5
24362 echo "${ECHO_T}$ac_cv_func_pselect" >&6
24363 if test $ac_cv_func_pselect = yes; then
24364   NEED_PSELECT="#undef NEED_PSELECT"
24365 else
24366   NEED_PSELECT="#define NEED_PSELECT"
24367 fi
24368
24369
24370 echo "$as_me:$LINENO: checking for gettimeofday" >&5
24371 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
24372 if test "${ac_cv_func_gettimeofday+set}" = set; then
24373   echo $ECHO_N "(cached) $ECHO_C" >&6
24374 else
24375   cat >conftest.$ac_ext <<_ACEOF
24376 /* confdefs.h.  */
24377 _ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h.  */
24381 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
24382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24383 #define gettimeofday innocuous_gettimeofday
24384
24385 /* System header to define __stub macros and hopefully few prototypes,
24386     which can conflict with char gettimeofday (); below.
24387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24388     <limits.h> exists even on freestanding compilers.  */
24389
24390 #ifdef __STDC__
24391 # include <limits.h>
24392 #else
24393 # include <assert.h>
24394 #endif
24395
24396 #undef gettimeofday
24397
24398 /* Override any gcc2 internal prototype to avoid an error.  */
24399 #ifdef __cplusplus
24400 extern "C"
24401 {
24402 #endif
24403 /* We use char because int might match the return type of a gcc2
24404    builtin and then its argument prototype would still apply.  */
24405 char gettimeofday ();
24406 /* The GNU C library defines this for functions which it implements
24407     to always fail with ENOSYS.  Some functions are actually named
24408     something starting with __ and the normal name is an alias.  */
24409 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
24410 choke me
24411 #else
24412 char (*f) () = gettimeofday;
24413 #endif
24414 #ifdef __cplusplus
24415 }
24416 #endif
24417
24418 int
24419 main ()
24420 {
24421 return f != gettimeofday;
24422   ;
24423   return 0;
24424 }
24425 _ACEOF
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24428   (eval $ac_link) 2>conftest.er1
24429   ac_status=$?
24430   grep -v '^ *+' conftest.er1 >conftest.err
24431   rm -f conftest.er1
24432   cat conftest.err >&5
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); } &&
24435          { ac_try='test -z "$ac_c_werror_flag"
24436                          || test ! -s conftest.err'
24437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438   (eval $ac_try) 2>&5
24439   ac_status=$?
24440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441   (exit $ac_status); }; } &&
24442          { ac_try='test -s conftest$ac_exeext'
24443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444   (eval $ac_try) 2>&5
24445   ac_status=$?
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); }; }; then
24448   ac_cv_func_gettimeofday=yes
24449 else
24450   echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24452
24453 ac_cv_func_gettimeofday=no
24454 fi
24455 rm -f conftest.err conftest.$ac_objext \
24456       conftest$ac_exeext conftest.$ac_ext
24457 fi
24458 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
24459 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
24460 if test $ac_cv_func_gettimeofday = yes; then
24461   NEED_GETTIMEOFDAY="#undef NEED_GETTIMEOFDAY"
24462 else
24463   NEED_GETTIMEOFDAY="#define NEED_GETTIMEOFDAY 1"
24464 fi
24465
24466
24467 echo "$as_me:$LINENO: checking for strndup" >&5
24468 echo $ECHO_N "checking for strndup... $ECHO_C" >&6
24469 if test "${ac_cv_func_strndup+set}" = set; then
24470   echo $ECHO_N "(cached) $ECHO_C" >&6
24471 else
24472   cat >conftest.$ac_ext <<_ACEOF
24473 /* confdefs.h.  */
24474 _ACEOF
24475 cat confdefs.h >>conftest.$ac_ext
24476 cat >>conftest.$ac_ext <<_ACEOF
24477 /* end confdefs.h.  */
24478 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
24479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24480 #define strndup innocuous_strndup
24481
24482 /* System header to define __stub macros and hopefully few prototypes,
24483     which can conflict with char strndup (); below.
24484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24485     <limits.h> exists even on freestanding compilers.  */
24486
24487 #ifdef __STDC__
24488 # include <limits.h>
24489 #else
24490 # include <assert.h>
24491 #endif
24492
24493 #undef strndup
24494
24495 /* Override any gcc2 internal prototype to avoid an error.  */
24496 #ifdef __cplusplus
24497 extern "C"
24498 {
24499 #endif
24500 /* We use char because int might match the return type of a gcc2
24501    builtin and then its argument prototype would still apply.  */
24502 char strndup ();
24503 /* The GNU C library defines this for functions which it implements
24504     to always fail with ENOSYS.  Some functions are actually named
24505     something starting with __ and the normal name is an alias.  */
24506 #if defined (__stub_strndup) || defined (__stub___strndup)
24507 choke me
24508 #else
24509 char (*f) () = strndup;
24510 #endif
24511 #ifdef __cplusplus
24512 }
24513 #endif
24514
24515 int
24516 main ()
24517 {
24518 return f != strndup;
24519   ;
24520   return 0;
24521 }
24522 _ACEOF
24523 rm -f conftest.$ac_objext conftest$ac_exeext
24524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24525   (eval $ac_link) 2>conftest.er1
24526   ac_status=$?
24527   grep -v '^ *+' conftest.er1 >conftest.err
24528   rm -f conftest.er1
24529   cat conftest.err >&5
24530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531   (exit $ac_status); } &&
24532          { ac_try='test -z "$ac_c_werror_flag"
24533                          || test ! -s conftest.err'
24534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535   (eval $ac_try) 2>&5
24536   ac_status=$?
24537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); }; } &&
24539          { ac_try='test -s conftest$ac_exeext'
24540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541   (eval $ac_try) 2>&5
24542   ac_status=$?
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); }; }; then
24545   ac_cv_func_strndup=yes
24546 else
24547   echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24549
24550 ac_cv_func_strndup=no
24551 fi
24552 rm -f conftest.err conftest.$ac_objext \
24553       conftest$ac_exeext conftest.$ac_ext
24554 fi
24555 echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
24556 echo "${ECHO_T}$ac_cv_func_strndup" >&6
24557 if test $ac_cv_func_strndup = yes; then
24558   HAVE_STRNDUP="#define HAVE_STRNDUP 1"
24559 else
24560   HAVE_STRNDUP="#undef HAVE_STRNDUP"
24561 fi
24562
24563
24564
24565 #
24566 # Look for a sysctl call to get the list of network interfaces.
24567 #
24568 echo "$as_me:$LINENO: checking for interface list sysctl" >&5
24569 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6
24570 cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h.  */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h.  */
24576
24577 #include <sys/param.h>
24578 #include <sys/sysctl.h>
24579 #include <sys/socket.h>
24580 #ifdef NET_RT_IFLIST
24581 found_rt_iflist
24582 #endif
24583
24584 _ACEOF
24585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24586   $EGREP "found_rt_iflist" >/dev/null 2>&1; then
24587   echo "$as_me:$LINENO: result: yes" >&5
24588 echo "${ECHO_T}yes" >&6
24589          cat >>confdefs.h <<\_ACEOF
24590 #define HAVE_IFLIST_SYSCTL 1
24591 _ACEOF
24592
24593 else
24594   echo "$as_me:$LINENO: result: no" >&5
24595 echo "${ECHO_T}no" >&6
24596 fi
24597 rm -f conftest*
24598
24599
24600 #
24601 # Check for some other useful functions that are not ever-present.
24602 #
24603 echo "$as_me:$LINENO: checking for strsep" >&5
24604 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
24605 if test "${ac_cv_func_strsep+set}" = set; then
24606   echo $ECHO_N "(cached) $ECHO_C" >&6
24607 else
24608   cat >conftest.$ac_ext <<_ACEOF
24609 /* confdefs.h.  */
24610 _ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h.  */
24614 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
24615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24616 #define strsep innocuous_strsep
24617
24618 /* System header to define __stub macros and hopefully few prototypes,
24619     which can conflict with char strsep (); below.
24620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24621     <limits.h> exists even on freestanding compilers.  */
24622
24623 #ifdef __STDC__
24624 # include <limits.h>
24625 #else
24626 # include <assert.h>
24627 #endif
24628
24629 #undef strsep
24630
24631 /* Override any gcc2 internal prototype to avoid an error.  */
24632 #ifdef __cplusplus
24633 extern "C"
24634 {
24635 #endif
24636 /* We use char because int might match the return type of a gcc2
24637    builtin and then its argument prototype would still apply.  */
24638 char strsep ();
24639 /* The GNU C library defines this for functions which it implements
24640     to always fail with ENOSYS.  Some functions are actually named
24641     something starting with __ and the normal name is an alias.  */
24642 #if defined (__stub_strsep) || defined (__stub___strsep)
24643 choke me
24644 #else
24645 char (*f) () = strsep;
24646 #endif
24647 #ifdef __cplusplus
24648 }
24649 #endif
24650
24651 int
24652 main ()
24653 {
24654 return f != strsep;
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   ac_cv_func_strsep=yes
24682 else
24683   echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24685
24686 ac_cv_func_strsep=no
24687 fi
24688 rm -f conftest.err conftest.$ac_objext \
24689       conftest$ac_exeext conftest.$ac_ext
24690 fi
24691 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
24692 echo "${ECHO_T}$ac_cv_func_strsep" >&6
24693 if test $ac_cv_func_strsep = yes; then
24694   ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
24695 else
24696   ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
24697 fi
24698
24699 echo "$as_me:$LINENO: checking for vsnprintf" >&5
24700 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
24701 if test "${ac_cv_func_vsnprintf+set}" = set; then
24702   echo $ECHO_N "(cached) $ECHO_C" >&6
24703 else
24704   cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
24711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24712 #define vsnprintf innocuous_vsnprintf
24713
24714 /* System header to define __stub macros and hopefully few prototypes,
24715     which can conflict with char vsnprintf (); below.
24716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24717     <limits.h> exists even on freestanding compilers.  */
24718
24719 #ifdef __STDC__
24720 # include <limits.h>
24721 #else
24722 # include <assert.h>
24723 #endif
24724
24725 #undef vsnprintf
24726
24727 /* Override any gcc2 internal prototype to avoid an error.  */
24728 #ifdef __cplusplus
24729 extern "C"
24730 {
24731 #endif
24732 /* We use char because int might match the return type of a gcc2
24733    builtin and then its argument prototype would still apply.  */
24734 char vsnprintf ();
24735 /* The GNU C library defines this for functions which it implements
24736     to always fail with ENOSYS.  Some functions are actually named
24737     something starting with __ and the normal name is an alias.  */
24738 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
24739 choke me
24740 #else
24741 char (*f) () = vsnprintf;
24742 #endif
24743 #ifdef __cplusplus
24744 }
24745 #endif
24746
24747 int
24748 main ()
24749 {
24750 return f != vsnprintf;
24751   ;
24752   return 0;
24753 }
24754 _ACEOF
24755 rm -f conftest.$ac_objext conftest$ac_exeext
24756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24757   (eval $ac_link) 2>conftest.er1
24758   ac_status=$?
24759   grep -v '^ *+' conftest.er1 >conftest.err
24760   rm -f conftest.er1
24761   cat conftest.err >&5
24762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763   (exit $ac_status); } &&
24764          { ac_try='test -z "$ac_c_werror_flag"
24765                          || test ! -s conftest.err'
24766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767   (eval $ac_try) 2>&5
24768   ac_status=$?
24769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770   (exit $ac_status); }; } &&
24771          { ac_try='test -s conftest$ac_exeext'
24772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773   (eval $ac_try) 2>&5
24774   ac_status=$?
24775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776   (exit $ac_status); }; }; then
24777   ac_cv_func_vsnprintf=yes
24778 else
24779   echo "$as_me: failed program was:" >&5
24780 sed 's/^/| /' conftest.$ac_ext >&5
24781
24782 ac_cv_func_vsnprintf=no
24783 fi
24784 rm -f conftest.err conftest.$ac_objext \
24785       conftest$ac_exeext conftest.$ac_ext
24786 fi
24787 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
24788 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
24789 if test $ac_cv_func_vsnprintf = yes; then
24790   ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
24791 else
24792   ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
24793          ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
24794          ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
24795 fi
24796
24797
24798
24799
24800
24801
24802 echo "$as_me:$LINENO: checking for strerror" >&5
24803 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
24804 if test "${ac_cv_func_strerror+set}" = set; then
24805   echo $ECHO_N "(cached) $ECHO_C" >&6
24806 else
24807   cat >conftest.$ac_ext <<_ACEOF
24808 /* confdefs.h.  */
24809 _ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h.  */
24813 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
24814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24815 #define strerror innocuous_strerror
24816
24817 /* System header to define __stub macros and hopefully few prototypes,
24818     which can conflict with char strerror (); below.
24819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24820     <limits.h> exists even on freestanding compilers.  */
24821
24822 #ifdef __STDC__
24823 # include <limits.h>
24824 #else
24825 # include <assert.h>
24826 #endif
24827
24828 #undef strerror
24829
24830 /* Override any gcc2 internal prototype to avoid an error.  */
24831 #ifdef __cplusplus
24832 extern "C"
24833 {
24834 #endif
24835 /* We use char because int might match the return type of a gcc2
24836    builtin and then its argument prototype would still apply.  */
24837 char strerror ();
24838 /* The GNU C library defines this for functions which it implements
24839     to always fail with ENOSYS.  Some functions are actually named
24840     something starting with __ and the normal name is an alias.  */
24841 #if defined (__stub_strerror) || defined (__stub___strerror)
24842 choke me
24843 #else
24844 char (*f) () = strerror;
24845 #endif
24846 #ifdef __cplusplus
24847 }
24848 #endif
24849
24850 int
24851 main ()
24852 {
24853 return f != strerror;
24854   ;
24855   return 0;
24856 }
24857 _ACEOF
24858 rm -f conftest.$ac_objext conftest$ac_exeext
24859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24860   (eval $ac_link) 2>conftest.er1
24861   ac_status=$?
24862   grep -v '^ *+' conftest.er1 >conftest.err
24863   rm -f conftest.er1
24864   cat conftest.err >&5
24865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866   (exit $ac_status); } &&
24867          { ac_try='test -z "$ac_c_werror_flag"
24868                          || test ! -s conftest.err'
24869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870   (eval $ac_try) 2>&5
24871   ac_status=$?
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); }; } &&
24874          { ac_try='test -s conftest$ac_exeext'
24875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876   (eval $ac_try) 2>&5
24877   ac_status=$?
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); }; }; then
24880   ac_cv_func_strerror=yes
24881 else
24882   echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24884
24885 ac_cv_func_strerror=no
24886 fi
24887 rm -f conftest.err conftest.$ac_objext \
24888       conftest$ac_exeext conftest.$ac_ext
24889 fi
24890 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
24891 echo "${ECHO_T}$ac_cv_func_strerror" >&6
24892 if test $ac_cv_func_strerror = yes; then
24893   USE_SYSERROR_LIST="#undef USE_SYSERROR_LIST"
24894 else
24895   USE_SYSERROR_LIST="#define USE_SYSERROR_LIST 1"
24896 fi
24897
24898
24899
24900 #
24901 # Determine the printf format characters to use when printing
24902 # values of type isc_int64_t.  We make the assumption that platforms
24903 # where a "long long" is the same size as a "long" (e.g., Alpha/OSF1)
24904 # want "%ld" and everyone else can use "%lld".  Win32 uses "%I64d",
24905 # but that's defined elsewhere since we don't use configure on Win32.
24906 #
24907 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
24908 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
24909 if test "$cross_compiling" = yes; then
24910   echo "$as_me:$LINENO: result: default ll" >&5
24911 echo "${ECHO_T}default ll" >&6
24912         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
24913 else
24914   cat >conftest.$ac_ext <<_ACEOF
24915 /* confdefs.h.  */
24916 _ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h.  */
24920 main() { exit(!(sizeof(long long int) == sizeof(long int))); }
24921 _ACEOF
24922 rm -f conftest$ac_exeext
24923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24924   (eval $ac_link) 2>&5
24925   ac_status=$?
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929   (eval $ac_try) 2>&5
24930   ac_status=$?
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); }; }; then
24933   echo "$as_me:$LINENO: result: l" >&5
24934 echo "${ECHO_T}l" >&6
24935         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
24936 else
24937   echo "$as_me: program exited with status $ac_status" >&5
24938 echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24940
24941 ( exit $ac_status )
24942 echo "$as_me:$LINENO: result: ll" >&5
24943 echo "${ECHO_T}ll" >&6
24944         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
24945 fi
24946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24947 fi
24948
24949
24950 #
24951 # Security Stuff
24952 #
24953 echo "$as_me:$LINENO: checking for chroot" >&5
24954 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
24955 if test "${ac_cv_func_chroot+set}" = set; then
24956   echo $ECHO_N "(cached) $ECHO_C" >&6
24957 else
24958   cat >conftest.$ac_ext <<_ACEOF
24959 /* confdefs.h.  */
24960 _ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h.  */
24964 /* Define chroot to an innocuous variant, in case <limits.h> declares chroot.
24965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24966 #define chroot innocuous_chroot
24967
24968 /* System header to define __stub macros and hopefully few prototypes,
24969     which can conflict with char chroot (); below.
24970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24971     <limits.h> exists even on freestanding compilers.  */
24972
24973 #ifdef __STDC__
24974 # include <limits.h>
24975 #else
24976 # include <assert.h>
24977 #endif
24978
24979 #undef chroot
24980
24981 /* Override any gcc2 internal prototype to avoid an error.  */
24982 #ifdef __cplusplus
24983 extern "C"
24984 {
24985 #endif
24986 /* We use char because int might match the return type of a gcc2
24987    builtin and then its argument prototype would still apply.  */
24988 char chroot ();
24989 /* The GNU C library defines this for functions which it implements
24990     to always fail with ENOSYS.  Some functions are actually named
24991     something starting with __ and the normal name is an alias.  */
24992 #if defined (__stub_chroot) || defined (__stub___chroot)
24993 choke me
24994 #else
24995 char (*f) () = chroot;
24996 #endif
24997 #ifdef __cplusplus
24998 }
24999 #endif
25000
25001 int
25002 main ()
25003 {
25004 return f != chroot;
25005   ;
25006   return 0;
25007 }
25008 _ACEOF
25009 rm -f conftest.$ac_objext conftest$ac_exeext
25010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25011   (eval $ac_link) 2>conftest.er1
25012   ac_status=$?
25013   grep -v '^ *+' conftest.er1 >conftest.err
25014   rm -f conftest.er1
25015   cat conftest.err >&5
25016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017   (exit $ac_status); } &&
25018          { ac_try='test -z "$ac_c_werror_flag"
25019                          || test ! -s conftest.err'
25020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021   (eval $ac_try) 2>&5
25022   ac_status=$?
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); }; } &&
25025          { ac_try='test -s conftest$ac_exeext'
25026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027   (eval $ac_try) 2>&5
25028   ac_status=$?
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); }; }; then
25031   ac_cv_func_chroot=yes
25032 else
25033   echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25035
25036 ac_cv_func_chroot=no
25037 fi
25038 rm -f conftest.err conftest.$ac_objext \
25039       conftest$ac_exeext conftest.$ac_ext
25040 fi
25041 echo "$as_me:$LINENO: result: $ac_cv_func_chroot" >&5
25042 echo "${ECHO_T}$ac_cv_func_chroot" >&6
25043 if test $ac_cv_func_chroot = yes; then
25044   cat >>confdefs.h <<\_ACEOF
25045 #define HAVE_CHROOT 1
25046 _ACEOF
25047
25048 fi
25049
25050
25051 #
25052 # for accept, recvfrom, getpeername etc.
25053 #
25054 echo "$as_me:$LINENO: checking for socket length type" >&5
25055 echo $ECHO_N "checking for socket length type... $ECHO_C" >&6
25056 cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062
25063 #include <sys/types.h>
25064 #include <sys/socket.h>
25065 int accept(int, struct sockaddr *, socklen_t *);
25066
25067 int
25068 main ()
25069 {
25070
25071   ;
25072   return 0;
25073 }
25074 _ACEOF
25075 rm -f conftest.$ac_objext
25076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25077   (eval $ac_compile) 2>conftest.er1
25078   ac_status=$?
25079   grep -v '^ *+' conftest.er1 >conftest.err
25080   rm -f conftest.er1
25081   cat conftest.err >&5
25082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083   (exit $ac_status); } &&
25084          { ac_try='test -z "$ac_c_werror_flag"
25085                          || test ! -s conftest.err'
25086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087   (eval $ac_try) 2>&5
25088   ac_status=$?
25089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090   (exit $ac_status); }; } &&
25091          { ac_try='test -s conftest.$ac_objext'
25092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093   (eval $ac_try) 2>&5
25094   ac_status=$?
25095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); }; }; then
25097   ISC_SOCKLEN_T="#define ISC_SOCKLEN_T socklen_t"
25098 echo "$as_me:$LINENO: result: socklen_t" >&5
25099 echo "${ECHO_T}socklen_t" >&6
25100
25101 else
25102   echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25104
25105 cat >conftest.$ac_ext <<_ACEOF
25106 /* confdefs.h.  */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h.  */
25111
25112 #include <sys/types.h>
25113 #include <sys/socket.h>
25114 int accept(int, struct sockaddr *, unsigned int *);
25115
25116 int
25117 main ()
25118 {
25119
25120   ;
25121   return 0;
25122 }
25123 _ACEOF
25124 rm -f conftest.$ac_objext
25125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25126   (eval $ac_compile) 2>conftest.er1
25127   ac_status=$?
25128   grep -v '^ *+' conftest.er1 >conftest.err
25129   rm -f conftest.er1
25130   cat conftest.err >&5
25131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132   (exit $ac_status); } &&
25133          { ac_try='test -z "$ac_c_werror_flag"
25134                          || test ! -s conftest.err'
25135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136   (eval $ac_try) 2>&5
25137   ac_status=$?
25138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139   (exit $ac_status); }; } &&
25140          { ac_try='test -s conftest.$ac_objext'
25141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142   (eval $ac_try) 2>&5
25143   ac_status=$?
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); }; }; then
25146   ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned int"
25147 echo "$as_me:$LINENO: result: unsigned int" >&5
25148 echo "${ECHO_T}unsigned int" >&6
25149
25150 else
25151   echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25153
25154 cat >conftest.$ac_ext <<_ACEOF
25155 /* confdefs.h.  */
25156 _ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h.  */
25160
25161 #include <sys/types.h>
25162 #include <sys/socket.h>
25163 int accept(int, struct sockaddr *, unsigned long *);
25164
25165 int
25166 main ()
25167 {
25168
25169   ;
25170   return 0;
25171 }
25172 _ACEOF
25173 rm -f conftest.$ac_objext
25174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25175   (eval $ac_compile) 2>conftest.er1
25176   ac_status=$?
25177   grep -v '^ *+' conftest.er1 >conftest.err
25178   rm -f conftest.er1
25179   cat conftest.err >&5
25180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181   (exit $ac_status); } &&
25182          { ac_try='test -z "$ac_c_werror_flag"
25183                          || test ! -s conftest.err'
25184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185   (eval $ac_try) 2>&5
25186   ac_status=$?
25187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188   (exit $ac_status); }; } &&
25189          { ac_try='test -s conftest.$ac_objext'
25190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191   (eval $ac_try) 2>&5
25192   ac_status=$?
25193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194   (exit $ac_status); }; }; then
25195   ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned long"
25196 echo "$as_me:$LINENO: result: unsigned long" >&5
25197 echo "${ECHO_T}unsigned long" >&6
25198
25199 else
25200   echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25202
25203 cat >conftest.$ac_ext <<_ACEOF
25204 /* confdefs.h.  */
25205 _ACEOF
25206 cat confdefs.h >>conftest.$ac_ext
25207 cat >>conftest.$ac_ext <<_ACEOF
25208 /* end confdefs.h.  */
25209
25210 #include <sys/types.h>
25211 #include <sys/socket.h>
25212 int accept(int, struct sockaddr *, long *);
25213
25214 int
25215 main ()
25216 {
25217
25218   ;
25219   return 0;
25220 }
25221 _ACEOF
25222 rm -f conftest.$ac_objext
25223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25224   (eval $ac_compile) 2>conftest.er1
25225   ac_status=$?
25226   grep -v '^ *+' conftest.er1 >conftest.err
25227   rm -f conftest.er1
25228   cat conftest.err >&5
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); } &&
25231          { ac_try='test -z "$ac_c_werror_flag"
25232                          || test ! -s conftest.err'
25233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234   (eval $ac_try) 2>&5
25235   ac_status=$?
25236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237   (exit $ac_status); }; } &&
25238          { ac_try='test -s conftest.$ac_objext'
25239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240   (eval $ac_try) 2>&5
25241   ac_status=$?
25242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); }; }; then
25244   ISC_SOCKLEN_T="#define ISC_SOCKLEN_T long"
25245 echo "$as_me:$LINENO: result: long" >&5
25246 echo "${ECHO_T}long" >&6
25247
25248 else
25249   echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25251
25252 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T int"
25253 echo "$as_me:$LINENO: result: int" >&5
25254 echo "${ECHO_T}int" >&6
25255
25256 fi
25257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25258 fi
25259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25260 fi
25261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25262 fi
25263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25264
25265
25266 echo "$as_me:$LINENO: checking for getgrouplist" >&5
25267 echo $ECHO_N "checking for getgrouplist... $ECHO_C" >&6
25268 if test "${ac_cv_func_getgrouplist+set}" = set; then
25269   echo $ECHO_N "(cached) $ECHO_C" >&6
25270 else
25271   cat >conftest.$ac_ext <<_ACEOF
25272 /* confdefs.h.  */
25273 _ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h.  */
25277 /* Define getgrouplist to an innocuous variant, in case <limits.h> declares getgrouplist.
25278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25279 #define getgrouplist innocuous_getgrouplist
25280
25281 /* System header to define __stub macros and hopefully few prototypes,
25282     which can conflict with char getgrouplist (); below.
25283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25284     <limits.h> exists even on freestanding compilers.  */
25285
25286 #ifdef __STDC__
25287 # include <limits.h>
25288 #else
25289 # include <assert.h>
25290 #endif
25291
25292 #undef getgrouplist
25293
25294 /* Override any gcc2 internal prototype to avoid an error.  */
25295 #ifdef __cplusplus
25296 extern "C"
25297 {
25298 #endif
25299 /* We use char because int might match the return type of a gcc2
25300    builtin and then its argument prototype would still apply.  */
25301 char getgrouplist ();
25302 /* The GNU C library defines this for functions which it implements
25303     to always fail with ENOSYS.  Some functions are actually named
25304     something starting with __ and the normal name is an alias.  */
25305 #if defined (__stub_getgrouplist) || defined (__stub___getgrouplist)
25306 choke me
25307 #else
25308 char (*f) () = getgrouplist;
25309 #endif
25310 #ifdef __cplusplus
25311 }
25312 #endif
25313
25314 int
25315 main ()
25316 {
25317 return f != getgrouplist;
25318   ;
25319   return 0;
25320 }
25321 _ACEOF
25322 rm -f conftest.$ac_objext conftest$ac_exeext
25323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25324   (eval $ac_link) 2>conftest.er1
25325   ac_status=$?
25326   grep -v '^ *+' conftest.er1 >conftest.err
25327   rm -f conftest.er1
25328   cat conftest.err >&5
25329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330   (exit $ac_status); } &&
25331          { ac_try='test -z "$ac_c_werror_flag"
25332                          || test ! -s conftest.err'
25333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334   (eval $ac_try) 2>&5
25335   ac_status=$?
25336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337   (exit $ac_status); }; } &&
25338          { ac_try='test -s conftest$ac_exeext'
25339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340   (eval $ac_try) 2>&5
25341   ac_status=$?
25342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); }; }; then
25344   ac_cv_func_getgrouplist=yes
25345 else
25346   echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25348
25349 ac_cv_func_getgrouplist=no
25350 fi
25351 rm -f conftest.err conftest.$ac_objext \
25352       conftest$ac_exeext conftest.$ac_ext
25353 fi
25354 echo "$as_me:$LINENO: result: $ac_cv_func_getgrouplist" >&5
25355 echo "${ECHO_T}$ac_cv_func_getgrouplist" >&6
25356 if test $ac_cv_func_getgrouplist = yes; then
25357   cat >conftest.$ac_ext <<_ACEOF
25358 /* confdefs.h.  */
25359 _ACEOF
25360 cat confdefs.h >>conftest.$ac_ext
25361 cat >>conftest.$ac_ext <<_ACEOF
25362 /* end confdefs.h.  */
25363 #include <unistd.h>
25364 int
25365 getgrouplist(const char *name, int basegid, int *groups, int *ngroups) {
25366 }
25367
25368 int
25369 main ()
25370 {
25371 return (0);
25372   ;
25373   return 0;
25374 }
25375 _ACEOF
25376 rm -f conftest.$ac_objext
25377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25378   (eval $ac_compile) 2>conftest.er1
25379   ac_status=$?
25380   grep -v '^ *+' conftest.er1 >conftest.err
25381   rm -f conftest.er1
25382   cat conftest.err >&5
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); } &&
25385          { ac_try='test -z "$ac_c_werror_flag"
25386                          || test ! -s conftest.err'
25387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388   (eval $ac_try) 2>&5
25389   ac_status=$?
25390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391   (exit $ac_status); }; } &&
25392          { ac_try='test -s conftest.$ac_objext'
25393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394   (eval $ac_try) 2>&5
25395   ac_status=$?
25396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397   (exit $ac_status); }; }; then
25398   GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, int basegid, int *groups, int *ngroups"
25399
25400 else
25401   echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25403
25404 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
25405
25406 fi
25407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25408 else
25409   GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
25410 cat >>confdefs.h <<\_ACEOF
25411 #define NEED_GETGROUPLIST 1
25412 _ACEOF
25413
25414
25415 fi
25416
25417
25418
25419 echo "$as_me:$LINENO: checking for setgroupent" >&5
25420 echo $ECHO_N "checking for setgroupent... $ECHO_C" >&6
25421 if test "${ac_cv_func_setgroupent+set}" = set; then
25422   echo $ECHO_N "(cached) $ECHO_C" >&6
25423 else
25424   cat >conftest.$ac_ext <<_ACEOF
25425 /* confdefs.h.  */
25426 _ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h.  */
25430 /* Define setgroupent to an innocuous variant, in case <limits.h> declares setgroupent.
25431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25432 #define setgroupent innocuous_setgroupent
25433
25434 /* System header to define __stub macros and hopefully few prototypes,
25435     which can conflict with char setgroupent (); below.
25436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25437     <limits.h> exists even on freestanding compilers.  */
25438
25439 #ifdef __STDC__
25440 # include <limits.h>
25441 #else
25442 # include <assert.h>
25443 #endif
25444
25445 #undef setgroupent
25446
25447 /* Override any gcc2 internal prototype to avoid an error.  */
25448 #ifdef __cplusplus
25449 extern "C"
25450 {
25451 #endif
25452 /* We use char because int might match the return type of a gcc2
25453    builtin and then its argument prototype would still apply.  */
25454 char setgroupent ();
25455 /* The GNU C library defines this for functions which it implements
25456     to always fail with ENOSYS.  Some functions are actually named
25457     something starting with __ and the normal name is an alias.  */
25458 #if defined (__stub_setgroupent) || defined (__stub___setgroupent)
25459 choke me
25460 #else
25461 char (*f) () = setgroupent;
25462 #endif
25463 #ifdef __cplusplus
25464 }
25465 #endif
25466
25467 int
25468 main ()
25469 {
25470 return f != setgroupent;
25471   ;
25472   return 0;
25473 }
25474 _ACEOF
25475 rm -f conftest.$ac_objext conftest$ac_exeext
25476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25477   (eval $ac_link) 2>conftest.er1
25478   ac_status=$?
25479   grep -v '^ *+' conftest.er1 >conftest.err
25480   rm -f conftest.er1
25481   cat conftest.err >&5
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); } &&
25484          { ac_try='test -z "$ac_c_werror_flag"
25485                          || test ! -s conftest.err'
25486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487   (eval $ac_try) 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); }; } &&
25491          { ac_try='test -s conftest$ac_exeext'
25492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493   (eval $ac_try) 2>&5
25494   ac_status=$?
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); }; }; then
25497   ac_cv_func_setgroupent=yes
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502 ac_cv_func_setgroupent=no
25503 fi
25504 rm -f conftest.err conftest.$ac_objext \
25505       conftest$ac_exeext conftest.$ac_ext
25506 fi
25507 echo "$as_me:$LINENO: result: $ac_cv_func_setgroupent" >&5
25508 echo "${ECHO_T}$ac_cv_func_setgroupent" >&6
25509 if test $ac_cv_func_setgroupent = yes; then
25510   :
25511 else
25512   cat >>confdefs.h <<\_ACEOF
25513 #define NEED_SETGROUPENT 1
25514 _ACEOF
25515
25516 fi
25517
25518
25519 case $host in
25520 ia64-hp-hpux11.*)
25521 ;;
25522 *)
25523 echo "$as_me:$LINENO: checking for getnetbyaddr_r" >&5
25524 echo $ECHO_N "checking for getnetbyaddr_r... $ECHO_C" >&6
25525 if test "${ac_cv_func_getnetbyaddr_r+set}" = set; then
25526   echo $ECHO_N "(cached) $ECHO_C" >&6
25527 else
25528   cat >conftest.$ac_ext <<_ACEOF
25529 /* confdefs.h.  */
25530 _ACEOF
25531 cat confdefs.h >>conftest.$ac_ext
25532 cat >>conftest.$ac_ext <<_ACEOF
25533 /* end confdefs.h.  */
25534 /* Define getnetbyaddr_r to an innocuous variant, in case <limits.h> declares getnetbyaddr_r.
25535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25536 #define getnetbyaddr_r innocuous_getnetbyaddr_r
25537
25538 /* System header to define __stub macros and hopefully few prototypes,
25539     which can conflict with char getnetbyaddr_r (); below.
25540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25541     <limits.h> exists even on freestanding compilers.  */
25542
25543 #ifdef __STDC__
25544 # include <limits.h>
25545 #else
25546 # include <assert.h>
25547 #endif
25548
25549 #undef getnetbyaddr_r
25550
25551 /* Override any gcc2 internal prototype to avoid an error.  */
25552 #ifdef __cplusplus
25553 extern "C"
25554 {
25555 #endif
25556 /* We use char because int might match the return type of a gcc2
25557    builtin and then its argument prototype would still apply.  */
25558 char getnetbyaddr_r ();
25559 /* The GNU C library defines this for functions which it implements
25560     to always fail with ENOSYS.  Some functions are actually named
25561     something starting with __ and the normal name is an alias.  */
25562 #if defined (__stub_getnetbyaddr_r) || defined (__stub___getnetbyaddr_r)
25563 choke me
25564 #else
25565 char (*f) () = getnetbyaddr_r;
25566 #endif
25567 #ifdef __cplusplus
25568 }
25569 #endif
25570
25571 int
25572 main ()
25573 {
25574 return f != getnetbyaddr_r;
25575   ;
25576   return 0;
25577 }
25578 _ACEOF
25579 rm -f conftest.$ac_objext conftest$ac_exeext
25580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25581   (eval $ac_link) 2>conftest.er1
25582   ac_status=$?
25583   grep -v '^ *+' conftest.er1 >conftest.err
25584   rm -f conftest.er1
25585   cat conftest.err >&5
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); } &&
25588          { ac_try='test -z "$ac_c_werror_flag"
25589                          || test ! -s conftest.err'
25590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591   (eval $ac_try) 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); }; } &&
25595          { ac_try='test -s conftest$ac_exeext'
25596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597   (eval $ac_try) 2>&5
25598   ac_status=$?
25599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); }; }; then
25601   ac_cv_func_getnetbyaddr_r=yes
25602 else
25603   echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25605
25606 ac_cv_func_getnetbyaddr_r=no
25607 fi
25608 rm -f conftest.err conftest.$ac_objext \
25609       conftest$ac_exeext conftest.$ac_ext
25610 fi
25611 echo "$as_me:$LINENO: result: $ac_cv_func_getnetbyaddr_r" >&5
25612 echo "${ECHO_T}$ac_cv_func_getnetbyaddr_r" >&6
25613 if test $ac_cv_func_getnetbyaddr_r = yes; then
25614   cat >conftest.$ac_ext <<_ACEOF
25615 /* confdefs.h.  */
25616 _ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h.  */
25620
25621 #undef _REENTRANT
25622 #define _REENTRANT
25623 #define _OSF_SOURCE
25624 #undef __USE_MISC
25625 #define __USE_MISC
25626 #include <netdb.h>
25627 struct netent *
25628 getnetbyaddr_r(long net, int type, struct netent *result, char *buffer,
25629 int buflen) {}
25630
25631 int
25632 main ()
25633 {
25634 return (0)
25635   ;
25636   return 0;
25637 }
25638 _ACEOF
25639 rm -f conftest.$ac_objext
25640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25641   (eval $ac_compile) 2>conftest.er1
25642   ac_status=$?
25643   grep -v '^ *+' conftest.er1 >conftest.err
25644   rm -f conftest.er1
25645   cat conftest.err >&5
25646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647   (exit $ac_status); } &&
25648          { ac_try='test -z "$ac_c_werror_flag"
25649                          || test ! -s conftest.err'
25650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651   (eval $ac_try) 2>&5
25652   ac_status=$?
25653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654   (exit $ac_status); }; } &&
25655          { ac_try='test -s conftest.$ac_objext'
25656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657   (eval $ac_try) 2>&5
25658   ac_status=$?
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); }; }; then
25661
25662 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen"
25663 NET_R_BAD="#define NET_R_BAD NULL"
25664 NET_R_COPY="#define NET_R_COPY buf, buflen"
25665 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS"
25666 NET_R_OK="#define NET_R_OK nptr"
25667 NET_R_SETANSWER="#undef NET_R_SETANSWER"
25668 NET_R_RETURN="#define NET_R_RETURN struct netent *"
25669 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
25670 NETENT_DATA="#undef NETENT_DATA"
25671
25672 else
25673   echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25675
25676 cat >conftest.$ac_ext <<_ACEOF
25677 /* confdefs.h.  */
25678 _ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h.  */
25682
25683 #undef _REENTRANT
25684 #define _REENTRANT
25685 #define _OSF_SOURCE
25686 #undef __USE_MISC
25687 #define __USE_MISC
25688 #include <netdb.h>
25689 int getnetbyaddr_r (unsigned long int, int, struct netent *,
25690                     char *, size_t, struct netent **, int *);
25691
25692 int
25693 main ()
25694 {
25695 return (0)
25696   ;
25697   return 0;
25698 }
25699 _ACEOF
25700 rm -f conftest.$ac_objext
25701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25702   (eval $ac_compile) 2>conftest.er1
25703   ac_status=$?
25704   grep -v '^ *+' conftest.er1 >conftest.err
25705   rm -f conftest.er1
25706   cat conftest.err >&5
25707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708   (exit $ac_status); } &&
25709          { ac_try='test -z "$ac_c_werror_flag"
25710                          || test ! -s conftest.err'
25711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712   (eval $ac_try) 2>&5
25713   ac_status=$?
25714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); }; } &&
25716          { ac_try='test -s conftest.$ac_objext'
25717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718   (eval $ac_try) 2>&5
25719   ac_status=$?
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); }; }; then
25722
25723 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
25724 NET_R_BAD="#define NET_R_BAD ERANGE"
25725 NET_R_COPY="#define NET_R_COPY buf, buflen"
25726 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
25727 NET_R_OK="#define NET_R_OK 0"
25728 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
25729 NET_R_RETURN="#define NET_R_RETURN int"
25730 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
25731 NETENT_DATA="#undef NETENT_DATA"
25732
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737 cat >conftest.$ac_ext <<_ACEOF
25738 /* confdefs.h.  */
25739 _ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h.  */
25743
25744 #undef _REENTRANT
25745 #define _REENTRANT
25746 #define _OSF_SOURCE
25747 #undef __USE_MISC
25748 #define __USE_MISC
25749 #include <netdb.h>
25750 extern int getnetbyaddr_r(int, int, struct netent *, struct netent_data *);
25751
25752 int
25753 main ()
25754 {
25755 return (0)
25756   ;
25757   return 0;
25758 }
25759 _ACEOF
25760 rm -f conftest.$ac_objext
25761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762   (eval $ac_compile) 2>conftest.er1
25763   ac_status=$?
25764   grep -v '^ *+' conftest.er1 >conftest.err
25765   rm -f conftest.er1
25766   cat conftest.err >&5
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); } &&
25769          { ac_try='test -z "$ac_c_werror_flag"
25770                          || test ! -s conftest.err'
25771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772   (eval $ac_try) 2>&5
25773   ac_status=$?
25774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775   (exit $ac_status); }; } &&
25776          { ac_try='test -s conftest.$ac_objext'
25777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778   (eval $ac_try) 2>&5
25779   ac_status=$?
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); }; }; then
25782
25783 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
25784 NET_R_BAD="#define NET_R_BAD (-1)"
25785 NET_R_COPY="#define NET_R_COPY ndptr"
25786 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
25787 NET_R_OK="#define NET_R_OK 0"
25788 NET_R_SETANSWER="#undef NET_R_SETANSWER"
25789 NET_R_RETURN="#define NET_R_RETURN int"
25790 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int"
25791 NETENT_DATA="#define NETENT_DATA 1"
25792
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797 cat >conftest.$ac_ext <<_ACEOF
25798 /* confdefs.h.  */
25799 _ACEOF
25800 cat confdefs.h >>conftest.$ac_ext
25801 cat >>conftest.$ac_ext <<_ACEOF
25802 /* end confdefs.h.  */
25803 #undef __USE_MISC
25804 #define __USE_MISC
25805 #include <netdb.h>
25806 int getnetbyaddr_r (long, int, struct netent *, struct netent_data *);
25807
25808 int
25809 main ()
25810 {
25811 return (0)
25812   ;
25813   return 0;
25814 }
25815 _ACEOF
25816 rm -f conftest.$ac_objext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25818   (eval $ac_compile) 2>conftest.er1
25819   ac_status=$?
25820   grep -v '^ *+' conftest.er1 >conftest.err
25821   rm -f conftest.er1
25822   cat conftest.err >&5
25823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824   (exit $ac_status); } &&
25825          { ac_try='test -z "$ac_c_werror_flag"
25826                          || test ! -s conftest.err'
25827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828   (eval $ac_try) 2>&5
25829   ac_status=$?
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); }; } &&
25832          { ac_try='test -s conftest.$ac_objext'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; }; then
25838
25839 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
25840 NET_R_BAD="#define NET_R_BAD (-1)"
25841 NET_R_COPY="#define NET_R_COPY ndptr"
25842 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
25843 NET_R_OK="#define NET_R_OK 0"
25844 NET_R_SETANSWER="#undef NET_R_SETANSWER"
25845 NET_R_RETURN="#define NET_R_RETURN int"
25846 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
25847 NETENT_DATA="#define NETENT_DATA 1"
25848
25849 else
25850   echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25852
25853 cat >conftest.$ac_ext <<_ACEOF
25854 /* confdefs.h.  */
25855 _ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h.  */
25859 #undef __USE_MISC
25860 #define __USE_MISC
25861 #include <netdb.h>
25862 int getnetbyaddr_r (uint32_t, int, struct netent *,
25863                     char *, size_t, struct netent **, int *);
25864
25865 int
25866 main ()
25867 {
25868 return (0)
25869   ;
25870   return 0;
25871 }
25872 _ACEOF
25873 rm -f conftest.$ac_objext
25874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25875   (eval $ac_compile) 2>conftest.er1
25876   ac_status=$?
25877   grep -v '^ *+' conftest.er1 >conftest.err
25878   rm -f conftest.er1
25879   cat conftest.err >&5
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); } &&
25882          { ac_try='test -z "$ac_c_werror_flag"
25883                          || test ! -s conftest.err'
25884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885   (eval $ac_try) 2>&5
25886   ac_status=$?
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); }; } &&
25889          { ac_try='test -s conftest.$ac_objext'
25890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891   (eval $ac_try) 2>&5
25892   ac_status=$?
25893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894   (exit $ac_status); }; }; then
25895
25896 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
25897 NET_R_BAD="#define NET_R_BAD ERANGE"
25898 NET_R_COPY="#define NET_R_COPY buf, buflen"
25899 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
25900 NET_R_OK="#define NET_R_OK 0"
25901 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
25902 NET_R_RETURN="#define NET_R_RETURN int"
25903 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
25904 NETENT_DATA="#undef NETENT_DATA"
25905
25906 else
25907   echo "$as_me: failed program was:" >&5
25908 sed 's/^/| /' conftest.$ac_ext >&5
25909
25910 fi
25911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25912
25913 fi
25914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25915
25916 fi
25917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25918
25919 fi
25920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25921
25922 fi
25923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25924
25925 else
25926   NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen"
25927 NET_R_BAD="#define NET_R_BAD NULL"
25928 NET_R_COPY="#define NET_R_COPY buf, buflen"
25929 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS"
25930 NET_R_OK="#define NET_R_OK nptr"
25931 NET_R_SETANSWER="#undef NET_R_SETANSWER"
25932 NET_R_RETURN="#define NET_R_RETURN struct netent *"
25933 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
25934 NETENT_DATA="#undef NETENT_DATA"
25935
25936 fi
25937
25938 esac
25939
25940 case "$host" in
25941 *dec-osf*) GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int" ;;
25942 esac
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953 echo "$as_me:$LINENO: checking for setnetent_r" >&5
25954 echo $ECHO_N "checking for setnetent_r... $ECHO_C" >&6
25955 if test "${ac_cv_func_setnetent_r+set}" = set; then
25956   echo $ECHO_N "(cached) $ECHO_C" >&6
25957 else
25958   cat >conftest.$ac_ext <<_ACEOF
25959 /* confdefs.h.  */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h.  */
25964 /* Define setnetent_r to an innocuous variant, in case <limits.h> declares setnetent_r.
25965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25966 #define setnetent_r innocuous_setnetent_r
25967
25968 /* System header to define __stub macros and hopefully few prototypes,
25969     which can conflict with char setnetent_r (); below.
25970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25971     <limits.h> exists even on freestanding compilers.  */
25972
25973 #ifdef __STDC__
25974 # include <limits.h>
25975 #else
25976 # include <assert.h>
25977 #endif
25978
25979 #undef setnetent_r
25980
25981 /* Override any gcc2 internal prototype to avoid an error.  */
25982 #ifdef __cplusplus
25983 extern "C"
25984 {
25985 #endif
25986 /* We use char because int might match the return type of a gcc2
25987    builtin and then its argument prototype would still apply.  */
25988 char setnetent_r ();
25989 /* The GNU C library defines this for functions which it implements
25990     to always fail with ENOSYS.  Some functions are actually named
25991     something starting with __ and the normal name is an alias.  */
25992 #if defined (__stub_setnetent_r) || defined (__stub___setnetent_r)
25993 choke me
25994 #else
25995 char (*f) () = setnetent_r;
25996 #endif
25997 #ifdef __cplusplus
25998 }
25999 #endif
26000
26001 int
26002 main ()
26003 {
26004 return f != setnetent_r;
26005   ;
26006   return 0;
26007 }
26008 _ACEOF
26009 rm -f conftest.$ac_objext conftest$ac_exeext
26010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26011   (eval $ac_link) 2>conftest.er1
26012   ac_status=$?
26013   grep -v '^ *+' conftest.er1 >conftest.err
26014   rm -f conftest.er1
26015   cat conftest.err >&5
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); } &&
26018          { ac_try='test -z "$ac_c_werror_flag"
26019                          || test ! -s conftest.err'
26020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021   (eval $ac_try) 2>&5
26022   ac_status=$?
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); }; } &&
26025          { ac_try='test -s conftest$ac_exeext'
26026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027   (eval $ac_try) 2>&5
26028   ac_status=$?
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); }; }; then
26031   ac_cv_func_setnetent_r=yes
26032 else
26033   echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036 ac_cv_func_setnetent_r=no
26037 fi
26038 rm -f conftest.err conftest.$ac_objext \
26039       conftest$ac_exeext conftest.$ac_ext
26040 fi
26041 echo "$as_me:$LINENO: result: $ac_cv_func_setnetent_r" >&5
26042 echo "${ECHO_T}$ac_cv_func_setnetent_r" >&6
26043 if test $ac_cv_func_setnetent_r = yes; then
26044   cat >conftest.$ac_ext <<_ACEOF
26045 /* confdefs.h.  */
26046 _ACEOF
26047 cat confdefs.h >>conftest.$ac_ext
26048 cat >>conftest.$ac_ext <<_ACEOF
26049 /* end confdefs.h.  */
26050
26051 #undef __USE_MISC
26052 #define __USE_MISC
26053 #include <netdb.h>
26054 void  setnetent_r (int);
26055
26056 int
26057 main ()
26058 {
26059 return (0);
26060   ;
26061   return 0;
26062 }
26063 _ACEOF
26064 rm -f conftest.$ac_objext
26065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26066   (eval $ac_compile) 2>conftest.er1
26067   ac_status=$?
26068   grep -v '^ *+' conftest.er1 >conftest.err
26069   rm -f conftest.er1
26070   cat conftest.err >&5
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); } &&
26073          { ac_try='test -z "$ac_c_werror_flag"
26074                          || test ! -s conftest.err'
26075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076   (eval $ac_try) 2>&5
26077   ac_status=$?
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); }; } &&
26080          { ac_try='test -s conftest.$ac_objext'
26081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082   (eval $ac_try) 2>&5
26083   ac_status=$?
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); }; }; then
26086
26087 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/"
26088 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/"
26089 NET_R_SET_RETURN="#define NET_R_SET_RETURN void"
26090
26091 else
26092   echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26094
26095 cat >conftest.$ac_ext <<_ACEOF
26096 /* confdefs.h.  */
26097 _ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h.  */
26101
26102 #define _REENTRANT
26103 #undef __USE_MISC
26104 #define __USE_MISC
26105 #include <netdb.h>
26106 extern int setnetent_r(int, struct netent_data *);
26107
26108 int
26109 main ()
26110 {
26111 return (0);
26112   ;
26113   return 0;
26114 }
26115 _ACEOF
26116 rm -f conftest.$ac_objext
26117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26118   (eval $ac_compile) 2>conftest.er1
26119   ac_status=$?
26120   grep -v '^ *+' conftest.er1 >conftest.err
26121   rm -f conftest.er1
26122   cat conftest.err >&5
26123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124   (exit $ac_status); } &&
26125          { ac_try='test -z "$ac_c_werror_flag"
26126                          || test ! -s conftest.err'
26127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128   (eval $ac_try) 2>&5
26129   ac_status=$?
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); }; } &&
26132          { ac_try='test -s conftest.$ac_objext'
26133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26134   (eval $ac_try) 2>&5
26135   ac_status=$?
26136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137   (exit $ac_status); }; }; then
26138
26139 NET_R_ENT_ARGS="#define NET_R_ENT_ARGS struct netent_data *ndptr"
26140 NET_R_SET_RESULT="#define NET_R_SET_RESULT NET_R_OK"
26141 NET_R_SET_RETURN="#define NET_R_SET_RETURN int"
26142
26143 else
26144   echo "$as_me: failed program was:" >&5
26145 sed 's/^/| /' conftest.$ac_ext >&5
26146
26147 fi
26148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26149
26150 fi
26151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26152
26153 else
26154   NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/"
26155 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/"
26156 NET_R_SET_RETURN="#define NET_R_SET_RETURN void"
26157
26158 fi
26159
26160
26161
26162
26163
26164
26165 case $host in
26166 ia64-hp-hpux11.*)
26167 ;;
26168 *)
26169 echo "$as_me:$LINENO: checking for endnetent_r" >&5
26170 echo $ECHO_N "checking for endnetent_r... $ECHO_C" >&6
26171 if test "${ac_cv_func_endnetent_r+set}" = set; then
26172   echo $ECHO_N "(cached) $ECHO_C" >&6
26173 else
26174   cat >conftest.$ac_ext <<_ACEOF
26175 /* confdefs.h.  */
26176 _ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h.  */
26180 /* Define endnetent_r to an innocuous variant, in case <limits.h> declares endnetent_r.
26181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26182 #define endnetent_r innocuous_endnetent_r
26183
26184 /* System header to define __stub macros and hopefully few prototypes,
26185     which can conflict with char endnetent_r (); below.
26186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26187     <limits.h> exists even on freestanding compilers.  */
26188
26189 #ifdef __STDC__
26190 # include <limits.h>
26191 #else
26192 # include <assert.h>
26193 #endif
26194
26195 #undef endnetent_r
26196
26197 /* Override any gcc2 internal prototype to avoid an error.  */
26198 #ifdef __cplusplus
26199 extern "C"
26200 {
26201 #endif
26202 /* We use char because int might match the return type of a gcc2
26203    builtin and then its argument prototype would still apply.  */
26204 char endnetent_r ();
26205 /* The GNU C library defines this for functions which it implements
26206     to always fail with ENOSYS.  Some functions are actually named
26207     something starting with __ and the normal name is an alias.  */
26208 #if defined (__stub_endnetent_r) || defined (__stub___endnetent_r)
26209 choke me
26210 #else
26211 char (*f) () = endnetent_r;
26212 #endif
26213 #ifdef __cplusplus
26214 }
26215 #endif
26216
26217 int
26218 main ()
26219 {
26220 return f != endnetent_r;
26221   ;
26222   return 0;
26223 }
26224 _ACEOF
26225 rm -f conftest.$ac_objext conftest$ac_exeext
26226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26227   (eval $ac_link) 2>conftest.er1
26228   ac_status=$?
26229   grep -v '^ *+' conftest.er1 >conftest.err
26230   rm -f conftest.er1
26231   cat conftest.err >&5
26232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233   (exit $ac_status); } &&
26234          { ac_try='test -z "$ac_c_werror_flag"
26235                          || test ! -s conftest.err'
26236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26237   (eval $ac_try) 2>&5
26238   ac_status=$?
26239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240   (exit $ac_status); }; } &&
26241          { ac_try='test -s conftest$ac_exeext'
26242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243   (eval $ac_try) 2>&5
26244   ac_status=$?
26245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); }; }; then
26247   ac_cv_func_endnetent_r=yes
26248 else
26249   echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26251
26252 ac_cv_func_endnetent_r=no
26253 fi
26254 rm -f conftest.err conftest.$ac_objext \
26255       conftest$ac_exeext conftest.$ac_ext
26256 fi
26257 echo "$as_me:$LINENO: result: $ac_cv_func_endnetent_r" >&5
26258 echo "${ECHO_T}$ac_cv_func_endnetent_r" >&6
26259 if test $ac_cv_func_endnetent_r = yes; then
26260   cat >conftest.$ac_ext <<_ACEOF
26261 /* confdefs.h.  */
26262 _ACEOF
26263 cat confdefs.h >>conftest.$ac_ext
26264 cat >>conftest.$ac_ext <<_ACEOF
26265 /* end confdefs.h.  */
26266
26267 #undef _REENTRANT
26268 #define _REENTRANT
26269 #undef __USE_MISC
26270 #define __USE_MISC
26271 #include <netdb.h>
26272 void  endnetent_r (void);
26273
26274 int
26275 main ()
26276 {
26277 return (0);
26278   ;
26279   return 0;
26280 }
26281 _ACEOF
26282 rm -f conftest.$ac_objext
26283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26284   (eval $ac_compile) 2>conftest.er1
26285   ac_status=$?
26286   grep -v '^ *+' conftest.er1 >conftest.err
26287   rm -f conftest.er1
26288   cat conftest.err >&5
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); } &&
26291          { ac_try='test -z "$ac_c_werror_flag"
26292                          || test ! -s conftest.err'
26293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294   (eval $ac_try) 2>&5
26295   ac_status=$?
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); }; } &&
26298          { ac_try='test -s conftest.$ac_objext'
26299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300   (eval $ac_try) 2>&5
26301   ac_status=$?
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); }; }; then
26304
26305 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26306 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26307
26308 else
26309   echo "$as_me: failed program was:" >&5
26310 sed 's/^/| /' conftest.$ac_ext >&5
26311
26312 cat >conftest.$ac_ext <<_ACEOF
26313 /* confdefs.h.  */
26314 _ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h.  */
26318
26319 #undef _REENTRANT
26320 #define _REENTRANT
26321 #undef __USE_MISC
26322 #define __USE_MISC
26323 #include <netdb.h>
26324 extern int endnetent_r(struct netent_data *);
26325
26326 int
26327 main ()
26328 {
26329 return (0);
26330   ;
26331   return 0;
26332 }
26333 _ACEOF
26334 rm -f conftest.$ac_objext
26335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26336   (eval $ac_compile) 2>conftest.er1
26337   ac_status=$?
26338   grep -v '^ *+' conftest.er1 >conftest.err
26339   rm -f conftest.er1
26340   cat conftest.err >&5
26341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342   (exit $ac_status); } &&
26343          { ac_try='test -z "$ac_c_werror_flag"
26344                          || test ! -s conftest.err'
26345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346   (eval $ac_try) 2>&5
26347   ac_status=$?
26348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349   (exit $ac_status); }; } &&
26350          { ac_try='test -s conftest.$ac_objext'
26351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352   (eval $ac_try) 2>&5
26353   ac_status=$?
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); }; }; then
26356
26357 NET_R_END_RESULT="#define NET_R_END_RESULT(x) return (x)"
26358 NET_R_END_RETURN="#define NET_R_END_RETURN int"
26359
26360 else
26361   echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26363
26364 cat >conftest.$ac_ext <<_ACEOF
26365 /* confdefs.h.  */
26366 _ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h.  */
26370
26371 #undef _REENTRANT
26372 #define _REENTRANT
26373 #undef __USE_MISC
26374 #define __USE_MISC
26375 #include <netdb.h>
26376 extern void endnetent_r(struct netent_data *);
26377
26378 int
26379 main ()
26380 {
26381 return (0);
26382   ;
26383   return 0;
26384 }
26385 _ACEOF
26386 rm -f conftest.$ac_objext
26387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26388   (eval $ac_compile) 2>conftest.er1
26389   ac_status=$?
26390   grep -v '^ *+' conftest.er1 >conftest.err
26391   rm -f conftest.er1
26392   cat conftest.err >&5
26393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394   (exit $ac_status); } &&
26395          { ac_try='test -z "$ac_c_werror_flag"
26396                          || test ! -s conftest.err'
26397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398   (eval $ac_try) 2>&5
26399   ac_status=$?
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); }; } &&
26402          { ac_try='test -s conftest.$ac_objext'
26403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404   (eval $ac_try) 2>&5
26405   ac_status=$?
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); }; }; then
26408
26409 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26410 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26411
26412 else
26413   echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26415
26416 fi
26417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26418
26419 fi
26420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26421
26422 fi
26423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26424
26425 else
26426   NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26427 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26428
26429 fi
26430
26431 esac
26432
26433
26434
26435 echo "$as_me:$LINENO: checking for getgrnam_r" >&5
26436 echo $ECHO_N "checking for getgrnam_r... $ECHO_C" >&6
26437 if test "${ac_cv_func_getgrnam_r+set}" = set; then
26438   echo $ECHO_N "(cached) $ECHO_C" >&6
26439 else
26440   cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h.  */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h.  */
26446 /* Define getgrnam_r to an innocuous variant, in case <limits.h> declares getgrnam_r.
26447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26448 #define getgrnam_r innocuous_getgrnam_r
26449
26450 /* System header to define __stub macros and hopefully few prototypes,
26451     which can conflict with char getgrnam_r (); below.
26452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26453     <limits.h> exists even on freestanding compilers.  */
26454
26455 #ifdef __STDC__
26456 # include <limits.h>
26457 #else
26458 # include <assert.h>
26459 #endif
26460
26461 #undef getgrnam_r
26462
26463 /* Override any gcc2 internal prototype to avoid an error.  */
26464 #ifdef __cplusplus
26465 extern "C"
26466 {
26467 #endif
26468 /* We use char because int might match the return type of a gcc2
26469    builtin and then its argument prototype would still apply.  */
26470 char getgrnam_r ();
26471 /* The GNU C library defines this for functions which it implements
26472     to always fail with ENOSYS.  Some functions are actually named
26473     something starting with __ and the normal name is an alias.  */
26474 #if defined (__stub_getgrnam_r) || defined (__stub___getgrnam_r)
26475 choke me
26476 #else
26477 char (*f) () = getgrnam_r;
26478 #endif
26479 #ifdef __cplusplus
26480 }
26481 #endif
26482
26483 int
26484 main ()
26485 {
26486 return f != getgrnam_r;
26487   ;
26488   return 0;
26489 }
26490 _ACEOF
26491 rm -f conftest.$ac_objext conftest$ac_exeext
26492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26493   (eval $ac_link) 2>conftest.er1
26494   ac_status=$?
26495   grep -v '^ *+' conftest.er1 >conftest.err
26496   rm -f conftest.er1
26497   cat conftest.err >&5
26498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499   (exit $ac_status); } &&
26500          { ac_try='test -z "$ac_c_werror_flag"
26501                          || test ! -s conftest.err'
26502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503   (eval $ac_try) 2>&5
26504   ac_status=$?
26505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506   (exit $ac_status); }; } &&
26507          { ac_try='test -s conftest$ac_exeext'
26508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509   (eval $ac_try) 2>&5
26510   ac_status=$?
26511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512   (exit $ac_status); }; }; then
26513   ac_cv_func_getgrnam_r=yes
26514 else
26515   echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.$ac_ext >&5
26517
26518 ac_cv_func_getgrnam_r=no
26519 fi
26520 rm -f conftest.err conftest.$ac_objext \
26521       conftest$ac_exeext conftest.$ac_ext
26522 fi
26523 echo "$as_me:$LINENO: result: $ac_cv_func_getgrnam_r" >&5
26524 echo "${ECHO_T}$ac_cv_func_getgrnam_r" >&6
26525 if test $ac_cv_func_getgrnam_r = yes; then
26526   :
26527 else
26528   cat >>confdefs.h <<\_ACEOF
26529 #define NEED_GETGRNAM_R 1
26530 _ACEOF
26531
26532 fi
26533
26534 echo "$as_me:$LINENO: checking for getgrgid_r" >&5
26535 echo $ECHO_N "checking for getgrgid_r... $ECHO_C" >&6
26536 if test "${ac_cv_func_getgrgid_r+set}" = set; then
26537   echo $ECHO_N "(cached) $ECHO_C" >&6
26538 else
26539   cat >conftest.$ac_ext <<_ACEOF
26540 /* confdefs.h.  */
26541 _ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h.  */
26545 /* Define getgrgid_r to an innocuous variant, in case <limits.h> declares getgrgid_r.
26546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26547 #define getgrgid_r innocuous_getgrgid_r
26548
26549 /* System header to define __stub macros and hopefully few prototypes,
26550     which can conflict with char getgrgid_r (); below.
26551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26552     <limits.h> exists even on freestanding compilers.  */
26553
26554 #ifdef __STDC__
26555 # include <limits.h>
26556 #else
26557 # include <assert.h>
26558 #endif
26559
26560 #undef getgrgid_r
26561
26562 /* Override any gcc2 internal prototype to avoid an error.  */
26563 #ifdef __cplusplus
26564 extern "C"
26565 {
26566 #endif
26567 /* We use char because int might match the return type of a gcc2
26568    builtin and then its argument prototype would still apply.  */
26569 char getgrgid_r ();
26570 /* The GNU C library defines this for functions which it implements
26571     to always fail with ENOSYS.  Some functions are actually named
26572     something starting with __ and the normal name is an alias.  */
26573 #if defined (__stub_getgrgid_r) || defined (__stub___getgrgid_r)
26574 choke me
26575 #else
26576 char (*f) () = getgrgid_r;
26577 #endif
26578 #ifdef __cplusplus
26579 }
26580 #endif
26581
26582 int
26583 main ()
26584 {
26585 return f != getgrgid_r;
26586   ;
26587   return 0;
26588 }
26589 _ACEOF
26590 rm -f conftest.$ac_objext conftest$ac_exeext
26591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26592   (eval $ac_link) 2>conftest.er1
26593   ac_status=$?
26594   grep -v '^ *+' conftest.er1 >conftest.err
26595   rm -f conftest.er1
26596   cat conftest.err >&5
26597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); } &&
26599          { ac_try='test -z "$ac_c_werror_flag"
26600                          || test ! -s conftest.err'
26601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602   (eval $ac_try) 2>&5
26603   ac_status=$?
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); }; } &&
26606          { ac_try='test -s conftest$ac_exeext'
26607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26608   (eval $ac_try) 2>&5
26609   ac_status=$?
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); }; }; then
26612   ac_cv_func_getgrgid_r=yes
26613 else
26614   echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26616
26617 ac_cv_func_getgrgid_r=no
26618 fi
26619 rm -f conftest.err conftest.$ac_objext \
26620       conftest$ac_exeext conftest.$ac_ext
26621 fi
26622 echo "$as_me:$LINENO: result: $ac_cv_func_getgrgid_r" >&5
26623 echo "${ECHO_T}$ac_cv_func_getgrgid_r" >&6
26624 if test $ac_cv_func_getgrgid_r = yes; then
26625   :
26626 else
26627   cat >>confdefs.h <<\_ACEOF
26628 #define NEED_GETGRGID_R 1
26629 _ACEOF
26630
26631 fi
26632
26633
26634 echo "$as_me:$LINENO: checking for getgrent_r" >&5
26635 echo $ECHO_N "checking for getgrent_r... $ECHO_C" >&6
26636 if test "${ac_cv_func_getgrent_r+set}" = set; then
26637   echo $ECHO_N "(cached) $ECHO_C" >&6
26638 else
26639   cat >conftest.$ac_ext <<_ACEOF
26640 /* confdefs.h.  */
26641 _ACEOF
26642 cat confdefs.h >>conftest.$ac_ext
26643 cat >>conftest.$ac_ext <<_ACEOF
26644 /* end confdefs.h.  */
26645 /* Define getgrent_r to an innocuous variant, in case <limits.h> declares getgrent_r.
26646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26647 #define getgrent_r innocuous_getgrent_r
26648
26649 /* System header to define __stub macros and hopefully few prototypes,
26650     which can conflict with char getgrent_r (); below.
26651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26652     <limits.h> exists even on freestanding compilers.  */
26653
26654 #ifdef __STDC__
26655 # include <limits.h>
26656 #else
26657 # include <assert.h>
26658 #endif
26659
26660 #undef getgrent_r
26661
26662 /* Override any gcc2 internal prototype to avoid an error.  */
26663 #ifdef __cplusplus
26664 extern "C"
26665 {
26666 #endif
26667 /* We use char because int might match the return type of a gcc2
26668    builtin and then its argument prototype would still apply.  */
26669 char getgrent_r ();
26670 /* The GNU C library defines this for functions which it implements
26671     to always fail with ENOSYS.  Some functions are actually named
26672     something starting with __ and the normal name is an alias.  */
26673 #if defined (__stub_getgrent_r) || defined (__stub___getgrent_r)
26674 choke me
26675 #else
26676 char (*f) () = getgrent_r;
26677 #endif
26678 #ifdef __cplusplus
26679 }
26680 #endif
26681
26682 int
26683 main ()
26684 {
26685 return f != getgrent_r;
26686   ;
26687   return 0;
26688 }
26689 _ACEOF
26690 rm -f conftest.$ac_objext conftest$ac_exeext
26691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26692   (eval $ac_link) 2>conftest.er1
26693   ac_status=$?
26694   grep -v '^ *+' conftest.er1 >conftest.err
26695   rm -f conftest.er1
26696   cat conftest.err >&5
26697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698   (exit $ac_status); } &&
26699          { ac_try='test -z "$ac_c_werror_flag"
26700                          || test ! -s conftest.err'
26701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26702   (eval $ac_try) 2>&5
26703   ac_status=$?
26704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705   (exit $ac_status); }; } &&
26706          { ac_try='test -s conftest$ac_exeext'
26707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26708   (eval $ac_try) 2>&5
26709   ac_status=$?
26710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); }; }; then
26712   ac_cv_func_getgrent_r=yes
26713 else
26714   echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26716
26717 ac_cv_func_getgrent_r=no
26718 fi
26719 rm -f conftest.err conftest.$ac_objext \
26720       conftest$ac_exeext conftest.$ac_ext
26721 fi
26722 echo "$as_me:$LINENO: result: $ac_cv_func_getgrent_r" >&5
26723 echo "${ECHO_T}$ac_cv_func_getgrent_r" >&6
26724 if test $ac_cv_func_getgrent_r = yes; then
26725   cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731
26732 #include <grp.h>
26733 struct group *getgrent_r(struct group *grp, char *buffer,
26734            int buflen) {}
26735
26736 int
26737 main ()
26738 {
26739 return (0);
26740   ;
26741   return 0;
26742 }
26743 _ACEOF
26744 rm -f conftest.$ac_objext
26745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26746   (eval $ac_compile) 2>conftest.er1
26747   ac_status=$?
26748   grep -v '^ *+' conftest.er1 >conftest.err
26749   rm -f conftest.er1
26750   cat conftest.err >&5
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); } &&
26753          { ac_try='test -z "$ac_c_werror_flag"
26754                          || test ! -s conftest.err'
26755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756   (eval $ac_try) 2>&5
26757   ac_status=$?
26758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759   (exit $ac_status); }; } &&
26760          { ac_try='test -s conftest.$ac_objext'
26761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26762   (eval $ac_try) 2>&5
26763   ac_status=$?
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); }; }; then
26766
26767 GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"
26768 GROUP_R_BAD="#define GROUP_R_BAD NULL"
26769 GROUP_R_OK="#define GROUP_R_OK gptr"
26770 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"
26771
26772 else
26773   echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776 fi
26777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26778
26779 else
26780   GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"
26781 GROUP_R_BAD="#define GROUP_R_BAD NULL"
26782 GROUP_R_OK="#define GROUP_R_OK gptr"
26783 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"
26784 cat >>confdefs.h <<\_ACEOF
26785 #define NEED_GETGRENT_R 1
26786 _ACEOF
26787
26788
26789 fi
26790
26791
26792
26793
26794
26795
26796 echo "$as_me:$LINENO: checking for endgrent_r" >&5
26797 echo $ECHO_N "checking for endgrent_r... $ECHO_C" >&6
26798 if test "${ac_cv_func_endgrent_r+set}" = set; then
26799   echo $ECHO_N "(cached) $ECHO_C" >&6
26800 else
26801   cat >conftest.$ac_ext <<_ACEOF
26802 /* confdefs.h.  */
26803 _ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h.  */
26807 /* Define endgrent_r to an innocuous variant, in case <limits.h> declares endgrent_r.
26808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26809 #define endgrent_r innocuous_endgrent_r
26810
26811 /* System header to define __stub macros and hopefully few prototypes,
26812     which can conflict with char endgrent_r (); below.
26813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26814     <limits.h> exists even on freestanding compilers.  */
26815
26816 #ifdef __STDC__
26817 # include <limits.h>
26818 #else
26819 # include <assert.h>
26820 #endif
26821
26822 #undef endgrent_r
26823
26824 /* Override any gcc2 internal prototype to avoid an error.  */
26825 #ifdef __cplusplus
26826 extern "C"
26827 {
26828 #endif
26829 /* We use char because int might match the return type of a gcc2
26830    builtin and then its argument prototype would still apply.  */
26831 char endgrent_r ();
26832 /* The GNU C library defines this for functions which it implements
26833     to always fail with ENOSYS.  Some functions are actually named
26834     something starting with __ and the normal name is an alias.  */
26835 #if defined (__stub_endgrent_r) || defined (__stub___endgrent_r)
26836 choke me
26837 #else
26838 char (*f) () = endgrent_r;
26839 #endif
26840 #ifdef __cplusplus
26841 }
26842 #endif
26843
26844 int
26845 main ()
26846 {
26847 return f != endgrent_r;
26848   ;
26849   return 0;
26850 }
26851 _ACEOF
26852 rm -f conftest.$ac_objext conftest$ac_exeext
26853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26854   (eval $ac_link) 2>conftest.er1
26855   ac_status=$?
26856   grep -v '^ *+' conftest.er1 >conftest.err
26857   rm -f conftest.er1
26858   cat conftest.err >&5
26859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860   (exit $ac_status); } &&
26861          { ac_try='test -z "$ac_c_werror_flag"
26862                          || test ! -s conftest.err'
26863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864   (eval $ac_try) 2>&5
26865   ac_status=$?
26866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); }; } &&
26868          { ac_try='test -s conftest$ac_exeext'
26869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870   (eval $ac_try) 2>&5
26871   ac_status=$?
26872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873   (exit $ac_status); }; }; then
26874   ac_cv_func_endgrent_r=yes
26875 else
26876   echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26878
26879 ac_cv_func_endgrent_r=no
26880 fi
26881 rm -f conftest.err conftest.$ac_objext \
26882       conftest$ac_exeext conftest.$ac_ext
26883 fi
26884 echo "$as_me:$LINENO: result: $ac_cv_func_endgrent_r" >&5
26885 echo "${ECHO_T}$ac_cv_func_endgrent_r" >&6
26886 if test $ac_cv_func_endgrent_r = yes; then
26887   :
26888 else
26889   GROUP_R_END_RESULT="#define GROUP_R_END_RESULT(x) /*empty*/"
26890 GROUP_R_END_RETURN="#define GROUP_R_END_RETURN void"
26891 GROUP_R_ENT_ARGS="#define GROUP_R_ENT_ARGS void"
26892 cat >>confdefs.h <<\_ACEOF
26893 #define NEED_ENDGRENT_R 1
26894 _ACEOF
26895
26896
26897 fi
26898
26899
26900
26901
26902
26903 echo "$as_me:$LINENO: checking for setgrent_r" >&5
26904 echo $ECHO_N "checking for setgrent_r... $ECHO_C" >&6
26905 if test "${ac_cv_func_setgrent_r+set}" = set; then
26906   echo $ECHO_N "(cached) $ECHO_C" >&6
26907 else
26908   cat >conftest.$ac_ext <<_ACEOF
26909 /* confdefs.h.  */
26910 _ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h.  */
26914 /* Define setgrent_r to an innocuous variant, in case <limits.h> declares setgrent_r.
26915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26916 #define setgrent_r innocuous_setgrent_r
26917
26918 /* System header to define __stub macros and hopefully few prototypes,
26919     which can conflict with char setgrent_r (); below.
26920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26921     <limits.h> exists even on freestanding compilers.  */
26922
26923 #ifdef __STDC__
26924 # include <limits.h>
26925 #else
26926 # include <assert.h>
26927 #endif
26928
26929 #undef setgrent_r
26930
26931 /* Override any gcc2 internal prototype to avoid an error.  */
26932 #ifdef __cplusplus
26933 extern "C"
26934 {
26935 #endif
26936 /* We use char because int might match the return type of a gcc2
26937    builtin and then its argument prototype would still apply.  */
26938 char setgrent_r ();
26939 /* The GNU C library defines this for functions which it implements
26940     to always fail with ENOSYS.  Some functions are actually named
26941     something starting with __ and the normal name is an alias.  */
26942 #if defined (__stub_setgrent_r) || defined (__stub___setgrent_r)
26943 choke me
26944 #else
26945 char (*f) () = setgrent_r;
26946 #endif
26947 #ifdef __cplusplus
26948 }
26949 #endif
26950
26951 int
26952 main ()
26953 {
26954 return f != setgrent_r;
26955   ;
26956   return 0;
26957 }
26958 _ACEOF
26959 rm -f conftest.$ac_objext conftest$ac_exeext
26960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26961   (eval $ac_link) 2>conftest.er1
26962   ac_status=$?
26963   grep -v '^ *+' conftest.er1 >conftest.err
26964   rm -f conftest.er1
26965   cat conftest.err >&5
26966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967   (exit $ac_status); } &&
26968          { ac_try='test -z "$ac_c_werror_flag"
26969                          || test ! -s conftest.err'
26970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971   (eval $ac_try) 2>&5
26972   ac_status=$?
26973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974   (exit $ac_status); }; } &&
26975          { ac_try='test -s conftest$ac_exeext'
26976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977   (eval $ac_try) 2>&5
26978   ac_status=$?
26979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980   (exit $ac_status); }; }; then
26981   ac_cv_func_setgrent_r=yes
26982 else
26983   echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26985
26986 ac_cv_func_setgrent_r=no
26987 fi
26988 rm -f conftest.err conftest.$ac_objext \
26989       conftest$ac_exeext conftest.$ac_ext
26990 fi
26991 echo "$as_me:$LINENO: result: $ac_cv_func_setgrent_r" >&5
26992 echo "${ECHO_T}$ac_cv_func_setgrent_r" >&6
26993 if test $ac_cv_func_setgrent_r = yes; then
26994   :
26995 else
26996   GROUP_R_SET_RESULT="#undef GROUP_R_SET_RESULT /*empty*/"
26997 GROUP_R_SET_RETURN="#define GROUP_R_SET_RETURN void"
26998 cat >>confdefs.h <<\_ACEOF
26999 #define NEED_SETGRENT_R 1
27000 _ACEOF
27001
27002
27003 fi
27004
27005
27006
27007
27008
27009 case $host in
27010 ia64-hp-hpux11.*)
27011 ;;
27012 *)
27013 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27014 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27015 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27016   echo $ECHO_N "(cached) $ECHO_C" >&6
27017 else
27018   cat >conftest.$ac_ext <<_ACEOF
27019 /* confdefs.h.  */
27020 _ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h.  */
27024 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27026 #define gethostbyname_r innocuous_gethostbyname_r
27027
27028 /* System header to define __stub macros and hopefully few prototypes,
27029     which can conflict with char gethostbyname_r (); below.
27030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27031     <limits.h> exists even on freestanding compilers.  */
27032
27033 #ifdef __STDC__
27034 # include <limits.h>
27035 #else
27036 # include <assert.h>
27037 #endif
27038
27039 #undef gethostbyname_r
27040
27041 /* Override any gcc2 internal prototype to avoid an error.  */
27042 #ifdef __cplusplus
27043 extern "C"
27044 {
27045 #endif
27046 /* We use char because int might match the return type of a gcc2
27047    builtin and then its argument prototype would still apply.  */
27048 char gethostbyname_r ();
27049 /* The GNU C library defines this for functions which it implements
27050     to always fail with ENOSYS.  Some functions are actually named
27051     something starting with __ and the normal name is an alias.  */
27052 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27053 choke me
27054 #else
27055 char (*f) () = gethostbyname_r;
27056 #endif
27057 #ifdef __cplusplus
27058 }
27059 #endif
27060
27061 int
27062 main ()
27063 {
27064 return f != gethostbyname_r;
27065   ;
27066   return 0;
27067 }
27068 _ACEOF
27069 rm -f conftest.$ac_objext conftest$ac_exeext
27070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27071   (eval $ac_link) 2>conftest.er1
27072   ac_status=$?
27073   grep -v '^ *+' conftest.er1 >conftest.err
27074   rm -f conftest.er1
27075   cat conftest.err >&5
27076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077   (exit $ac_status); } &&
27078          { ac_try='test -z "$ac_c_werror_flag"
27079                          || test ! -s conftest.err'
27080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081   (eval $ac_try) 2>&5
27082   ac_status=$?
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); }; } &&
27085          { ac_try='test -s conftest$ac_exeext'
27086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087   (eval $ac_try) 2>&5
27088   ac_status=$?
27089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090   (exit $ac_status); }; }; then
27091   ac_cv_func_gethostbyname_r=yes
27092 else
27093   echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27095
27096 ac_cv_func_gethostbyname_r=no
27097 fi
27098 rm -f conftest.err conftest.$ac_objext \
27099       conftest$ac_exeext conftest.$ac_ext
27100 fi
27101 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27102 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27103 if test $ac_cv_func_gethostbyname_r = yes; then
27104   cat >conftest.$ac_ext <<_ACEOF
27105 /* confdefs.h.  */
27106 _ACEOF
27107 cat confdefs.h >>conftest.$ac_ext
27108 cat >>conftest.$ac_ext <<_ACEOF
27109 /* end confdefs.h.  */
27110
27111 #undef __USE_MISC
27112 #define __USE_MISC
27113 #include <netdb.h>
27114 struct hostent  *gethostbyname_r
27115 (const char *name, struct hostent *hp, char *buf, int len, int *h_errnop) {}
27116
27117 int
27118 main ()
27119 {
27120 return (0);
27121   ;
27122   return 0;
27123 }
27124 _ACEOF
27125 rm -f conftest.$ac_objext
27126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27127   (eval $ac_compile) 2>conftest.er1
27128   ac_status=$?
27129   grep -v '^ *+' conftest.er1 >conftest.err
27130   rm -f conftest.er1
27131   cat conftest.err >&5
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); } &&
27134          { ac_try='test -z "$ac_c_werror_flag"
27135                          || test ! -s conftest.err'
27136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137   (eval $ac_try) 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); }; } &&
27141          { ac_try='test -s conftest.$ac_objext'
27142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143   (eval $ac_try) 2>&5
27144   ac_status=$?
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); }; }; then
27147
27148 HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
27149 HOST_R_BAD="#define HOST_R_BAD NULL"
27150 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27151 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27152 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27153 HOST_R_OK="#define HOST_R_OK hptr"
27154 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"
27155 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27156 HOSTENT_DATA="#undef HOSTENT_DATA"
27157
27158
27159 else
27160   echo "$as_me: failed program was:" >&5
27161 sed 's/^/| /' conftest.$ac_ext >&5
27162
27163 cat >conftest.$ac_ext <<_ACEOF
27164 /* confdefs.h.  */
27165 _ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h.  */
27169
27170 #undef __USE_MISC
27171 #define __USE_MISC
27172 #include <netdb.h>
27173 int gethostbyname_r(const char *name,
27174                           struct hostent *result,
27175                           struct hostent_data *hdptr);
27176
27177 int
27178 main ()
27179 {
27180
27181   ;
27182   return 0;
27183 }
27184 _ACEOF
27185 rm -f conftest.$ac_objext
27186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27187   (eval $ac_compile) 2>conftest.er1
27188   ac_status=$?
27189   grep -v '^ *+' conftest.er1 >conftest.err
27190   rm -f conftest.er1
27191   cat conftest.err >&5
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); } &&
27194          { ac_try='test -z "$ac_c_werror_flag"
27195                          || test ! -s conftest.err'
27196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197   (eval $ac_try) 2>&5
27198   ac_status=$?
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); }; } &&
27201          { ac_try='test -s conftest.$ac_objext'
27202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203   (eval $ac_try) 2>&5
27204   ac_status=$?
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); }; }; then
27207
27208 HOST_R_ARGS="#define HOST_R_ARGS struct hostent_data *hdptr"
27209 HOST_R_BAD="#define HOST_R_BAD (-1)"
27210 HOST_R_COPY="#define HOST_R_COPY hdptr"
27211 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS HOST_R_ARGS"
27212 HOST_R_ERRNO="#undef HOST_R_ERRNO"
27213 HOST_R_OK="#define HOST_R_OK 0"
27214 HOST_R_RETURN="#define HOST_R_RETURN int"
27215 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27216 HOSTENT_DATA="#define HOSTENT_DATA 1"
27217
27218 else
27219   echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27221
27222 cat >conftest.$ac_ext <<_ACEOF
27223 /* confdefs.h.  */
27224 _ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h.  */
27228
27229 #undef __USE_MISC
27230 #define __USE_MISC
27231 #include <netdb.h>
27232 extern int gethostbyname_r (const char *,
27233                                  struct hostent *,
27234                                  char *, size_t,
27235                                  struct hostent **,
27236                                  int *);
27237
27238 int
27239 main ()
27240 {
27241
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 rm -f conftest.$ac_objext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27248   (eval $ac_compile) 2>conftest.er1
27249   ac_status=$?
27250   grep -v '^ *+' conftest.er1 >conftest.err
27251   rm -f conftest.er1
27252   cat conftest.err >&5
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); } &&
27255          { ac_try='test -z "$ac_c_werror_flag"
27256                          || test ! -s conftest.err'
27257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258   (eval $ac_try) 2>&5
27259   ac_status=$?
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); }; } &&
27262          { ac_try='test -s conftest.$ac_objext'
27263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264   (eval $ac_try) 2>&5
27265   ac_status=$?
27266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267   (exit $ac_status); }; }; then
27268
27269 HOST_R_ARGS="#define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop"
27270 HOST_R_BAD="#define HOST_R_BAD ERANGE"
27271 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27272 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27273 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27274 HOST_R_OK="#define HOST_R_OK 0"
27275 HOST_R_RETURN="#define HOST_R_RETURN int"
27276 HOST_R_SETANSWER="#define HOST_R_SETANSWER 1"
27277 HOSTENT_DATA="#undef HOSTENT_DATA"
27278
27279 else
27280   echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27282
27283 fi
27284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27285 fi
27286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27287 fi
27288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27289
27290 else
27291   HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
27292 HOST_R_BAD="#define HOST_R_BAD NULL"
27293 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27294 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27295 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27296 HOST_R_OK="#define HOST_R_OK hptr"
27297 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"
27298 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27299 HOSTENT_DATA="#undef HOSTENT_DATA"
27300
27301 fi
27302
27303 esac
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314 case $host in
27315 ia64-hp-hpux11.*)
27316 ;;
27317 *)
27318 echo "$as_me:$LINENO: checking for endhostent_r" >&5
27319 echo $ECHO_N "checking for endhostent_r... $ECHO_C" >&6
27320 if test "${ac_cv_func_endhostent_r+set}" = set; then
27321   echo $ECHO_N "(cached) $ECHO_C" >&6
27322 else
27323   cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h.  */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h.  */
27329 /* Define endhostent_r to an innocuous variant, in case <limits.h> declares endhostent_r.
27330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27331 #define endhostent_r innocuous_endhostent_r
27332
27333 /* System header to define __stub macros and hopefully few prototypes,
27334     which can conflict with char endhostent_r (); below.
27335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27336     <limits.h> exists even on freestanding compilers.  */
27337
27338 #ifdef __STDC__
27339 # include <limits.h>
27340 #else
27341 # include <assert.h>
27342 #endif
27343
27344 #undef endhostent_r
27345
27346 /* Override any gcc2 internal prototype to avoid an error.  */
27347 #ifdef __cplusplus
27348 extern "C"
27349 {
27350 #endif
27351 /* We use char because int might match the return type of a gcc2
27352    builtin and then its argument prototype would still apply.  */
27353 char endhostent_r ();
27354 /* The GNU C library defines this for functions which it implements
27355     to always fail with ENOSYS.  Some functions are actually named
27356     something starting with __ and the normal name is an alias.  */
27357 #if defined (__stub_endhostent_r) || defined (__stub___endhostent_r)
27358 choke me
27359 #else
27360 char (*f) () = endhostent_r;
27361 #endif
27362 #ifdef __cplusplus
27363 }
27364 #endif
27365
27366 int
27367 main ()
27368 {
27369 return f != endhostent_r;
27370   ;
27371   return 0;
27372 }
27373 _ACEOF
27374 rm -f conftest.$ac_objext conftest$ac_exeext
27375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27376   (eval $ac_link) 2>conftest.er1
27377   ac_status=$?
27378   grep -v '^ *+' conftest.er1 >conftest.err
27379   rm -f conftest.er1
27380   cat conftest.err >&5
27381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); } &&
27383          { ac_try='test -z "$ac_c_werror_flag"
27384                          || test ! -s conftest.err'
27385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27386   (eval $ac_try) 2>&5
27387   ac_status=$?
27388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389   (exit $ac_status); }; } &&
27390          { ac_try='test -s conftest$ac_exeext'
27391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392   (eval $ac_try) 2>&5
27393   ac_status=$?
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); }; }; then
27396   ac_cv_func_endhostent_r=yes
27397 else
27398   echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27400
27401 ac_cv_func_endhostent_r=no
27402 fi
27403 rm -f conftest.err conftest.$ac_objext \
27404       conftest$ac_exeext conftest.$ac_ext
27405 fi
27406 echo "$as_me:$LINENO: result: $ac_cv_func_endhostent_r" >&5
27407 echo "${ECHO_T}$ac_cv_func_endhostent_r" >&6
27408 if test $ac_cv_func_endhostent_r = yes; then
27409   cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h.  */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h.  */
27415
27416 #undef _REENTRANT
27417 #define _REENTRANT
27418 #undef __USE_MISC
27419 #define __USE_MISC
27420 #include <netdb.h>
27421 int endhostent_r(struct hostent_data *buffer);
27422
27423 int
27424 main ()
27425 {
27426
27427   ;
27428   return 0;
27429 }
27430 _ACEOF
27431 rm -f conftest.$ac_objext
27432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27433   (eval $ac_compile) 2>conftest.er1
27434   ac_status=$?
27435   grep -v '^ *+' conftest.er1 >conftest.err
27436   rm -f conftest.er1
27437   cat conftest.err >&5
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); } &&
27440          { ac_try='test -z "$ac_c_werror_flag"
27441                          || test ! -s conftest.err'
27442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443   (eval $ac_try) 2>&5
27444   ac_status=$?
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); }; } &&
27447          { ac_try='test -s conftest.$ac_objext'
27448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449   (eval $ac_try) 2>&5
27450   ac_status=$?
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); }; }; then
27453   HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) return (x)"
27454 HOST_R_END_RETURN="#define HOST_R_END_RETURN int"
27455 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
27456
27457 else
27458   echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461 cat >conftest.$ac_ext <<_ACEOF
27462 /* confdefs.h.  */
27463 _ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h.  */
27467
27468 #undef _REENTRANT
27469 #define _REENTRANT
27470 #undef __USE_MISC
27471 #define __USE_MISC
27472 #include <netdb.h>
27473 extern void endhostent_r(struct hostent_data *ht_data);
27474
27475 int
27476 main ()
27477 {
27478
27479   ;
27480   return 0;
27481 }
27482 _ACEOF
27483 rm -f conftest.$ac_objext
27484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27485   (eval $ac_compile) 2>conftest.er1
27486   ac_status=$?
27487   grep -v '^ *+' conftest.er1 >conftest.err
27488   rm -f conftest.er1
27489   cat conftest.err >&5
27490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491   (exit $ac_status); } &&
27492          { ac_try='test -z "$ac_c_werror_flag"
27493                          || test ! -s conftest.err'
27494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495   (eval $ac_try) 2>&5
27496   ac_status=$?
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); }; } &&
27499          { ac_try='test -s conftest.$ac_objext'
27500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501   (eval $ac_try) 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; }; then
27505
27506 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x)"
27507 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
27508 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
27509
27510 else
27511   echo "$as_me: failed program was:" >&5
27512 sed 's/^/| /' conftest.$ac_ext >&5
27513
27514 cat >conftest.$ac_ext <<_ACEOF
27515 /* confdefs.h.  */
27516 _ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h.  */
27520
27521 #undef _REENTRANT
27522 #define _REENTRANT
27523 #undef __USE_MISC
27524 #define __USE_MISC
27525 #include <netdb.h>
27526 extern void endhostent_r(void);
27527
27528 int
27529 main ()
27530 {
27531
27532   ;
27533   return 0;
27534 }
27535 _ACEOF
27536 rm -f conftest.$ac_objext
27537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27538   (eval $ac_compile) 2>conftest.er1
27539   ac_status=$?
27540   grep -v '^ *+' conftest.er1 >conftest.err
27541   rm -f conftest.er1
27542   cat conftest.err >&5
27543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544   (exit $ac_status); } &&
27545          { ac_try='test -z "$ac_c_werror_flag"
27546                          || test ! -s conftest.err'
27547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548   (eval $ac_try) 2>&5
27549   ac_status=$?
27550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551   (exit $ac_status); }; } &&
27552          { ac_try='test -s conftest.$ac_objext'
27553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554   (eval $ac_try) 2>&5
27555   ac_status=$?
27556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557   (exit $ac_status); }; }; then
27558
27559 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"
27560 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
27561 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/"
27562
27563 else
27564   echo "$as_me: failed program was:" >&5
27565 sed 's/^/| /' conftest.$ac_ext >&5
27566
27567 fi
27568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27569
27570 fi
27571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27572
27573 fi
27574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27575
27576 else
27577   HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"
27578 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
27579 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/"
27580
27581 fi
27582
27583 esac;
27584
27585
27586
27587
27588 case $host in
27589 ia64-hp-hpux11.*)
27590 ;;
27591 *)
27592 echo "$as_me:$LINENO: checking for sethostent_r" >&5
27593 echo $ECHO_N "checking for sethostent_r... $ECHO_C" >&6
27594 if test "${ac_cv_func_sethostent_r+set}" = set; then
27595   echo $ECHO_N "(cached) $ECHO_C" >&6
27596 else
27597   cat >conftest.$ac_ext <<_ACEOF
27598 /* confdefs.h.  */
27599 _ACEOF
27600 cat confdefs.h >>conftest.$ac_ext
27601 cat >>conftest.$ac_ext <<_ACEOF
27602 /* end confdefs.h.  */
27603 /* Define sethostent_r to an innocuous variant, in case <limits.h> declares sethostent_r.
27604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27605 #define sethostent_r innocuous_sethostent_r
27606
27607 /* System header to define __stub macros and hopefully few prototypes,
27608     which can conflict with char sethostent_r (); below.
27609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27610     <limits.h> exists even on freestanding compilers.  */
27611
27612 #ifdef __STDC__
27613 # include <limits.h>
27614 #else
27615 # include <assert.h>
27616 #endif
27617
27618 #undef sethostent_r
27619
27620 /* Override any gcc2 internal prototype to avoid an error.  */
27621 #ifdef __cplusplus
27622 extern "C"
27623 {
27624 #endif
27625 /* We use char because int might match the return type of a gcc2
27626    builtin and then its argument prototype would still apply.  */
27627 char sethostent_r ();
27628 /* The GNU C library defines this for functions which it implements
27629     to always fail with ENOSYS.  Some functions are actually named
27630     something starting with __ and the normal name is an alias.  */
27631 #if defined (__stub_sethostent_r) || defined (__stub___sethostent_r)
27632 choke me
27633 #else
27634 char (*f) () = sethostent_r;
27635 #endif
27636 #ifdef __cplusplus
27637 }
27638 #endif
27639
27640 int
27641 main ()
27642 {
27643 return f != sethostent_r;
27644   ;
27645   return 0;
27646 }
27647 _ACEOF
27648 rm -f conftest.$ac_objext conftest$ac_exeext
27649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27650   (eval $ac_link) 2>conftest.er1
27651   ac_status=$?
27652   grep -v '^ *+' conftest.er1 >conftest.err
27653   rm -f conftest.er1
27654   cat conftest.err >&5
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); } &&
27657          { ac_try='test -z "$ac_c_werror_flag"
27658                          || test ! -s conftest.err'
27659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660   (eval $ac_try) 2>&5
27661   ac_status=$?
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); }; } &&
27664          { ac_try='test -s conftest$ac_exeext'
27665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27666   (eval $ac_try) 2>&5
27667   ac_status=$?
27668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669   (exit $ac_status); }; }; then
27670   ac_cv_func_sethostent_r=yes
27671 else
27672   echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27674
27675 ac_cv_func_sethostent_r=no
27676 fi
27677 rm -f conftest.err conftest.$ac_objext \
27678       conftest$ac_exeext conftest.$ac_ext
27679 fi
27680 echo "$as_me:$LINENO: result: $ac_cv_func_sethostent_r" >&5
27681 echo "${ECHO_T}$ac_cv_func_sethostent_r" >&6
27682 if test $ac_cv_func_sethostent_r = yes; then
27683   cat >conftest.$ac_ext <<_ACEOF
27684 /* confdefs.h.  */
27685 _ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h.  */
27689
27690 #undef _REENTRANT
27691 #define _REENTRANT
27692 #undef __USE_MISC
27693 #define __USE_MISC
27694 #include <netdb.h>
27695 extern void sethostent_r(int flag, struct hostent_data *ht_data);
27696 int
27697 main ()
27698 {
27699
27700   ;
27701   return 0;
27702 }
27703 _ACEOF
27704 rm -f conftest.$ac_objext
27705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27706   (eval $ac_compile) 2>conftest.er1
27707   ac_status=$?
27708   grep -v '^ *+' conftest.er1 >conftest.err
27709   rm -f conftest.er1
27710   cat conftest.err >&5
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); } &&
27713          { ac_try='test -z "$ac_c_werror_flag"
27714                          || test ! -s conftest.err'
27715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27716   (eval $ac_try) 2>&5
27717   ac_status=$?
27718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719   (exit $ac_status); }; } &&
27720          { ac_try='test -s conftest.$ac_objext'
27721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722   (eval $ac_try) 2>&5
27723   ac_status=$?
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); }; }; then
27726   HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT /*empty*/"
27727 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
27728 else
27729   echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27731
27732 cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738
27739 #undef _REENTRANT
27740 #define _REENTRANT
27741 #undef __USE_MISC
27742 #define __USE_MISC
27743 #include <netdb.h>
27744 extern int sethostent_r(int flag, struct hostent_data *ht_data);
27745 int
27746 main ()
27747 {
27748
27749   ;
27750   return 0;
27751 }
27752 _ACEOF
27753 rm -f conftest.$ac_objext
27754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27755   (eval $ac_compile) 2>conftest.er1
27756   ac_status=$?
27757   grep -v '^ *+' conftest.er1 >conftest.err
27758   rm -f conftest.er1
27759   cat conftest.err >&5
27760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761   (exit $ac_status); } &&
27762          { ac_try='test -z "$ac_c_werror_flag"
27763                          || test ! -s conftest.err'
27764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27765   (eval $ac_try) 2>&5
27766   ac_status=$?
27767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768   (exit $ac_status); }; } &&
27769          { ac_try='test -s conftest.$ac_objext'
27770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27771   (eval $ac_try) 2>&5
27772   ac_status=$?
27773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774   (exit $ac_status); }; }; then
27775   HOST_R_SET_RESULT="#define HOST_R_SET_RESULT 0"
27776 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN int"
27777 else
27778   echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781 cat >conftest.$ac_ext <<_ACEOF
27782 /* confdefs.h.  */
27783 _ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h.  */
27787
27788 #undef _REENTRANT
27789 #define _REENTRANT
27790 #undef __USE_MISC
27791 #define __USE_MISC
27792 #include <netdb.h>
27793 void            sethostent_r (int);
27794 int
27795 main ()
27796 {
27797
27798   ;
27799   return 0;
27800 }
27801 _ACEOF
27802 rm -f conftest.$ac_objext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27804   (eval $ac_compile) 2>conftest.er1
27805   ac_status=$?
27806   grep -v '^ *+' conftest.er1 >conftest.err
27807   rm -f conftest.er1
27808   cat conftest.err >&5
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); } &&
27811          { ac_try='test -z "$ac_c_werror_flag"
27812                          || test ! -s conftest.err'
27813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814   (eval $ac_try) 2>&5
27815   ac_status=$?
27816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817   (exit $ac_status); }; } &&
27818          { ac_try='test -s conftest.$ac_objext'
27819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820   (eval $ac_try) 2>&5
27821   ac_status=$?
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); }; }; then
27824   HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"
27825 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
27826 else
27827   echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27829
27830 fi
27831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27832
27833 fi
27834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27835
27836 fi
27837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27838
27839 else
27840   HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"
27841 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
27842
27843 fi
27844
27845 esac
27846
27847
27848
27849
27850 echo "$as_me:$LINENO: checking struct passwd element pw_class" >&5
27851 echo $ECHO_N "checking struct passwd element pw_class... $ECHO_C" >&6
27852 cat >conftest.$ac_ext <<_ACEOF
27853 /* confdefs.h.  */
27854 _ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h.  */
27858
27859 #include <sys/types.h>
27860 #include <pwd.h>
27861
27862 int
27863 main ()
27864 {
27865 struct passwd *pw; pw->pw_class = "";
27866   ;
27867   return 0;
27868 }
27869 _ACEOF
27870 rm -f conftest.$ac_objext
27871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27872   (eval $ac_compile) 2>conftest.er1
27873   ac_status=$?
27874   grep -v '^ *+' conftest.er1 >conftest.err
27875   rm -f conftest.er1
27876   cat conftest.err >&5
27877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878   (exit $ac_status); } &&
27879          { ac_try='test -z "$ac_c_werror_flag"
27880                          || test ! -s conftest.err'
27881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882   (eval $ac_try) 2>&5
27883   ac_status=$?
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); }; } &&
27886          { ac_try='test -s conftest.$ac_objext'
27887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888   (eval $ac_try) 2>&5
27889   ac_status=$?
27890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); }; }; then
27892   echo "$as_me:$LINENO: result: yes" >&5
27893 echo "${ECHO_T}yes" >&6
27894 cat >>confdefs.h <<\_ACEOF
27895 #define HAS_PW_CLASS 1
27896 _ACEOF
27897
27898
27899 else
27900   echo "$as_me: failed program was:" >&5
27901 sed 's/^/| /' conftest.$ac_ext >&5
27902
27903 echo "$as_me:$LINENO: result: no" >&5
27904 echo "${ECHO_T}no" >&6
27905
27906 fi
27907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27908
27909 cat >conftest.$ac_ext <<_ACEOF
27910 /* confdefs.h.  */
27911 _ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h.  */
27915
27916 #include <sys/types.h>
27917 #include <pwd.h>
27918 void
27919 setpwent(void) {}
27920
27921 int
27922 main ()
27923 {
27924 return (0);
27925   ;
27926   return 0;
27927 }
27928 _ACEOF
27929 rm -f conftest.$ac_objext
27930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27931   (eval $ac_compile) 2>conftest.er1
27932   ac_status=$?
27933   grep -v '^ *+' conftest.er1 >conftest.err
27934   rm -f conftest.er1
27935   cat conftest.err >&5
27936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); } &&
27938          { ac_try='test -z "$ac_c_werror_flag"
27939                          || test ! -s conftest.err'
27940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27941   (eval $ac_try) 2>&5
27942   ac_status=$?
27943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944   (exit $ac_status); }; } &&
27945          { ac_try='test -s conftest.$ac_objext'
27946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947   (eval $ac_try) 2>&5
27948   ac_status=$?
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); }; }; then
27951   SETPWENT_VOID="#define SETPWENT_VOID 1"
27952
27953 else
27954   echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27956
27957 SETPWENT_VOID="#undef SETPWENT_VOID"
27958
27959 fi
27960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27961
27962
27963 cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h.  */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h.  */
27969
27970 #include <sys/types.h>
27971 #include <grp.h>
27972 void
27973 setgrent(void) {}
27974
27975 int
27976 main ()
27977 {
27978 return (0);
27979   ;
27980   return 0;
27981 }
27982 _ACEOF
27983 rm -f conftest.$ac_objext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27985   (eval $ac_compile) 2>conftest.er1
27986   ac_status=$?
27987   grep -v '^ *+' conftest.er1 >conftest.err
27988   rm -f conftest.er1
27989   cat conftest.err >&5
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); } &&
27992          { ac_try='test -z "$ac_c_werror_flag"
27993                          || test ! -s conftest.err'
27994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995   (eval $ac_try) 2>&5
27996   ac_status=$?
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); }; } &&
27999          { ac_try='test -s conftest.$ac_objext'
28000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001   (eval $ac_try) 2>&5
28002   ac_status=$?
28003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004   (exit $ac_status); }; }; then
28005   SETGRENT_VOID="#define SETGRENT_VOID 1"
28006
28007 else
28008   echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28010
28011 SETGRENT_VOID="#undef SETGRENT_VOID"
28012
28013 fi
28014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28015
28016
28017 case $host in
28018 ia64-hp-hpux11.*)
28019 ;;
28020 *)
28021 echo "$as_me:$LINENO: checking for getnetgrent_r" >&5
28022 echo $ECHO_N "checking for getnetgrent_r... $ECHO_C" >&6
28023 if test "${ac_cv_func_getnetgrent_r+set}" = set; then
28024   echo $ECHO_N "(cached) $ECHO_C" >&6
28025 else
28026   cat >conftest.$ac_ext <<_ACEOF
28027 /* confdefs.h.  */
28028 _ACEOF
28029 cat confdefs.h >>conftest.$ac_ext
28030 cat >>conftest.$ac_ext <<_ACEOF
28031 /* end confdefs.h.  */
28032 /* Define getnetgrent_r to an innocuous variant, in case <limits.h> declares getnetgrent_r.
28033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28034 #define getnetgrent_r innocuous_getnetgrent_r
28035
28036 /* System header to define __stub macros and hopefully few prototypes,
28037     which can conflict with char getnetgrent_r (); below.
28038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28039     <limits.h> exists even on freestanding compilers.  */
28040
28041 #ifdef __STDC__
28042 # include <limits.h>
28043 #else
28044 # include <assert.h>
28045 #endif
28046
28047 #undef getnetgrent_r
28048
28049 /* Override any gcc2 internal prototype to avoid an error.  */
28050 #ifdef __cplusplus
28051 extern "C"
28052 {
28053 #endif
28054 /* We use char because int might match the return type of a gcc2
28055    builtin and then its argument prototype would still apply.  */
28056 char getnetgrent_r ();
28057 /* The GNU C library defines this for functions which it implements
28058     to always fail with ENOSYS.  Some functions are actually named
28059     something starting with __ and the normal name is an alias.  */
28060 #if defined (__stub_getnetgrent_r) || defined (__stub___getnetgrent_r)
28061 choke me
28062 #else
28063 char (*f) () = getnetgrent_r;
28064 #endif
28065 #ifdef __cplusplus
28066 }
28067 #endif
28068
28069 int
28070 main ()
28071 {
28072 return f != getnetgrent_r;
28073   ;
28074   return 0;
28075 }
28076 _ACEOF
28077 rm -f conftest.$ac_objext conftest$ac_exeext
28078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28079   (eval $ac_link) 2>conftest.er1
28080   ac_status=$?
28081   grep -v '^ *+' conftest.er1 >conftest.err
28082   rm -f conftest.er1
28083   cat conftest.err >&5
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); } &&
28086          { ac_try='test -z "$ac_c_werror_flag"
28087                          || test ! -s conftest.err'
28088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089   (eval $ac_try) 2>&5
28090   ac_status=$?
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); }; } &&
28093          { ac_try='test -s conftest$ac_exeext'
28094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28095   (eval $ac_try) 2>&5
28096   ac_status=$?
28097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098   (exit $ac_status); }; }; then
28099   ac_cv_func_getnetgrent_r=yes
28100 else
28101   echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28103
28104 ac_cv_func_getnetgrent_r=no
28105 fi
28106 rm -f conftest.err conftest.$ac_objext \
28107       conftest$ac_exeext conftest.$ac_ext
28108 fi
28109 echo "$as_me:$LINENO: result: $ac_cv_func_getnetgrent_r" >&5
28110 echo "${ECHO_T}$ac_cv_func_getnetgrent_r" >&6
28111 if test $ac_cv_func_getnetgrent_r = yes; then
28112   cat >conftest.$ac_ext <<_ACEOF
28113 /* confdefs.h.  */
28114 _ACEOF
28115 cat confdefs.h >>conftest.$ac_ext
28116 cat >>conftest.$ac_ext <<_ACEOF
28117 /* end confdefs.h.  */
28118
28119 #undef __USE_MISC
28120 #define __USE_MISC
28121 #include <netdb.h>
28122 int getnetgrent_r(char **m, char **u, char **d, char *b, int l) {}
28123
28124
28125 int
28126 main ()
28127 {
28128 return (0);
28129   ;
28130   return 0;
28131 }
28132 _ACEOF
28133 rm -f conftest.$ac_objext
28134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28135   (eval $ac_compile) 2>conftest.er1
28136   ac_status=$?
28137   grep -v '^ *+' conftest.er1 >conftest.err
28138   rm -f conftest.er1
28139   cat conftest.err >&5
28140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141   (exit $ac_status); } &&
28142          { ac_try='test -z "$ac_c_werror_flag"
28143                          || test ! -s conftest.err'
28144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145   (eval $ac_try) 2>&5
28146   ac_status=$?
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); }; } &&
28149          { ac_try='test -s conftest.$ac_objext'
28150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151   (eval $ac_try) 2>&5
28152   ac_status=$?
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); }; }; then
28155
28156 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
28157 NGR_R_BAD="#define NGR_R_BAD (0)"
28158 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28159 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28160 NGR_R_OK="#define NGR_R_OK 1"
28161 NGR_R_RETURN="#define NGR_R_RETURN int"
28162
28163
28164 else
28165   echo "$as_me: failed program was:" >&5
28166 sed 's/^/| /' conftest.$ac_ext >&5
28167
28168 cat >conftest.$ac_ext <<_ACEOF
28169 /* confdefs.h.  */
28170 _ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h.  */
28174
28175 #undef __USE_MISC
28176 #define __USE_MISC
28177 #include <netdb.h>
28178 int getnetgrent_r(char **m, char **u, char **d, char *b, size_t l) {}
28179
28180
28181 int
28182 main ()
28183 {
28184 return (0);
28185   ;
28186   return 0;
28187 }
28188 _ACEOF
28189 rm -f conftest.$ac_objext
28190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28191   (eval $ac_compile) 2>conftest.er1
28192   ac_status=$?
28193   grep -v '^ *+' conftest.er1 >conftest.err
28194   rm -f conftest.er1
28195   cat conftest.err >&5
28196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197   (exit $ac_status); } &&
28198          { ac_try='test -z "$ac_c_werror_flag"
28199                          || test ! -s conftest.err'
28200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28201   (eval $ac_try) 2>&5
28202   ac_status=$?
28203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204   (exit $ac_status); }; } &&
28205          { ac_try='test -s conftest.$ac_objext'
28206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207   (eval $ac_try) 2>&5
28208   ac_status=$?
28209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210   (exit $ac_status); }; }; then
28211
28212 NGR_R_ARGS="#define NGR_R_ARGS char *buf, size_t buflen"
28213 NGR_R_BAD="#define NGR_R_BAD (0)"
28214 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28215 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28216 NGR_R_OK="#define NGR_R_OK 1"
28217 NGR_R_RETURN="#define NGR_R_RETURN int"
28218
28219
28220 else
28221   echo "$as_me: failed program was:" >&5
28222 sed 's/^/| /' conftest.$ac_ext >&5
28223
28224 cat >conftest.$ac_ext <<_ACEOF
28225 /* confdefs.h.  */
28226 _ACEOF
28227 cat confdefs.h >>conftest.$ac_ext
28228 cat >>conftest.$ac_ext <<_ACEOF
28229 /* end confdefs.h.  */
28230
28231 #undef __USE_MISC
28232 #define __USE_MISC
28233 #include <netdb.h>
28234 extern int getnetgrent_r( char **, char **, char **, void **);
28235
28236
28237 int
28238 main ()
28239 {
28240 return (0);
28241   ;
28242   return 0;
28243 }
28244 _ACEOF
28245 rm -f conftest.$ac_objext
28246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28247   (eval $ac_compile) 2>conftest.er1
28248   ac_status=$?
28249   grep -v '^ *+' conftest.er1 >conftest.err
28250   rm -f conftest.er1
28251   cat conftest.err >&5
28252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253   (exit $ac_status); } &&
28254          { ac_try='test -z "$ac_c_werror_flag"
28255                          || test ! -s conftest.err'
28256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28257   (eval $ac_try) 2>&5
28258   ac_status=$?
28259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); }; } &&
28261          { ac_try='test -s conftest.$ac_objext'
28262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263   (eval $ac_try) 2>&5
28264   ac_status=$?
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); }; }; then
28267
28268 NGR_R_ARGS="#define NGR_R_ARGS void **buf"
28269 NGR_R_BAD="#define NGR_R_BAD (0)"
28270 NGR_R_COPY="#define NGR_R_COPY buf"
28271 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28272 NGR_R_OK="#define NGR_R_OK 1"
28273 NGR_R_RETURN="#define NGR_R_RETURN int"
28274 NGR_R_PRIVATE="#define NGR_R_PRIVATE 1"
28275
28276
28277 else
28278   echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.$ac_ext >&5
28280
28281 fi
28282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28283
28284 fi
28285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28286
28287 fi
28288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28289
28290 else
28291   NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
28292 NGR_R_BAD="#define NGR_R_BAD (0)"
28293 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28294 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28295 NGR_R_OK="#define NGR_R_OK 1"
28296 NGR_R_RETURN="#define NGR_R_RETURN int"
28297
28298 fi
28299
28300 esac
28301
28302
28303
28304
28305
28306
28307
28308
28309 echo "$as_me:$LINENO: checking for endnetgrent_r" >&5
28310 echo $ECHO_N "checking for endnetgrent_r... $ECHO_C" >&6
28311 if test "${ac_cv_func_endnetgrent_r+set}" = set; then
28312   echo $ECHO_N "(cached) $ECHO_C" >&6
28313 else
28314   cat >conftest.$ac_ext <<_ACEOF
28315 /* confdefs.h.  */
28316 _ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h.  */
28320 /* Define endnetgrent_r to an innocuous variant, in case <limits.h> declares endnetgrent_r.
28321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28322 #define endnetgrent_r innocuous_endnetgrent_r
28323
28324 /* System header to define __stub macros and hopefully few prototypes,
28325     which can conflict with char endnetgrent_r (); below.
28326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28327     <limits.h> exists even on freestanding compilers.  */
28328
28329 #ifdef __STDC__
28330 # include <limits.h>
28331 #else
28332 # include <assert.h>
28333 #endif
28334
28335 #undef endnetgrent_r
28336
28337 /* Override any gcc2 internal prototype to avoid an error.  */
28338 #ifdef __cplusplus
28339 extern "C"
28340 {
28341 #endif
28342 /* We use char because int might match the return type of a gcc2
28343    builtin and then its argument prototype would still apply.  */
28344 char endnetgrent_r ();
28345 /* The GNU C library defines this for functions which it implements
28346     to always fail with ENOSYS.  Some functions are actually named
28347     something starting with __ and the normal name is an alias.  */
28348 #if defined (__stub_endnetgrent_r) || defined (__stub___endnetgrent_r)
28349 choke me
28350 #else
28351 char (*f) () = endnetgrent_r;
28352 #endif
28353 #ifdef __cplusplus
28354 }
28355 #endif
28356
28357 int
28358 main ()
28359 {
28360 return f != endnetgrent_r;
28361   ;
28362   return 0;
28363 }
28364 _ACEOF
28365 rm -f conftest.$ac_objext conftest$ac_exeext
28366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28367   (eval $ac_link) 2>conftest.er1
28368   ac_status=$?
28369   grep -v '^ *+' conftest.er1 >conftest.err
28370   rm -f conftest.er1
28371   cat conftest.err >&5
28372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373   (exit $ac_status); } &&
28374          { ac_try='test -z "$ac_c_werror_flag"
28375                          || test ! -s conftest.err'
28376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377   (eval $ac_try) 2>&5
28378   ac_status=$?
28379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380   (exit $ac_status); }; } &&
28381          { ac_try='test -s conftest$ac_exeext'
28382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28383   (eval $ac_try) 2>&5
28384   ac_status=$?
28385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386   (exit $ac_status); }; }; then
28387   ac_cv_func_endnetgrent_r=yes
28388 else
28389   echo "$as_me: failed program was:" >&5
28390 sed 's/^/| /' conftest.$ac_ext >&5
28391
28392 ac_cv_func_endnetgrent_r=no
28393 fi
28394 rm -f conftest.err conftest.$ac_objext \
28395       conftest$ac_exeext conftest.$ac_ext
28396 fi
28397 echo "$as_me:$LINENO: result: $ac_cv_func_endnetgrent_r" >&5
28398 echo "${ECHO_T}$ac_cv_func_endnetgrent_r" >&6
28399 if test $ac_cv_func_endnetgrent_r = yes; then
28400   NGR_R_END_RESULT="#define NGR_R_END_RESULT(x)  return (x)"
28401 NGR_R_END_RETURN="#define NGR_R_END_RETURN int"
28402 NGR_R_ENT_ARGS="#define NGR_R_ENT_ARGS NGR_R_ARGS"
28403
28404 else
28405   NGR_R_END_RESULT="#define NGR_R_END_RESULT(x)  /*empty*/"
28406 NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
28407 NGR_R_ENT_ARGS="#undef NGR_R_ENT_ARGS /*empty*/"
28408 cat >>confdefs.h <<\_ACEOF
28409 #define NEED_ENDNETGRENT_R 1
28410 _ACEOF
28411
28412
28413 fi
28414
28415
28416
28417
28418
28419 echo "$as_me:$LINENO: checking for setnetgrent_r" >&5
28420 echo $ECHO_N "checking for setnetgrent_r... $ECHO_C" >&6
28421 if test "${ac_cv_func_setnetgrent_r+set}" = set; then
28422   echo $ECHO_N "(cached) $ECHO_C" >&6
28423 else
28424   cat >conftest.$ac_ext <<_ACEOF
28425 /* confdefs.h.  */
28426 _ACEOF
28427 cat confdefs.h >>conftest.$ac_ext
28428 cat >>conftest.$ac_ext <<_ACEOF
28429 /* end confdefs.h.  */
28430 /* Define setnetgrent_r to an innocuous variant, in case <limits.h> declares setnetgrent_r.
28431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28432 #define setnetgrent_r innocuous_setnetgrent_r
28433
28434 /* System header to define __stub macros and hopefully few prototypes,
28435     which can conflict with char setnetgrent_r (); below.
28436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28437     <limits.h> exists even on freestanding compilers.  */
28438
28439 #ifdef __STDC__
28440 # include <limits.h>
28441 #else
28442 # include <assert.h>
28443 #endif
28444
28445 #undef setnetgrent_r
28446
28447 /* Override any gcc2 internal prototype to avoid an error.  */
28448 #ifdef __cplusplus
28449 extern "C"
28450 {
28451 #endif
28452 /* We use char because int might match the return type of a gcc2
28453    builtin and then its argument prototype would still apply.  */
28454 char setnetgrent_r ();
28455 /* The GNU C library defines this for functions which it implements
28456     to always fail with ENOSYS.  Some functions are actually named
28457     something starting with __ and the normal name is an alias.  */
28458 #if defined (__stub_setnetgrent_r) || defined (__stub___setnetgrent_r)
28459 choke me
28460 #else
28461 char (*f) () = setnetgrent_r;
28462 #endif
28463 #ifdef __cplusplus
28464 }
28465 #endif
28466
28467 int
28468 main ()
28469 {
28470 return f != setnetgrent_r;
28471   ;
28472   return 0;
28473 }
28474 _ACEOF
28475 rm -f conftest.$ac_objext conftest$ac_exeext
28476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28477   (eval $ac_link) 2>conftest.er1
28478   ac_status=$?
28479   grep -v '^ *+' conftest.er1 >conftest.err
28480   rm -f conftest.er1
28481   cat conftest.err >&5
28482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483   (exit $ac_status); } &&
28484          { ac_try='test -z "$ac_c_werror_flag"
28485                          || test ! -s conftest.err'
28486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28487   (eval $ac_try) 2>&5
28488   ac_status=$?
28489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490   (exit $ac_status); }; } &&
28491          { ac_try='test -s conftest$ac_exeext'
28492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28493   (eval $ac_try) 2>&5
28494   ac_status=$?
28495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496   (exit $ac_status); }; }; then
28497   ac_cv_func_setnetgrent_r=yes
28498 else
28499   echo "$as_me: failed program was:" >&5
28500 sed 's/^/| /' conftest.$ac_ext >&5
28501
28502 ac_cv_func_setnetgrent_r=no
28503 fi
28504 rm -f conftest.err conftest.$ac_objext \
28505       conftest$ac_exeext conftest.$ac_ext
28506 fi
28507 echo "$as_me:$LINENO: result: $ac_cv_func_setnetgrent_r" >&5
28508 echo "${ECHO_T}$ac_cv_func_setnetgrent_r" >&6
28509 if test $ac_cv_func_setnetgrent_r = yes; then
28510
28511 case "$host" in
28512 *bsdi*)
28513         NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
28514         NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
28515         ;;
28516 *)
28517         NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK"
28518         NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int"
28519         ;;
28520 esac
28521
28522
28523 else
28524   NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
28525 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
28526
28527 fi
28528
28529
28530
28531
28532 echo "$as_me:$LINENO: checking for innetgr_r" >&5
28533 echo $ECHO_N "checking for innetgr_r... $ECHO_C" >&6
28534 if test "${ac_cv_func_innetgr_r+set}" = set; then
28535   echo $ECHO_N "(cached) $ECHO_C" >&6
28536 else
28537   cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h.  */
28539 _ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h.  */
28543 /* Define innetgr_r to an innocuous variant, in case <limits.h> declares innetgr_r.
28544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28545 #define innetgr_r innocuous_innetgr_r
28546
28547 /* System header to define __stub macros and hopefully few prototypes,
28548     which can conflict with char innetgr_r (); below.
28549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28550     <limits.h> exists even on freestanding compilers.  */
28551
28552 #ifdef __STDC__
28553 # include <limits.h>
28554 #else
28555 # include <assert.h>
28556 #endif
28557
28558 #undef innetgr_r
28559
28560 /* Override any gcc2 internal prototype to avoid an error.  */
28561 #ifdef __cplusplus
28562 extern "C"
28563 {
28564 #endif
28565 /* We use char because int might match the return type of a gcc2
28566    builtin and then its argument prototype would still apply.  */
28567 char innetgr_r ();
28568 /* The GNU C library defines this for functions which it implements
28569     to always fail with ENOSYS.  Some functions are actually named
28570     something starting with __ and the normal name is an alias.  */
28571 #if defined (__stub_innetgr_r) || defined (__stub___innetgr_r)
28572 choke me
28573 #else
28574 char (*f) () = innetgr_r;
28575 #endif
28576 #ifdef __cplusplus
28577 }
28578 #endif
28579
28580 int
28581 main ()
28582 {
28583 return f != innetgr_r;
28584   ;
28585   return 0;
28586 }
28587 _ACEOF
28588 rm -f conftest.$ac_objext conftest$ac_exeext
28589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28590   (eval $ac_link) 2>conftest.er1
28591   ac_status=$?
28592   grep -v '^ *+' conftest.er1 >conftest.err
28593   rm -f conftest.er1
28594   cat conftest.err >&5
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); } &&
28597          { ac_try='test -z "$ac_c_werror_flag"
28598                          || test ! -s conftest.err'
28599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600   (eval $ac_try) 2>&5
28601   ac_status=$?
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); }; } &&
28604          { ac_try='test -s conftest$ac_exeext'
28605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606   (eval $ac_try) 2>&5
28607   ac_status=$?
28608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); }; }; then
28610   ac_cv_func_innetgr_r=yes
28611 else
28612   echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28614
28615 ac_cv_func_innetgr_r=no
28616 fi
28617 rm -f conftest.err conftest.$ac_objext \
28618       conftest$ac_exeext conftest.$ac_ext
28619 fi
28620 echo "$as_me:$LINENO: result: $ac_cv_func_innetgr_r" >&5
28621 echo "${ECHO_T}$ac_cv_func_innetgr_r" >&6
28622 if test $ac_cv_func_innetgr_r = yes; then
28623   :
28624 else
28625   cat >>confdefs.h <<\_ACEOF
28626 #define NEED_INNETGR_R 1
28627 _ACEOF
28628
28629 fi
28630
28631
28632 case $host in
28633 ia64-hp-hpux11.*)
28634 ;;
28635 *)
28636 echo "$as_me:$LINENO: checking for getprotoent_r" >&5
28637 echo $ECHO_N "checking for getprotoent_r... $ECHO_C" >&6
28638 if test "${ac_cv_func_getprotoent_r+set}" = set; then
28639   echo $ECHO_N "(cached) $ECHO_C" >&6
28640 else
28641   cat >conftest.$ac_ext <<_ACEOF
28642 /* confdefs.h.  */
28643 _ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h.  */
28647 /* Define getprotoent_r to an innocuous variant, in case <limits.h> declares getprotoent_r.
28648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28649 #define getprotoent_r innocuous_getprotoent_r
28650
28651 /* System header to define __stub macros and hopefully few prototypes,
28652     which can conflict with char getprotoent_r (); below.
28653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28654     <limits.h> exists even on freestanding compilers.  */
28655
28656 #ifdef __STDC__
28657 # include <limits.h>
28658 #else
28659 # include <assert.h>
28660 #endif
28661
28662 #undef getprotoent_r
28663
28664 /* Override any gcc2 internal prototype to avoid an error.  */
28665 #ifdef __cplusplus
28666 extern "C"
28667 {
28668 #endif
28669 /* We use char because int might match the return type of a gcc2
28670    builtin and then its argument prototype would still apply.  */
28671 char getprotoent_r ();
28672 /* The GNU C library defines this for functions which it implements
28673     to always fail with ENOSYS.  Some functions are actually named
28674     something starting with __ and the normal name is an alias.  */
28675 #if defined (__stub_getprotoent_r) || defined (__stub___getprotoent_r)
28676 choke me
28677 #else
28678 char (*f) () = getprotoent_r;
28679 #endif
28680 #ifdef __cplusplus
28681 }
28682 #endif
28683
28684 int
28685 main ()
28686 {
28687 return f != getprotoent_r;
28688   ;
28689   return 0;
28690 }
28691 _ACEOF
28692 rm -f conftest.$ac_objext conftest$ac_exeext
28693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28694   (eval $ac_link) 2>conftest.er1
28695   ac_status=$?
28696   grep -v '^ *+' conftest.er1 >conftest.err
28697   rm -f conftest.er1
28698   cat conftest.err >&5
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); } &&
28701          { ac_try='test -z "$ac_c_werror_flag"
28702                          || test ! -s conftest.err'
28703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28704   (eval $ac_try) 2>&5
28705   ac_status=$?
28706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707   (exit $ac_status); }; } &&
28708          { ac_try='test -s conftest$ac_exeext'
28709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28710   (eval $ac_try) 2>&5
28711   ac_status=$?
28712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713   (exit $ac_status); }; }; then
28714   ac_cv_func_getprotoent_r=yes
28715 else
28716   echo "$as_me: failed program was:" >&5
28717 sed 's/^/| /' conftest.$ac_ext >&5
28718
28719 ac_cv_func_getprotoent_r=no
28720 fi
28721 rm -f conftest.err conftest.$ac_objext \
28722       conftest$ac_exeext conftest.$ac_ext
28723 fi
28724 echo "$as_me:$LINENO: result: $ac_cv_func_getprotoent_r" >&5
28725 echo "${ECHO_T}$ac_cv_func_getprotoent_r" >&6
28726 if test $ac_cv_func_getprotoent_r = yes; then
28727   cat >conftest.$ac_ext <<_ACEOF
28728 /* confdefs.h.  */
28729 _ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h.  */
28733
28734 #undef __USE_MISC
28735 #define __USE_MISC
28736 #include <netdb.h>
28737 struct protoent *getprotoent_r(struct protoent *result,
28738                  char *buffer, int buflen) {}
28739
28740
28741 int
28742 main ()
28743 {
28744 return (0);
28745
28746   ;
28747   return 0;
28748 }
28749 _ACEOF
28750 rm -f conftest.$ac_objext
28751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28752   (eval $ac_compile) 2>conftest.er1
28753   ac_status=$?
28754   grep -v '^ *+' conftest.er1 >conftest.err
28755   rm -f conftest.er1
28756   cat conftest.err >&5
28757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758   (exit $ac_status); } &&
28759          { ac_try='test -z "$ac_c_werror_flag"
28760                          || test ! -s conftest.err'
28761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762   (eval $ac_try) 2>&5
28763   ac_status=$?
28764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765   (exit $ac_status); }; } &&
28766          { ac_try='test -s conftest.$ac_objext'
28767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28768   (eval $ac_try) 2>&5
28769   ac_status=$?
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); }; }; then
28772
28773 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
28774 PROTO_R_BAD="#define PROTO_R_BAD NULL"
28775 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
28776 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
28777 PROTO_R_OK="#define PROTO_R_OK pptr"
28778 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
28779 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
28780
28781
28782 else
28783   echo "$as_me: failed program was:" >&5
28784 sed 's/^/| /' conftest.$ac_ext >&5
28785
28786 cat >conftest.$ac_ext <<_ACEOF
28787 /* confdefs.h.  */
28788 _ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h.  */
28792
28793 #undef __USE_MISC
28794 #define __USE_MISC
28795 #include <netdb.h>
28796 int getprotoent_r (struct protoent *, char *, size_t, struct protoent **);
28797
28798
28799
28800 int
28801 main ()
28802 {
28803 return (0);
28804
28805   ;
28806   return 0;
28807 }
28808 _ACEOF
28809 rm -f conftest.$ac_objext
28810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28811   (eval $ac_compile) 2>conftest.er1
28812   ac_status=$?
28813   grep -v '^ *+' conftest.er1 >conftest.err
28814   rm -f conftest.er1
28815   cat conftest.err >&5
28816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817   (exit $ac_status); } &&
28818          { ac_try='test -z "$ac_c_werror_flag"
28819                          || test ! -s conftest.err'
28820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28821   (eval $ac_try) 2>&5
28822   ac_status=$?
28823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824   (exit $ac_status); }; } &&
28825          { ac_try='test -s conftest.$ac_objext'
28826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28827   (eval $ac_try) 2>&5
28828   ac_status=$?
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); }; }; then
28831
28832 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp"
28833 PROTO_R_BAD="#define PROTO_R_BAD ERANGE"
28834 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
28835 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS char *buf, size_t buflen"
28836 PROTO_R_OK="#define PROTO_R_OK 0"
28837 PROTO_R_SETANSWER="#define PROTO_R_SETANSWER 1"
28838 PROTO_R_RETURN="#define PROTO_R_RETURN int"
28839
28840
28841 else
28842   echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28844
28845 fi
28846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28847
28848 fi
28849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28850
28851 else
28852   PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
28853 PROTO_R_BAD="#define PROTO_R_BAD NULL"
28854 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
28855 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
28856 PROTO_R_OK="#define PROTO_R_OK pptr"
28857 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
28858 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
28859
28860 fi
28861
28862 esac
28863
28864
28865
28866
28867
28868
28869
28870
28871 case $host in
28872 ia64-hp-hpux11.*)
28873 ;;
28874 *)
28875 echo "$as_me:$LINENO: checking for endprotoent_r" >&5
28876 echo $ECHO_N "checking for endprotoent_r... $ECHO_C" >&6
28877 if test "${ac_cv_func_endprotoent_r+set}" = set; then
28878   echo $ECHO_N "(cached) $ECHO_C" >&6
28879 else
28880   cat >conftest.$ac_ext <<_ACEOF
28881 /* confdefs.h.  */
28882 _ACEOF
28883 cat confdefs.h >>conftest.$ac_ext
28884 cat >>conftest.$ac_ext <<_ACEOF
28885 /* end confdefs.h.  */
28886 /* Define endprotoent_r to an innocuous variant, in case <limits.h> declares endprotoent_r.
28887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28888 #define endprotoent_r innocuous_endprotoent_r
28889
28890 /* System header to define __stub macros and hopefully few prototypes,
28891     which can conflict with char endprotoent_r (); below.
28892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28893     <limits.h> exists even on freestanding compilers.  */
28894
28895 #ifdef __STDC__
28896 # include <limits.h>
28897 #else
28898 # include <assert.h>
28899 #endif
28900
28901 #undef endprotoent_r
28902
28903 /* Override any gcc2 internal prototype to avoid an error.  */
28904 #ifdef __cplusplus
28905 extern "C"
28906 {
28907 #endif
28908 /* We use char because int might match the return type of a gcc2
28909    builtin and then its argument prototype would still apply.  */
28910 char endprotoent_r ();
28911 /* The GNU C library defines this for functions which it implements
28912     to always fail with ENOSYS.  Some functions are actually named
28913     something starting with __ and the normal name is an alias.  */
28914 #if defined (__stub_endprotoent_r) || defined (__stub___endprotoent_r)
28915 choke me
28916 #else
28917 char (*f) () = endprotoent_r;
28918 #endif
28919 #ifdef __cplusplus
28920 }
28921 #endif
28922
28923 int
28924 main ()
28925 {
28926 return f != endprotoent_r;
28927   ;
28928   return 0;
28929 }
28930 _ACEOF
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28933   (eval $ac_link) 2>conftest.er1
28934   ac_status=$?
28935   grep -v '^ *+' conftest.er1 >conftest.err
28936   rm -f conftest.er1
28937   cat conftest.err >&5
28938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939   (exit $ac_status); } &&
28940          { ac_try='test -z "$ac_c_werror_flag"
28941                          || test ! -s conftest.err'
28942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943   (eval $ac_try) 2>&5
28944   ac_status=$?
28945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946   (exit $ac_status); }; } &&
28947          { ac_try='test -s conftest$ac_exeext'
28948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949   (eval $ac_try) 2>&5
28950   ac_status=$?
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); }; }; then
28953   ac_cv_func_endprotoent_r=yes
28954 else
28955   echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957
28958 ac_cv_func_endprotoent_r=no
28959 fi
28960 rm -f conftest.err conftest.$ac_objext \
28961       conftest$ac_exeext conftest.$ac_ext
28962 fi
28963 echo "$as_me:$LINENO: result: $ac_cv_func_endprotoent_r" >&5
28964 echo "${ECHO_T}$ac_cv_func_endprotoent_r" >&6
28965 if test $ac_cv_func_endprotoent_r = yes; then
28966   cat >conftest.$ac_ext <<_ACEOF
28967 /* confdefs.h.  */
28968 _ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h.  */
28972
28973 #undef _REENTRANT
28974 #define _REENTRANT
28975 #undef __USE_MISC
28976 #define __USE_MISC
28977 #include <netdb.h>
28978 void endprotoent_r(void);
28979
28980
28981 int
28982 main ()
28983 {
28984
28985   ;
28986   return 0;
28987 }
28988 _ACEOF
28989 rm -f conftest.$ac_objext
28990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28991   (eval $ac_compile) 2>conftest.er1
28992   ac_status=$?
28993   grep -v '^ *+' conftest.er1 >conftest.err
28994   rm -f conftest.er1
28995   cat conftest.err >&5
28996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997   (exit $ac_status); } &&
28998          { ac_try='test -z "$ac_c_werror_flag"
28999                          || test ! -s conftest.err'
29000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29001   (eval $ac_try) 2>&5
29002   ac_status=$?
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); }; } &&
29005          { ac_try='test -s conftest.$ac_objext'
29006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29007   (eval $ac_try) 2>&5
29008   ac_status=$?
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); }; }; then
29011
29012 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29013 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29014 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS"
29015
29016
29017 else
29018   echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29020
29021 fi
29022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29023
29024 else
29025   PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29026 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29027 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS /*empty*/"
29028
29029 fi
29030
29031 esac
29032
29033
29034
29035
29036 case $host in
29037 ia64-hp-hpux11.*)
29038 ;;
29039 *)
29040 echo "$as_me:$LINENO: checking for setprotoent_r" >&5
29041 echo $ECHO_N "checking for setprotoent_r... $ECHO_C" >&6
29042 if test "${ac_cv_func_setprotoent_r+set}" = set; then
29043   echo $ECHO_N "(cached) $ECHO_C" >&6
29044 else
29045   cat >conftest.$ac_ext <<_ACEOF
29046 /* confdefs.h.  */
29047 _ACEOF
29048 cat confdefs.h >>conftest.$ac_ext
29049 cat >>conftest.$ac_ext <<_ACEOF
29050 /* end confdefs.h.  */
29051 /* Define setprotoent_r to an innocuous variant, in case <limits.h> declares setprotoent_r.
29052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29053 #define setprotoent_r innocuous_setprotoent_r
29054
29055 /* System header to define __stub macros and hopefully few prototypes,
29056     which can conflict with char setprotoent_r (); below.
29057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29058     <limits.h> exists even on freestanding compilers.  */
29059
29060 #ifdef __STDC__
29061 # include <limits.h>
29062 #else
29063 # include <assert.h>
29064 #endif
29065
29066 #undef setprotoent_r
29067
29068 /* Override any gcc2 internal prototype to avoid an error.  */
29069 #ifdef __cplusplus
29070 extern "C"
29071 {
29072 #endif
29073 /* We use char because int might match the return type of a gcc2
29074    builtin and then its argument prototype would still apply.  */
29075 char setprotoent_r ();
29076 /* The GNU C library defines this for functions which it implements
29077     to always fail with ENOSYS.  Some functions are actually named
29078     something starting with __ and the normal name is an alias.  */
29079 #if defined (__stub_setprotoent_r) || defined (__stub___setprotoent_r)
29080 choke me
29081 #else
29082 char (*f) () = setprotoent_r;
29083 #endif
29084 #ifdef __cplusplus
29085 }
29086 #endif
29087
29088 int
29089 main ()
29090 {
29091 return f != setprotoent_r;
29092   ;
29093   return 0;
29094 }
29095 _ACEOF
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098   (eval $ac_link) 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } &&
29105          { ac_try='test -z "$ac_c_werror_flag"
29106                          || test ! -s conftest.err'
29107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108   (eval $ac_try) 2>&5
29109   ac_status=$?
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); }; } &&
29112          { ac_try='test -s conftest$ac_exeext'
29113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114   (eval $ac_try) 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; }; then
29118   ac_cv_func_setprotoent_r=yes
29119 else
29120   echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29122
29123 ac_cv_func_setprotoent_r=no
29124 fi
29125 rm -f conftest.err conftest.$ac_objext \
29126       conftest$ac_exeext conftest.$ac_ext
29127 fi
29128 echo "$as_me:$LINENO: result: $ac_cv_func_setprotoent_r" >&5
29129 echo "${ECHO_T}$ac_cv_func_setprotoent_r" >&6
29130 if test $ac_cv_func_setprotoent_r = yes; then
29131   cat >conftest.$ac_ext <<_ACEOF
29132 /* confdefs.h.  */
29133 _ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h.  */
29137
29138 #undef _REENTRANT
29139 #define _REENTRANT
29140 #undef __USE_MISC
29141 #define __USE_MISC
29142 #include <netdb.h>
29143 void               setprotoent_r __P((int));
29144
29145 int
29146 main ()
29147 {
29148
29149   ;
29150   return 0;
29151 }
29152 _ACEOF
29153 rm -f conftest.$ac_objext
29154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29155   (eval $ac_compile) 2>conftest.er1
29156   ac_status=$?
29157   grep -v '^ *+' conftest.er1 >conftest.err
29158   rm -f conftest.er1
29159   cat conftest.err >&5
29160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161   (exit $ac_status); } &&
29162          { ac_try='test -z "$ac_c_werror_flag"
29163                          || test ! -s conftest.err'
29164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29165   (eval $ac_try) 2>&5
29166   ac_status=$?
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); }; } &&
29169          { ac_try='test -s conftest.$ac_objext'
29170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29171   (eval $ac_try) 2>&5
29172   ac_status=$?
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); }; }; then
29175   PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"
29176 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void"
29177
29178 else
29179   echo "$as_me: failed program was:" >&5
29180 sed 's/^/| /' conftest.$ac_ext >&5
29181
29182 fi
29183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29184
29185 else
29186   PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"
29187 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void"
29188
29189 fi
29190
29191 esac
29192
29193
29194
29195 echo "$as_me:$LINENO: checking for getpwent_r" >&5
29196 echo $ECHO_N "checking for getpwent_r... $ECHO_C" >&6
29197 if test "${ac_cv_func_getpwent_r+set}" = set; then
29198   echo $ECHO_N "(cached) $ECHO_C" >&6
29199 else
29200   cat >conftest.$ac_ext <<_ACEOF
29201 /* confdefs.h.  */
29202 _ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h.  */
29206 /* Define getpwent_r to an innocuous variant, in case <limits.h> declares getpwent_r.
29207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29208 #define getpwent_r innocuous_getpwent_r
29209
29210 /* System header to define __stub macros and hopefully few prototypes,
29211     which can conflict with char getpwent_r (); below.
29212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29213     <limits.h> exists even on freestanding compilers.  */
29214
29215 #ifdef __STDC__
29216 # include <limits.h>
29217 #else
29218 # include <assert.h>
29219 #endif
29220
29221 #undef getpwent_r
29222
29223 /* Override any gcc2 internal prototype to avoid an error.  */
29224 #ifdef __cplusplus
29225 extern "C"
29226 {
29227 #endif
29228 /* We use char because int might match the return type of a gcc2
29229    builtin and then its argument prototype would still apply.  */
29230 char getpwent_r ();
29231 /* The GNU C library defines this for functions which it implements
29232     to always fail with ENOSYS.  Some functions are actually named
29233     something starting with __ and the normal name is an alias.  */
29234 #if defined (__stub_getpwent_r) || defined (__stub___getpwent_r)
29235 choke me
29236 #else
29237 char (*f) () = getpwent_r;
29238 #endif
29239 #ifdef __cplusplus
29240 }
29241 #endif
29242
29243 int
29244 main ()
29245 {
29246 return f != getpwent_r;
29247   ;
29248   return 0;
29249 }
29250 _ACEOF
29251 rm -f conftest.$ac_objext conftest$ac_exeext
29252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29253   (eval $ac_link) 2>conftest.er1
29254   ac_status=$?
29255   grep -v '^ *+' conftest.er1 >conftest.err
29256   rm -f conftest.er1
29257   cat conftest.err >&5
29258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259   (exit $ac_status); } &&
29260          { ac_try='test -z "$ac_c_werror_flag"
29261                          || test ! -s conftest.err'
29262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263   (eval $ac_try) 2>&5
29264   ac_status=$?
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); }; } &&
29267          { ac_try='test -s conftest$ac_exeext'
29268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29269   (eval $ac_try) 2>&5
29270   ac_status=$?
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); }; }; then
29273   ac_cv_func_getpwent_r=yes
29274 else
29275   echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29277
29278 ac_cv_func_getpwent_r=no
29279 fi
29280 rm -f conftest.err conftest.$ac_objext \
29281       conftest$ac_exeext conftest.$ac_ext
29282 fi
29283 echo "$as_me:$LINENO: result: $ac_cv_func_getpwent_r" >&5
29284 echo "${ECHO_T}$ac_cv_func_getpwent_r" >&6
29285 if test $ac_cv_func_getpwent_r = yes; then
29286   cat >conftest.$ac_ext <<_ACEOF
29287 /* confdefs.h.  */
29288 _ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h.  */
29292
29293 #include <sys/types.h>
29294 #include <pwd.h>
29295 struct passwd *
29296 getpwent_r(struct passwd *pwptr, char *buf, int buflen) {}
29297
29298
29299 int
29300 main ()
29301 {
29302
29303
29304   ;
29305   return 0;
29306 }
29307 _ACEOF
29308 rm -f conftest.$ac_objext
29309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29310   (eval $ac_compile) 2>conftest.er1
29311   ac_status=$?
29312   grep -v '^ *+' conftest.er1 >conftest.err
29313   rm -f conftest.er1
29314   cat conftest.err >&5
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); } &&
29317          { ac_try='test -z "$ac_c_werror_flag"
29318                          || test ! -s conftest.err'
29319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320   (eval $ac_try) 2>&5
29321   ac_status=$?
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); }; } &&
29324          { ac_try='test -s conftest.$ac_objext'
29325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326   (eval $ac_try) 2>&5
29327   ac_status=$?
29328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329   (exit $ac_status); }; }; then
29330   PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"
29331 PASS_R_BAD="#define PASS_R_BAD NULL"
29332 PASS_R_COPY="#define PASS_R_COPY buf, buflen"
29333 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"
29334 PASS_R_OK="#define PASS_R_OK pwptr"
29335 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *"
29336
29337 else
29338   echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29340
29341 fi
29342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29343
29344 else
29345   PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"
29346 PASS_R_BAD="#define PASS_R_BAD NULL"
29347 PASS_R_COPY="#define PASS_R_COPY buf, buflen"
29348 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"
29349 PASS_R_OK="#define PASS_R_OK pwptr"
29350 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *"
29351 cat >>confdefs.h <<\_ACEOF
29352 #define NEED_GETPWENT_R 1
29353 _ACEOF
29354
29355
29356 fi
29357
29358
29359
29360
29361
29362
29363
29364
29365 echo "$as_me:$LINENO: checking for endpwent_r" >&5
29366 echo $ECHO_N "checking for endpwent_r... $ECHO_C" >&6
29367 if test "${ac_cv_func_endpwent_r+set}" = set; then
29368   echo $ECHO_N "(cached) $ECHO_C" >&6
29369 else
29370   cat >conftest.$ac_ext <<_ACEOF
29371 /* confdefs.h.  */
29372 _ACEOF
29373 cat confdefs.h >>conftest.$ac_ext
29374 cat >>conftest.$ac_ext <<_ACEOF
29375 /* end confdefs.h.  */
29376 /* Define endpwent_r to an innocuous variant, in case <limits.h> declares endpwent_r.
29377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29378 #define endpwent_r innocuous_endpwent_r
29379
29380 /* System header to define __stub macros and hopefully few prototypes,
29381     which can conflict with char endpwent_r (); below.
29382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29383     <limits.h> exists even on freestanding compilers.  */
29384
29385 #ifdef __STDC__
29386 # include <limits.h>
29387 #else
29388 # include <assert.h>
29389 #endif
29390
29391 #undef endpwent_r
29392
29393 /* Override any gcc2 internal prototype to avoid an error.  */
29394 #ifdef __cplusplus
29395 extern "C"
29396 {
29397 #endif
29398 /* We use char because int might match the return type of a gcc2
29399    builtin and then its argument prototype would still apply.  */
29400 char endpwent_r ();
29401 /* The GNU C library defines this for functions which it implements
29402     to always fail with ENOSYS.  Some functions are actually named
29403     something starting with __ and the normal name is an alias.  */
29404 #if defined (__stub_endpwent_r) || defined (__stub___endpwent_r)
29405 choke me
29406 #else
29407 char (*f) () = endpwent_r;
29408 #endif
29409 #ifdef __cplusplus
29410 }
29411 #endif
29412
29413 int
29414 main ()
29415 {
29416 return f != endpwent_r;
29417   ;
29418   return 0;
29419 }
29420 _ACEOF
29421 rm -f conftest.$ac_objext conftest$ac_exeext
29422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29423   (eval $ac_link) 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } &&
29430          { ac_try='test -z "$ac_c_werror_flag"
29431                          || test ! -s conftest.err'
29432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433   (eval $ac_try) 2>&5
29434   ac_status=$?
29435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436   (exit $ac_status); }; } &&
29437          { ac_try='test -s conftest$ac_exeext'
29438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439   (eval $ac_try) 2>&5
29440   ac_status=$?
29441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442   (exit $ac_status); }; }; then
29443   ac_cv_func_endpwent_r=yes
29444 else
29445   echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29447
29448 ac_cv_func_endpwent_r=no
29449 fi
29450 rm -f conftest.err conftest.$ac_objext \
29451       conftest$ac_exeext conftest.$ac_ext
29452 fi
29453 echo "$as_me:$LINENO: result: $ac_cv_func_endpwent_r" >&5
29454 echo "${ECHO_T}$ac_cv_func_endpwent_r" >&6
29455 if test $ac_cv_func_endpwent_r = yes; then
29456   cat >conftest.$ac_ext <<_ACEOF
29457 /* confdefs.h.  */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h.  */
29462
29463 #include <pwd.h>
29464 void endpwent_r(FILE **pwfp);
29465
29466 int
29467 main ()
29468 {
29469
29470   ;
29471   return 0;
29472 }
29473 _ACEOF
29474 rm -f conftest.$ac_objext
29475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29476   (eval $ac_compile) 2>conftest.er1
29477   ac_status=$?
29478   grep -v '^ *+' conftest.er1 >conftest.err
29479   rm -f conftest.er1
29480   cat conftest.err >&5
29481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482   (exit $ac_status); } &&
29483          { ac_try='test -z "$ac_c_werror_flag"
29484                          || test ! -s conftest.err'
29485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486   (eval $ac_try) 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); }; } &&
29490          { ac_try='test -s conftest.$ac_objext'
29491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492   (eval $ac_try) 2>&5
29493   ac_status=$?
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); }; }; then
29496   PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"
29497 PASS_R_END_RETURN="#define PASS_R_END_RETURN void"
29498 PASS_R_ENT_ARGS="#define PASS_R_ENT_ARGS FILE **pwptr"
29499
29500 else
29501   echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29503
29504 fi
29505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29506
29507 else
29508   PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"
29509 PASS_R_END_RETURN="#define PASS_R_END_RETURN void"
29510 PASS_R_ENT_ARGS="#undef PASS_R_ENT_ARGS"
29511 cat >>confdefs.h <<\_ACEOF
29512 #define NEED_ENDPWENT_R 1
29513 _ACEOF
29514
29515
29516 fi
29517
29518
29519
29520
29521 echo "$as_me:$LINENO: checking for setpassent_r" >&5
29522 echo $ECHO_N "checking for setpassent_r... $ECHO_C" >&6
29523 if test "${ac_cv_func_setpassent_r+set}" = set; then
29524   echo $ECHO_N "(cached) $ECHO_C" >&6
29525 else
29526   cat >conftest.$ac_ext <<_ACEOF
29527 /* confdefs.h.  */
29528 _ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h.  */
29532 /* Define setpassent_r to an innocuous variant, in case <limits.h> declares setpassent_r.
29533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29534 #define setpassent_r innocuous_setpassent_r
29535
29536 /* System header to define __stub macros and hopefully few prototypes,
29537     which can conflict with char setpassent_r (); below.
29538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29539     <limits.h> exists even on freestanding compilers.  */
29540
29541 #ifdef __STDC__
29542 # include <limits.h>
29543 #else
29544 # include <assert.h>
29545 #endif
29546
29547 #undef setpassent_r
29548
29549 /* Override any gcc2 internal prototype to avoid an error.  */
29550 #ifdef __cplusplus
29551 extern "C"
29552 {
29553 #endif
29554 /* We use char because int might match the return type of a gcc2
29555    builtin and then its argument prototype would still apply.  */
29556 char setpassent_r ();
29557 /* The GNU C library defines this for functions which it implements
29558     to always fail with ENOSYS.  Some functions are actually named
29559     something starting with __ and the normal name is an alias.  */
29560 #if defined (__stub_setpassent_r) || defined (__stub___setpassent_r)
29561 choke me
29562 #else
29563 char (*f) () = setpassent_r;
29564 #endif
29565 #ifdef __cplusplus
29566 }
29567 #endif
29568
29569 int
29570 main ()
29571 {
29572 return f != setpassent_r;
29573   ;
29574   return 0;
29575 }
29576 _ACEOF
29577 rm -f conftest.$ac_objext conftest$ac_exeext
29578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29579   (eval $ac_link) 2>conftest.er1
29580   ac_status=$?
29581   grep -v '^ *+' conftest.er1 >conftest.err
29582   rm -f conftest.er1
29583   cat conftest.err >&5
29584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585   (exit $ac_status); } &&
29586          { ac_try='test -z "$ac_c_werror_flag"
29587                          || test ! -s conftest.err'
29588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29589   (eval $ac_try) 2>&5
29590   ac_status=$?
29591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592   (exit $ac_status); }; } &&
29593          { ac_try='test -s conftest$ac_exeext'
29594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29595   (eval $ac_try) 2>&5
29596   ac_status=$?
29597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598   (exit $ac_status); }; }; then
29599   ac_cv_func_setpassent_r=yes
29600 else
29601   echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29603
29604 ac_cv_func_setpassent_r=no
29605 fi
29606 rm -f conftest.err conftest.$ac_objext \
29607       conftest$ac_exeext conftest.$ac_ext
29608 fi
29609 echo "$as_me:$LINENO: result: $ac_cv_func_setpassent_r" >&5
29610 echo "${ECHO_T}$ac_cv_func_setpassent_r" >&6
29611 if test $ac_cv_func_setpassent_r = yes; then
29612   :
29613 else
29614   cat >>confdefs.h <<\_ACEOF
29615 #define NEED_SETPASSENT_R 1
29616 _ACEOF
29617
29618 fi
29619
29620 echo "$as_me:$LINENO: checking for setpassent" >&5
29621 echo $ECHO_N "checking for setpassent... $ECHO_C" >&6
29622 if test "${ac_cv_func_setpassent+set}" = set; then
29623   echo $ECHO_N "(cached) $ECHO_C" >&6
29624 else
29625   cat >conftest.$ac_ext <<_ACEOF
29626 /* confdefs.h.  */
29627 _ACEOF
29628 cat confdefs.h >>conftest.$ac_ext
29629 cat >>conftest.$ac_ext <<_ACEOF
29630 /* end confdefs.h.  */
29631 /* Define setpassent to an innocuous variant, in case <limits.h> declares setpassent.
29632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29633 #define setpassent innocuous_setpassent
29634
29635 /* System header to define __stub macros and hopefully few prototypes,
29636     which can conflict with char setpassent (); below.
29637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29638     <limits.h> exists even on freestanding compilers.  */
29639
29640 #ifdef __STDC__
29641 # include <limits.h>
29642 #else
29643 # include <assert.h>
29644 #endif
29645
29646 #undef setpassent
29647
29648 /* Override any gcc2 internal prototype to avoid an error.  */
29649 #ifdef __cplusplus
29650 extern "C"
29651 {
29652 #endif
29653 /* We use char because int might match the return type of a gcc2
29654    builtin and then its argument prototype would still apply.  */
29655 char setpassent ();
29656 /* The GNU C library defines this for functions which it implements
29657     to always fail with ENOSYS.  Some functions are actually named
29658     something starting with __ and the normal name is an alias.  */
29659 #if defined (__stub_setpassent) || defined (__stub___setpassent)
29660 choke me
29661 #else
29662 char (*f) () = setpassent;
29663 #endif
29664 #ifdef __cplusplus
29665 }
29666 #endif
29667
29668 int
29669 main ()
29670 {
29671 return f != setpassent;
29672   ;
29673   return 0;
29674 }
29675 _ACEOF
29676 rm -f conftest.$ac_objext conftest$ac_exeext
29677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29678   (eval $ac_link) 2>conftest.er1
29679   ac_status=$?
29680   grep -v '^ *+' conftest.er1 >conftest.err
29681   rm -f conftest.er1
29682   cat conftest.err >&5
29683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684   (exit $ac_status); } &&
29685          { ac_try='test -z "$ac_c_werror_flag"
29686                          || test ! -s conftest.err'
29687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688   (eval $ac_try) 2>&5
29689   ac_status=$?
29690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691   (exit $ac_status); }; } &&
29692          { ac_try='test -s conftest$ac_exeext'
29693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29694   (eval $ac_try) 2>&5
29695   ac_status=$?
29696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697   (exit $ac_status); }; }; then
29698   ac_cv_func_setpassent=yes
29699 else
29700   echo "$as_me: failed program was:" >&5
29701 sed 's/^/| /' conftest.$ac_ext >&5
29702
29703 ac_cv_func_setpassent=no
29704 fi
29705 rm -f conftest.err conftest.$ac_objext \
29706       conftest$ac_exeext conftest.$ac_ext
29707 fi
29708 echo "$as_me:$LINENO: result: $ac_cv_func_setpassent" >&5
29709 echo "${ECHO_T}$ac_cv_func_setpassent" >&6
29710 if test $ac_cv_func_setpassent = yes; then
29711   :
29712 else
29713   cat >>confdefs.h <<\_ACEOF
29714 #define NEED_SETPASSENT 1
29715 _ACEOF
29716
29717 fi
29718
29719
29720 echo "$as_me:$LINENO: checking for setpwent_r" >&5
29721 echo $ECHO_N "checking for setpwent_r... $ECHO_C" >&6
29722 if test "${ac_cv_func_setpwent_r+set}" = set; then
29723   echo $ECHO_N "(cached) $ECHO_C" >&6
29724 else
29725   cat >conftest.$ac_ext <<_ACEOF
29726 /* confdefs.h.  */
29727 _ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h.  */
29731 /* Define setpwent_r to an innocuous variant, in case <limits.h> declares setpwent_r.
29732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29733 #define setpwent_r innocuous_setpwent_r
29734
29735 /* System header to define __stub macros and hopefully few prototypes,
29736     which can conflict with char setpwent_r (); below.
29737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29738     <limits.h> exists even on freestanding compilers.  */
29739
29740 #ifdef __STDC__
29741 # include <limits.h>
29742 #else
29743 # include <assert.h>
29744 #endif
29745
29746 #undef setpwent_r
29747
29748 /* Override any gcc2 internal prototype to avoid an error.  */
29749 #ifdef __cplusplus
29750 extern "C"
29751 {
29752 #endif
29753 /* We use char because int might match the return type of a gcc2
29754    builtin and then its argument prototype would still apply.  */
29755 char setpwent_r ();
29756 /* The GNU C library defines this for functions which it implements
29757     to always fail with ENOSYS.  Some functions are actually named
29758     something starting with __ and the normal name is an alias.  */
29759 #if defined (__stub_setpwent_r) || defined (__stub___setpwent_r)
29760 choke me
29761 #else
29762 char (*f) () = setpwent_r;
29763 #endif
29764 #ifdef __cplusplus
29765 }
29766 #endif
29767
29768 int
29769 main ()
29770 {
29771 return f != setpwent_r;
29772   ;
29773   return 0;
29774 }
29775 _ACEOF
29776 rm -f conftest.$ac_objext conftest$ac_exeext
29777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29778   (eval $ac_link) 2>conftest.er1
29779   ac_status=$?
29780   grep -v '^ *+' conftest.er1 >conftest.err
29781   rm -f conftest.er1
29782   cat conftest.err >&5
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); } &&
29785          { ac_try='test -z "$ac_c_werror_flag"
29786                          || test ! -s conftest.err'
29787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788   (eval $ac_try) 2>&5
29789   ac_status=$?
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); }; } &&
29792          { ac_try='test -s conftest$ac_exeext'
29793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29794   (eval $ac_try) 2>&5
29795   ac_status=$?
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); }; }; then
29798   ac_cv_func_setpwent_r=yes
29799 else
29800   echo "$as_me: failed program was:" >&5
29801 sed 's/^/| /' conftest.$ac_ext >&5
29802
29803 ac_cv_func_setpwent_r=no
29804 fi
29805 rm -f conftest.err conftest.$ac_objext \
29806       conftest$ac_exeext conftest.$ac_ext
29807 fi
29808 echo "$as_me:$LINENO: result: $ac_cv_func_setpwent_r" >&5
29809 echo "${ECHO_T}$ac_cv_func_setpwent_r" >&6
29810 if test $ac_cv_func_setpwent_r = yes; then
29811   cat >conftest.$ac_ext <<_ACEOF
29812 /* confdefs.h.  */
29813 _ACEOF
29814 cat confdefs.h >>conftest.$ac_ext
29815 cat >>conftest.$ac_ext <<_ACEOF
29816 /* end confdefs.h.  */
29817
29818 #include <pwd.h>
29819 void setpwent_r(FILE **pwfp);
29820
29821 int
29822 main ()
29823 {
29824
29825   ;
29826   return 0;
29827 }
29828 _ACEOF
29829 rm -f conftest.$ac_objext
29830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29831   (eval $ac_compile) 2>conftest.er1
29832   ac_status=$?
29833   grep -v '^ *+' conftest.er1 >conftest.err
29834   rm -f conftest.er1
29835   cat conftest.err >&5
29836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); } &&
29838          { ac_try='test -z "$ac_c_werror_flag"
29839                          || test ! -s conftest.err'
29840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841   (eval $ac_try) 2>&5
29842   ac_status=$?
29843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844   (exit $ac_status); }; } &&
29845          { ac_try='test -s conftest.$ac_objext'
29846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847   (eval $ac_try) 2>&5
29848   ac_status=$?
29849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850   (exit $ac_status); }; }; then
29851   PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /* empty */"
29852 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int"
29853
29854 else
29855   echo "$as_me: failed program was:" >&5
29856 sed 's/^/| /' conftest.$ac_ext >&5
29857
29858 cat >conftest.$ac_ext <<_ACEOF
29859 /* confdefs.h.  */
29860 _ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h.  */
29864
29865 #include <pwd.h>
29866 int setpwent_r(FILE **pwfp);
29867
29868 int
29869 main ()
29870 {
29871
29872   ;
29873   return 0;
29874 }
29875 _ACEOF
29876 rm -f conftest.$ac_objext
29877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29878   (eval $ac_compile) 2>conftest.er1
29879   ac_status=$?
29880   grep -v '^ *+' conftest.er1 >conftest.err
29881   rm -f conftest.er1
29882   cat conftest.err >&5
29883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884   (exit $ac_status); } &&
29885          { ac_try='test -z "$ac_c_werror_flag"
29886                          || test ! -s conftest.err'
29887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888   (eval $ac_try) 2>&5
29889   ac_status=$?
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); }; } &&
29892          { ac_try='test -s conftest.$ac_objext'
29893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894   (eval $ac_try) 2>&5
29895   ac_status=$?
29896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897   (exit $ac_status); }; }; then
29898   PASS_R_SET_RESULT="#define PASS_R_SET_RESULT 0"
29899 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int"
29900
29901 else
29902   echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29904
29905 fi
29906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29907
29908 fi
29909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29910
29911 else
29912   PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /*empty*/"
29913 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN void"
29914 cat >>confdefs.h <<\_ACEOF
29915 #define NEED_SETPWENT_R 1
29916 _ACEOF
29917
29918
29919 fi
29920
29921
29922
29923
29924 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
29925 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
29926 if test "${ac_cv_func_getpwnam_r+set}" = set; then
29927   echo $ECHO_N "(cached) $ECHO_C" >&6
29928 else
29929   cat >conftest.$ac_ext <<_ACEOF
29930 /* confdefs.h.  */
29931 _ACEOF
29932 cat confdefs.h >>conftest.$ac_ext
29933 cat >>conftest.$ac_ext <<_ACEOF
29934 /* end confdefs.h.  */
29935 /* Define getpwnam_r to an innocuous variant, in case <limits.h> declares getpwnam_r.
29936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29937 #define getpwnam_r innocuous_getpwnam_r
29938
29939 /* System header to define __stub macros and hopefully few prototypes,
29940     which can conflict with char getpwnam_r (); below.
29941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29942     <limits.h> exists even on freestanding compilers.  */
29943
29944 #ifdef __STDC__
29945 # include <limits.h>
29946 #else
29947 # include <assert.h>
29948 #endif
29949
29950 #undef getpwnam_r
29951
29952 /* Override any gcc2 internal prototype to avoid an error.  */
29953 #ifdef __cplusplus
29954 extern "C"
29955 {
29956 #endif
29957 /* We use char because int might match the return type of a gcc2
29958    builtin and then its argument prototype would still apply.  */
29959 char getpwnam_r ();
29960 /* The GNU C library defines this for functions which it implements
29961     to always fail with ENOSYS.  Some functions are actually named
29962     something starting with __ and the normal name is an alias.  */
29963 #if defined (__stub_getpwnam_r) || defined (__stub___getpwnam_r)
29964 choke me
29965 #else
29966 char (*f) () = getpwnam_r;
29967 #endif
29968 #ifdef __cplusplus
29969 }
29970 #endif
29971
29972 int
29973 main ()
29974 {
29975 return f != getpwnam_r;
29976   ;
29977   return 0;
29978 }
29979 _ACEOF
29980 rm -f conftest.$ac_objext conftest$ac_exeext
29981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29982   (eval $ac_link) 2>conftest.er1
29983   ac_status=$?
29984   grep -v '^ *+' conftest.er1 >conftest.err
29985   rm -f conftest.er1
29986   cat conftest.err >&5
29987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988   (exit $ac_status); } &&
29989          { ac_try='test -z "$ac_c_werror_flag"
29990                          || test ! -s conftest.err'
29991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992   (eval $ac_try) 2>&5
29993   ac_status=$?
29994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995   (exit $ac_status); }; } &&
29996          { ac_try='test -s conftest$ac_exeext'
29997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998   (eval $ac_try) 2>&5
29999   ac_status=$?
30000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001   (exit $ac_status); }; }; then
30002   ac_cv_func_getpwnam_r=yes
30003 else
30004   echo "$as_me: failed program was:" >&5
30005 sed 's/^/| /' conftest.$ac_ext >&5
30006
30007 ac_cv_func_getpwnam_r=no
30008 fi
30009 rm -f conftest.err conftest.$ac_objext \
30010       conftest$ac_exeext conftest.$ac_ext
30011 fi
30012 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r" >&5
30013 echo "${ECHO_T}$ac_cv_func_getpwnam_r" >&6
30014 if test $ac_cv_func_getpwnam_r = yes; then
30015   :
30016 else
30017   cat >>confdefs.h <<\_ACEOF
30018 #define NEED_GETPWNAM_R 1
30019 _ACEOF
30020
30021 fi
30022
30023 echo "$as_me:$LINENO: checking for getpwuid_r" >&5
30024 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6
30025 if test "${ac_cv_func_getpwuid_r+set}" = set; then
30026   echo $ECHO_N "(cached) $ECHO_C" >&6
30027 else
30028   cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034 /* Define getpwuid_r to an innocuous variant, in case <limits.h> declares getpwuid_r.
30035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30036 #define getpwuid_r innocuous_getpwuid_r
30037
30038 /* System header to define __stub macros and hopefully few prototypes,
30039     which can conflict with char getpwuid_r (); below.
30040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30041     <limits.h> exists even on freestanding compilers.  */
30042
30043 #ifdef __STDC__
30044 # include <limits.h>
30045 #else
30046 # include <assert.h>
30047 #endif
30048
30049 #undef getpwuid_r
30050
30051 /* Override any gcc2 internal prototype to avoid an error.  */
30052 #ifdef __cplusplus
30053 extern "C"
30054 {
30055 #endif
30056 /* We use char because int might match the return type of a gcc2
30057    builtin and then its argument prototype would still apply.  */
30058 char getpwuid_r ();
30059 /* The GNU C library defines this for functions which it implements
30060     to always fail with ENOSYS.  Some functions are actually named
30061     something starting with __ and the normal name is an alias.  */
30062 #if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
30063 choke me
30064 #else
30065 char (*f) () = getpwuid_r;
30066 #endif
30067 #ifdef __cplusplus
30068 }
30069 #endif
30070
30071 int
30072 main ()
30073 {
30074 return f != getpwuid_r;
30075   ;
30076   return 0;
30077 }
30078 _ACEOF
30079 rm -f conftest.$ac_objext conftest$ac_exeext
30080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30081   (eval $ac_link) 2>conftest.er1
30082   ac_status=$?
30083   grep -v '^ *+' conftest.er1 >conftest.err
30084   rm -f conftest.er1
30085   cat conftest.err >&5
30086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087   (exit $ac_status); } &&
30088          { ac_try='test -z "$ac_c_werror_flag"
30089                          || test ! -s conftest.err'
30090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30091   (eval $ac_try) 2>&5
30092   ac_status=$?
30093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094   (exit $ac_status); }; } &&
30095          { ac_try='test -s conftest$ac_exeext'
30096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30097   (eval $ac_try) 2>&5
30098   ac_status=$?
30099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100   (exit $ac_status); }; }; then
30101   ac_cv_func_getpwuid_r=yes
30102 else
30103   echo "$as_me: failed program was:" >&5
30104 sed 's/^/| /' conftest.$ac_ext >&5
30105
30106 ac_cv_func_getpwuid_r=no
30107 fi
30108 rm -f conftest.err conftest.$ac_objext \
30109       conftest$ac_exeext conftest.$ac_ext
30110 fi
30111 echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
30112 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6
30113 if test $ac_cv_func_getpwuid_r = yes; then
30114   :
30115 else
30116   cat >>confdefs.h <<\_ACEOF
30117 #define NEED_GETPWUID_R 1
30118 _ACEOF
30119
30120 fi
30121
30122
30123 case $host in
30124 ia64-hp-hpux11.*)
30125 ;;
30126 *)
30127 echo "$as_me:$LINENO: checking for getservent_r" >&5
30128 echo $ECHO_N "checking for getservent_r... $ECHO_C" >&6
30129 if test "${ac_cv_func_getservent_r+set}" = set; then
30130   echo $ECHO_N "(cached) $ECHO_C" >&6
30131 else
30132   cat >conftest.$ac_ext <<_ACEOF
30133 /* confdefs.h.  */
30134 _ACEOF
30135 cat confdefs.h >>conftest.$ac_ext
30136 cat >>conftest.$ac_ext <<_ACEOF
30137 /* end confdefs.h.  */
30138 /* Define getservent_r to an innocuous variant, in case <limits.h> declares getservent_r.
30139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30140 #define getservent_r innocuous_getservent_r
30141
30142 /* System header to define __stub macros and hopefully few prototypes,
30143     which can conflict with char getservent_r (); below.
30144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30145     <limits.h> exists even on freestanding compilers.  */
30146
30147 #ifdef __STDC__
30148 # include <limits.h>
30149 #else
30150 # include <assert.h>
30151 #endif
30152
30153 #undef getservent_r
30154
30155 /* Override any gcc2 internal prototype to avoid an error.  */
30156 #ifdef __cplusplus
30157 extern "C"
30158 {
30159 #endif
30160 /* We use char because int might match the return type of a gcc2
30161    builtin and then its argument prototype would still apply.  */
30162 char getservent_r ();
30163 /* The GNU C library defines this for functions which it implements
30164     to always fail with ENOSYS.  Some functions are actually named
30165     something starting with __ and the normal name is an alias.  */
30166 #if defined (__stub_getservent_r) || defined (__stub___getservent_r)
30167 choke me
30168 #else
30169 char (*f) () = getservent_r;
30170 #endif
30171 #ifdef __cplusplus
30172 }
30173 #endif
30174
30175 int
30176 main ()
30177 {
30178 return f != getservent_r;
30179   ;
30180   return 0;
30181 }
30182 _ACEOF
30183 rm -f conftest.$ac_objext conftest$ac_exeext
30184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30185   (eval $ac_link) 2>conftest.er1
30186   ac_status=$?
30187   grep -v '^ *+' conftest.er1 >conftest.err
30188   rm -f conftest.er1
30189   cat conftest.err >&5
30190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191   (exit $ac_status); } &&
30192          { ac_try='test -z "$ac_c_werror_flag"
30193                          || test ! -s conftest.err'
30194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30195   (eval $ac_try) 2>&5
30196   ac_status=$?
30197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198   (exit $ac_status); }; } &&
30199          { ac_try='test -s conftest$ac_exeext'
30200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201   (eval $ac_try) 2>&5
30202   ac_status=$?
30203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204   (exit $ac_status); }; }; then
30205   ac_cv_func_getservent_r=yes
30206 else
30207   echo "$as_me: failed program was:" >&5
30208 sed 's/^/| /' conftest.$ac_ext >&5
30209
30210 ac_cv_func_getservent_r=no
30211 fi
30212 rm -f conftest.err conftest.$ac_objext \
30213       conftest$ac_exeext conftest.$ac_ext
30214 fi
30215 echo "$as_me:$LINENO: result: $ac_cv_func_getservent_r" >&5
30216 echo "${ECHO_T}$ac_cv_func_getservent_r" >&6
30217 if test $ac_cv_func_getservent_r = yes; then
30218   cat >conftest.$ac_ext <<_ACEOF
30219 /* confdefs.h.  */
30220 _ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h.  */
30224
30225 #undef __USE_MISC
30226 #define __USE_MISC
30227 #include <netdb.h>
30228 struct servent *
30229 getservent_r(struct servent *result, char *buffer, int buflen) {}
30230
30231 int
30232 main ()
30233 {
30234 return (0);
30235   ;
30236   return 0;
30237 }
30238 _ACEOF
30239 rm -f conftest.$ac_objext
30240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30241   (eval $ac_compile) 2>conftest.er1
30242   ac_status=$?
30243   grep -v '^ *+' conftest.er1 >conftest.err
30244   rm -f conftest.er1
30245   cat conftest.err >&5
30246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247   (exit $ac_status); } &&
30248          { ac_try='test -z "$ac_c_werror_flag"
30249                          || test ! -s conftest.err'
30250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251   (eval $ac_try) 2>&5
30252   ac_status=$?
30253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254   (exit $ac_status); }; } &&
30255          { ac_try='test -s conftest.$ac_objext'
30256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257   (eval $ac_try) 2>&5
30258   ac_status=$?
30259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); }; }; then
30261
30262 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
30263 SERV_R_BAD="#define SERV_R_BAD NULL"
30264 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
30265 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
30266 SERV_R_OK="#define SERV_R_OK sptr"
30267 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
30268 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
30269
30270
30271 else
30272   echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30274
30275 cat >conftest.$ac_ext <<_ACEOF
30276 /* confdefs.h.  */
30277 _ACEOF
30278 cat confdefs.h >>conftest.$ac_ext
30279 cat >>conftest.$ac_ext <<_ACEOF
30280 /* end confdefs.h.  */
30281
30282 #undef __USE_MISC
30283 #define __USE_MISC
30284 #include <netdb.h>
30285 int
30286 getservent_r (struct servent *, char *, size_t, struct servent **);
30287
30288 int
30289 main ()
30290 {
30291 return (0);
30292   ;
30293   return 0;
30294 }
30295 _ACEOF
30296 rm -f conftest.$ac_objext
30297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30298   (eval $ac_compile) 2>conftest.er1
30299   ac_status=$?
30300   grep -v '^ *+' conftest.er1 >conftest.err
30301   rm -f conftest.er1
30302   cat conftest.err >&5
30303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304   (exit $ac_status); } &&
30305          { ac_try='test -z "$ac_c_werror_flag"
30306                          || test ! -s conftest.err'
30307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30308   (eval $ac_try) 2>&5
30309   ac_status=$?
30310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311   (exit $ac_status); }; } &&
30312          { ac_try='test -s conftest.$ac_objext'
30313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30314   (eval $ac_try) 2>&5
30315   ac_status=$?
30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); }; }; then
30318
30319 SERV_R_ARGS="#define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp"
30320 SERV_R_BAD="#define SERV_R_BAD ERANGE"
30321 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
30322 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS char *buf, size_t buflen"
30323 SERV_R_OK="#define SERV_R_OK (0)"
30324 SERV_R_SETANSWER="#define SERV_R_SETANSWER 1"
30325 SERV_R_RETURN="#define SERV_R_RETURN int"
30326
30327
30328 else
30329   echo "$as_me: failed program was:" >&5
30330 sed 's/^/| /' conftest.$ac_ext >&5
30331
30332 fi
30333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30334
30335 fi
30336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30337
30338 else
30339   SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
30340 SERV_R_BAD="#define SERV_R_BAD NULL"
30341 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
30342 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
30343 SERV_R_OK="#define SERV_R_OK sptr"
30344 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
30345 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
30346
30347 fi
30348
30349 esac
30350
30351
30352
30353
30354
30355
30356
30357
30358 case $host in
30359 ia64-hp-hpux11.*)
30360 ;;
30361 *)
30362 echo "$as_me:$LINENO: checking for endservent_r" >&5
30363 echo $ECHO_N "checking for endservent_r... $ECHO_C" >&6
30364 if test "${ac_cv_func_endservent_r+set}" = set; then
30365   echo $ECHO_N "(cached) $ECHO_C" >&6
30366 else
30367   cat >conftest.$ac_ext <<_ACEOF
30368 /* confdefs.h.  */
30369 _ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h.  */
30373 /* Define endservent_r to an innocuous variant, in case <limits.h> declares endservent_r.
30374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30375 #define endservent_r innocuous_endservent_r
30376
30377 /* System header to define __stub macros and hopefully few prototypes,
30378     which can conflict with char endservent_r (); below.
30379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30380     <limits.h> exists even on freestanding compilers.  */
30381
30382 #ifdef __STDC__
30383 # include <limits.h>
30384 #else
30385 # include <assert.h>
30386 #endif
30387
30388 #undef endservent_r
30389
30390 /* Override any gcc2 internal prototype to avoid an error.  */
30391 #ifdef __cplusplus
30392 extern "C"
30393 {
30394 #endif
30395 /* We use char because int might match the return type of a gcc2
30396    builtin and then its argument prototype would still apply.  */
30397 char endservent_r ();
30398 /* The GNU C library defines this for functions which it implements
30399     to always fail with ENOSYS.  Some functions are actually named
30400     something starting with __ and the normal name is an alias.  */
30401 #if defined (__stub_endservent_r) || defined (__stub___endservent_r)
30402 choke me
30403 #else
30404 char (*f) () = endservent_r;
30405 #endif
30406 #ifdef __cplusplus
30407 }
30408 #endif
30409
30410 int
30411 main ()
30412 {
30413 return f != endservent_r;
30414   ;
30415   return 0;
30416 }
30417 _ACEOF
30418 rm -f conftest.$ac_objext conftest$ac_exeext
30419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30420   (eval $ac_link) 2>conftest.er1
30421   ac_status=$?
30422   grep -v '^ *+' conftest.er1 >conftest.err
30423   rm -f conftest.er1
30424   cat conftest.err >&5
30425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426   (exit $ac_status); } &&
30427          { ac_try='test -z "$ac_c_werror_flag"
30428                          || test ! -s conftest.err'
30429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430   (eval $ac_try) 2>&5
30431   ac_status=$?
30432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433   (exit $ac_status); }; } &&
30434          { ac_try='test -s conftest$ac_exeext'
30435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436   (eval $ac_try) 2>&5
30437   ac_status=$?
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); }; }; then
30440   ac_cv_func_endservent_r=yes
30441 else
30442   echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30444
30445 ac_cv_func_endservent_r=no
30446 fi
30447 rm -f conftest.err conftest.$ac_objext \
30448       conftest$ac_exeext conftest.$ac_ext
30449 fi
30450 echo "$as_me:$LINENO: result: $ac_cv_func_endservent_r" >&5
30451 echo "${ECHO_T}$ac_cv_func_endservent_r" >&6
30452 if test $ac_cv_func_endservent_r = yes; then
30453   cat >conftest.$ac_ext <<_ACEOF
30454 /* confdefs.h.  */
30455 _ACEOF
30456 cat confdefs.h >>conftest.$ac_ext
30457 cat >>conftest.$ac_ext <<_ACEOF
30458 /* end confdefs.h.  */
30459
30460 #undef _REENTRANT
30461 #define _REENTRANT
30462 #undef __USE_MISC
30463 #define __USE_MISC
30464 #include <netdb.h>
30465 void endservent_r(void);
30466
30467
30468 int
30469 main ()
30470 {
30471
30472   ;
30473   return 0;
30474 }
30475 _ACEOF
30476 rm -f conftest.$ac_objext
30477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30478   (eval $ac_compile) 2>conftest.er1
30479   ac_status=$?
30480   grep -v '^ *+' conftest.er1 >conftest.err
30481   rm -f conftest.er1
30482   cat conftest.err >&5
30483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484   (exit $ac_status); } &&
30485          { ac_try='test -z "$ac_c_werror_flag"
30486                          || test ! -s conftest.err'
30487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30488   (eval $ac_try) 2>&5
30489   ac_status=$?
30490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491   (exit $ac_status); }; } &&
30492          { ac_try='test -s conftest.$ac_objext'
30493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494   (eval $ac_try) 2>&5
30495   ac_status=$?
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); }; }; then
30498
30499 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
30500 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
30501 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
30502
30503
30504 else
30505   echo "$as_me: failed program was:" >&5
30506 sed 's/^/| /' conftest.$ac_ext >&5
30507
30508 fi
30509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30510
30511 else
30512   SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
30513 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
30514 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
30515
30516 fi
30517
30518 esac
30519
30520
30521
30522
30523 case $host in
30524 ia64-hp-hpux11.*)
30525 ;;
30526 *)
30527 echo "$as_me:$LINENO: checking for setservent_r" >&5
30528 echo $ECHO_N "checking for setservent_r... $ECHO_C" >&6
30529 if test "${ac_cv_func_setservent_r+set}" = set; then
30530   echo $ECHO_N "(cached) $ECHO_C" >&6
30531 else
30532   cat >conftest.$ac_ext <<_ACEOF
30533 /* confdefs.h.  */
30534 _ACEOF
30535 cat confdefs.h >>conftest.$ac_ext
30536 cat >>conftest.$ac_ext <<_ACEOF
30537 /* end confdefs.h.  */
30538 /* Define setservent_r to an innocuous variant, in case <limits.h> declares setservent_r.
30539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30540 #define setservent_r innocuous_setservent_r
30541
30542 /* System header to define __stub macros and hopefully few prototypes,
30543     which can conflict with char setservent_r (); below.
30544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30545     <limits.h> exists even on freestanding compilers.  */
30546
30547 #ifdef __STDC__
30548 # include <limits.h>
30549 #else
30550 # include <assert.h>
30551 #endif
30552
30553 #undef setservent_r
30554
30555 /* Override any gcc2 internal prototype to avoid an error.  */
30556 #ifdef __cplusplus
30557 extern "C"
30558 {
30559 #endif
30560 /* We use char because int might match the return type of a gcc2
30561    builtin and then its argument prototype would still apply.  */
30562 char setservent_r ();
30563 /* The GNU C library defines this for functions which it implements
30564     to always fail with ENOSYS.  Some functions are actually named
30565     something starting with __ and the normal name is an alias.  */
30566 #if defined (__stub_setservent_r) || defined (__stub___setservent_r)
30567 choke me
30568 #else
30569 char (*f) () = setservent_r;
30570 #endif
30571 #ifdef __cplusplus
30572 }
30573 #endif
30574
30575 int
30576 main ()
30577 {
30578 return f != setservent_r;
30579   ;
30580   return 0;
30581 }
30582 _ACEOF
30583 rm -f conftest.$ac_objext conftest$ac_exeext
30584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30585   (eval $ac_link) 2>conftest.er1
30586   ac_status=$?
30587   grep -v '^ *+' conftest.er1 >conftest.err
30588   rm -f conftest.er1
30589   cat conftest.err >&5
30590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591   (exit $ac_status); } &&
30592          { ac_try='test -z "$ac_c_werror_flag"
30593                          || test ! -s conftest.err'
30594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30595   (eval $ac_try) 2>&5
30596   ac_status=$?
30597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598   (exit $ac_status); }; } &&
30599          { ac_try='test -s conftest$ac_exeext'
30600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30601   (eval $ac_try) 2>&5
30602   ac_status=$?
30603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604   (exit $ac_status); }; }; then
30605   ac_cv_func_setservent_r=yes
30606 else
30607   echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30609
30610 ac_cv_func_setservent_r=no
30611 fi
30612 rm -f conftest.err conftest.$ac_objext \
30613       conftest$ac_exeext conftest.$ac_ext
30614 fi
30615 echo "$as_me:$LINENO: result: $ac_cv_func_setservent_r" >&5
30616 echo "${ECHO_T}$ac_cv_func_setservent_r" >&6
30617 if test $ac_cv_func_setservent_r = yes; then
30618   cat >conftest.$ac_ext <<_ACEOF
30619 /* confdefs.h.  */
30620 _ACEOF
30621 cat confdefs.h >>conftest.$ac_ext
30622 cat >>conftest.$ac_ext <<_ACEOF
30623 /* end confdefs.h.  */
30624
30625 #undef _REENTRANT
30626 #define _REENTRANT
30627 #undef __USE_MISC
30628 #define __USE_MISC
30629 #include <netdb.h>
30630 void            setservent_r(int);
30631
30632
30633 int
30634 main ()
30635 {
30636
30637   ;
30638   return 0;
30639 }
30640 _ACEOF
30641 rm -f conftest.$ac_objext
30642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30643   (eval $ac_compile) 2>conftest.er1
30644   ac_status=$?
30645   grep -v '^ *+' conftest.er1 >conftest.err
30646   rm -f conftest.er1
30647   cat conftest.err >&5
30648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649   (exit $ac_status); } &&
30650          { ac_try='test -z "$ac_c_werror_flag"
30651                          || test ! -s conftest.err'
30652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30653   (eval $ac_try) 2>&5
30654   ac_status=$?
30655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656   (exit $ac_status); }; } &&
30657          { ac_try='test -s conftest.$ac_objext'
30658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659   (eval $ac_try) 2>&5
30660   ac_status=$?
30661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662   (exit $ac_status); }; }; then
30663
30664 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"
30665 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"
30666
30667
30668 else
30669   echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30671
30672 fi
30673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30674
30675 else
30676   SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"
30677 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"
30678
30679 fi
30680
30681 esac
30682
30683
30684
30685 cat >conftest.$ac_ext <<_ACEOF
30686 /* confdefs.h.  */
30687 _ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h.  */
30691
30692 #undef _REENTRANT
30693 #define _REENTRANT
30694 #undef __USE_MISC
30695 #define __USE_MISC
30696 #include <unistd.h>
30697 #include <netdb.h>
30698 int innetgr(const char *netgroup, const char *host, const char *user, const char *domain);
30699
30700
30701 int
30702 main ()
30703 {
30704
30705   ;
30706   return 0;
30707 }
30708 _ACEOF
30709 rm -f conftest.$ac_objext
30710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30711   (eval $ac_compile) 2>conftest.er1
30712   ac_status=$?
30713   grep -v '^ *+' conftest.er1 >conftest.err
30714   rm -f conftest.er1
30715   cat conftest.err >&5
30716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717   (exit $ac_status); } &&
30718          { ac_try='test -z "$ac_c_werror_flag"
30719                          || test ! -s conftest.err'
30720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30721   (eval $ac_try) 2>&5
30722   ac_status=$?
30723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724   (exit $ac_status); }; } &&
30725          { ac_try='test -s conftest.$ac_objext'
30726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727   (eval $ac_try) 2>&5
30728   ac_status=$?
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); }; }; then
30731
30732 INNETGR_ARGS="#undef INNETGR_ARGS"
30733
30734
30735 else
30736   echo "$as_me: failed program was:" >&5
30737 sed 's/^/| /' conftest.$ac_ext >&5
30738
30739 cat >conftest.$ac_ext <<_ACEOF
30740 /* confdefs.h.  */
30741 _ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h.  */
30745
30746 #undef _REENTRANT
30747 #define _REENTRANT
30748 #undef __USE_MISC
30749 #define __USE_MISC
30750 #include <unistd.h>
30751 #include <netdb.h>
30752 int innetgr(char *netgroup, char *host, char *user, char *domain);
30753
30754
30755 int
30756 main ()
30757 {
30758
30759   ;
30760   return 0;
30761 }
30762 _ACEOF
30763 rm -f conftest.$ac_objext
30764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30765   (eval $ac_compile) 2>conftest.er1
30766   ac_status=$?
30767   grep -v '^ *+' conftest.er1 >conftest.err
30768   rm -f conftest.er1
30769   cat conftest.err >&5
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); } &&
30772          { ac_try='test -z "$ac_c_werror_flag"
30773                          || test ! -s conftest.err'
30774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775   (eval $ac_try) 2>&5
30776   ac_status=$?
30777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778   (exit $ac_status); }; } &&
30779          { ac_try='test -s conftest.$ac_objext'
30780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30781   (eval $ac_try) 2>&5
30782   ac_status=$?
30783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784   (exit $ac_status); }; }; then
30785
30786 INNETGR_ARGS="#define INNETGR_ARGS char *netgroup, char *host, char *user, char *domain"
30787
30788
30789 else
30790   echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.$ac_ext >&5
30792
30793 fi
30794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30795 fi
30796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30797
30798 cat >conftest.$ac_ext <<_ACEOF
30799 /* confdefs.h.  */
30800 _ACEOF
30801 cat confdefs.h >>conftest.$ac_ext
30802 cat >>conftest.$ac_ext <<_ACEOF
30803 /* end confdefs.h.  */
30804
30805 #undef _REENTRANT
30806 #define _REENTRANT
30807 #undef __USE_MISC
30808 #define __USE_MISC
30809 #include <unistd.h>
30810 #include <netdb.h>
30811 void setnetgrent(const char *);
30812
30813
30814 int
30815 main ()
30816 {
30817
30818   ;
30819   return 0;
30820 }
30821 _ACEOF
30822 rm -f conftest.$ac_objext
30823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30824   (eval $ac_compile) 2>conftest.er1
30825   ac_status=$?
30826   grep -v '^ *+' conftest.er1 >conftest.err
30827   rm -f conftest.er1
30828   cat conftest.err >&5
30829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830   (exit $ac_status); } &&
30831          { ac_try='test -z "$ac_c_werror_flag"
30832                          || test ! -s conftest.err'
30833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834   (eval $ac_try) 2>&5
30835   ac_status=$?
30836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837   (exit $ac_status); }; } &&
30838          { ac_try='test -s conftest.$ac_objext'
30839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30840   (eval $ac_try) 2>&5
30841   ac_status=$?
30842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843   (exit $ac_status); }; }; then
30844
30845 SETNETGRENT_ARGS="#undef SETNETGRENT_ARGS"
30846
30847
30848 else
30849   echo "$as_me: failed program was:" >&5
30850 sed 's/^/| /' conftest.$ac_ext >&5
30851
30852 cat >conftest.$ac_ext <<_ACEOF
30853 /* confdefs.h.  */
30854 _ACEOF
30855 cat confdefs.h >>conftest.$ac_ext
30856 cat >>conftest.$ac_ext <<_ACEOF
30857 /* end confdefs.h.  */
30858
30859 #undef _REENTRANT
30860 #define _REENTRANT
30861 #undef __USE_MISC
30862 #define __USE_MISC
30863 #include <unistd.h>
30864 #include <netdb.h>
30865 void setnetgrent(char *);
30866
30867
30868 int
30869 main ()
30870 {
30871
30872   ;
30873   return 0;
30874 }
30875 _ACEOF
30876 rm -f conftest.$ac_objext
30877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30878   (eval $ac_compile) 2>conftest.er1
30879   ac_status=$?
30880   grep -v '^ *+' conftest.er1 >conftest.err
30881   rm -f conftest.er1
30882   cat conftest.err >&5
30883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884   (exit $ac_status); } &&
30885          { ac_try='test -z "$ac_c_werror_flag"
30886                          || test ! -s conftest.err'
30887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888   (eval $ac_try) 2>&5
30889   ac_status=$?
30890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891   (exit $ac_status); }; } &&
30892          { ac_try='test -s conftest.$ac_objext'
30893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30894   (eval $ac_try) 2>&5
30895   ac_status=$?
30896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897   (exit $ac_status); }; }; then
30898
30899 SETNETGRENT_ARGS="#define SETNETGRENT_ARGS char *netgroup"
30900
30901
30902 else
30903   echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30905
30906 fi
30907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30908 fi
30909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30910
30911
30912
30913 #
30914 # Random remaining OS-specific issues involving compiler warnings.
30915 # XXXDCL print messages to indicate some compensation is being done?
30916 #
30917 BROKEN_IN6ADDR_INIT_MACROS="#undef BROKEN_IN6ADDR_INIT_MACROS"
30918
30919 case "$host" in
30920         *-aix5.1.*)
30921                 hack_shutup_pthreadmutexinit=yes
30922                 hack_shutup_in6addr_init_macros=yes
30923                 ;;
30924         *-bsdi3.1*)
30925                 hack_shutup_sputaux=yes
30926                 ;;
30927         *-bsdi4.0*)
30928                 hack_shutup_sigwait=yes
30929                 hack_shutup_sputaux=yes
30930                 hack_shutup_in6addr_init_macros=yes
30931                 ;;
30932         *-bsdi4.1*)
30933                 hack_shutup_stdargcast=yes
30934                 ;;
30935         *-hpux11.11)
30936                 hack_shutup_in6addr_init_macros=yes
30937                 ;;
30938         *-osf5.1|*-osf5.1b)
30939                 hack_shutup_in6addr_init_macros=yes
30940                 ;;
30941         *-solaris2.8)
30942                 hack_shutup_in6addr_init_macros=yes
30943                 ;;
30944         *-solaris2.9)
30945                 hack_shutup_in6addr_init_macros=yes
30946                 ;;
30947 esac
30948
30949 case "$hack_shutup_pthreadmutexinit" in
30950         yes)
30951                 #
30952                 # Shut up PTHREAD_MUTEX_INITIALIZER unbraced
30953                 # initializer warnings.
30954                 #
30955                 cat >>confdefs.h <<\_ACEOF
30956 #define SHUTUP_MUTEX_INITIALIZER 1
30957 _ACEOF
30958
30959                 ;;
30960 esac
30961
30962 case "$hack_shutup_sigwait" in
30963         yes)
30964                 #
30965                 # Shut up a -Wmissing-prototypes warning for sigwait().
30966                 #
30967                 cat >>confdefs.h <<\_ACEOF
30968 #define SHUTUP_SIGWAIT 1
30969 _ACEOF
30970
30971                 ;;
30972 esac
30973
30974 case "$hack_shutup_sputaux" in
30975         yes)
30976                 #
30977                 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
30978                 #
30979                 cat >>confdefs.h <<\_ACEOF
30980 #define SHUTUP_SPUTAUX 1
30981 _ACEOF
30982
30983                 ;;
30984 esac
30985
30986 case "$hack_shutup_stdargcast" in
30987         yes)
30988                 #
30989                 # Shut up a -Wcast-qual warning from va_start().
30990                 #
30991                 cat >>confdefs.h <<\_ACEOF
30992 #define SHUTUP_STDARG_CAST 1
30993 _ACEOF
30994
30995                 ;;
30996 esac
30997
30998 case "$hack_shutup_in6addr_init_macros" in
30999         yes)
31000                 cat >>confdefs.h <<\_ACEOF
31001 #define BROKEN_IN6ADDR_INIT_MACROS 1
31002 _ACEOF
31003
31004                 ;;
31005 esac
31006
31007 #
31008 # Substitutions
31009 #
31010
31011 BIND9_TOP_BUILDDIR=`pwd`
31012
31013
31014 BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
31015
31016
31017 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
31018
31019 . $srcdir/../../version
31020 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
31021
31022
31023
31024 LIBBIND_API=$srcdir/api
31025
31026                                                                                                                                                                           ac_config_files="$ac_config_files make/rules make/mkdep make/includes Makefile bsd/Makefile dst/Makefile include/Makefile inet/Makefile irs/Makefile isc/Makefile nameser/Makefile port_after.h port_before.h resolv/Makefile port/Makefile ${PORT_DIR}/Makefile ${PORT_INCLUDE}/Makefile"
31027 cat >confcache <<\_ACEOF
31028 # This file is a shell script that caches the results of configure
31029 # tests run on this system so they can be shared between configure
31030 # scripts and configure runs, see configure's option --config-cache.
31031 # It is not useful on other systems.  If it contains results you don't
31032 # want to keep, you may remove or edit it.
31033 #
31034 # config.status only pays attention to the cache file if you give it
31035 # the --recheck option to rerun configure.
31036 #
31037 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31038 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31039 # following values.
31040
31041 _ACEOF
31042
31043 # The following way of writing the cache mishandles newlines in values,
31044 # but we know of no workaround that is simple, portable, and efficient.
31045 # So, don't put newlines in cache variables' values.
31046 # Ultrix sh set writes to stderr and can't be redirected directly,
31047 # and sets the high bit in the cache file unless we assign to the vars.
31048 {
31049   (set) 2>&1 |
31050     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31051     *ac_space=\ *)
31052       # `set' does not quote correctly, so add quotes (double-quote
31053       # substitution turns \\\\ into \\, and sed turns \\ into \).
31054       sed -n \
31055         "s/'/'\\\\''/g;
31056           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31057       ;;
31058     *)
31059       # `set' quotes correctly as required by POSIX, so do not add quotes.
31060       sed -n \
31061         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31062       ;;
31063     esac;
31064 } |
31065   sed '
31066      t clear
31067      : clear
31068      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31069      t end
31070      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31071      : end' >>confcache
31072 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31073   if test -w $cache_file; then
31074     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31075     cat confcache >$cache_file
31076   else
31077     echo "not updating unwritable cache $cache_file"
31078   fi
31079 fi
31080 rm -f confcache
31081
31082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31083 # Let make expand exec_prefix.
31084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31085
31086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31088 # trailing colons and then remove the whole line if VPATH becomes empty
31089 # (actually we leave an empty line to preserve line numbers).
31090 if test "x$srcdir" = x.; then
31091   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31092 s/:*\$(srcdir):*/:/;
31093 s/:*\${srcdir}:*/:/;
31094 s/:*@srcdir@:*/:/;
31095 s/^\([^=]*=[     ]*\):*/\1/;
31096 s/:*$//;
31097 s/^[^=]*=[       ]*$//;
31098 }'
31099 fi
31100
31101 DEFS=-DHAVE_CONFIG_H
31102
31103 ac_libobjs=
31104 ac_ltlibobjs=
31105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31106   # 1. Remove the extension, and $U if already installed.
31107   ac_i=`echo "$ac_i" |
31108          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31109   # 2. Add them.
31110   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31111   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31112 done
31113 LIBOBJS=$ac_libobjs
31114
31115 LTLIBOBJS=$ac_ltlibobjs
31116
31117
31118
31119 : ${CONFIG_STATUS=./config.status}
31120 ac_clean_files_save=$ac_clean_files
31121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31124 cat >$CONFIG_STATUS <<_ACEOF
31125 #! $SHELL
31126 # Generated by $as_me.
31127 # Run this file to recreate the current configuration.
31128 # Compiler output produced by configure, useful for debugging
31129 # configure, is in config.log if it exists.
31130
31131 debug=false
31132 ac_cs_recheck=false
31133 ac_cs_silent=false
31134 SHELL=\${CONFIG_SHELL-$SHELL}
31135 _ACEOF
31136
31137 cat >>$CONFIG_STATUS <<\_ACEOF
31138 ## --------------------- ##
31139 ## M4sh Initialization.  ##
31140 ## --------------------- ##
31141
31142 # Be Bourne compatible
31143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31144   emulate sh
31145   NULLCMD=:
31146   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31147   # is contrary to our usage.  Disable this feature.
31148   alias -g '${1+"$@"}'='"$@"'
31149 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31150   set -o posix
31151 fi
31152 DUALCASE=1; export DUALCASE # for MKS sh
31153
31154 # Support unset when possible.
31155 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31156   as_unset=unset
31157 else
31158   as_unset=false
31159 fi
31160
31161
31162 # Work around bugs in pre-3.0 UWIN ksh.
31163 $as_unset ENV MAIL MAILPATH
31164 PS1='$ '
31165 PS2='> '
31166 PS4='+ '
31167
31168 # NLS nuisances.
31169 for as_var in \
31170   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31171   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31172   LC_TELEPHONE LC_TIME
31173 do
31174   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31175     eval $as_var=C; export $as_var
31176   else
31177     $as_unset $as_var
31178   fi
31179 done
31180
31181 # Required to use basename.
31182 if expr a : '\(a\)' >/dev/null 2>&1; then
31183   as_expr=expr
31184 else
31185   as_expr=false
31186 fi
31187
31188 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31189   as_basename=basename
31190 else
31191   as_basename=false
31192 fi
31193
31194
31195 # Name of the executable.
31196 as_me=`$as_basename "$0" ||
31197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31198          X"$0" : 'X\(//\)$' \| \
31199          X"$0" : 'X\(/\)$' \| \
31200          .     : '\(.\)' 2>/dev/null ||
31201 echo X/"$0" |
31202     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31203           /^X\/\(\/\/\)$/{ s//\1/; q; }
31204           /^X\/\(\/\).*/{ s//\1/; q; }
31205           s/.*/./; q'`
31206
31207
31208 # PATH needs CR, and LINENO needs CR and PATH.
31209 # Avoid depending upon Character Ranges.
31210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31213 as_cr_digits='0123456789'
31214 as_cr_alnum=$as_cr_Letters$as_cr_digits
31215
31216 # The user is always right.
31217 if test "${PATH_SEPARATOR+set}" != set; then
31218   echo "#! /bin/sh" >conf$$.sh
31219   echo  "exit 0"   >>conf$$.sh
31220   chmod +x conf$$.sh
31221   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31222     PATH_SEPARATOR=';'
31223   else
31224     PATH_SEPARATOR=:
31225   fi
31226   rm -f conf$$.sh
31227 fi
31228
31229
31230   as_lineno_1=$LINENO
31231   as_lineno_2=$LINENO
31232   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31233   test "x$as_lineno_1" != "x$as_lineno_2" &&
31234   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31235   # Find who we are.  Look in the path if we contain no path at all
31236   # relative or not.
31237   case $0 in
31238     *[\\/]* ) as_myself=$0 ;;
31239     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31240 for as_dir in $PATH
31241 do
31242   IFS=$as_save_IFS
31243   test -z "$as_dir" && as_dir=.
31244   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31245 done
31246
31247        ;;
31248   esac
31249   # We did not find ourselves, most probably we were run as `sh COMMAND'
31250   # in which case we are not to be found in the path.
31251   if test "x$as_myself" = x; then
31252     as_myself=$0
31253   fi
31254   if test ! -f "$as_myself"; then
31255     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31256 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31257    { (exit 1); exit 1; }; }
31258   fi
31259   case $CONFIG_SHELL in
31260   '')
31261     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31262 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31263 do
31264   IFS=$as_save_IFS
31265   test -z "$as_dir" && as_dir=.
31266   for as_base in sh bash ksh sh5; do
31267          case $as_dir in
31268          /*)
31269            if ("$as_dir/$as_base" -c '
31270   as_lineno_1=$LINENO
31271   as_lineno_2=$LINENO
31272   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31273   test "x$as_lineno_1" != "x$as_lineno_2" &&
31274   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31275              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31276              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31277              CONFIG_SHELL=$as_dir/$as_base
31278              export CONFIG_SHELL
31279              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31280            fi;;
31281          esac
31282        done
31283 done
31284 ;;
31285   esac
31286
31287   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31288   # uniformly replaced by the line number.  The first 'sed' inserts a
31289   # line-number line before each line; the second 'sed' does the real
31290   # work.  The second script uses 'N' to pair each line-number line
31291   # with the numbered line, and appends trailing '-' during
31292   # substitution so that $LINENO is not a special case at line end.
31293   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31294   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31295   sed '=' <$as_myself |
31296     sed '
31297       N
31298       s,$,-,
31299       : loop
31300       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31301       t loop
31302       s,-$,,
31303       s,^['$as_cr_digits']*\n,,
31304     ' >$as_me.lineno &&
31305   chmod +x $as_me.lineno ||
31306     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31307 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31308    { (exit 1); exit 1; }; }
31309
31310   # Don't try to exec as it changes $[0], causing all sort of problems
31311   # (the dirname of $[0] is not the place where we might find the
31312   # original and so on.  Autoconf is especially sensible to this).
31313   . ./$as_me.lineno
31314   # Exit status is that of the last command.
31315   exit
31316 }
31317
31318
31319 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31320   *c*,-n*) ECHO_N= ECHO_C='
31321 ' ECHO_T='      ' ;;
31322   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31323   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31324 esac
31325
31326 if expr a : '\(a\)' >/dev/null 2>&1; then
31327   as_expr=expr
31328 else
31329   as_expr=false
31330 fi
31331
31332 rm -f conf$$ conf$$.exe conf$$.file
31333 echo >conf$$.file
31334 if ln -s conf$$.file conf$$ 2>/dev/null; then
31335   # We could just check for DJGPP; but this test a) works b) is more generic
31336   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31337   if test -f conf$$.exe; then
31338     # Don't use ln at all; we don't have any links
31339     as_ln_s='cp -p'
31340   else
31341     as_ln_s='ln -s'
31342   fi
31343 elif ln conf$$.file conf$$ 2>/dev/null; then
31344   as_ln_s=ln
31345 else
31346   as_ln_s='cp -p'
31347 fi
31348 rm -f conf$$ conf$$.exe conf$$.file
31349
31350 if mkdir -p . 2>/dev/null; then
31351   as_mkdir_p=:
31352 else
31353   test -d ./-p && rmdir ./-p
31354   as_mkdir_p=false
31355 fi
31356
31357 as_executable_p="test -f"
31358
31359 # Sed expression to map a string onto a valid CPP name.
31360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31361
31362 # Sed expression to map a string onto a valid variable name.
31363 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31364
31365
31366 # IFS
31367 # We need space, tab and new line, in precisely that order.
31368 as_nl='
31369 '
31370 IFS="   $as_nl"
31371
31372 # CDPATH.
31373 $as_unset CDPATH
31374
31375 exec 6>&1
31376
31377 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31378 # report actual input values of CONFIG_FILES etc. instead of their
31379 # values after options handling.  Logging --version etc. is OK.
31380 exec 5>>config.log
31381 {
31382   echo
31383   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31384 ## Running $as_me. ##
31385 _ASBOX
31386 } >&5
31387 cat >&5 <<_CSEOF
31388
31389 This file was extended by $as_me, which was
31390 generated by GNU Autoconf 2.59.  Invocation command line was
31391
31392   CONFIG_FILES    = $CONFIG_FILES
31393   CONFIG_HEADERS  = $CONFIG_HEADERS
31394   CONFIG_LINKS    = $CONFIG_LINKS
31395   CONFIG_COMMANDS = $CONFIG_COMMANDS
31396   $ $0 $@
31397
31398 _CSEOF
31399 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31400 echo >&5
31401 _ACEOF
31402
31403 # Files that config.status was made for.
31404 if test -n "$ac_config_files"; then
31405   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31406 fi
31407
31408 if test -n "$ac_config_headers"; then
31409   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31410 fi
31411
31412 if test -n "$ac_config_links"; then
31413   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31414 fi
31415
31416 if test -n "$ac_config_commands"; then
31417   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31418 fi
31419
31420 cat >>$CONFIG_STATUS <<\_ACEOF
31421
31422 ac_cs_usage="\
31423 \`$as_me' instantiates files from templates according to the
31424 current configuration.
31425
31426 Usage: $0 [OPTIONS] [FILE]...
31427
31428   -h, --help       print this help, then exit
31429   -V, --version    print version number, then exit
31430   -q, --quiet      do not print progress messages
31431   -d, --debug      don't remove temporary files
31432       --recheck    update $as_me by reconfiguring in the same conditions
31433   --file=FILE[:TEMPLATE]
31434                    instantiate the configuration file FILE
31435   --header=FILE[:TEMPLATE]
31436                    instantiate the configuration header FILE
31437
31438 Configuration files:
31439 $config_files
31440
31441 Configuration headers:
31442 $config_headers
31443
31444 Report bugs to <bug-autoconf@gnu.org>."
31445 _ACEOF
31446
31447 cat >>$CONFIG_STATUS <<_ACEOF
31448 ac_cs_version="\\
31449 config.status
31450 configured by $0, generated by GNU Autoconf 2.59,
31451   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31452
31453 Copyright (C) 2003 Free Software Foundation, Inc.
31454 This config.status script is free software; the Free Software Foundation
31455 gives unlimited permission to copy, distribute and modify it."
31456 srcdir=$srcdir
31457 INSTALL="$INSTALL"
31458 _ACEOF
31459
31460 cat >>$CONFIG_STATUS <<\_ACEOF
31461 # If no file are specified by the user, then we need to provide default
31462 # value.  By we need to know if files were specified by the user.
31463 ac_need_defaults=:
31464 while test $# != 0
31465 do
31466   case $1 in
31467   --*=*)
31468     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31469     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31470     ac_shift=:
31471     ;;
31472   -*)
31473     ac_option=$1
31474     ac_optarg=$2
31475     ac_shift=shift
31476     ;;
31477   *) # This is not an option, so the user has probably given explicit
31478      # arguments.
31479      ac_option=$1
31480      ac_need_defaults=false;;
31481   esac
31482
31483   case $ac_option in
31484   # Handling of the options.
31485 _ACEOF
31486 cat >>$CONFIG_STATUS <<\_ACEOF
31487   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31488     ac_cs_recheck=: ;;
31489   --version | --vers* | -V )
31490     echo "$ac_cs_version"; exit 0 ;;
31491   --he | --h)
31492     # Conflict between --help and --header
31493     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31494 Try \`$0 --help' for more information." >&5
31495 echo "$as_me: error: ambiguous option: $1
31496 Try \`$0 --help' for more information." >&2;}
31497    { (exit 1); exit 1; }; };;
31498   --help | --hel | -h )
31499     echo "$ac_cs_usage"; exit 0 ;;
31500   --debug | --d* | -d )
31501     debug=: ;;
31502   --file | --fil | --fi | --f )
31503     $ac_shift
31504     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31505     ac_need_defaults=false;;
31506   --header | --heade | --head | --hea )
31507     $ac_shift
31508     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31509     ac_need_defaults=false;;
31510   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31511   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31512     ac_cs_silent=: ;;
31513
31514   # This is an error.
31515   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31516 Try \`$0 --help' for more information." >&5
31517 echo "$as_me: error: unrecognized option: $1
31518 Try \`$0 --help' for more information." >&2;}
31519    { (exit 1); exit 1; }; } ;;
31520
31521   *) ac_config_targets="$ac_config_targets $1" ;;
31522
31523   esac
31524   shift
31525 done
31526
31527 ac_configure_extra_args=
31528
31529 if $ac_cs_silent; then
31530   exec 6>/dev/null
31531   ac_configure_extra_args="$ac_configure_extra_args --silent"
31532 fi
31533
31534 _ACEOF
31535 cat >>$CONFIG_STATUS <<_ACEOF
31536 if \$ac_cs_recheck; then
31537   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31538   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31539 fi
31540
31541 _ACEOF
31542
31543
31544
31545
31546
31547 cat >>$CONFIG_STATUS <<\_ACEOF
31548 for ac_config_target in $ac_config_targets
31549 do
31550   case "$ac_config_target" in
31551   # Handling of arguments.
31552   "make/rules" ) CONFIG_FILES="$CONFIG_FILES make/rules" ;;
31553   "make/mkdep" ) CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
31554   "make/includes" ) CONFIG_FILES="$CONFIG_FILES make/includes" ;;
31555   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31556   "bsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bsd/Makefile" ;;
31557   "dst/Makefile" ) CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;;
31558   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31559   "inet/Makefile" ) CONFIG_FILES="$CONFIG_FILES inet/Makefile" ;;
31560   "irs/Makefile" ) CONFIG_FILES="$CONFIG_FILES irs/Makefile" ;;
31561   "isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES isc/Makefile" ;;
31562   "nameser/Makefile" ) CONFIG_FILES="$CONFIG_FILES nameser/Makefile" ;;
31563   "port_after.h" ) CONFIG_FILES="$CONFIG_FILES port_after.h" ;;
31564   "port_before.h" ) CONFIG_FILES="$CONFIG_FILES port_before.h" ;;
31565   "resolv/Makefile" ) CONFIG_FILES="$CONFIG_FILES resolv/Makefile" ;;
31566   "port/Makefile" ) CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
31567   "${PORT_DIR}/Makefile" ) CONFIG_FILES="$CONFIG_FILES ${PORT_DIR}/Makefile" ;;
31568   "${PORT_INCLUDE}/Makefile" ) CONFIG_FILES="$CONFIG_FILES ${PORT_INCLUDE}/Makefile" ;;
31569   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31570   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31571 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31572    { (exit 1); exit 1; }; };;
31573   esac
31574 done
31575
31576 # If the user did not use the arguments to specify the items to instantiate,
31577 # then the envvar interface is used.  Set only those that are not.
31578 # We use the long form for the default assignment because of an extremely
31579 # bizarre bug on SunOS 4.1.3.
31580 if $ac_need_defaults; then
31581   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31582   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31583 fi
31584
31585 # Have a temporary directory for convenience.  Make it in the build tree
31586 # simply because there is no reason to put it here, and in addition,
31587 # creating and moving files from /tmp can sometimes cause problems.
31588 # Create a temporary directory, and hook for its removal unless debugging.
31589 $debug ||
31590 {
31591   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31592   trap '{ (exit 1); exit 1; }' 1 2 13 15
31593 }
31594
31595 # Create a (secure) tmp directory for tmp files.
31596
31597 {
31598   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31599   test -n "$tmp" && test -d "$tmp"
31600 }  ||
31601 {
31602   tmp=./confstat$$-$RANDOM
31603   (umask 077 && mkdir $tmp)
31604 } ||
31605 {
31606    echo "$me: cannot create a temporary directory in ." >&2
31607    { (exit 1); exit 1; }
31608 }
31609
31610 _ACEOF
31611
31612 cat >>$CONFIG_STATUS <<_ACEOF
31613
31614 #
31615 # CONFIG_FILES section.
31616 #
31617
31618 # No need to generate the scripts if there are no CONFIG_FILES.
31619 # This happens for instance when ./config.status config.h
31620 if test -n "\$CONFIG_FILES"; then
31621   # Protect against being on the right side of a sed subst in config.status.
31622   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31623    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31624 s,@SHELL@,$SHELL,;t t
31625 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31626 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31627 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31628 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31629 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31630 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31631 s,@exec_prefix@,$exec_prefix,;t t
31632 s,@prefix@,$prefix,;t t
31633 s,@program_transform_name@,$program_transform_name,;t t
31634 s,@bindir@,$bindir,;t t
31635 s,@sbindir@,$sbindir,;t t
31636 s,@libexecdir@,$libexecdir,;t t
31637 s,@datadir@,$datadir,;t t
31638 s,@sysconfdir@,$sysconfdir,;t t
31639 s,@sharedstatedir@,$sharedstatedir,;t t
31640 s,@localstatedir@,$localstatedir,;t t
31641 s,@libdir@,$libdir,;t t
31642 s,@includedir@,$includedir,;t t
31643 s,@oldincludedir@,$oldincludedir,;t t
31644 s,@infodir@,$infodir,;t t
31645 s,@mandir@,$mandir,;t t
31646 s,@build_alias@,$build_alias,;t t
31647 s,@host_alias@,$host_alias,;t t
31648 s,@target_alias@,$target_alias,;t t
31649 s,@DEFS@,$DEFS,;t t
31650 s,@ECHO_C@,$ECHO_C,;t t
31651 s,@ECHO_N@,$ECHO_N,;t t
31652 s,@ECHO_T@,$ECHO_T,;t t
31653 s,@LIBS@,$LIBS,;t t
31654 s,@build@,$build,;t t
31655 s,@build_cpu@,$build_cpu,;t t
31656 s,@build_vendor@,$build_vendor,;t t
31657 s,@build_os@,$build_os,;t t
31658 s,@host@,$host,;t t
31659 s,@host_cpu@,$host_cpu,;t t
31660 s,@host_vendor@,$host_vendor,;t t
31661 s,@host_os@,$host_os,;t t
31662 s,@SET_MAKE@,$SET_MAKE,;t t
31663 s,@RANLIB@,$RANLIB,;t t
31664 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31665 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31666 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31667 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31668 s,@STD_CINCLUDES@,$STD_CINCLUDES,;t t
31669 s,@STD_CDEFINES@,$STD_CDEFINES,;t t
31670 s,@STD_CWARNINGS@,$STD_CWARNINGS,;t t
31671 s,@CCOPT@,$CCOPT,;t t
31672 s,@AR@,$AR,;t t
31673 s,@ARFLAGS@,$ARFLAGS,;t t
31674 s,@LN@,$LN,;t t
31675 s,@ETAGS@,$ETAGS,;t t
31676 s,@PERL@,$PERL,;t t
31677 s,@CC@,$CC,;t t
31678 s,@CFLAGS@,$CFLAGS,;t t
31679 s,@LDFLAGS@,$LDFLAGS,;t t
31680 s,@CPPFLAGS@,$CPPFLAGS,;t t
31681 s,@ac_ct_CC@,$ac_ct_CC,;t t
31682 s,@EXEEXT@,$EXEEXT,;t t
31683 s,@OBJEXT@,$OBJEXT,;t t
31684 s,@CPP@,$CPP,;t t
31685 s,@EGREP@,$EGREP,;t t
31686 s,@ISC_PLATFORM_NEEDSYSSELECTH@,$ISC_PLATFORM_NEEDSYSSELECTH,;t t
31687 s,@WANT_IRS_GR@,$WANT_IRS_GR,;t t
31688 s,@WANT_IRS_GR_OBJS@,$WANT_IRS_GR_OBJS,;t t
31689 s,@WANT_IRS_PW@,$WANT_IRS_PW,;t t
31690 s,@WANT_IRS_PW_OBJS@,$WANT_IRS_PW_OBJS,;t t
31691 s,@WANT_IRS_NIS@,$WANT_IRS_NIS,;t t
31692 s,@WANT_IRS_NIS_OBJS@,$WANT_IRS_NIS_OBJS,;t t
31693 s,@WANT_IRS_NISGR_OBJS@,$WANT_IRS_NISGR_OBJS,;t t
31694 s,@WANT_IRS_NISPW_OBJS@,$WANT_IRS_NISPW_OBJS,;t t
31695 s,@WANT_IRS_DBPW_OBJS@,$WANT_IRS_DBPW_OBJS,;t t
31696 s,@ALWAYS_DEFINES@,$ALWAYS_DEFINES,;t t
31697 s,@DO_PTHREADS@,$DO_PTHREADS,;t t
31698 s,@WANT_IRS_THREADSGR_OBJS@,$WANT_IRS_THREADSGR_OBJS,;t t
31699 s,@WANT_IRS_THREADSPW_OBJS@,$WANT_IRS_THREADSPW_OBJS,;t t
31700 s,@WANT_IRS_THREADS_OBJS@,$WANT_IRS_THREADS_OBJS,;t t
31701 s,@WANT_THREADS_OBJS@,$WANT_THREADS_OBJS,;t t
31702 s,@USE_IFNAMELINKID@,$USE_IFNAMELINKID,;t t
31703 s,@ISC_THREAD_DIR@,$ISC_THREAD_DIR,;t t
31704 s,@DAEMON_OBJS@,$DAEMON_OBJS,;t t
31705 s,@NEED_DAEMON@,$NEED_DAEMON,;t t
31706 s,@STRSEP_OBJS@,$STRSEP_OBJS,;t t
31707 s,@NEED_STRSEP@,$NEED_STRSEP,;t t
31708 s,@NEED_STRERROR@,$NEED_STRERROR,;t t
31709 s,@MKDEPCC@,$MKDEPCC,;t t
31710 s,@MKDEPCFLAGS@,$MKDEPCFLAGS,;t t
31711 s,@MKDEPPROG@,$MKDEPPROG,;t t
31712 s,@IRIX_DNSSEC_WARNINGS_HACK@,$IRIX_DNSSEC_WARNINGS_HACK,;t t
31713 s,@purify_path@,$purify_path,;t t
31714 s,@PURIFY@,$PURIFY,;t t
31715 s,@LN_S@,$LN_S,;t t
31716 s,@ECHO@,$ECHO,;t t
31717 s,@ac_ct_AR@,$ac_ct_AR,;t t
31718 s,@STRIP@,$STRIP,;t t
31719 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31720 s,@CXX@,$CXX,;t t
31721 s,@CXXFLAGS@,$CXXFLAGS,;t t
31722 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31723 s,@CXXCPP@,$CXXCPP,;t t
31724 s,@F77@,$F77,;t t
31725 s,@FFLAGS@,$FFLAGS,;t t
31726 s,@ac_ct_F77@,$ac_ct_F77,;t t
31727 s,@LIBTOOL@,$LIBTOOL,;t t
31728 s,@O@,$O,;t t
31729 s,@A@,$A,;t t
31730 s,@SA@,$SA,;t t
31731 s,@LIBTOOL_MKDEP_SED@,$LIBTOOL_MKDEP_SED,;t t
31732 s,@LIBTOOL_MODE_COMPILE@,$LIBTOOL_MODE_COMPILE,;t t
31733 s,@LIBTOOL_MODE_INSTALL@,$LIBTOOL_MODE_INSTALL,;t t
31734 s,@LIBTOOL_MODE_LINK@,$LIBTOOL_MODE_LINK,;t t
31735 s,@HAS_INET6_STRUCTS@,$HAS_INET6_STRUCTS,;t t
31736 s,@ISC_PLATFORM_NEEDNETINETIN6H@,$ISC_PLATFORM_NEEDNETINETIN6H,;t t
31737 s,@ISC_PLATFORM_NEEDNETINET6IN6H@,$ISC_PLATFORM_NEEDNETINET6IN6H,;t t
31738 s,@HAS_IN_ADDR6@,$HAS_IN_ADDR6,;t t
31739 s,@NEED_IN6ADDR_ANY@,$NEED_IN6ADDR_ANY,;t t
31740 s,@ISC_PLATFORM_HAVEIN6PKTINFO@,$ISC_PLATFORM_HAVEIN6PKTINFO,;t t
31741 s,@ISC_PLATFORM_FIXIN6ISADDR@,$ISC_PLATFORM_FIXIN6ISADDR,;t t
31742 s,@ISC_IPV6_H@,$ISC_IPV6_H,;t t
31743 s,@ISC_IPV6_O@,$ISC_IPV6_O,;t t
31744 s,@ISC_ISCIPV6_O@,$ISC_ISCIPV6_O,;t t
31745 s,@ISC_IPV6_C@,$ISC_IPV6_C,;t t
31746 s,@HAVE_SIN6_SCOPE_ID@,$HAVE_SIN6_SCOPE_ID,;t t
31747 s,@HAVE_SOCKADDR_STORAGE@,$HAVE_SOCKADDR_STORAGE,;t t
31748 s,@ISC_PLATFORM_NEEDNTOP@,$ISC_PLATFORM_NEEDNTOP,;t t
31749 s,@ISC_PLATFORM_NEEDPTON@,$ISC_PLATFORM_NEEDPTON,;t t
31750 s,@ISC_PLATFORM_NEEDATON@,$ISC_PLATFORM_NEEDATON,;t t
31751 s,@HAVE_SA_LEN@,$HAVE_SA_LEN,;t t
31752 s,@HAVE_MINIMUM_IFREQ@,$HAVE_MINIMUM_IFREQ,;t t
31753 s,@BSD_COMP@,$BSD_COMP,;t t
31754 s,@SOLARIS_BITTYPES@,$SOLARIS_BITTYPES,;t t
31755 s,@USE_FIONBIO_IOCTL@,$USE_FIONBIO_IOCTL,;t t
31756 s,@PORT_NONBLOCK@,$PORT_NONBLOCK,;t t
31757 s,@PORT_DIR@,$PORT_DIR,;t t
31758 s,@USE_POLL@,$USE_POLL,;t t
31759 s,@HAVE_MD5@,$HAVE_MD5,;t t
31760 s,@SOLARIS2@,$SOLARIS2,;t t
31761 s,@PORT_INCLUDE@,$PORT_INCLUDE,;t t
31762 s,@ISC_PLATFORM_MSGHDRFLAVOR@,$ISC_PLATFORM_MSGHDRFLAVOR,;t t
31763 s,@ISC_PLATFORM_NEEDPORTT@,$ISC_PLATFORM_NEEDPORTT,;t t
31764 s,@ISC_LWRES_ENDHOSTENTINT@,$ISC_LWRES_ENDHOSTENTINT,;t t
31765 s,@ISC_LWRES_SETNETENTINT@,$ISC_LWRES_SETNETENTINT,;t t
31766 s,@ISC_LWRES_ENDNETENTINT@,$ISC_LWRES_ENDNETENTINT,;t t
31767 s,@ISC_LWRES_GETHOSTBYADDRVOID@,$ISC_LWRES_GETHOSTBYADDRVOID,;t t
31768 s,@ISC_LWRES_NEEDHERRNO@,$ISC_LWRES_NEEDHERRNO,;t t
31769 s,@ISC_LWRES_GETIPNODEPROTO@,$ISC_LWRES_GETIPNODEPROTO,;t t
31770 s,@ISC_LWRES_GETADDRINFOPROTO@,$ISC_LWRES_GETADDRINFOPROTO,;t t
31771 s,@ISC_LWRES_GETNAMEINFOPROTO@,$ISC_LWRES_GETNAMEINFOPROTO,;t t
31772 s,@NEED_PSELECT@,$NEED_PSELECT,;t t
31773 s,@NEED_GETTIMEOFDAY@,$NEED_GETTIMEOFDAY,;t t
31774 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
31775 s,@ISC_PLATFORM_NEEDSTRSEP@,$ISC_PLATFORM_NEEDSTRSEP,;t t
31776 s,@ISC_PLATFORM_NEEDVSNPRINTF@,$ISC_PLATFORM_NEEDVSNPRINTF,;t t
31777 s,@ISC_EXTRA_OBJS@,$ISC_EXTRA_OBJS,;t t
31778 s,@ISC_EXTRA_SRCS@,$ISC_EXTRA_SRCS,;t t
31779 s,@USE_SYSERROR_LIST@,$USE_SYSERROR_LIST,;t t
31780 s,@ISC_PLATFORM_QUADFORMAT@,$ISC_PLATFORM_QUADFORMAT,;t t
31781 s,@ISC_SOCKLEN_T@,$ISC_SOCKLEN_T,;t t
31782 s,@GETGROUPLIST_ARGS@,$GETGROUPLIST_ARGS,;t t
31783 s,@NET_R_ARGS@,$NET_R_ARGS,;t t
31784 s,@NET_R_BAD@,$NET_R_BAD,;t t
31785 s,@NET_R_COPY@,$NET_R_COPY,;t t
31786 s,@NET_R_COPY_ARGS@,$NET_R_COPY_ARGS,;t t
31787 s,@NET_R_OK@,$NET_R_OK,;t t
31788 s,@NET_R_SETANSWER@,$NET_R_SETANSWER,;t t
31789 s,@NET_R_RETURN@,$NET_R_RETURN,;t t
31790 s,@GETNETBYADDR_ADDR_T@,$GETNETBYADDR_ADDR_T,;t t
31791 s,@NETENT_DATA@,$NETENT_DATA,;t t
31792 s,@NET_R_ENT_ARGS@,$NET_R_ENT_ARGS,;t t
31793 s,@NET_R_SET_RESULT@,$NET_R_SET_RESULT,;t t
31794 s,@NET_R_SET_RETURN@,$NET_R_SET_RETURN,;t t
31795 s,@NET_R_END_RESULT@,$NET_R_END_RESULT,;t t
31796 s,@NET_R_END_RETURN@,$NET_R_END_RETURN,;t t
31797 s,@GROUP_R_ARGS@,$GROUP_R_ARGS,;t t
31798 s,@GROUP_R_BAD@,$GROUP_R_BAD,;t t
31799 s,@GROUP_R_OK@,$GROUP_R_OK,;t t
31800 s,@GROUP_R_RETURN@,$GROUP_R_RETURN,;t t
31801 s,@GROUP_R_END_RESULT@,$GROUP_R_END_RESULT,;t t
31802 s,@GROUP_R_END_RETURN@,$GROUP_R_END_RETURN,;t t
31803 s,@GROUP_R_ENT_ARGS@,$GROUP_R_ENT_ARGS,;t t
31804 s,@GROUP_R_SET_RESULT@,$GROUP_R_SET_RESULT,;t t
31805 s,@GROUP_R_SET_RETURN@,$GROUP_R_SET_RETURN,;t t
31806 s,@HOST_R_ARGS@,$HOST_R_ARGS,;t t
31807 s,@HOST_R_BAD@,$HOST_R_BAD,;t t
31808 s,@HOST_R_COPY@,$HOST_R_COPY,;t t
31809 s,@HOST_R_COPY_ARGS@,$HOST_R_COPY_ARGS,;t t
31810 s,@HOST_R_ERRNO@,$HOST_R_ERRNO,;t t
31811 s,@HOST_R_OK@,$HOST_R_OK,;t t
31812 s,@HOST_R_RETURN@,$HOST_R_RETURN,;t t
31813 s,@HOST_R_SETANSWER@,$HOST_R_SETANSWER,;t t
31814 s,@HOSTENT_DATA@,$HOSTENT_DATA,;t t
31815 s,@HOST_R_END_RESULT@,$HOST_R_END_RESULT,;t t
31816 s,@HOST_R_END_RETURN@,$HOST_R_END_RETURN,;t t
31817 s,@HOST_R_ENT_ARGS@,$HOST_R_ENT_ARGS,;t t
31818 s,@HOST_R_SET_RESULT@,$HOST_R_SET_RESULT,;t t
31819 s,@HOST_R_SET_RETURN@,$HOST_R_SET_RETURN,;t t
31820 s,@SETPWENT_VOID@,$SETPWENT_VOID,;t t
31821 s,@SETGRENT_VOID@,$SETGRENT_VOID,;t t
31822 s,@NGR_R_ARGS@,$NGR_R_ARGS,;t t
31823 s,@NGR_R_BAD@,$NGR_R_BAD,;t t
31824 s,@NGR_R_COPY@,$NGR_R_COPY,;t t
31825 s,@NGR_R_COPY_ARGS@,$NGR_R_COPY_ARGS,;t t
31826 s,@NGR_R_OK@,$NGR_R_OK,;t t
31827 s,@NGR_R_RETURN@,$NGR_R_RETURN,;t t
31828 s,@NGR_R_PRIVATE@,$NGR_R_PRIVATE,;t t
31829 s,@NGR_R_END_RESULT@,$NGR_R_END_RESULT,;t t
31830 s,@NGR_R_END_RETURN@,$NGR_R_END_RETURN,;t t
31831 s,@NGR_R_ENT_ARGS@,$NGR_R_ENT_ARGS,;t t
31832 s,@NGR_R_SET_RESULT@,$NGR_R_SET_RESULT,;t t
31833 s,@NGR_R_SET_RETURN@,$NGR_R_SET_RETURN,;t t
31834 s,@PROTO_R_ARGS@,$PROTO_R_ARGS,;t t
31835 s,@PROTO_R_BAD@,$PROTO_R_BAD,;t t
31836 s,@PROTO_R_COPY@,$PROTO_R_COPY,;t t
31837 s,@PROTO_R_COPY_ARGS@,$PROTO_R_COPY_ARGS,;t t
31838 s,@PROTO_R_OK@,$PROTO_R_OK,;t t
31839 s,@PROTO_R_SETANSWER@,$PROTO_R_SETANSWER,;t t
31840 s,@PROTO_R_RETURN@,$PROTO_R_RETURN,;t t
31841 s,@PROTO_R_END_RESULT@,$PROTO_R_END_RESULT,;t t
31842 s,@PROTO_R_END_RETURN@,$PROTO_R_END_RETURN,;t t
31843 s,@PROTO_R_ENT_ARGS@,$PROTO_R_ENT_ARGS,;t t
31844 s,@PROTO_R_SET_RESULT@,$PROTO_R_SET_RESULT,;t t
31845 s,@PROTO_R_SET_RETURN@,$PROTO_R_SET_RETURN,;t t
31846 s,@PASS_R_ARGS@,$PASS_R_ARGS,;t t
31847 s,@PASS_R_BAD@,$PASS_R_BAD,;t t
31848 s,@PASS_R_COPY@,$PASS_R_COPY,;t t
31849 s,@PASS_R_COPY_ARGS@,$PASS_R_COPY_ARGS,;t t
31850 s,@PASS_R_OK@,$PASS_R_OK,;t t
31851 s,@PASS_R_RETURN@,$PASS_R_RETURN,;t t
31852 s,@PASS_R_END_RESULT@,$PASS_R_END_RESULT,;t t
31853 s,@PASS_R_END_RETURN@,$PASS_R_END_RETURN,;t t
31854 s,@PASS_R_ENT_ARGS@,$PASS_R_ENT_ARGS,;t t
31855 s,@PASS_R_SET_RESULT@,$PASS_R_SET_RESULT,;t t
31856 s,@PASS_R_SET_RETURN@,$PASS_R_SET_RETURN,;t t
31857 s,@SERV_R_ARGS@,$SERV_R_ARGS,;t t
31858 s,@SERV_R_BAD@,$SERV_R_BAD,;t t
31859 s,@SERV_R_COPY@,$SERV_R_COPY,;t t
31860 s,@SERV_R_COPY_ARGS@,$SERV_R_COPY_ARGS,;t t
31861 s,@SERV_R_OK@,$SERV_R_OK,;t t
31862 s,@SERV_R_SETANSWER@,$SERV_R_SETANSWER,;t t
31863 s,@SERV_R_RETURN@,$SERV_R_RETURN,;t t
31864 s,@SERV_R_END_RESULT@,$SERV_R_END_RESULT,;t t
31865 s,@SERV_R_END_RETURN@,$SERV_R_END_RETURN,;t t
31866 s,@SERV_R_ENT_ARGS@,$SERV_R_ENT_ARGS,;t t
31867 s,@SERV_R_SET_RESULT@,$SERV_R_SET_RESULT,;t t
31868 s,@SERV_R_SET_RETURN@,$SERV_R_SET_RETURN,;t t
31869 s,@SETNETGRENT_ARGS@,$SETNETGRENT_ARGS,;t t
31870 s,@INNETGR_ARGS@,$INNETGR_ARGS,;t t
31871 s,@BIND9_TOP_BUILDDIR@,$BIND9_TOP_BUILDDIR,;t t
31872 s,@BIND9_VERSION@,$BIND9_VERSION,;t t
31873 s,@LIBOBJS@,$LIBOBJS,;t t
31874 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31875 /@BIND9_INCLUDES@/r $BIND9_INCLUDES
31876 s,@BIND9_INCLUDES@,,;t t
31877 /@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
31878 s,@BIND9_MAKE_RULES@,,;t t
31879 /@LIBBIND_API@/r $LIBBIND_API
31880 s,@LIBBIND_API@,,;t t
31881 CEOF
31882
31883 _ACEOF
31884
31885   cat >>$CONFIG_STATUS <<\_ACEOF
31886   # Split the substitutions into bite-sized pieces for seds with
31887   # small command number limits, like on Digital OSF/1 and HP-UX.
31888   ac_max_sed_lines=48
31889   ac_sed_frag=1 # Number of current file.
31890   ac_beg=1 # First line for current file.
31891   ac_end=$ac_max_sed_lines # Line after last line for current file.
31892   ac_more_lines=:
31893   ac_sed_cmds=
31894   while $ac_more_lines; do
31895     if test $ac_beg -gt 1; then
31896       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31897     else
31898       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31899     fi
31900     if test ! -s $tmp/subs.frag; then
31901       ac_more_lines=false
31902     else
31903       # The purpose of the label and of the branching condition is to
31904       # speed up the sed processing (if there are no `@' at all, there
31905       # is no need to browse any of the substitutions).
31906       # These are the two extra sed commands mentioned above.
31907       (echo ':t
31908   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31909       if test -z "$ac_sed_cmds"; then
31910         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31911       else
31912         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31913       fi
31914       ac_sed_frag=`expr $ac_sed_frag + 1`
31915       ac_beg=$ac_end
31916       ac_end=`expr $ac_end + $ac_max_sed_lines`
31917     fi
31918   done
31919   if test -z "$ac_sed_cmds"; then
31920     ac_sed_cmds=cat
31921   fi
31922 fi # test -n "$CONFIG_FILES"
31923
31924 _ACEOF
31925 cat >>$CONFIG_STATUS <<\_ACEOF
31926 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31927   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31928   case $ac_file in
31929   - | *:- | *:-:* ) # input from stdin
31930         cat >$tmp/stdin
31931         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31932         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31933   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31934         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31935   * )   ac_file_in=$ac_file.in ;;
31936   esac
31937
31938   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31939   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31941          X"$ac_file" : 'X\(//\)[^/]' \| \
31942          X"$ac_file" : 'X\(//\)$' \| \
31943          X"$ac_file" : 'X\(/\)' \| \
31944          .     : '\(.\)' 2>/dev/null ||
31945 echo X"$ac_file" |
31946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31947           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31948           /^X\(\/\/\)$/{ s//\1/; q; }
31949           /^X\(\/\).*/{ s//\1/; q; }
31950           s/.*/./; q'`
31951   { if $as_mkdir_p; then
31952     mkdir -p "$ac_dir"
31953   else
31954     as_dir="$ac_dir"
31955     as_dirs=
31956     while test ! -d "$as_dir"; do
31957       as_dirs="$as_dir $as_dirs"
31958       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31960          X"$as_dir" : 'X\(//\)[^/]' \| \
31961          X"$as_dir" : 'X\(//\)$' \| \
31962          X"$as_dir" : 'X\(/\)' \| \
31963          .     : '\(.\)' 2>/dev/null ||
31964 echo X"$as_dir" |
31965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31966           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31967           /^X\(\/\/\)$/{ s//\1/; q; }
31968           /^X\(\/\).*/{ s//\1/; q; }
31969           s/.*/./; q'`
31970     done
31971     test ! -n "$as_dirs" || mkdir $as_dirs
31972   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31973 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31974    { (exit 1); exit 1; }; }; }
31975
31976   ac_builddir=.
31977
31978 if test "$ac_dir" != .; then
31979   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31980   # A "../" for each directory in $ac_dir_suffix.
31981   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31982 else
31983   ac_dir_suffix= ac_top_builddir=
31984 fi
31985
31986 case $srcdir in
31987   .)  # No --srcdir option.  We are building in place.
31988     ac_srcdir=.
31989     if test -z "$ac_top_builddir"; then
31990        ac_top_srcdir=.
31991     else
31992        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31993     fi ;;
31994   [\\/]* | ?:[\\/]* )  # Absolute path.
31995     ac_srcdir=$srcdir$ac_dir_suffix;
31996     ac_top_srcdir=$srcdir ;;
31997   *) # Relative path.
31998     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31999     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32000 esac
32001
32002 # Do not use `cd foo && pwd` to compute absolute paths, because
32003 # the directories may not exist.
32004 case `pwd` in
32005 .) ac_abs_builddir="$ac_dir";;
32006 *)
32007   case "$ac_dir" in
32008   .) ac_abs_builddir=`pwd`;;
32009   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32010   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32011   esac;;
32012 esac
32013 case $ac_abs_builddir in
32014 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32015 *)
32016   case ${ac_top_builddir}. in
32017   .) ac_abs_top_builddir=$ac_abs_builddir;;
32018   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32019   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32020   esac;;
32021 esac
32022 case $ac_abs_builddir in
32023 .) ac_abs_srcdir=$ac_srcdir;;
32024 *)
32025   case $ac_srcdir in
32026   .) ac_abs_srcdir=$ac_abs_builddir;;
32027   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32028   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32029   esac;;
32030 esac
32031 case $ac_abs_builddir in
32032 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32033 *)
32034   case $ac_top_srcdir in
32035   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32036   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32037   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32038   esac;;
32039 esac
32040
32041
32042   case $INSTALL in
32043   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32044   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32045   esac
32046
32047   if test x"$ac_file" != x-; then
32048     { echo "$as_me:$LINENO: creating $ac_file" >&5
32049 echo "$as_me: creating $ac_file" >&6;}
32050     rm -f "$ac_file"
32051   fi
32052   # Let's still pretend it is `configure' which instantiates (i.e., don't
32053   # use $as_me), people would be surprised to read:
32054   #    /* config.h.  Generated by config.status.  */
32055   if test x"$ac_file" = x-; then
32056     configure_input=
32057   else
32058     configure_input="$ac_file.  "
32059   fi
32060   configure_input=$configure_input"Generated from `echo $ac_file_in |
32061                                      sed 's,.*/,,'` by configure."
32062
32063   # First look for the input files in the build tree, otherwise in the
32064   # src tree.
32065   ac_file_inputs=`IFS=:
32066     for f in $ac_file_in; do
32067       case $f in
32068       -) echo $tmp/stdin ;;
32069       [\\/$]*)
32070          # Absolute (can't be DOS-style, as IFS=:)
32071          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32072 echo "$as_me: error: cannot find input file: $f" >&2;}
32073    { (exit 1); exit 1; }; }
32074          echo "$f";;
32075       *) # Relative
32076          if test -f "$f"; then
32077            # Build tree
32078            echo "$f"
32079          elif test -f "$srcdir/$f"; then
32080            # Source tree
32081            echo "$srcdir/$f"
32082          else
32083            # /dev/null tree
32084            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32085 echo "$as_me: error: cannot find input file: $f" >&2;}
32086    { (exit 1); exit 1; }; }
32087          fi;;
32088       esac
32089     done` || { (exit 1); exit 1; }
32090 _ACEOF
32091 cat >>$CONFIG_STATUS <<_ACEOF
32092   sed "$ac_vpsub
32093 $extrasub
32094 _ACEOF
32095 cat >>$CONFIG_STATUS <<\_ACEOF
32096 :t
32097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32098 s,@configure_input@,$configure_input,;t t
32099 s,@srcdir@,$ac_srcdir,;t t
32100 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32101 s,@top_srcdir@,$ac_top_srcdir,;t t
32102 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32103 s,@builddir@,$ac_builddir,;t t
32104 s,@abs_builddir@,$ac_abs_builddir,;t t
32105 s,@top_builddir@,$ac_top_builddir,;t t
32106 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32107 s,@INSTALL@,$ac_INSTALL,;t t
32108 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32109   rm -f $tmp/stdin
32110   if test x"$ac_file" != x-; then
32111     mv $tmp/out $ac_file
32112   else
32113     cat $tmp/out
32114     rm -f $tmp/out
32115   fi
32116
32117 done
32118 _ACEOF
32119 cat >>$CONFIG_STATUS <<\_ACEOF
32120
32121 #
32122 # CONFIG_HEADER section.
32123 #
32124
32125 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32126 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32127 #
32128 # ac_d sets the value in "#define NAME VALUE" lines.
32129 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32130 ac_dB='[         ].*$,\1#\2'
32131 ac_dC=' '
32132 ac_dD=',;t'
32133 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32134 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32135 ac_uB='$,\1#\2define\3'
32136 ac_uC=' '
32137 ac_uD=',;t'
32138
32139 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32140   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32141   case $ac_file in
32142   - | *:- | *:-:* ) # input from stdin
32143         cat >$tmp/stdin
32144         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32145         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32146   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32147         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32148   * )   ac_file_in=$ac_file.in ;;
32149   esac
32150
32151   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32152 echo "$as_me: creating $ac_file" >&6;}
32153
32154   # First look for the input files in the build tree, otherwise in the
32155   # src tree.
32156   ac_file_inputs=`IFS=:
32157     for f in $ac_file_in; do
32158       case $f in
32159       -) echo $tmp/stdin ;;
32160       [\\/$]*)
32161          # Absolute (can't be DOS-style, as IFS=:)
32162          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32163 echo "$as_me: error: cannot find input file: $f" >&2;}
32164    { (exit 1); exit 1; }; }
32165          # Do quote $f, to prevent DOS paths from being IFS'd.
32166          echo "$f";;
32167       *) # Relative
32168          if test -f "$f"; then
32169            # Build tree
32170            echo "$f"
32171          elif test -f "$srcdir/$f"; then
32172            # Source tree
32173            echo "$srcdir/$f"
32174          else
32175            # /dev/null tree
32176            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32177 echo "$as_me: error: cannot find input file: $f" >&2;}
32178    { (exit 1); exit 1; }; }
32179          fi;;
32180       esac
32181     done` || { (exit 1); exit 1; }
32182   # Remove the trailing spaces.
32183   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32184
32185 _ACEOF
32186
32187 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32188 # `conftest.undefs', that substitutes the proper values into
32189 # config.h.in to produce config.h.  The first handles `#define'
32190 # templates, and the second `#undef' templates.
32191 # And first: Protect against being on the right side of a sed subst in
32192 # config.status.  Protect against being in an unquoted here document
32193 # in config.status.
32194 rm -f conftest.defines conftest.undefs
32195 # Using a here document instead of a string reduces the quoting nightmare.
32196 # Putting comments in sed scripts is not portable.
32197 #
32198 # `end' is used to avoid that the second main sed command (meant for
32199 # 0-ary CPP macros) applies to n-ary macro definitions.
32200 # See the Autoconf documentation for `clear'.
32201 cat >confdef2sed.sed <<\_ACEOF
32202 s/[\\&,]/\\&/g
32203 s,[\\$`],\\&,g
32204 t clear
32205 : clear
32206 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32207 t end
32208 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32209 : end
32210 _ACEOF
32211 # If some macros were called several times there might be several times
32212 # the same #defines, which is useless.  Nevertheless, we may not want to
32213 # sort them, since we want the *last* AC-DEFINE to be honored.
32214 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32215 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32216 rm -f confdef2sed.sed
32217
32218 # This sed command replaces #undef with comments.  This is necessary, for
32219 # example, in the case of _POSIX_SOURCE, which is predefined and required
32220 # on some systems where configure will not decide to define it.
32221 cat >>conftest.undefs <<\_ACEOF
32222 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32223 _ACEOF
32224
32225 # Break up conftest.defines because some shells have a limit on the size
32226 # of here documents, and old seds have small limits too (100 cmds).
32227 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32228 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32229 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32230 echo '  :' >>$CONFIG_STATUS
32231 rm -f conftest.tail
32232 while grep . conftest.defines >/dev/null
32233 do
32234   # Write a limited-size here document to $tmp/defines.sed.
32235   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32236   # Speed up: don't consider the non `#define' lines.
32237   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32238   # Work around the forget-to-reset-the-flag bug.
32239   echo 't clr' >>$CONFIG_STATUS
32240   echo ': clr' >>$CONFIG_STATUS
32241   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32242   echo 'CEOF
32243   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32244   rm -f $tmp/in
32245   mv $tmp/out $tmp/in
32246 ' >>$CONFIG_STATUS
32247   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32248   rm -f conftest.defines
32249   mv conftest.tail conftest.defines
32250 done
32251 rm -f conftest.defines
32252 echo '  fi # grep' >>$CONFIG_STATUS
32253 echo >>$CONFIG_STATUS
32254
32255 # Break up conftest.undefs because some shells have a limit on the size
32256 # of here documents, and old seds have small limits too (100 cmds).
32257 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32258 rm -f conftest.tail
32259 while grep . conftest.undefs >/dev/null
32260 do
32261   # Write a limited-size here document to $tmp/undefs.sed.
32262   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32263   # Speed up: don't consider the non `#undef'
32264   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32265   # Work around the forget-to-reset-the-flag bug.
32266   echo 't clr' >>$CONFIG_STATUS
32267   echo ': clr' >>$CONFIG_STATUS
32268   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32269   echo 'CEOF
32270   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32271   rm -f $tmp/in
32272   mv $tmp/out $tmp/in
32273 ' >>$CONFIG_STATUS
32274   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32275   rm -f conftest.undefs
32276   mv conftest.tail conftest.undefs
32277 done
32278 rm -f conftest.undefs
32279
32280 cat >>$CONFIG_STATUS <<\_ACEOF
32281   # Let's still pretend it is `configure' which instantiates (i.e., don't
32282   # use $as_me), people would be surprised to read:
32283   #    /* config.h.  Generated by config.status.  */
32284   if test x"$ac_file" = x-; then
32285     echo "/* Generated by configure.  */" >$tmp/config.h
32286   else
32287     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32288   fi
32289   cat $tmp/in >>$tmp/config.h
32290   rm -f $tmp/in
32291   if test x"$ac_file" != x-; then
32292     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32293       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32294 echo "$as_me: $ac_file is unchanged" >&6;}
32295     else
32296       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32298          X"$ac_file" : 'X\(//\)[^/]' \| \
32299          X"$ac_file" : 'X\(//\)$' \| \
32300          X"$ac_file" : 'X\(/\)' \| \
32301          .     : '\(.\)' 2>/dev/null ||
32302 echo X"$ac_file" |
32303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32304           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32305           /^X\(\/\/\)$/{ s//\1/; q; }
32306           /^X\(\/\).*/{ s//\1/; q; }
32307           s/.*/./; q'`
32308       { if $as_mkdir_p; then
32309     mkdir -p "$ac_dir"
32310   else
32311     as_dir="$ac_dir"
32312     as_dirs=
32313     while test ! -d "$as_dir"; do
32314       as_dirs="$as_dir $as_dirs"
32315       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32317          X"$as_dir" : 'X\(//\)[^/]' \| \
32318          X"$as_dir" : 'X\(//\)$' \| \
32319          X"$as_dir" : 'X\(/\)' \| \
32320          .     : '\(.\)' 2>/dev/null ||
32321 echo X"$as_dir" |
32322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32323           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32324           /^X\(\/\/\)$/{ s//\1/; q; }
32325           /^X\(\/\).*/{ s//\1/; q; }
32326           s/.*/./; q'`
32327     done
32328     test ! -n "$as_dirs" || mkdir $as_dirs
32329   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32331    { (exit 1); exit 1; }; }; }
32332
32333       rm -f $ac_file
32334       mv $tmp/config.h $ac_file
32335     fi
32336   else
32337     cat $tmp/config.h
32338     rm -f $tmp/config.h
32339   fi
32340 done
32341 _ACEOF
32342
32343 cat >>$CONFIG_STATUS <<\_ACEOF
32344
32345 { (exit 0); exit 0; }
32346 _ACEOF
32347 chmod +x $CONFIG_STATUS
32348 ac_clean_files=$ac_clean_files_save
32349
32350
32351 # configure is writing to config.log, and then calls config.status.
32352 # config.status does its own redirection, appending to config.log.
32353 # Unfortunately, on DOS this fails, as config.log is still kept open
32354 # by configure, so config.status won't be able to write to it; its
32355 # output is simply discarded.  So we exec the FD to /dev/null,
32356 # effectively closing config.log, so it can be properly (re)opened and
32357 # appended to by config.status.  When coming back to configure, we
32358 # need to make the FD available again.
32359 if test "$no_create" != yes; then
32360   ac_cs_success=:
32361   ac_config_status_args=
32362   test "$silent" = yes &&
32363     ac_config_status_args="$ac_config_status_args --quiet"
32364   exec 5>/dev/null
32365   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32366   exec 5>>config.log
32367   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32368   # would make configure fail if this is the last instruction.
32369   $ac_cs_success || { (exit 1); exit 1; }
32370 fi
32371
32372
32373 # Tell Emacs to edit this file in shell mode.
32374 # Local Variables:
32375 # mode: sh
32376 # End: