/[pcre]/code/trunk/configure
ViewVC logotype

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91 - (show annotations)
Sat Feb 24 21:41:34 2007 UTC (12 years, 5 months ago) by nigel
File size: 695709 byte(s)
Load pcre-6.7 into code/trunk.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="dftables.c"
429 ac_unique_file="pcre.h"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pcre_have_bits_type_traits pcre_have_type_traits MAYBE_CPP_TARGETS HAVE_CPP pcre_have_long_long pcre_have_ulong_long BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXXLDFLAGS EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT MATCH_LIMIT_RECURSION NEWLINE NO_RECURSE PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION PCRE_CPPLIB_VERSION PCRE_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
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_CXX_set=${CXX+set}
925 ac_env_CXX_value=$CXX
926 ac_cv_env_CXX_set=${CXX+set}
927 ac_cv_env_CXX_value=$CXX
928 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
929 ac_env_CXXFLAGS_value=$CXXFLAGS
930 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
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 --disable-cpp disable C++ support
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-utf8 enable UTF8 support
1031 --enable-unicode-properties enable Unicode properties support
1032 --enable-newline-is-cr use CR as the newline character
1033 --enable-newline-is-lf use LF as the newline character
1034 --enable-newline-is-crlf use CRLF as the newline sequence
1035 --enable-ebcdic assume EBCDIC coding rather than ASCII
1036 --disable-stack-for-recursion disable use of stack recursion when matching
1037
1038 Optional Packages:
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1043 both]
1044 --with-tags[=TAGS]
1045 include additional configurations [automatic]
1046 --with-posix-malloc-threshold=10 threshold for POSIX malloc usage
1047 --with-link-size=2 internal link size (2, 3, or 4 allowed)
1048 --with-match-limit=10000000 default limit on internal looping
1049 --with-match-limit-recursion=10000000 default limit on internal recursion
1050
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CPP C preprocessor
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1064
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1067
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1073 ac_popdir=`pwd`
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1076 ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083 ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087 .) # No --srcdir option. We are building in place.
1088 ac_srcdir=.
1089 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=.
1091 else
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 fi ;;
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1097 *) # Relative path.
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1106 *)
1107 case "$ac_dir" in
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *)
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1124 *)
1125 case $ac_srcdir in
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *)
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138 esac;;
1139 esac
1140
1141 cd $ac_dir
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1144 echo
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1147 echo
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1151 echo
1152 $ac_configure --help
1153 else
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 fi
1156 cd $ac_popdir
1157 done
1158 fi
1159
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162 cat <<\_ACEOF
1163
1164 Copyright (C) 2003 Free Software Foundation, Inc.
1165 This configure script is free software; the Free Software Foundation
1166 gives unlimited permission to copy, distribute and modify it.
1167 _ACEOF
1168 exit 0
1169 fi
1170 exec 5>config.log
1171 cat >&5 <<_ACEOF
1172 This file contains any messages produced by compilers while
1173 running configure, to aid debugging if configure makes a mistake.
1174
1175 It was created by $as_me, which was
1176 generated by GNU Autoconf 2.59. Invocation command line was
1177
1178 $ $0 $@
1179
1180 _ACEOF
1181 {
1182 cat <<_ASUNAME
1183 ## --------- ##
1184 ## Platform. ##
1185 ## --------- ##
1186
1187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1195
1196 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1197 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1200 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1201 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1202 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1203
1204 _ASUNAME
1205
1206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207 for as_dir in $PATH
1208 do
1209 IFS=$as_save_IFS
1210 test -z "$as_dir" && as_dir=.
1211 echo "PATH: $as_dir"
1212 done
1213
1214 } >&5
1215
1216 cat >&5 <<_ACEOF
1217
1218
1219 ## ----------- ##
1220 ## Core tests. ##
1221 ## ----------- ##
1222
1223 _ACEOF
1224
1225
1226 # Keep a trace of the command line.
1227 # Strip out --no-create and --no-recursion so they do not pile up.
1228 # Strip out --silent because we don't want to record it for future runs.
1229 # Also quote any args containing shell meta-characters.
1230 # Make two passes to allow for proper duplicate-argument suppression.
1231 ac_configure_args=
1232 ac_configure_args0=
1233 ac_configure_args1=
1234 ac_sep=
1235 ac_must_keep_next=false
1236 for ac_pass in 1 2
1237 do
1238 for ac_arg
1239 do
1240 case $ac_arg in
1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 continue ;;
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 esac
1248 case $ac_pass in
1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250 2)
1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252 if test $ac_must_keep_next = true; then
1253 ac_must_keep_next=false # Got value, back to normal.
1254 else
1255 case $ac_arg in
1256 *=* | --config-cache | -C | -disable-* | --disable-* \
1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259 | -with-* | --with-* | -without-* | --without-* | --x)
1260 case "$ac_configure_args0 " in
1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 esac
1263 ;;
1264 -* ) ac_must_keep_next=true ;;
1265 esac
1266 fi
1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268 # Get rid of the leading space.
1269 ac_sep=" "
1270 ;;
1271 esac
1272 done
1273 done
1274 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277 # When interrupted or exit'd, cleanup temporary files, and complete
1278 # config.log. We remove comments because anyway the quotes in there
1279 # would cause problems or look ugly.
1280 # WARNING: Be sure not to use single quotes in there, as some shells,
1281 # such as our DU 5.0 friend, will then `close' the trap.
1282 trap 'exit_status=$?
1283 # Save into config.log some information that might help in debugging.
1284 {
1285 echo
1286
1287 cat <<\_ASBOX
1288 ## ---------------- ##
1289 ## Cache variables. ##
1290 ## ---------------- ##
1291 _ASBOX
1292 echo
1293 # The following way of writing the cache mishandles newlines in values,
1294 {
1295 (set) 2>&1 |
1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 *ac_space=\ *)
1298 sed -n \
1299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301 ;;
1302 *)
1303 sed -n \
1304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305 ;;
1306 esac;
1307 }
1308 echo
1309
1310 cat <<\_ASBOX
1311 ## ----------------- ##
1312 ## Output variables. ##
1313 ## ----------------- ##
1314 _ASBOX
1315 echo
1316 for ac_var in $ac_subst_vars
1317 do
1318 eval ac_val=$`echo $ac_var`
1319 echo "$ac_var='"'"'$ac_val'"'"'"
1320 done | sort
1321 echo
1322
1323 if test -n "$ac_subst_files"; then
1324 cat <<\_ASBOX
1325 ## ------------- ##
1326 ## Output files. ##
1327 ## ------------- ##
1328 _ASBOX
1329 echo
1330 for ac_var in $ac_subst_files
1331 do
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1336 fi
1337
1338 if test -s confdefs.h; then
1339 cat <<\_ASBOX
1340 ## ----------- ##
1341 ## confdefs.h. ##
1342 ## ----------- ##
1343 _ASBOX
1344 echo
1345 sed "/^$/d" confdefs.h | sort
1346 echo
1347 fi
1348 test "$ac_signal" != 0 &&
1349 echo "$as_me: caught signal $ac_signal"
1350 echo "$as_me: exit $exit_status"
1351 } >&5
1352 rm -f core *.core &&
1353 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 exit $exit_status
1355 ' 0
1356 for ac_signal in 1 2 13 15; do
1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358 done
1359 ac_signal=0
1360
1361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1362 rm -rf conftest* confdefs.h
1363 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 echo >confdefs.h
1365
1366 # Predefined preprocessor variables.
1367
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_NAME "$PACKAGE_NAME"
1370 _ACEOF
1371
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_STRING "$PACKAGE_STRING"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390 _ACEOF
1391
1392
1393 # Let the site file select an alternate cache file if it wants to.
1394 # Prefer explicitly selected file to automatically selected ones.
1395 if test -z "$CONFIG_SITE"; then
1396 if test "x$prefix" != xNONE; then
1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398 else
1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 fi
1401 fi
1402 for ac_site_file in $CONFIG_SITE; do
1403 if test -r "$ac_site_file"; then
1404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405 echo "$as_me: loading site script $ac_site_file" >&6;}
1406 sed 's/^/| /' "$ac_site_file" >&5
1407 . "$ac_site_file"
1408 fi
1409 done
1410
1411 if test -r "$cache_file"; then
1412 # Some versions of bash will fail to source /dev/null (special
1413 # files actually), so we avoid doing that.
1414 if test -f "$cache_file"; then
1415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416 echo "$as_me: loading cache $cache_file" >&6;}
1417 case $cache_file in
1418 [\\/]* | ?:[\\/]* ) . $cache_file;;
1419 *) . ./$cache_file;;
1420 esac
1421 fi
1422 else
1423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424 echo "$as_me: creating cache $cache_file" >&6;}
1425 >$cache_file
1426 fi
1427
1428 # Check that the precious variables saved in the cache have kept the same
1429 # value.
1430 ac_cache_corrupted=false
1431 for ac_var in `(set) 2>&1 |
1432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434 eval ac_new_set=\$ac_env_${ac_var}_set
1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436 eval ac_new_val="\$ac_env_${ac_var}_value"
1437 case $ac_old_set,$ac_new_set in
1438 set,)
1439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1442 ,set)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,);;
1447 *)
1448 if test "x$ac_old_val" != "x$ac_new_val"; then
1449 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1452 echo "$as_me: former value: $ac_old_val" >&2;}
1453 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1454 echo "$as_me: current value: $ac_new_val" >&2;}
1455 ac_cache_corrupted=:
1456 fi;;
1457 esac
1458 # Pass precious variables to config.status.
1459 if test "$ac_new_set" = set; then
1460 case $ac_new_val in
1461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463 *) ac_arg=$ac_var=$ac_new_val ;;
1464 esac
1465 case " $ac_configure_args " in
1466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1467 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468 esac
1469 fi
1470 done
1471 if $ac_cache_corrupted; then
1472 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476 { (exit 1); exit 1; }; }
1477 fi
1478
1479 ac_ext=c
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508 ac_config_headers="$ac_config_headers config.h"
1509
1510
1511
1512 POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10
1513
1514
1515 PCRE_LIB_VERSION=0:1:0
1516 PCRE_POSIXLIB_VERSION=0:0:0
1517 PCRE_CPPLIB_VERSION=0:0:0
1518
1519
1520 PCRE_MAJOR=`grep '#define PCRE_MAJOR' ${srcdir}/pcre.h | cut -c 29-`
1521 PCRE_MINOR=`grep '#define PCRE_MINOR' ${srcdir}/pcre.h | cut -c 29-`
1522 PCRE_PRERELEASE=`grep '#define PCRE_PRERELEASE' ${srcdir}/pcre.h | cut -c 29-`
1523 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}${PCRE_PRERELEASE}
1524
1525
1526 # Check whether --enable-cpp or --disable-cpp was given.
1527 if test "${enable_cpp+set}" = set; then
1528 enableval="$enable_cpp"
1529 want_cpp="$enableval"
1530 else
1531 want_cpp=yes
1532 fi;
1533
1534
1535 ac_ext=c
1536 ac_cpp='$CPP $CPPFLAGS'
1537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1540 if test -n "$ac_tool_prefix"; then
1541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1553 do
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562 done
1563 done
1564
1565 fi
1566 fi
1567 CC=$ac_cv_prog_CC
1568 if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1571 else
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576 fi
1577 if test -z "$ac_cv_prog_CC"; then
1578 ac_ct_CC=$CC
1579 # Extract the first word of "gcc", so it can be a program name with args.
1580 set dummy gcc; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_ac_ct_CC="gcc"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 break 2
1599 fi
1600 done
1601 done
1602
1603 fi
1604 fi
1605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606 if test -n "$ac_ct_CC"; then
1607 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1608 echo "${ECHO_T}$ac_ct_CC" >&6
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 fi
1613
1614 CC=$ac_ct_CC
1615 else
1616 CC="$ac_cv_prog_CC"
1617 fi
1618
1619 if test -z "$CC"; then
1620 if test -n "$ac_tool_prefix"; then
1621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1622 set dummy ${ac_tool_prefix}cc; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 else
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1633 do
1634 IFS=$as_save_IFS
1635 test -z "$as_dir" && as_dir=.
1636 for ac_exec_ext in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638 ac_cv_prog_CC="${ac_tool_prefix}cc"
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640 break 2
1641 fi
1642 done
1643 done
1644
1645 fi
1646 fi
1647 CC=$ac_cv_prog_CC
1648 if test -n "$CC"; then
1649 echo "$as_me:$LINENO: result: $CC" >&5
1650 echo "${ECHO_T}$CC" >&6
1651 else
1652 echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1654 fi
1655
1656 fi
1657 if test -z "$ac_cv_prog_CC"; then
1658 ac_ct_CC=$CC
1659 # Extract the first word of "cc", so it can be a program name with args.
1660 set dummy cc; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="cc"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680 done
1681 done
1682
1683 fi
1684 fi
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692 fi
1693
1694 CC=$ac_ct_CC
1695 else
1696 CC="$ac_cv_prog_CC"
1697 fi
1698
1699 fi
1700 if test -z "$CC"; then
1701 # Extract the first word of "cc", so it can be a program name with args.
1702 set dummy cc; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 if test -n "$CC"; then
1709 ac_cv_prog_CC="$CC" # Let the user override the test.
1710 else
1711 ac_prog_rejected=no
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1720 ac_prog_rejected=yes
1721 continue
1722 fi
1723 ac_cv_prog_CC="cc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1726 fi
1727 done
1728 done
1729
1730 if test $ac_prog_rejected = yes; then
1731 # We found a bogon in the path, so make sure we never use it.
1732 set dummy $ac_cv_prog_CC
1733 shift
1734 if test $# != 0; then
1735 # We chose a different compiler from the bogus one.
1736 # However, it has the same basename, so the bogon will be chosen
1737 # first if we set CC to just the basename; use the full file name.
1738 shift
1739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1740 fi
1741 fi
1742 fi
1743 fi
1744 CC=$ac_cv_prog_CC
1745 if test -n "$CC"; then
1746 echo "$as_me:$LINENO: result: $CC" >&5
1747 echo "${ECHO_T}$CC" >&6
1748 else
1749 echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1751 fi
1752
1753 fi
1754 if test -z "$CC"; then
1755 if test -n "$ac_tool_prefix"; then
1756 for ac_prog in cl
1757 do
1758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1778 fi
1779 done
1780 done
1781
1782 fi
1783 fi
1784 CC=$ac_cv_prog_CC
1785 if test -n "$CC"; then
1786 echo "$as_me:$LINENO: result: $CC" >&5
1787 echo "${ECHO_T}$CC" >&6
1788 else
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 fi
1792
1793 test -n "$CC" && break
1794 done
1795 fi
1796 if test -z "$CC"; then
1797 ac_ct_CC=$CC
1798 for ac_prog in cl
1799 do
1800 # Extract the first word of "$ac_prog", so it can be a program name with args.
1801 set dummy $ac_prog; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807 if test -n "$ac_ct_CC"; then
1808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809 else
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1812 do
1813 IFS=$as_save_IFS
1814 test -z "$as_dir" && as_dir=.
1815 for ac_exec_ext in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_ac_ct_CC="$ac_prog"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1820 fi
1821 done
1822 done
1823
1824 fi
1825 fi
1826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1827 if test -n "$ac_ct_CC"; then
1828 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1829 echo "${ECHO_T}$ac_ct_CC" >&6
1830 else
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1833 fi
1834
1835 test -n "$ac_ct_CC" && break
1836 done
1837
1838 CC=$ac_ct_CC
1839 fi
1840
1841 fi
1842
1843
1844 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1845 See \`config.log' for more details." >&5
1846 echo "$as_me: error: no acceptable C compiler found in \$PATH
1847 See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
1849
1850 # Provide some information about the compiler.
1851 echo "$as_me:$LINENO:" \
1852 "checking for C compiler version" >&5
1853 ac_compiler=`set X $ac_compile; echo $2`
1854 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1855 (eval $ac_compiler --version </dev/null >&5) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1860 (eval $ac_compiler -v </dev/null >&5) 2>&5
1861 ac_status=$?
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }
1864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1865 (eval $ac_compiler -V </dev/null >&5) 2>&5
1866 ac_status=$?
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }
1869
1870 cat >conftest.$ac_ext <<_ACEOF
1871 /* confdefs.h. */
1872 _ACEOF
1873 cat confdefs.h >>conftest.$ac_ext
1874 cat >>conftest.$ac_ext <<_ACEOF
1875 /* end confdefs.h. */
1876
1877 int
1878 main ()
1879 {
1880
1881 ;
1882 return 0;
1883 }
1884 _ACEOF
1885 ac_clean_files_save=$ac_clean_files
1886 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1887 # Try to create an executable without -o first, disregard a.out.
1888 # It will help us diagnose broken compilers, and finding out an intuition
1889 # of exeext.
1890 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1891 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1892 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1893 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1894 (eval $ac_link_default) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 # Find the output, starting from the most likely. This scheme is
1899 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1900 # resort.
1901
1902 # Be careful to initialize this variable, since it used to be cached.
1903 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1904 ac_cv_exeext=
1905 # b.out is created by i960 compilers.
1906 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1907 do
1908 test -f "$ac_file" || continue
1909 case $ac_file in
1910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1911 ;;
1912 conftest.$ac_ext )
1913 # This is the source file.
1914 ;;
1915 [ab].out )
1916 # We found the default executable, but exeext='' is most
1917 # certainly right.
1918 break;;
1919 *.* )
1920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1921 # FIXME: I believe we export ac_cv_exeext for Libtool,
1922 # but it would be cool to find out if it's true. Does anybody
1923 # maintain Libtool? --akim.
1924 export ac_cv_exeext
1925 break;;
1926 * )
1927 break;;
1928 esac
1929 done
1930 else
1931 echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1933
1934 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1935 See \`config.log' for more details." >&5
1936 echo "$as_me: error: C compiler cannot create executables
1937 See \`config.log' for more details." >&2;}
1938 { (exit 77); exit 77; }; }
1939 fi
1940
1941 ac_exeext=$ac_cv_exeext
1942 echo "$as_me:$LINENO: result: $ac_file" >&5
1943 echo "${ECHO_T}$ac_file" >&6
1944
1945 # Check the compiler produces executables we can run. If not, either
1946 # the compiler is broken, or we cross compile.
1947 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1948 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1949 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1950 # If not cross compiling, check that we can run a simple program.
1951 if test "$cross_compiling" != yes; then
1952 if { ac_try='./$ac_file'
1953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954 (eval $ac_try) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; }; then
1958 cross_compiling=no
1959 else
1960 if test "$cross_compiling" = maybe; then
1961 cross_compiling=yes
1962 else
1963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'.
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: cannot run C compiled programs.
1967 If you meant to cross compile, use \`--host'.
1968 See \`config.log' for more details." >&2;}
1969 { (exit 1); exit 1; }; }
1970 fi
1971 fi
1972 fi
1973 echo "$as_me:$LINENO: result: yes" >&5
1974 echo "${ECHO_T}yes" >&6
1975
1976 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1977 ac_clean_files=$ac_clean_files_save
1978 # Check the compiler produces executables we can run. If not, either
1979 # the compiler is broken, or we cross compile.
1980 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1981 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1982 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1983 echo "${ECHO_T}$cross_compiling" >&6
1984
1985 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1986 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1988 (eval $ac_link) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; then
1992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1994 # work properly (i.e., refer to `conftest.exe'), while it won't with
1995 # `rm'.
1996 for ac_file in conftest.exe conftest conftest.*; do
1997 test -f "$ac_file" || continue
1998 case $ac_file in
1999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2001 export ac_cv_exeext
2002 break;;
2003 * ) break;;
2004 esac
2005 done
2006 else
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2010 See \`config.log' for more details." >&2;}
2011 { (exit 1); exit 1; }; }
2012 fi
2013
2014 rm -f conftest$ac_cv_exeext
2015 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2016 echo "${ECHO_T}$ac_cv_exeext" >&6
2017
2018 rm -f conftest.$ac_ext
2019 EXEEXT=$ac_cv_exeext
2020 ac_exeext=$EXEEXT
2021 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2022 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2023 if test "${ac_cv_objext+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 cat >conftest.$ac_ext <<_ACEOF
2027 /* confdefs.h. */
2028 _ACEOF
2029 cat confdefs.h >>conftest.$ac_ext
2030 cat >>conftest.$ac_ext <<_ACEOF
2031 /* end confdefs.h. */
2032
2033 int
2034 main ()
2035 {
2036
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 rm -f conftest.o conftest.obj
2042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; then
2047 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2048 case $ac_file in
2049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2051 break;;
2052 esac
2053 done
2054 else
2055 echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2057
2058 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2061 See \`config.log' for more details." >&2;}
2062 { (exit 1); exit 1; }; }
2063 fi
2064
2065 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2066 fi
2067 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2068 echo "${ECHO_T}$ac_cv_objext" >&6
2069 OBJEXT=$ac_cv_objext
2070 ac_objext=$OBJEXT
2071 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2072 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2073 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 cat >conftest.$ac_ext <<_ACEOF
2077 /* confdefs.h. */
2078 _ACEOF
2079 cat confdefs.h >>conftest.$ac_ext
2080 cat >>conftest.$ac_ext <<_ACEOF
2081 /* end confdefs.h. */
2082
2083 int
2084 main ()
2085 {
2086 #ifndef __GNUC__
2087 choke me
2088 #endif
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>conftest.er1
2097 ac_status=$?
2098 grep -v '^ *+' conftest.er1 >conftest.err
2099 rm -f conftest.er1
2100 cat conftest.err >&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -z "$ac_c_werror_flag"
2104 || test ! -s conftest.err'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 (eval $ac_try) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; } &&
2110 { ac_try='test -s conftest.$ac_objext'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 (eval $ac_try) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2116 ac_compiler_gnu=yes
2117 else
2118 echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_compiler_gnu=no
2122 fi
2123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2124 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2125
2126 fi
2127 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2128 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2129 GCC=`test $ac_compiler_gnu = yes && echo yes`
2130 ac_test_CFLAGS=${CFLAGS+set}
2131 ac_save_CFLAGS=$CFLAGS
2132 CFLAGS="-g"
2133 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2134 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2135 if test "${ac_cv_prog_cc_g+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 cat >conftest.$ac_ext <<_ACEOF
2139 /* confdefs.h. */
2140 _ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2144
2145 int
2146 main ()
2147 {
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 rm -f conftest.$ac_objext
2154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2156 ac_status=$?
2157 grep -v '^ *+' conftest.er1 >conftest.err
2158 rm -f conftest.er1
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 ac_cv_prog_cc_g=yes
2176 else
2177 echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2179
2180 ac_cv_prog_cc_g=no
2181 fi
2182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183 fi
2184 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2185 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2186 if test "$ac_test_CFLAGS" = set; then
2187 CFLAGS=$ac_save_CFLAGS
2188 elif test $ac_cv_prog_cc_g = yes; then
2189 if test "$GCC" = yes; then
2190 CFLAGS="-g -O2"
2191 else
2192 CFLAGS="-g"
2193 fi
2194 else
2195 if test "$GCC" = yes; then
2196 CFLAGS="-O2"
2197 else
2198 CFLAGS=
2199 fi
2200 fi
2201 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2202 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2203 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 ac_cv_prog_cc_stdc=no
2207 ac_save_CC=$CC
2208 cat >conftest.$ac_ext <<_ACEOF
2209 /* confdefs.h. */
2210 _ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2214 #include <stdarg.h>
2215 #include <stdio.h>
2216 #include <sys/types.h>
2217 #include <sys/stat.h>
2218 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2219 struct buf { int x; };
2220 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2221 static char *e (p, i)
2222 char **p;
2223 int i;
2224 {
2225 return p[i];
2226 }
2227 static char *f (char * (*g) (char **, int), char **p, ...)
2228 {
2229 char *s;
2230 va_list v;
2231 va_start (v,p);
2232 s = g (p, va_arg (v,int));
2233 va_end (v);
2234 return s;
2235 }
2236
2237 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2238 function prototypes and stuff, but not '\xHH' hex character constants.
2239 These don't provoke an error unfortunately, instead are silently treated
2240 as 'x'. The following induces an error, until -std1 is added to get
2241 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2242 array size at least. It's necessary to write '\x00'==0 to get something
2243 that's true only with -std1. */
2244 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2245
2246 int test (int i, double x);
2247 struct s1 {int (*f) (int a);};
2248 struct s2 {int (*f) (double a);};
2249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2250 int argc;
2251 char **argv;
2252 int
2253 main ()
2254 {
2255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 # Don't try gcc -ansi; that turns off useful extensions and
2261 # breaks some systems' header files.
2262 # AIX -qlanglvl=ansi
2263 # Ultrix and OSF/1 -std1
2264 # HP-UX 10.20 and later -Ae
2265 # HP-UX older versions -Aa -D_HPUX_SOURCE
2266 # SVR4 -Xc -D__EXTENSIONS__
2267 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2268 do
2269 CC="$ac_save_CC $ac_arg"
2270 rm -f conftest.$ac_objext
2271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2273 ac_status=$?
2274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 ac_cv_prog_cc_stdc=$ac_arg
2293 break
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 fi
2299 rm -f conftest.err conftest.$ac_objext
2300 done
2301 rm -f conftest.$ac_ext conftest.$ac_objext
2302 CC=$ac_save_CC
2303
2304 fi
2305
2306 case "x$ac_cv_prog_cc_stdc" in
2307 x|xno)
2308 echo "$as_me:$LINENO: result: none needed" >&5
2309 echo "${ECHO_T}none needed" >&6 ;;
2310 *)
2311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2312 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2313 CC="$CC $ac_cv_prog_cc_stdc" ;;
2314 esac
2315
2316 # Some people use a C++ compiler to compile C. Since we use `exit',
2317 # in C++ we need to declare it. In case someone uses the same compiler
2318 # for both compiling C and C++ we need to have the C++ compiler decide
2319 # the declaration of exit, since it's the most demanding environment.
2320 cat >conftest.$ac_ext <<_ACEOF
2321 #ifndef __cplusplus
2322 choke me
2323 #endif
2324 _ACEOF
2325 rm -f conftest.$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2328 ac_status=$?
2329 grep -v '^ *+' conftest.er1 >conftest.err
2330 rm -f conftest.er1
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 for ac_declaration in \
2348 '' \
2349 'extern "C" void std::exit (int) throw (); using std::exit;' \
2350 'extern "C" void std::exit (int); using std::exit;' \
2351 'extern "C" void exit (int) throw ();' \
2352 'extern "C" void exit (int);' \
2353 'void exit (int);'
2354 do
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2361 $ac_declaration
2362 #include <stdlib.h>
2363 int
2364 main ()
2365 {
2366 exit (42);
2367 ;
2368 return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag"
2381 || test ! -s conftest.err'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 (eval $ac_try) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 (eval $ac_try) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2393 :
2394 else
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 continue
2399 fi
2400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 cat >conftest.$ac_ext <<_ACEOF
2402 /* confdefs.h. */
2403 _ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2407 $ac_declaration
2408 int
2409 main ()
2410 {
2411 exit (42);
2412 ;
2413 return 0;
2414 }
2415 _ACEOF
2416 rm -f conftest.$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2419 ac_status=$?
2420 grep -v '^ *+' conftest.er1 >conftest.err
2421 rm -f conftest.er1
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 break
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 fi
2444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 done
2446 rm -f conftest*
2447 if test -n "$ac_declaration"; then
2448 echo '#ifdef __cplusplus' >>confdefs.h
2449 echo $ac_declaration >>confdefs.h
2450 echo '#endif' >>confdefs.h
2451 fi
2452
2453 else
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 fi
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 ac_ext=c
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464
2465
2466
2467 ac_ext=cc
2468 ac_cpp='$CXXCPP $CPPFLAGS'
2469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2472 if test -n "$ac_tool_prefix"; then
2473 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2474 do
2475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2477 echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479 if test "${ac_cv_prog_CXX+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 if test -n "$CXX"; then
2483 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2495 fi
2496 done
2497 done
2498
2499 fi
2500 fi
2501 CXX=$ac_cv_prog_CXX
2502 if test -n "$CXX"; then
2503 echo "$as_me:$LINENO: result: $CXX" >&5
2504 echo "${ECHO_T}$CXX" >&6
2505 else
2506 echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6
2508 fi
2509
2510 test -n "$CXX" && break
2511 done
2512 fi
2513 if test -z "$CXX"; then
2514 ac_ct_CXX=$CXX
2515 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2516 do
2517 # Extract the first word of "$ac_prog", so it can be a program name with args.
2518 set dummy $ac_prog; ac_word=$2
2519 echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2521 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 if test -n "$ac_ct_CXX"; then
2525 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534 ac_cv_prog_ac_ct_CXX="$ac_prog"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538 done
2539 done
2540
2541 fi
2542 fi
2543 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2544 if test -n "$ac_ct_CXX"; then
2545 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2546 echo "${ECHO_T}$ac_ct_CXX" >&6
2547 else
2548 echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2550 fi
2551
2552 test -n "$ac_ct_CXX" && break
2553 done
2554 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2555
2556 CXX=$ac_ct_CXX
2557 fi
2558
2559
2560 # Provide some information about the compiler.
2561 echo "$as_me:$LINENO:" \
2562 "checking for C++ compiler version" >&5
2563 ac_compiler=`set X $ac_compile; echo $2`
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2565 (eval $ac_compiler --version </dev/null >&5) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2570 (eval $ac_compiler -v </dev/null >&5) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2574 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2575 (eval $ac_compiler -V </dev/null >&5) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }
2579
2580 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2581 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2582 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2591
2592 int
2593 main ()
2594 {
2595 #ifndef __GNUC__
2596 choke me
2597 #endif
2598
2599 ;
2600 return 0;
2601 }
2602 _ACEOF
2603 rm -f conftest.$ac_objext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605 (eval $ac_compile) 2>conftest.er1
2606 ac_status=$?
2607 grep -v '^ *+' conftest.er1 >conftest.err
2608 rm -f conftest.er1
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try='test -z "$ac_cxx_werror_flag"
2613 || test ! -s conftest.err'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 ac_compiler_gnu=yes
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630 ac_compiler_gnu=no
2631 fi
2632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2633 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2634
2635 fi
2636 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2637 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2638 GXX=`test $ac_compiler_gnu = yes && echo yes`
2639 ac_test_CXXFLAGS=${CXXFLAGS+set}
2640 ac_save_CXXFLAGS=$CXXFLAGS
2641 CXXFLAGS="-g"
2642 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2643 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cxx_g+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2653
2654 int
2655 main ()
2656 {
2657
2658 ;
2659 return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2665 ac_status=$?
2666 grep -v '^ *+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_cxx_werror_flag"
2672 || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2684 ac_cv_prog_cxx_g=yes
2685 else
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689 ac_cv_prog_cxx_g=no
2690 fi
2691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692 fi
2693 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2695 if test "$ac_test_CXXFLAGS" = set; then
2696 CXXFLAGS=$ac_save_CXXFLAGS
2697 elif test $ac_cv_prog_cxx_g = yes; then
2698 if test "$GXX" = yes; then
2699 CXXFLAGS="-g -O2"
2700 else
2701 CXXFLAGS="-g"
2702 fi
2703 else
2704 if test "$GXX" = yes; then
2705 CXXFLAGS="-O2"
2706 else
2707 CXXFLAGS=
2708 fi
2709 fi
2710 for ac_declaration in \
2711 '' \
2712 'extern "C" void std::exit (int) throw (); using std::exit;' \
2713 'extern "C" void std::exit (int); using std::exit;' \
2714 'extern "C" void exit (int) throw ();' \
2715 'extern "C" void exit (int);' \
2716 'void exit (int);'
2717 do
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 $ac_declaration
2725 #include <stdlib.h>
2726 int
2727 main ()
2728 {
2729 exit (42);
2730 ;
2731 return 0;
2732 }
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try='test -z "$ac_cxx_werror_flag"
2744 || test ! -s conftest.err'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 :
2757 else
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 continue
2762 fi
2763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770 $ac_declaration
2771 int
2772 main ()
2773 {
2774 exit (42);
2775 ;
2776 return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_cxx_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 break
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 done
2809 rm -f conftest*
2810 if test -n "$ac_declaration"; then
2811 echo '#ifdef __cplusplus' >>confdefs.h
2812 echo $ac_declaration >>confdefs.h
2813 echo '#endif' >>confdefs.h
2814 fi
2815
2816 ac_ext=c
2817 ac_cpp='$CPP $CPPFLAGS'
2818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2821
2822
2823
2824 ac_aux_dir=
2825 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2826 if test -f $ac_dir/install-sh; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install-sh -c"
2829 break
2830 elif test -f $ac_dir/install.sh; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/install.sh -c"
2833 break
2834 elif test -f $ac_dir/shtool; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/shtool install -c"
2837 break
2838 fi
2839 done
2840 if test -z "$ac_aux_dir"; then
2841 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2842 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2843 { (exit 1); exit 1; }; }
2844 fi
2845 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2846 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2847 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2848
2849 # Find a good install program. We prefer a C program (faster),
2850 # so one script is as good as another. But avoid the broken or
2851 # incompatible versions:
2852 # SysV /etc/install, /usr/sbin/install
2853 # SunOS /usr/etc/install
2854 # IRIX /sbin/install
2855 # AIX /bin/install
2856 # AmigaOS /C/install, which installs bootblocks on floppy discs
2857 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2858 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2859 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2860 # OS/2's system install, which has a completely different semantic
2861 # ./install, which can be erroneously created by make from ./install.sh.
2862 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2863 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2864 if test -z "$INSTALL"; then
2865 if test "${ac_cv_path_install+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 # Account for people who put trailing slashes in PATH elements.
2874 case $as_dir/ in
2875 ./ | .// | /cC/* | \
2876 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2877 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2878 /usr/ucb/* ) ;;
2879 *)
2880 # OSF1 and SCO ODT 3.0 have their own names for install.
2881 # Don't use installbsd from OSF since it installs stuff as root
2882 # by default.
2883 for ac_prog in ginstall scoinst install; do
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2886 if test $ac_prog = install &&
2887 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2888 # AIX install. It has an incompatible calling convention.
2889 :
2890 elif test $ac_prog = install &&
2891 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2892 # program-specific install script used by HP pwplus--don't use.
2893 :
2894 else
2895 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2896 break 3
2897 fi
2898 fi
2899 done
2900 done
2901 ;;
2902 esac
2903 done
2904
2905
2906 fi
2907 if test "${ac_cv_path_install+set}" = set; then
2908 INSTALL=$ac_cv_path_install
2909 else
2910 # As a last resort, use the slow shell script. We don't cache a
2911 # path for INSTALL within a source directory, because that will
2912 # break other packages using the cache if that directory is
2913 # removed, or if the path is relative.
2914 INSTALL=$ac_install_sh
2915 fi
2916 fi
2917 echo "$as_me:$LINENO: result: $INSTALL" >&5
2918 echo "${ECHO_T}$INSTALL" >&6
2919
2920 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2921 # It thinks the first close brace ends the variable substitution.
2922 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2923
2924 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2925
2926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2927
2928
2929
2930 # Check whether --enable-shared or --disable-shared was given.
2931 if test "${enable_shared+set}" = set; then
2932 enableval="$enable_shared"
2933 p=${PACKAGE-default}
2934 case $enableval in
2935 yes) enable_shared=yes ;;
2936 no) enable_shared=no ;;
2937 *)
2938 enable_shared=no
2939 # Look at the argument we got. We use all the common list separators.
2940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2941 for pkg in $enableval; do
2942 IFS="$lt_save_ifs"
2943 if test "X$pkg" = "X$p"; then
2944 enable_shared=yes
2945 fi
2946 done
2947 IFS="$lt_save_ifs"
2948 ;;
2949 esac
2950 else
2951 enable_shared=yes
2952 fi;
2953
2954 # Check whether --enable-static or --disable-static was given.
2955 if test "${enable_static+set}" = set; then
2956 enableval="$enable_static"
2957 p=${PACKAGE-default}
2958 case $enableval in
2959 yes) enable_static=yes ;;
2960 no) enable_static=no ;;
2961 *)
2962 enable_static=no
2963 # Look at the argument we got. We use all the common list separators.
2964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2965 for pkg in $enableval; do
2966 IFS="$lt_save_ifs"
2967 if test "X$pkg" = "X$p"; then
2968 enable_static=yes
2969 fi
2970 done
2971 IFS="$lt_save_ifs"
2972 ;;
2973 esac
2974 else
2975 enable_static=yes
2976 fi;
2977
2978 # Check whether --enable-fast-install or --disable-fast-install was given.
2979 if test "${enable_fast_install+set}" = set; then
2980 enableval="$enable_fast_install"
2981 p=${PACKAGE-default}
2982 case $enableval in
2983 yes) enable_fast_install=yes ;;
2984 no) enable_fast_install=no ;;
2985 *)
2986 enable_fast_install=no
2987 # Look at the argument we got. We use all the common list separators.
2988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2989 for pkg in $enableval; do
2990 IFS="$lt_save_ifs"
2991 if test "X$pkg" = "X$p"; then
2992 enable_fast_install=yes
2993 fi
2994 done
2995 IFS="$lt_save_ifs"
2996 ;;
2997 esac
2998 else
2999 enable_fast_install=yes
3000 fi;
3001
3002 # Make sure we can run config.sub.
3003 $ac_config_sub sun4 >/dev/null 2>&1 ||
3004 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3005 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3006 { (exit 1); exit 1; }; }
3007
3008 echo "$as_me:$LINENO: checking build system type" >&5
3009 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3010 if test "${ac_cv_build+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 ac_cv_build_alias=$build_alias
3014 test -z "$ac_cv_build_alias" &&
3015 ac_cv_build_alias=`$ac_config_guess`
3016 test -z "$ac_cv_build_alias" &&
3017 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3018 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3019 { (exit 1); exit 1; }; }
3020 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3021 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3022 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3023 { (exit 1); exit 1; }; }
3024
3025 fi
3026 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3027 echo "${ECHO_T}$ac_cv_build" >&6
3028 build=$ac_cv_build
3029 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3030 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3031 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3032
3033
3034 echo "$as_me:$LINENO: checking host system type" >&5
3035 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3036 if test "${ac_cv_host+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 ac_cv_host_alias=$host_alias
3040 test -z "$ac_cv_host_alias" &&
3041 ac_cv_host_alias=$ac_cv_build_alias
3042 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3043 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3044 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3045 { (exit 1); exit 1; }; }
3046
3047 fi
3048 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3049 echo "${ECHO_T}$ac_cv_host" >&6
3050 host=$ac_cv_host
3051 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3052 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3053 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3054
3055
3056 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3057 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3058 if test "${lt_cv_path_SED+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 # Loop through the user's path and test for sed and gsed.
3062 # Then use that list of sed's as ones to test for truncation.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for lt_ac_prog in sed gsed; do
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3071 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3072 fi
3073 done
3074 done
3075 done
3076 lt_ac_max=0
3077 lt_ac_count=0
3078 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3079 # along with /bin/sed that truncates output.
3080 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3081 test ! -f $lt_ac_sed && continue
3082 cat /dev/null > conftest.in
3083 lt_ac_count=0
3084 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3085 # Check for GNU sed and select it if it is found.
3086 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3087 lt_cv_path_SED=$lt_ac_sed
3088 break
3089 fi
3090 while true; do
3091 cat conftest.in conftest.in >conftest.tmp
3092 mv conftest.tmp conftest.in
3093 cp conftest.in conftest.nl
3094 echo >>conftest.nl
3095 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3096 cmp -s conftest.out conftest.nl || break
3097 # 10000 chars as input seems more than enough
3098 test $lt_ac_count -gt 10 && break
3099 lt_ac_count=`expr $lt_ac_count + 1`
3100 if test $lt_ac_count -gt $lt_ac_max; then
3101 lt_ac_max=$lt_ac_count
3102 lt_cv_path_SED=$lt_ac_sed
3103 fi
3104 done
3105 done
3106
3107 fi
3108
3109 SED=$lt_cv_path_SED
3110 echo "$as_me:$LINENO: result: $SED" >&5
3111 echo "${ECHO_T}$SED" >&6
3112
3113 echo "$as_me:$LINENO: checking for egrep" >&5
3114 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3115 if test "${ac_cv_prog_egrep+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3119 then ac_cv_prog_egrep='grep -E'
3120 else ac_cv_prog_egrep='egrep'
3121 fi
3122 fi
3123 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3124 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3125 EGREP=$ac_cv_prog_egrep
3126
3127
3128
3129 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3130 if test "${with_gnu_ld+set}" = set; then
3131 withval="$with_gnu_ld"
3132 test "$withval" = no || with_gnu_ld=yes
3133 else
3134 with_gnu_ld=no
3135 fi;
3136 ac_prog=ld
3137 if test "$GCC" = yes; then
3138 # Check if gcc -print-prog-name=ld gives a path.
3139 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3140 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3141 case $host in
3142 *-*-mingw*)
3143 # gcc leaves a trailing carriage return which upsets mingw
3144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3145 *)
3146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3147 esac
3148 case $ac_prog in
3149 # Accept absolute paths.
3150 [\\/]* | ?:[\\/]*)
3151 re_direlt='/[^/][^/]*/\.\./'
3152 # Canonicalize the pathname of ld
3153 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3154 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3155 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3156 done
3157 test -z "$LD" && LD="$ac_prog"
3158 ;;
3159 "")
3160 # If it fails, then pretend we aren't using GCC.
3161 ac_prog=ld
3162 ;;
3163 *)
3164 # If it is relative, then search for the first ld in PATH.
3165 with_gnu_ld=unknown
3166 ;;
3167 esac
3168 elif test "$with_gnu_ld" = yes; then
3169 echo "$as_me:$LINENO: checking for GNU ld" >&5
3170 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3171 else
3172 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3173 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3174 fi
3175 if test "${lt_cv_path_LD+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 if test -z "$LD"; then
3179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3180 for ac_dir in $PATH; do
3181 IFS="$lt_save_ifs"
3182 test -z "$ac_dir" && ac_dir=.
3183 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3184 lt_cv_path_LD="$ac_dir/$ac_prog"
3185 # Check to see if the program is GNU ld. I'd rather use --version,
3186 # but apparently some variants of GNU ld only accept -v.
3187 # Break only if it was the GNU/non-GNU ld that we prefer.
3188 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3189 *GNU* | *'with BFD'*)
3190 test "$with_gnu_ld" != no && break
3191 ;;
3192 *)
3193 test "$with_gnu_ld" != yes && break
3194 ;;
3195 esac
3196 fi
3197 done
3198 IFS="$lt_save_ifs"
3199 else
3200 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3201 fi
3202 fi
3203
3204 LD="$lt_cv_path_LD"
3205 if test -n "$LD"; then
3206 echo "$as_me:$LINENO: result: $LD" >&5
3207 echo "${ECHO_T}$LD" >&6
3208 else
3209 echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3211 fi
3212 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3213 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3214 { (exit 1); exit 1; }; }
3215 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3216 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3217 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3221 case `$LD -v 2>&1 </dev/null` in
3222 *GNU* | *'with BFD'*)
3223 lt_cv_prog_gnu_ld=yes
3224 ;;
3225 *)
3226 lt_cv_prog_gnu_ld=no
3227 ;;
3228 esac
3229 fi
3230 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3231 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3232 with_gnu_ld=$lt_cv_prog_gnu_ld
3233
3234
3235 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3236 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3237 if test "${lt_cv_ld_reload_flag+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 lt_cv_ld_reload_flag='-r'
3241 fi
3242 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3243 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3244 reload_flag=$lt_cv_ld_reload_flag
3245 case $reload_flag in
3246 "" | " "*) ;;
3247 *) reload_flag=" $reload_flag" ;;
3248 esac
3249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3250 case $host_os in
3251 darwin*)
3252 if test "$GCC" = yes; then
3253 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3254 else
3255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3256 fi
3257 ;;
3258 esac
3259
3260 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3261 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3262 if test "${lt_cv_path_NM+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 if test -n "$NM"; then
3266 # Let the user override the test.
3267 lt_cv_path_NM="$NM"
3268 else
3269 lt_nm_to_check="${ac_tool_prefix}nm"
3270 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3271 lt_nm_to_check="$lt_nm_to_check nm"
3272 fi
3273 for lt_tmp_nm in $lt_nm_to_check; do
3274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3275 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3276 IFS="$lt_save_ifs"
3277 test -z "$ac_dir" && ac_dir=.
3278 tmp_nm="$ac_dir/$lt_tmp_nm"
3279 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3280 # Check to see if the nm accepts a BSD-compat flag.
3281 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3282 # nm: unknown option "B" ignored
3283 # Tru64's nm complains that /dev/null is an invalid object file
3284 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3285 */dev/null* | *'Invalid file or object type'*)
3286 lt_cv_path_NM="$tmp_nm -B"
3287 break
3288 ;;
3289 *)
3290 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3291 */dev/null*)
3292 lt_cv_path_NM="$tmp_nm -p"
3293 break
3294 ;;
3295 *)
3296 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3297 continue # so that we can try to find one that supports BSD flags
3298 ;;
3299 esac
3300 ;;
3301 esac
3302 fi
3303 done
3304 IFS="$lt_save_ifs"
3305 done
3306 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3307 fi
3308 fi
3309 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3310 echo "${ECHO_T}$lt_cv_path_NM" >&6
3311 NM="$lt_cv_path_NM"
3312
3313 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3314 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3315 LN_S=$as_ln_s
3316 if test "$LN_S" = "ln -s"; then
3317 echo "$as_me:$LINENO: result: yes" >&5
3318 echo "${ECHO_T}yes" >&6
3319 else
3320 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3321 echo "${ECHO_T}no, using $LN_S" >&6
3322 fi
3323
3324 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3325 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3326 if test "${lt_cv_deplibs_check_method+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 lt_cv_file_magic_cmd='$MAGIC_CMD'
3330 lt_cv_file_magic_test_file=
3331 lt_cv_deplibs_check_method='unknown'
3332 # Need to set the preceding variable on all platforms that support
3333 # interlibrary dependencies.
3334 # 'none' -- dependencies not supported.
3335 # `unknown' -- same as none, but documents that we really don't know.
3336 # 'pass_all' -- all dependencies passed with no checks.
3337 # 'test_compile' -- check by making test program.
3338 # 'file_magic [[regex]]' -- check by looking for files in library path
3339 # which responds to the $file_magic_cmd with a given extended regex.
3340 # If you have `file' or equivalent on your system and you're not sure
3341 # whether `pass_all' will *always* work, you probably want this one.
3342
3343 case $host_os in
3344 aix4* | aix5*)
3345 lt_cv_deplibs_check_method=pass_all
3346 ;;
3347
3348 beos*)
3349 lt_cv_deplibs_check_method=pass_all
3350 ;;
3351
3352 bsdi[45]*)
3353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3354 lt_cv_file_magic_cmd='/usr/bin/file -L'
3355 lt_cv_file_magic_test_file=/shlib/libc.so
3356 ;;
3357
3358 cygwin*)
3359 # func_win32_libid is a shell function defined in ltmain.sh
3360 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3361 lt_cv_file_magic_cmd='func_win32_libid'
3362 ;;
3363
3364 mingw* | pw32*)
3365 # Base MSYS/MinGW do not provide the 'file' command needed by
3366 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3367 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3368 lt_cv_file_magic_cmd='$OBJDUMP -f'
3369 ;;
3370
3371 darwin* | rhapsody*)
3372 lt_cv_deplibs_check_method=pass_all
3373 ;;
3374
3375 freebsd* | kfreebsd*-gnu | dragonfly*)
3376 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3377 case $host_cpu in
3378 i*86 )
3379 # Not sure whether the presence of OpenBSD here was a mistake.
3380 # Let's accept both of them until this is cleared up.
3381 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3382 lt_cv_file_magic_cmd=/usr/bin/file
3383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3384 ;;
3385 esac
3386 else
3387 lt_cv_deplibs_check_method=pass_all
3388 fi
3389 ;;
3390
3391 gnu*)
3392 lt_cv_deplibs_check_method=pass_all
3393 ;;
3394
3395 hpux10.20* | hpux11*)
3396 lt_cv_file_magic_cmd=/usr/bin/file
3397 case $host_cpu in
3398 ia64*)
3399 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3400 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3401 ;;
3402 hppa*64*)
3403 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]'
3404 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3405 ;;
3406 *)
3407 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3408 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3409 ;;
3410 esac
3411 ;;
3412
3413 interix3*)
3414 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3416 ;;
3417
3418 irix5* | irix6* | nonstopux*)
3419 case $LD in
3420 *-32|*"-32 ") libmagic=32-bit;;
3421 *-n32|*"-n32 ") libmagic=N32;;
3422 *-64|*"-64 ") libmagic=64-bit;;
3423 *) libmagic=never-match;;
3424 esac
3425 lt_cv_deplibs_check_method=pass_all
3426 ;;
3427
3428 # This must be Linux ELF.
3429 linux*)
3430 lt_cv_deplibs_check_method=pass_all
3431 ;;
3432
3433 netbsd*)
3434 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3436 else
3437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3438 fi
3439 ;;
3440
3441 newos6*)
3442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3443 lt_cv_file_magic_cmd=/usr/bin/file
3444 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3445 ;;
3446
3447 nto-qnx*)
3448 lt_cv_deplibs_check_method=unknown
3449 ;;
3450
3451 openbsd*)
3452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3454 else
3455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3456 fi
3457 ;;
3458
3459 osf3* | osf4* | osf5*)
3460 lt_cv_deplibs_check_method=pass_all
3461 ;;
3462
3463 solaris*)
3464 lt_cv_deplibs_check_method=pass_all
3465 ;;
3466
3467 sysv4 | sysv4.3*)
3468 case $host_vendor in
3469 motorola)
3470 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]'
3471 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3472 ;;
3473 ncr)
3474 lt_cv_deplibs_check_method=pass_all
3475 ;;
3476 sequent)
3477 lt_cv_file_magic_cmd='/bin/file'
3478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3479 ;;
3480 sni)
3481 lt_cv_file_magic_cmd='/bin/file'
3482 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3483 lt_cv_file_magic_test_file=/lib/libc.so
3484 ;;
3485 siemens)
3486 lt_cv_deplibs_check_method=pass_all
3487 ;;
3488 pc)
3489 lt_cv_deplibs_check_method=pass_all
3490 ;;
3491 esac
3492 ;;
3493
3494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3495 lt_cv_deplibs_check_method=pass_all
3496 ;;
3497 esac
3498
3499 fi
3500 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3501 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3502 file_magic_cmd=$lt_cv_file_magic_cmd
3503 deplibs_check_method=$lt_cv_deplibs_check_method
3504 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3505
3506
3507
3508
3509 # If no C compiler was specified, use CC.
3510 LTCC=${LTCC-"$CC"}
3511
3512 # If no C compiler flags were specified, use CFLAGS.
3513 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3514
3515 # Allow CC to be a program name with arguments.
3516 compiler=$CC
3517
3518
3519 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3520 if test "${enable_libtool_lock+set}" = set; then
3521 enableval="$enable_libtool_lock"
3522
3523 fi;
3524 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3525
3526 # Some flags need to be propagated to the compiler or linker for good
3527 # libtool support.
3528 case $host in
3529 ia64-*-hpux*)
3530 # Find out which ABI we are using.
3531 echo 'int i;' > conftest.$ac_ext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; then
3537 case `/usr/bin/file conftest.$ac_objext` in
3538 *ELF-32*)
3539 HPUX_IA64_MODE="32"
3540 ;;
3541 *ELF-64*)
3542 HPUX_IA64_MODE="64"
3543 ;;
3544 esac
3545 fi
3546 rm -rf conftest*
3547 ;;
3548 *-*-irix6*)
3549 # Find out which ABI we are using.
3550 echo '#line 3550 "configure"' > conftest.$ac_ext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; then
3556 if test "$lt_cv_prog_gnu_ld" = yes; then
3557 case `/usr/bin/file conftest.$ac_objext` in
3558 *32-bit*)
3559 LD="${LD-ld} -melf32bsmip"
3560 ;;
3561 *N32*)
3562 LD="${LD-ld} -melf32bmipn32"
3563 ;;
3564 *64-bit*)
3565 LD="${LD-ld} -melf64bmip"
3566 ;;
3567 esac
3568 else
3569 case `/usr/bin/file conftest.$ac_objext` in
3570 *32-bit*)
3571 LD="${LD-ld} -32"
3572 ;;
3573 *N32*)
3574 LD="${LD-ld} -n32"
3575 ;;
3576 *64-bit*)
3577 LD="${LD-ld} -64"
3578 ;;
3579 esac
3580 fi
3581 fi
3582 rm -rf conftest*
3583 ;;
3584
3585 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3586 # Find out which ABI we are using.
3587 echo 'int i;' > conftest.$ac_ext
3588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3589 (eval $ac_compile) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; then
3593 case `/usr/bin/file conftest.o` in
3594 *32-bit*)
3595 case $host in
3596 x86_64-*linux*)
3597 LD="${LD-ld} -m elf_i386"
3598 ;;
3599 ppc64-*linux*|powerpc64-*linux*)
3600 LD="${LD-ld} -m elf32ppclinux"
3601 ;;
3602 s390x-*linux*)
3603 LD="${LD-ld} -m elf_s390"
3604 ;;
3605 sparc64-*linux*)
3606 LD="${LD-ld} -m elf32_sparc"
3607 ;;
3608 esac
3609 ;;
3610 *64-bit*)
3611 case $host in
3612 x86_64-*linux*)
3613 LD="${LD-ld} -m elf_x86_64"
3614 ;;
3615 ppc*-*linux*|powerpc*-*linux*)
3616 LD="${LD-ld} -m elf64ppc"
3617 ;;
3618 s390*-*linux*)
3619 LD="${LD-ld} -m elf64_s390"
3620 ;;
3621 sparc*-*linux*)
3622 LD="${LD-ld} -m elf64_sparc"
3623 ;;
3624 esac
3625 ;;
3626 esac
3627 fi
3628 rm -rf conftest*
3629 ;;
3630
3631 *-*-sco3.2v5*)
3632 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3633 SAVE_CFLAGS="$CFLAGS"
3634 CFLAGS="$CFLAGS -belf"
3635 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3636 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3637 if test "${lt_cv_cc_needs_belf+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646 cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h. */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652
3653 int
3654 main ()
3655 {
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest$ac_exeext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 lt_cv_cc_needs_belf=yes
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 lt_cv_cc_needs_belf=no
3689 fi
3690 rm -f conftest.err conftest.$ac_objext \
3691 conftest$ac_exeext conftest.$ac_ext
3692 ac_ext=c
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697
3698 fi
3699 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3700 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3701 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3702 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3703 CFLAGS="$SAVE_CFLAGS"
3704 fi
3705 ;;
3706 sparc*-*solaris*)
3707 # Find out which ABI we are using.
3708 echo 'int i;' > conftest.$ac_ext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; then
3714 case `/usr/bin/file conftest.o` in
3715 *64-bit*)
3716 case $lt_cv_prog_gnu_ld in
3717 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3718 *) LD="${LD-ld} -64" ;;
3719 esac
3720 ;;
3721 esac
3722 fi
3723 rm -rf conftest*
3724 ;;
3725
3726 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 if test -n "$DLLTOOL"; then
3736 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749 done
3750 done
3751
3752 fi
3753 fi
3754 DLLTOOL=$ac_cv_prog_DLLTOOL
3755 if test -n "$DLLTOOL"; then
3756 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3757 echo "${ECHO_T}$DLLTOOL" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3761 fi
3762
3763 fi
3764 if test -z "$ac_cv_prog_DLLTOOL"; then
3765 ac_ct_DLLTOOL=$DLLTOOL
3766 # Extract the first word of "dlltool", so it can be a program name with args.
3767 set dummy dlltool; ac_word=$2
3768 echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 if test -n "$ac_ct_DLLTOOL"; then
3774 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787 done
3788 done
3789
3790 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3791 fi
3792 fi
3793 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3794 if test -n "$ac_ct_DLLTOOL"; then
3795 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3796 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3797 else
3798 echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3800 fi
3801
3802 DLLTOOL=$ac_ct_DLLTOOL
3803 else
3804 DLLTOOL="$ac_cv_prog_DLLTOOL"
3805 fi
3806
3807 if test -n "$ac_tool_prefix"; then
3808 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3809 set dummy ${ac_tool_prefix}as; ac_word=$2
3810 echo "$as_me:$LINENO: checking for $ac_word" >&5
3811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3812 if test "${ac_cv_prog_AS+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815 if test -n "$AS"; then
3816 ac_cv_prog_AS="$AS" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_AS="${ac_tool_prefix}as"
3826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829 done
3830 done
3831
3832 fi
3833 fi
3834 AS=$ac_cv_prog_AS
3835 if test -n "$AS"; then
3836 echo "$as_me:$LINENO: result: $AS" >&5
3837 echo "${ECHO_T}$AS" >&6
3838 else
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3841 fi
3842
3843 fi
3844 if test -z "$ac_cv_prog_AS"; then
3845 ac_ct_AS=$AS
3846 # Extract the first word of "as", so it can be a program name with args.
3847 set dummy as; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 if test -n "$ac_ct_AS"; then
3854 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_ac_ct_AS="as"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3866 fi
3867 done
3868 done
3869
3870 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3871 fi
3872 fi
3873 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3874 if test -n "$ac_ct_AS"; then
3875 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3876 echo "${ECHO_T}$ac_ct_AS" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 fi
3881
3882 AS=$ac_ct_AS
3883 else
3884 AS="$ac_cv_prog_AS"
3885 fi
3886
3887 if test -n "$ac_tool_prefix"; then
3888 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3889 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -n "$OBJDUMP"; then
3896 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909 done
3910 done
3911
3912 fi
3913 fi
3914 OBJDUMP=$ac_cv_prog_OBJDUMP
3915 if test -n "$OBJDUMP"; then
3916 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3917 echo "${ECHO_T}$OBJDUMP" >&6
3918 else
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923 fi
3924 if test -z "$ac_cv_prog_OBJDUMP"; then
3925 ac_ct_OBJDUMP=$OBJDUMP
3926 # Extract the first word of "objdump", so it can be a program name with args.
3927 set dummy objdump; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933 if test -n "$ac_ct_OBJDUMP"; then
3934 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947 done
3948 done
3949
3950 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3951 fi
3952 fi
3953 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3954 if test -n "$ac_ct_OBJDUMP"; then
3955 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3956 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3957 else
3958 echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3960 fi
3961
3962 OBJDUMP=$ac_ct_OBJDUMP
3963 else
3964 OBJDUMP="$ac_cv_prog_OBJDUMP"
3965 fi
3966
3967 ;;
3968
3969 esac
3970
3971 need_locks="$enable_libtool_lock"
3972
3973
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3981 # On Suns, sometimes $CPP names a directory.
3982 if test -n "$CPP" && test -d "$CPP"; then
3983 CPP=
3984 fi
3985 if test -z "$CPP"; then
3986 if test "${ac_cv_prog_CPP+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989 # Double quotes because CPP needs to be expanded
3990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991 do
3992 ac_preproc_ok=false
3993 for ac_c_preproc_warn_flag in '' yes
3994 do
3995 # Use a header file that comes with gcc, so configuring glibc
3996 # with a fresh cross-compiler works.
3997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 # <limits.h> exists even on freestanding compilers.
3999 # On the NeXT, cc -E runs the code through the compiler's parser,
4000 # not just through cpp. "Syntax error" is here to catch this case.
4001 cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h. */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 #ifdef __STDC__
4008 # include <limits.h>
4009 #else
4010 # include <assert.h>
4011 #endif
4012 Syntax error
4013 _ACEOF
4014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null; then
4022 if test -s conftest.err; then
4023 ac_cpp_err=$ac_c_preproc_warn_flag
4024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4025 else
4026 ac_cpp_err=
4027 fi
4028 else
4029 ac_cpp_err=yes
4030 fi
4031 if test -z "$ac_cpp_err"; then
4032 :
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 # Broken: fails on valid input.
4038 continue
4039 fi
4040 rm -f conftest.err conftest.$ac_ext
4041
4042 # OK, works on sane cases. Now check whether non-existent headers
4043 # can be detected and how.
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 #include <ac_nonexistent.h>
4051 _ACEOF
4052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4054 ac_status=$?
4055 grep -v '^ *+' conftest.er1 >conftest.err
4056 rm -f conftest.er1
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } >/dev/null; then
4060 if test -s conftest.err; then
4061 ac_cpp_err=$ac_c_preproc_warn_flag
4062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4063 else
4064 ac_cpp_err=
4065 fi
4066 else
4067 ac_cpp_err=yes
4068 fi
4069 if test -z "$ac_cpp_err"; then
4070 # Broken: success on invalid input.
4071 continue
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076 # Passes both tests.
4077 ac_preproc_ok=:
4078 break
4079 fi
4080 rm -f conftest.err conftest.$ac_ext
4081
4082 done
4083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4084 rm -f conftest.err conftest.$ac_ext
4085 if $ac_preproc_ok; then
4086 break
4087 fi
4088
4089 done
4090 ac_cv_prog_CPP=$CPP
4091
4092 fi
4093 CPP=$ac_cv_prog_CPP
4094 else
4095 ac_cv_prog_CPP=$CPP
4096 fi
4097 echo "$as_me:$LINENO: result: $CPP" >&5
4098 echo "${ECHO_T}$CPP" >&6
4099 ac_preproc_ok=false
4100 for ac_c_preproc_warn_flag in '' yes
4101 do
4102 # Use a header file that comes with gcc, so configuring glibc
4103 # with a fresh cross-compiler works.
4104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105 # <limits.h> exists even on freestanding compilers.
4106 # On the NeXT, cc -E runs the code through the compiler's parser,
4107 # not just through cpp. "Syntax error" is here to catch this case.
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #ifdef __STDC__
4115 # include <limits.h>
4116 #else
4117 # include <assert.h>
4118 #endif
4119 Syntax error
4120 _ACEOF
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev/null; then
4129 if test -s conftest.err; then
4130 ac_cpp_err=$ac_c_preproc_warn_flag
4131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4132 else
4133 ac_cpp_err=
4134 fi
4135 else
4136 ac_cpp_err=yes
4137 fi
4138 if test -z "$ac_cpp_err"; then
4139 :
4140 else
4141 echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144 # Broken: fails on valid input.
4145 continue
4146 fi
4147 rm -f conftest.err conftest.$ac_ext
4148
4149 # OK, works on sane cases. Now check whether non-existent headers
4150 # can be detected and how.
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4158 _ACEOF
4159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } >/dev/null; then
4167 if test -s conftest.err; then
4168 ac_cpp_err=$ac_c_preproc_warn_flag
4169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4170 else
4171 ac_cpp_err=
4172 fi
4173 else
4174 ac_cpp_err=yes
4175 fi
4176 if test -z "$ac_cpp_err"; then
4177 # Broken: success on invalid input.
4178 continue
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 # Passes both tests.
4184 ac_preproc_ok=:
4185 break
4186 fi
4187 rm -f conftest.err conftest.$ac_ext
4188
4189 done
4190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191 rm -f conftest.err conftest.$ac_ext
4192 if $ac_preproc_ok; then
4193 :
4194 else
4195 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4196 See \`config.log' for more details." >&5
4197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4198 See \`config.log' for more details." >&2;}
4199 { (exit 1); exit 1; }; }
4200 fi
4201
4202 ac_ext=c
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208
4209 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4211 if test "${ac_cv_header_stdc+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214 cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h. */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4220 #include <stdlib.h>
4221 #include <stdarg.h>
4222 #include <string.h>
4223 #include <float.h>
4224
4225 int
4226 main ()
4227 {
4228
4229 ;
4230 return 0;
4231 }
4232 _ACEOF
4233 rm -f conftest.$ac_objext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -z "$ac_c_werror_flag"
4243 || test ! -s conftest.err'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 ac_cv_header_stdc=yes
4256 else
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263
4264 if test $ac_cv_header_stdc = yes; then
4265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <string.h>
4273
4274 _ACEOF
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 $EGREP "memchr" >/dev/null 2>&1; then
4277 :
4278 else
4279 ac_cv_header_stdc=no
4280 fi
4281 rm -f conftest*
4282
4283 fi
4284
4285 if test $ac_cv_header_stdc = yes; then
4286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <stdlib.h>
4294
4295 _ACEOF
4296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4297 $EGREP "free" >/dev/null 2>&1; then
4298 :
4299 else
4300 ac_cv_header_stdc=no
4301 fi
4302 rm -f conftest*
4303
4304 fi
4305
4306 if test $ac_cv_header_stdc = yes; then
4307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4308 if test "$cross_compiling" = yes; then
4309 :
4310 else
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <ctype.h>
4318 #if ((' ' & 0x0FF) == 0x020)
4319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4321 #else
4322 # define ISLOWER(c) \
4323 (('a' <= (c) && (c) <= 'i') \
4324 || ('j' <= (c) && (c) <= 'r') \
4325 || ('s' <= (c) && (c) <= 'z'))
4326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4327 #endif
4328
4329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4330 int
4331 main ()
4332 {
4333 int i;
4334 for (i = 0; i < 256; i++)
4335 if (XOR (islower (i), ISLOWER (i))
4336 || toupper (i) != TOUPPER (i))
4337 exit(2);
4338 exit (0);
4339 }
4340 _ACEOF
4341 rm -f conftest$ac_exeext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343 (eval $ac_link) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 :
4353 else
4354 echo "$as_me: program exited with status $ac_status" >&5
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 ( exit $ac_status )
4359 ac_cv_header_stdc=no
4360 fi
4361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362 fi
4363 fi
4364 fi
4365 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4367 if test $ac_cv_header_stdc = yes; then
4368
4369 cat >>confdefs.h <<\_ACEOF
4370 #define STDC_HEADERS 1
4371 _ACEOF
4372
4373 fi
4374
4375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4386 inttypes.h stdint.h unistd.h
4387 do
4388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389 echo "$as_me:$LINENO: checking for $ac_header" >&5
4390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 $ac_includes_default
4401
4402 #include <$ac_header>
4403 _ACEOF
4404 rm -f conftest.$ac_objext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag"
4414 || test ! -s conftest.err'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 eval "$as_ac_Header=yes"
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4430
4431 eval "$as_ac_Header=no"
4432 fi
4433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434 fi
4435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4438 cat >>confdefs.h <<_ACEOF
4439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4440 _ACEOF
4441
4442 fi
4443
4444 done
4445
4446
4447
4448 for ac_header in dlfcn.h
4449 do
4450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4452 echo "$as_me:$LINENO: checking for $ac_header" >&5
4453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 fi
4457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4459 else
4460 # Is the header compilable?
4461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 $ac_includes_default
4470 #include <$ac_header>
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag"
4482 || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_header_compiler=yes
4495 else
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499 ac_header_compiler=no
4500 fi
4501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4503 echo "${ECHO_T}$ac_header_compiler" >&6
4504
4505 # Is the header present?
4506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <$ac_header>
4515 _ACEOF
4516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } >/dev/null; then
4524 if test -s conftest.err; then
4525 ac_cpp_err=$ac_c_preproc_warn_flag
4526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4527 else
4528 ac_cpp_err=
4529 fi
4530 else
4531 ac_cpp_err=yes
4532 fi
4533 if test -z "$ac_cpp_err"; then
4534 ac_header_preproc=yes
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 ac_header_preproc=no
4540 fi
4541 rm -f conftest.err conftest.$ac_ext
4542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4543 echo "${ECHO_T}$ac_header_preproc" >&6
4544
4545 # So? What about this header?
4546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4547 yes:no: )
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4552 ac_header_preproc=yes
4553 ;;
4554 no:yes:* )
4555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4567 (
4568 cat <<\_ASBOX
4569 ## ------------------------------------------ ##
4570 ## Report this to the AC_PACKAGE_NAME lists. ##
4571 ## ------------------------------------------ ##
4572 _ASBOX
4573 ) |
4574 sed "s/^/$as_me: WARNING: /" >&2
4575 ;;
4576 esac
4577 echo "$as_me:$LINENO: checking for $ac_header" >&5
4578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582 eval "$as_ac_Header=\$ac_header_preproc"
4583 fi
4584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4586
4587 fi
4588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4589 cat >>confdefs.h <<_ACEOF
4590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4591 _ACEOF
4592
4593 fi
4594
4595 done
4596
4597
4598
4599 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4600 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4601 (test "X$CXX" != "Xg++"))) ; then
4602 ac_ext=cc
4603 ac_cpp='$CXXCPP $CPPFLAGS'
4604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4607 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4608 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4609 if test -z "$CXXCPP"; then
4610 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 # Double quotes because CXXCPP needs to be expanded
4614 for CXXCPP in "$CXX -E" "/lib/cpp"
4615 do
4616 ac_preproc_ok=false
4617 for ac_cxx_preproc_warn_flag in '' yes
4618 do
4619 # Use a header file that comes with gcc, so configuring glibc
4620 # with a fresh cross-compiler works.
4621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4622 # <limits.h> exists even on freestanding compilers.
4623 # On the NeXT, cc -E runs the code through the compiler's parser,
4624 # not just through cpp. "Syntax error" is here to catch this case.
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 #ifdef __STDC__
4632 # include <limits.h>
4633 #else
4634 # include <assert.h>
4635 #endif
4636 Syntax error
4637 _ACEOF
4638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null; then
4646 if test -s conftest.err; then
4647 ac_cpp_err=$ac_cxx_preproc_warn_flag
4648 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4649 else
4650 ac_cpp_err=
4651 fi
4652 else
4653 ac_cpp_err=yes
4654 fi
4655 if test -z "$ac_cpp_err"; then
4656 :
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 # Broken: fails on valid input.
4662 continue
4663 fi
4664 rm -f conftest.err conftest.$ac_ext
4665
4666 # OK, works on sane cases. Now check whether non-existent headers
4667 # can be detected and how.
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #include <ac_nonexistent.h>
4675 _ACEOF
4676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4678 ac_status=$?
4679 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } >/dev/null; then
4684 if test -s conftest.err; then
4685 ac_cpp_err=$ac_cxx_preproc_warn_flag
4686 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4687 else
4688 ac_cpp_err=
4689 fi
4690 else
4691 ac_cpp_err=yes
4692 fi
4693 if test -z "$ac_cpp_err"; then
4694 # Broken: success on invalid input.
4695 continue
4696 else
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 # Passes both tests.
4701 ac_preproc_ok=:
4702 break
4703 fi
4704 rm -f conftest.err conftest.$ac_ext
4705
4706 done
4707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4708 rm -f conftest.err conftest.$ac_ext
4709 if $ac_preproc_ok; then
4710 break
4711 fi
4712
4713 done
4714 ac_cv_prog_CXXCPP=$CXXCPP
4715
4716 fi
4717 CXXCPP=$ac_cv_prog_CXXCPP
4718 else
4719 ac_cv_prog_CXXCPP=$CXXCPP
4720 fi
4721 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4722 echo "${ECHO_T}$CXXCPP" >&6
4723 ac_preproc_ok=false
4724 for ac_cxx_preproc_warn_flag in '' yes
4725 do
4726 # Use a header file that comes with gcc, so configuring glibc
4727 # with a fresh cross-compiler works.
4728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4729 # <limits.h> exists even on freestanding compilers.
4730 # On the NeXT, cc -E runs the code through the compiler's parser,
4731 # not just through cpp. "Syntax error" is here to catch this case.
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #ifdef __STDC__
4739 # include <limits.h>
4740 #else
4741 # include <assert.h>
4742 #endif
4743 Syntax error
4744 _ACEOF
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null; then
4753 if test -s conftest.err; then
4754 ac_cpp_err=$ac_cxx_preproc_warn_flag
4755 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4756 else
4757 ac_cpp_err=
4758 fi
4759 else
4760 ac_cpp_err=yes
4761 fi
4762 if test -z "$ac_cpp_err"; then
4763 :
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 # Broken: fails on valid input.
4769 continue
4770 fi
4771 rm -f conftest.err conftest.$ac_ext
4772
4773 # OK, works on sane cases. Now check whether non-existent headers
4774 # can be detected and how.
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h. */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4781 #include <ac_nonexistent.h>
4782 _ACEOF
4783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } >/dev/null; then
4791 if test -s conftest.err; then
4792 ac_cpp_err=$ac_cxx_preproc_warn_flag
4793 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4794 else
4795 ac_cpp_err=
4796 fi
4797 else
4798 ac_cpp_err=yes
4799 fi
4800 if test -z "$ac_cpp_err"; then
4801 # Broken: success on invalid input.
4802 continue
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 # Passes both tests.
4808 ac_preproc_ok=:
4809 break
4810 fi
4811 rm -f conftest.err conftest.$ac_ext
4812
4813 done
4814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4815 rm -f conftest.err conftest.$ac_ext
4816 if $ac_preproc_ok; then
4817 :
4818 else
4819 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4820 See \`config.log' for more details." >&5
4821 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4822 See \`config.log' for more details." >&2;}
4823 { (exit 1); exit 1; }; }
4824 fi
4825
4826 ac_ext=cc
4827 ac_cpp='$CXXCPP $CPPFLAGS'
4828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4831
4832 fi
4833
4834
4835 ac_ext=f
4836 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4837 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4839 if test -n "$ac_tool_prefix"; then
4840 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4841 do
4842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_prog_F77+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849 if test -n "$F77"; then
4850 ac_cv_prog_F77="$F77" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863 done
4864 done
4865
4866 fi
4867 fi
4868 F77=$ac_cv_prog_F77
4869 if test -n "$F77"; then
4870 echo "$as_me:$LINENO: result: $F77" >&5
4871 echo "${ECHO_T}$F77" >&6
4872 else
4873 echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875 fi
4876
4877 test -n "$F77" && break
4878 done
4879 fi
4880 if test -z "$F77"; then
4881 ac_ct_F77=$F77
4882 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4883 do
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 if test -n "$ac_ct_F77"; then
4892 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_ac_ct_F77="$ac_prog"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907
4908 fi
4909 fi
4910 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4911 if test -n "$ac_ct_F77"; then
4912 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4913 echo "${ECHO_T}$ac_ct_F77" >&6
4914 else
4915 echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4917 fi
4918
4919 test -n "$ac_ct_F77" && break
4920 done
4921
4922 F77=$ac_ct_F77
4923 fi
4924
4925
4926 # Provide some information about the compiler.
4927 echo "$as_me:4927:" \
4928 "checking for Fortran 77 compiler version" >&5
4929 ac_compiler=`set X $ac_compile; echo $2`
4930 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4931 (eval $ac_compiler --version </dev/null >&5) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }
4935 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4936 (eval $ac_compiler -v </dev/null >&5) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }
4940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4941 (eval $ac_compiler -V </dev/null >&5) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }
4945 rm -f a.out
4946
4947 # If we don't use `.F' as extension, the preprocessor is not run on the
4948 # input file. (Note that this only needs to work for GNU compilers.)
4949 ac_save_ext=$ac_ext
4950 ac_ext=F
4951 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4952 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4953 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 cat >conftest.$ac_ext <<_ACEOF
4957 program main
4958 #ifndef __GNUC__
4959 choke me
4960 #endif
4961
4962 end
4963 _ACEOF
4964 rm -f conftest.$ac_objext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -z "$ac_f77_werror_flag"
4974 || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_compiler_gnu=yes
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 ac_compiler_gnu=no
4992 fi
4993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4995
4996 fi
4997 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4998 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4999 ac_ext=$ac_save_ext
5000 ac_test_FFLAGS=${FFLAGS+set}
5001 ac_save_FFLAGS=$FFLAGS
5002 FFLAGS=
5003 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5004 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5005 if test "${ac_cv_prog_f77_g+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 FFLAGS=-g
5009 cat >conftest.$ac_ext <<_ACEOF
5010 program main
5011
5012 end
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -z "$ac_f77_werror_flag"
5024 || test ! -s conftest.err'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; } &&
5030 { ac_try='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 ac_cv_prog_f77_g=yes
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041 ac_cv_prog_f77_g=no
5042 fi
5043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5044
5045 fi
5046 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5047 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5048 if test "$ac_test_FFLAGS" = set; then
5049 FFLAGS=$ac_save_FFLAGS
5050 elif test $ac_cv_prog_f77_g = yes; then
5051 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5052 FFLAGS="-g -O2"
5053 else
5054 FFLAGS="-g"
5055 fi
5056 else
5057 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5058 FFLAGS="-O2"
5059 else
5060 FFLAGS=
5061 fi
5062 fi
5063
5064 G77=`test $ac_compiler_gnu = yes && echo yes`
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070
5071
5072
5073 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5074
5075 # find the maximum length of command line arguments
5076 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5077 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5078 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 i=0
5082 teststring="ABCD"
5083
5084 case $build_os in
5085 msdosdjgpp*)
5086 # On DJGPP, this test can blow up pretty badly due to problems in libc
5087 # (any single argument exceeding 2000 bytes causes a buffer overrun
5088 # during glob expansion). Even if it were fixed, the result of this
5089 # check would be larger than it should be.
5090 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5091 ;;
5092
5093 gnu*)
5094 # Under GNU Hurd, this test is not required because there is
5095 # no limit to the length of command line arguments.
5096 # Libtool will interpret -1 as no limit whatsoever
5097 lt_cv_sys_max_cmd_len=-1;
5098 ;;
5099
5100 cygwin* | mingw*)
5101 # On Win9x/ME, this test blows up -- it succeeds, but takes
5102 # about 5 minutes as the teststring grows exponentially.
5103 # Worse, since 9x/ME are not pre-emptively multitasking,
5104 # you end up with a "frozen" computer, even though with patience
5105 # the test eventually succeeds (with a max line length of 256k).
5106 # Instead, let's just punt: use the minimum linelength reported by
5107 # all of the supported platforms: 8192 (on NT/2K/XP).
5108 lt_cv_sys_max_cmd_len=8192;
5109 ;;
5110
5111 amigaos*)
5112 # On AmigaOS with pdksh, this test takes hours, literally.
5113 # So we just punt and use a minimum line length of 8192.
5114 lt_cv_sys_max_cmd_len=8192;
5115 ;;
5116
5117 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5118 # This has been around since 386BSD, at least. Likely further.
5119 if test -x /sbin/sysctl; then
5120 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5121 elif test -x /usr/sbin/sysctl; then
5122 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5123 else
5124 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5125 fi
5126 # And add a safety zone
5127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5129 ;;
5130
5131 interix*)
5132 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5133 lt_cv_sys_max_cmd_len=196608
5134 ;;
5135
5136 osf*)
5137 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5138 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5139 # nice to cause kernel panics so lets avoid the loop below.
5140 # First set a reasonable default.
5141 lt_cv_sys_max_cmd_len=16384
5142 #
5143 if test -x /sbin/sysconfig; then
5144 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5145 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5146 esac
5147 fi
5148 ;;
5149 sco3.2v5*)
5150 lt_cv_sys_max_cmd_len=102400
5151 ;;
5152 sysv5* | sco5v6* | sysv4.2uw2*)
5153 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5154 if test -n "$kargmax"; then
5155 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5156 else
5157 lt_cv_sys_max_cmd_len=32768
5158 fi
5159 ;;
5160 *)
5161 # If test is not a shell built-in, we'll probably end up computing a
5162 # maximum length that is only half of the actual maximum length, but
5163 # we can't tell.
5164 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5165 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5166 = "XX$teststring") >/dev/null 2>&1 &&
5167 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5168 lt_cv_sys_max_cmd_len=$new_result &&
5169 test $i != 17 # 1/2 MB should be enough
5170 do
5171 i=`expr $i + 1`
5172 teststring=$teststring$teststring
5173 done
5174 teststring=
5175 # Add a significant safety factor because C++ compilers can tack on massive
5176 # amounts of additional arguments before passing them to the linker.
5177 # It appears as though 1/2 is a usable value.
5178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5179 ;;
5180 esac
5181
5182 fi
5183
5184 if test -n $lt_cv_sys_max_cmd_len ; then
5185 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5186 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5187 else
5188 echo "$as_me:$LINENO: result: none" >&5
5189 echo "${ECHO_T}none" >&6
5190 fi
5191
5192
5193
5194
5195 # Check for command to grab the raw symbol name followed by C symbol from nm.
5196 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5197 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5198 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201
5202 # These are sane defaults that work on at least a few old systems.
5203 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5204
5205 # Character class describing NM global symbol codes.
5206 symcode='[BCDEGRST]'
5207
5208 # Regexp to match symbols that can be accessed directly from C.
5209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5210
5211 # Transform an extracted symbol line into a proper C declaration
5212 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5213
5214 # Transform an extracted symbol line into symbol name and symbol address
5215 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'"
5216
5217 # Define system-specific variables.
5218 case $host_os in
5219 aix*)
5220 symcode='[BCDT]'
5221 ;;
5222 cygwin* | mingw* | pw32*)
5223 symcode='[ABCDGISTW]'
5224 ;;
5225 hpux*) # Its linker distinguishes data from code symbols
5226 if test "$host_cpu" = ia64; then
5227 symcode='[ABCDEGRST]'
5228 fi
5229 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5230 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'"
5231 ;;
5232 linux*)
5233 if test "$host_cpu" = ia64; then
5234 symcode='[ABCDGIRSTW]'
5235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5236 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'"
5237 fi
5238 ;;
5239 irix* | nonstopux*)
5240 symcode='[BCDEGRST]'
5241 ;;
5242 osf*)
5243 symcode='[BCDEGQRST]'
5244 ;;
5245 solaris*)
5246 symcode='[BDRT]'
5247 ;;
5248 sco3.2v5*)
5249 symcode='[DT]'
5250 ;;
5251 sysv4.2uw2*)
5252 symcode='[DT]'
5253 ;;
5254 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5255 symcode='[ABDT]'
5256 ;;
5257 sysv4)
5258 symcode='[DFNSTU]'
5259 ;;
5260 esac
5261
5262 # Handle CRLF in mingw tool chain
5263 opt_cr=
5264 case $build_os in
5265 mingw*)
5266 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5267 ;;
5268 esac
5269
5270 # If we're using GNU nm, then use its standard symbol codes.
5271 case `$NM -V 2>&1` in
5272 *GNU* | *'with BFD'*)
5273 symcode='[ABCDGIRSTW]' ;;
5274 esac
5275
5276 # Try without a prefix undercore, then with it.
5277 for ac_symprfx in "" "_"; do
5278
5279 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5280 symxfrm="\\1 $ac_symprfx\\2 \\2"
5281
5282 # Write the raw and C identifiers.
5283 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5284
5285 # Check to see that the pipe works correctly.
5286 pipe_works=no
5287
5288 rm -f conftest*
5289 cat > conftest.$ac_ext <<EOF
5290 #ifdef __cplusplus
5291 extern "C" {
5292 #endif
5293 char nm_test_var;
5294 void nm_test_func(){}
5295 #ifdef __cplusplus
5296 }
5297 #endif
5298 int main(){nm_test_var='a';nm_test_func();return(0);}
5299 EOF
5300
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; then
5306 # Now try to grab the symbols.
5307 nlist=conftest.nm
5308 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5309 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } && test -s "$nlist"; then
5313 # Try sorting and uniquifying the output.
5314 if sort "$nlist" | uniq > "$nlist"T; then
5315 mv -f "$nlist"T "$nlist"
5316 else
5317 rm -f "$nlist"T
5318 fi
5319
5320 # Make sure that we snagged all the symbols we need.
5321 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5322 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5323 cat <<EOF > conftest.$ac_ext
5324 #ifdef __cplusplus
5325 extern "C" {
5326 #endif
5327
5328 EOF
5329 # Now generate the symbol file.
5330 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5331
5332 cat <<EOF >> conftest.$ac_ext
5333 #if defined (__STDC__) && __STDC__
5334 # define lt_ptr_t void *
5335 #else
5336 # define lt_ptr_t char *
5337 # define const
5338 #endif
5339
5340 /* The mapping between symbol names and symbols. */
5341 const struct {
5342 const char *name;
5343 lt_ptr_t address;
5344 }
5345 lt_preloaded_symbols[] =
5346 {
5347 EOF
5348 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5349 cat <<\EOF >> conftest.$ac_ext
5350 {0, (lt_ptr_t) 0}
5351 };
5352
5353 #ifdef __cplusplus
5354 }
5355 #endif
5356 EOF
5357 # Now try linking the two files.
5358 mv conftest.$ac_objext conftstm.$ac_objext
5359 lt_save_LIBS="$LIBS"
5360 lt_save_CFLAGS="$CFLAGS"
5361 LIBS="conftstm.$ac_objext"
5362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5364 (eval $ac_link) 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5368 pipe_works=yes
5369 fi
5370 LIBS="$lt_save_LIBS"
5371 CFLAGS="$lt_save_CFLAGS"
5372 else
5373 echo "cannot find nm_test_func in $nlist" >&5
5374 fi
5375 else
5376 echo "cannot find nm_test_var in $nlist" >&5
5377 fi
5378 else
5379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5380 fi
5381 else
5382 echo "$progname: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5384 fi
5385 rm -f conftest* conftst*
5386
5387 # Do not use the global_symbol_pipe unless it works.
5388 if test "$pipe_works" = yes; then
5389 break
5390 else
5391 lt_cv_sys_global_symbol_pipe=
5392 fi
5393 done
5394
5395 fi
5396
5397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5398 lt_cv_sys_global_symbol_to_cdecl=
5399 fi
5400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5401 echo "$as_me:$LINENO: result: failed" >&5
5402 echo "${ECHO_T}failed" >&6
5403 else
5404 echo "$as_me:$LINENO: result: ok" >&5
5405 echo "${ECHO_T}ok" >&6
5406 fi
5407
5408 echo "$as_me:$LINENO: checking for objdir" >&5
5409 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5410 if test "${lt_cv_objdir+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 rm -f .libs 2>/dev/null
5414 mkdir .libs 2>/dev/null
5415 if test -d .libs; then
5416 lt_cv_objdir=.libs
5417 else
5418 # MS-DOS does not allow filenames that begin with a dot.
5419 lt_cv_objdir=_libs
5420 fi
5421 rmdir .libs 2>/dev/null
5422 fi
5423 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5424 echo "${ECHO_T}$lt_cv_objdir" >&6
5425 objdir=$lt_cv_objdir
5426
5427
5428
5429
5430
5431 case $host_os in
5432 aix3*)
5433 # AIX sometimes has problems with the GCC collect2 program. For some
5434 # reason, if we set the COLLECT_NAMES environment variable, the problems
5435 # vanish in a puff of smoke.
5436 if test "X${COLLECT_NAMES+set}" != Xset; then
5437 COLLECT_NAMES=
5438 export COLLECT_NAMES
5439 fi
5440 ;;
5441 esac
5442
5443 # Sed substitution that helps us do robust quoting. It backslashifies
5444 # metacharacters that are still active within double-quoted strings.
5445 Xsed='sed -e 1s/^X//'
5446 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5447
5448 # Same as above, but do not quote variable references.
5449 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5450
5451 # Sed substitution to delay expansion of an escaped shell variable in a
5452 # double_quote_subst'ed string.
5453 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5454
5455 # Sed substitution to avoid accidental globbing in evaled expressions
5456 no_glob_subst='s/\*/\\\*/g'
5457
5458 # Constants:
5459 rm="rm -f"
5460
5461 # Global variables:
5462 default_ofile=libtool
5463 can_build_shared=yes
5464
5465 # All known linkers require a `.a' archive for static linking (except MSVC,
5466 # which needs '.lib').
5467 libext=a
5468 ltmain="$ac_aux_dir/ltmain.sh"
5469 ofile="$default_ofile"
5470 with_gnu_ld="$lt_cv_prog_gnu_ld"
5471
5472 if test -n "$ac_tool_prefix"; then
5473 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}ar; ac_word=$2
5475 echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5477 if test "${ac_cv_prog_AR+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 if test -n "$AR"; then
5481 ac_cv_prog_AR="$AR" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_AR="${ac_tool_prefix}ar"
5491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494 done
5495 done
5496
5497 fi
5498 fi
5499 AR=$ac_cv_prog_AR
5500 if test -n "$AR"; then
5501 echo "$as_me:$LINENO: result: $AR" >&5
5502 echo "${ECHO_T}$AR" >&6
5503 else
5504 echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5506 fi
5507
5508 fi
5509 if test -z "$ac_cv_prog_AR"; then
5510 ac_ct_AR=$AR
5511 # Extract the first word of "ar", so it can be a program name with args.
5512 set dummy ar; ac_word=$2
5513 echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 if test -n "$ac_ct_AR"; then
5519 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_ac_ct_AR="ar"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532 done
5533 done
5534
5535 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5536 fi
5537 fi
5538 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5539 if test -n "$ac_ct_AR"; then
5540 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5541 echo "${ECHO_T}$ac_ct_AR" >&6
5542 else
5543 echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6
5545 fi
5546
5547 AR=$ac_ct_AR
5548 else
5549 AR="$ac_cv_prog_AR"
5550 fi
5551
5552 if test -n "$ac_tool_prefix"; then
5553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5554 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5555 echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5557 if test "${ac_cv_prog_RANLIB+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560 if test -n "$RANLIB"; then
5561 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576
5577 fi
5578 fi
5579 RANLIB=$ac_cv_prog_RANLIB
5580 if test -n "$RANLIB"; then
5581 echo "$as_me:$LINENO: result: $RANLIB" >&5
5582 echo "${ECHO_T}$RANLIB" >&6
5583 else
5584 echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5586 fi
5587
5588 fi
5589 if test -z "$ac_cv_prog_RANLIB"; then
5590 ac_ct_RANLIB=$RANLIB
5591 # Extract the first word of "ranlib", so it can be a program name with args.
5592 set dummy ranlib; ac_word=$2
5593 echo "$as_me:$LINENO: checking for $ac_word" >&5
5594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5595 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 if test -n "$ac_ct_RANLIB"; then
5599 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608 ac_cv_prog_ac_ct_RANLIB="ranlib"
5609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612 done
5613 done
5614
5615 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5616 fi
5617 fi
5618 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5619 if test -n "$ac_ct_RANLIB"; then
5620 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5621 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5622 else
5623 echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6
5625 fi
5626
5627 RANLIB=$ac_ct_RANLIB
5628 else
5629 RANLIB="$ac_cv_prog_RANLIB"
5630 fi
5631
5632 if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5634 set dummy ${ac_tool_prefix}strip; ac_word=$2
5635 echo "$as_me:$LINENO: checking for $ac_word" >&5
5636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5637 if test "${ac_cv_prog_STRIP+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 if test -n "$STRIP"; then
5641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656
5657 fi
5658 fi
5659 STRIP=$ac_cv_prog_STRIP
5660 if test -n "$STRIP"; then
5661 echo "$as_me:$LINENO: result: $STRIP" >&5
5662 echo "${ECHO_T}$STRIP" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5666 fi
5667
5668 fi
5669 if test -z "$ac_cv_prog_STRIP"; then
5670 ac_ct_STRIP=$STRIP
5671 # Extract the first word of "strip", so it can be a program name with args.
5672 set dummy strip; ac_word=$2
5673 echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678 if test -n "$ac_ct_STRIP"; then
5679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_ac_ct_STRIP="strip"
5689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694
5695 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5696 fi
5697 fi
5698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5699 if test -n "$ac_ct_STRIP"; then
5700 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5701 echo "${ECHO_T}$ac_ct_STRIP" >&6
5702 else
5703 echo "$as_me:$LINENO: result: no" >&5
5704 echo "${ECHO_T}no" >&6
5705 fi
5706
5707 STRIP=$ac_ct_STRIP
5708 else
5709 STRIP="$ac_cv_prog_STRIP"
5710 fi
5711
5712
5713 old_CC="$CC"
5714 old_CFLAGS="$CFLAGS"
5715
5716 # Set sane defaults for various variables
5717 test -z "$AR" && AR=ar
5718 test -z "$AR_FLAGS" && AR_FLAGS=cru
5719 test -z "$AS" && AS=as
5720 test -z "$CC" && CC=cc
5721 test -z "$LTCC" && LTCC=$CC
5722 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5723 test -z "$DLLTOOL" && DLLTOOL=dlltool
5724 test -z "$LD" && LD=ld
5725 test -z "$LN_S" && LN_S="ln -s"
5726 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5727 test -z "$NM" && NM=nm
5728 test -z "$SED" && SED=sed
5729 test -z "$OBJDUMP" && OBJDUMP=objdump
5730 test -z "$RANLIB" && RANLIB=:
5731 test -z "$STRIP" && STRIP=:
5732 test -z "$ac_objext" && ac_objext=o
5733
5734 # Determine commands to create old-style static archives.
5735 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5736 old_postinstall_cmds='chmod 644 $oldlib'
5737 old_postuninstall_cmds=
5738
5739 if test -n "$RANLIB"; then
5740 case $host_os in
5741 openbsd*)
5742 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5743 ;;
5744 *)
5745 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5746 ;;
5747 esac
5748 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5749 fi
5750
5751 for cc_temp in $compiler""; do
5752 case $cc_temp in
5753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5755 \-*) ;;
5756 *) break;;
5757 esac
5758 done
5759 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5760
5761
5762 # Only perform the check for file, if the check method requires it
5763 case $deplibs_check_method in
5764 file_magic*)
5765 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5766 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5767 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5768 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 case $MAGIC_CMD in
5772 [\\/*] | ?:[\\/]*)
5773 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5774 ;;
5775 *)
5776 lt_save_MAGIC_CMD="$MAGIC_CMD"
5777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5778 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5779 for ac_dir in $ac_dummy; do
5780 IFS="$lt_save_ifs"
5781 test -z "$ac_dir" && ac_dir=.
5782 if test -f $ac_dir/${ac_tool_prefix}file; then
5783 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5784 if test -n "$file_magic_test_file"; then
5785 case $deplibs_check_method in
5786 "file_magic "*)
5787 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5790 $EGREP "$file_magic_regex" > /dev/null; then
5791 :
5792 else
5793 cat <<EOF 1>&2
5794
5795 *** Warning: the command libtool uses to detect shared libraries,
5796 *** $file_magic_cmd, produces output that libtool cannot recognize.
5797 *** The result is that libtool may fail to recognize shared libraries
5798 *** as such. This will affect the creation of libtool libraries that
5799 *** depend on shared libraries, but programs linked with such libtool
5800 *** libraries will work regardless of this problem. Nevertheless, you
5801 *** may want to report the problem to your system manager and/or to
5802 *** bug-libtool@gnu.org
5803
5804 EOF
5805 fi ;;
5806 esac
5807 fi
5808 break
5809 fi
5810 done
5811 IFS="$lt_save_ifs"
5812 MAGIC_CMD="$lt_save_MAGIC_CMD"
5813 ;;
5814 esac
5815 fi
5816
5817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5818 if test -n "$MAGIC_CMD"; then
5819 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5820 echo "${ECHO_T}$MAGIC_CMD" >&6
5821 else
5822 echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6
5824 fi
5825
5826 if test -z "$lt_cv_path_MAGIC_CMD"; then
5827 if test -n "$ac_tool_prefix"; then
5828 echo "$as_me:$LINENO: checking for file" >&5
5829 echo $ECHO_N "checking for file... $ECHO_C" >&6
5830 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833 case $MAGIC_CMD in
5834 [\\/*] | ?:[\\/]*)
5835 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5836 ;;
5837 *)
5838 lt_save_MAGIC_CMD="$MAGIC_CMD"
5839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5840 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5841 for ac_dir in $ac_dummy; do
5842 IFS="$lt_save_ifs"
5843 test -z "$ac_dir" && ac_dir=.
5844 if test -f $ac_dir/file; then
5845 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5846 if test -n "$file_magic_test_file"; then
5847 case $deplibs_check_method in
5848 "file_magic "*)
5849 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5851 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5852 $EGREP "$file_magic_regex" > /dev/null; then
5853 :
5854 else
5855 cat <<EOF 1>&2
5856
5857 *** Warning: the command libtool uses to detect shared libraries,
5858 *** $file_magic_cmd, produces output that libtool cannot recognize.
5859 *** The result is that libtool may fail to recognize shared libraries
5860 *** as such. This will affect the creation of libtool libraries that
5861 *** depend on shared libraries, but programs linked with such libtool
5862 *** libraries will work regardless of this problem. Nevertheless, you
5863 *** may want to report the problem to your system manager and/or to
5864 *** bug-libtool@gnu.org
5865
5866 EOF
5867 fi ;;
5868 esac
5869 fi
5870 break
5871 fi
5872 done
5873 IFS="$lt_save_ifs"
5874 MAGIC_CMD="$lt_save_MAGIC_CMD"
5875 ;;
5876 esac
5877 fi
5878
5879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5880 if test -n "$MAGIC_CMD"; then
5881 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5882 echo "${ECHO_T}$MAGIC_CMD" >&6
5883 else
5884 echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6
5886 fi
5887
5888 else
5889 MAGIC_CMD=:
5890 fi
5891 fi
5892
5893 fi
5894 ;;
5895 esac
5896
5897 enable_dlopen=no
5898 enable_win32_dll=yes
5899
5900 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5901 if test "${enable_libtool_lock+set}" = set; then
5902 enableval="$enable_libtool_lock"
5903
5904 fi;
5905 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5906
5907
5908 # Check whether --with-pic or --without-pic was given.
5909 if test "${with_pic+set}" = set; then
5910 withval="$with_pic"
5911 pic_mode="$withval"
5912 else
5913 pic_mode=default
5914 fi;
5915 test -z "$pic_mode" && pic_mode=default
5916
5917 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
5918 #
5919 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
5920 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
5921 # calls AC_LIBTOOL_CONFIG and creates libtool.
5922 #
5923 echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
5924 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
5925 if test "x$ltmain" = "x" ; then
5926 echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6
5928 { { echo "$as_me:$LINENO: error:
5929
5930 *** [Gentoo] sanity check failed! ***
5931 *** \$ltmain is not defined, please check the patch for consistency! ***
5932 " >&5
5933 echo "$as_me: error:
5934
5935 *** [Gentoo] sanity check failed! ***
5936 *** \$ltmain is not defined, please check the patch for consistency! ***
5937 " >&2;}
5938 { (exit 1); exit 1; }; }
5939 fi
5940 gentoo_lt_version="1.5.22"
5941 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
5942 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
5943 echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 { { echo "$as_me:$LINENO: error:
5946
5947 *** [Gentoo] sanity check failed! ***
5948 *** libtool.m4 and ltmain.sh have a version mismatch! ***
5949 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
5950
5951 Please run:
5952
5953 libtoolize --copy --force
5954
5955 if appropriate, please contact the maintainer of this
5956 package (or your distribution) for help.
5957 " >&5
5958 echo "$as_me: error:
5959
5960 *** [Gentoo] sanity check failed! ***
5961 *** libtool.m4 and ltmain.sh have a version mismatch! ***
5962 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
5963
5964 Please run:
5965
5966 libtoolize --copy --force
5967
5968 if appropriate, please contact the maintainer of this
5969 package (or your distribution) for help.
5970 " >&2;}
5971 { (exit 1); exit 1; }; }
5972 else
5973 echo "$as_me:$LINENO: result: yes" >&5
5974 echo "${ECHO_T}yes" >&6
5975 fi
5976
5977
5978 # Use C for the default configuration in the libtool script
5979 tagname=
5980 lt_save_CC="$CC"
5981 ac_ext=c
5982 ac_cpp='$CPP $CPPFLAGS'
5983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986
5987
5988 # Source file extension for C test sources.
5989 ac_ext=c
5990
5991 # Object file extension for compiled C test sources.
5992 objext=o
5993 objext=$objext
5994
5995 # Code to be used in simple compile tests
5996 lt_simple_compile_test_code="int some_variable = 0;\n"
5997
5998 # Code to be used in simple link tests
5999 lt_simple_link_test_code='int main(){return(0);}\n'
6000
6001
6002 # If no C compiler was specified, use CC.
6003 LTCC=${LTCC-"$CC"}
6004
6005 # If no C compiler flags were specified, use CFLAGS.
6006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6007
6008 # Allow CC to be a program name with arguments.
6009 compiler=$CC
6010
6011
6012 # save warnings/boilerplate of simple test code
6013 ac_outfile=conftest.$ac_objext
6014 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6016 _lt_compiler_boilerplate=`cat conftest.err`
6017 $rm conftest*
6018
6019 ac_outfile=conftest.$ac_objext
6020 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6022 _lt_linker_boilerplate=`cat conftest.err`
6023 $rm conftest*
6024
6025
6026
6027 lt_prog_compiler_no_builtin_flag=
6028
6029 if test "$GCC" = yes; then
6030 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6031
6032
6033 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6034 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6035 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 lt_cv_prog_compiler_rtti_exceptions=no
6039 ac_outfile=conftest.$ac_objext
6040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6041 lt_compiler_flag="-fno-rtti -fno-exceptions"
6042 # Insert the option either (1) after the last *FLAGS variable, or
6043 # (2) before a word containing "conftest.", or (3) at the end.
6044 # Note that $ac_compile itself does not contain backslashes and begins
6045 # with a dollar sign (not a hyphen), so the echo should work correctly.
6046 # The option is referenced via a variable to avoid confusing sed.
6047 lt_compile=`echo "$ac_compile" | $SED \
6048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6050 -e 's:$: $lt_compiler_flag:'`
6051 (eval echo "\"\$as_me:6051: $lt_compile\"" >&5)
6052 (eval "$lt_compile" 2>conftest.err)
6053 ac_status=$?
6054 cat conftest.err >&5
6055 echo "$as_me:6055: \$? = $ac_status" >&5
6056 if (exit $ac_status) && test -s "$ac_outfile"; then
6057 # The compiler can only warn and ignore the option if not recognized
6058 # So say no if there are warnings other than the usual output.
6059 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6061 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6062 lt_cv_prog_compiler_rtti_exceptions=yes
6063 fi
6064 fi
6065 $rm conftest*
6066
6067 fi
6068 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6069 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6070
6071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6072 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6073 else
6074 :
6075 fi
6076
6077 fi
6078
6079 lt_prog_compiler_wl=
6080 lt_prog_compiler_pic=
6081 lt_prog_compiler_static=
6082
6083 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6085
6086 if test "$GCC" = yes; then
6087 lt_prog_compiler_wl='-Wl,'
6088 lt_prog_compiler_static='-static'
6089
6090 case $host_os in
6091 aix*)
6092 # All AIX code is PIC.
6093 if test "$host_cpu" = ia64; then
6094 # AIX 5 now supports IA64 processor
6095 lt_prog_compiler_static='-Bstatic'
6096 fi
6097 ;;
6098
6099 amigaos*)
6100 # FIXME: we need at least 68020 code to build shared libraries, but
6101 # adding the `-m68020' flag to GCC prevents building anything better,
6102 # like `-m68040'.
6103 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6104 ;;
6105
6106 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6107 # PIC is the default for these OSes.
6108 ;;
6109
6110 mingw* | pw32* | os2*)
6111 # This hack is so that the source file can tell whether it is being
6112 # built for inclusion in a dll (and should export symbols for example).
6113 lt_prog_compiler_pic='-DDLL_EXPORT'
6114 ;;
6115
6116 darwin* | rhapsody*)
6117 # PIC is the default on this platform
6118 # Common symbols not allowed in MH_DYLIB files
6119 lt_prog_compiler_pic='-fno-common'
6120 ;;
6121
6122 interix3*)
6123 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6124 # Instead, we relocate shared libraries at runtime.
6125 ;;
6126
6127 msdosdjgpp*)
6128 # Just because we use GCC doesn't mean we suddenly get shared libraries
6129 # on systems that don't support them.
6130 lt_prog_compiler_can_build_shared=no
6131 enable_shared=no
6132 ;;
6133
6134 sysv4*MP*)
6135 if test -d /usr/nec; then
6136 lt_prog_compiler_pic=-Kconform_pic
6137 fi
6138 ;;
6139
6140 hpux*)
6141 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6142 # not for PA HP-UX.
6143 case $host_cpu in
6144 hppa*64*|ia64*)
6145 # +Z the default
6146 ;;
6147 *)
6148 lt_prog_compiler_pic='-fPIC'
6149 ;;
6150 esac
6151 ;;
6152
6153 *)
6154 lt_prog_compiler_pic='-fPIC'
6155 ;;
6156 esac
6157 else
6158 # PORTME Check for flag to pass linker flags through the system compiler.
6159 case $host_os in
6160 aix*)
6161 lt_prog_compiler_wl='-Wl,'
6162 if test "$host_cpu" = ia64; then
6163 # AIX 5 now supports IA64 processor
6164 lt_prog_compiler_static='-Bstatic'
6165 else
6166 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6167 fi
6168 ;;
6169 darwin*)
6170 # PIC is the default on this platform
6171 # Common symbols not allowed in MH_DYLIB files
6172 case $cc_basename in
6173 xlc*)
6174 lt_prog_compiler_pic='-qnocommon'
6175 lt_prog_compiler_wl='-Wl,'
6176 ;;
6177 esac
6178 ;;
6179
6180 mingw* | pw32* | os2*)
6181 # This hack is so that the source file can tell whether it is being
6182 # built for inclusion in a dll (and should export symbols for example).
6183 lt_prog_compiler_pic='-DDLL_EXPORT'
6184 ;;
6185
6186 hpux9* | hpux10* | hpux11*)
6187 lt_prog_compiler_wl='-Wl,'
6188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6189 # not for PA HP-UX.
6190 case $host_cpu in
6191 hppa*64*|ia64*)
6192 # +Z the default
6193 ;;
6194 *)
6195 lt_prog_compiler_pic='+Z'
6196 ;;
6197 esac
6198 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6199 lt_prog_compiler_static='${wl}-a ${wl}archive'
6200 ;;
6201
6202 irix5* | irix6* | nonstopux*)
6203 lt_prog_compiler_wl='-Wl,'
6204 # PIC (with -KPIC) is the default.
6205 lt_prog_compiler_static='-non_shared'
6206 ;;
6207
6208 newsos6)
6209 lt_prog_compiler_pic='-KPIC'
6210 lt_prog_compiler_static='-Bstatic'
6211 ;;
6212
6213 linux*)
6214 case $cc_basename in
6215 icc* | ecc*)
6216 lt_prog_compiler_wl='-Wl,'
6217 lt_prog_compiler_pic='-KPIC'
6218 lt_prog_compiler_static='-static'
6219 ;;
6220 pgcc* | pgf77* | pgf90* | pgf95*)
6221 # Portland Group compilers (*not* the Pentium gcc compiler,
6222 # which looks to be a dead project)
6223 lt_prog_compiler_wl='-Wl,'
6224 lt_prog_compiler_pic='-fpic'
6225 lt_prog_compiler_static='-Bstatic'
6226 ;;
6227 ccc*)
6228 lt_prog_compiler_wl='-Wl,'
6229 # All Alpha code is PIC.
6230 lt_prog_compiler_static='-non_shared'
6231 ;;
6232 esac
6233 ;;
6234
6235 osf3* | osf4* | osf5*)
6236 lt_prog_compiler_wl='-Wl,'
6237 # All OSF/1 code is PIC.
6238 lt_prog_compiler_static='-non_shared'
6239 ;;
6240
6241 solaris*)
6242 lt_prog_compiler_pic='-KPIC'
6243 lt_prog_compiler_static='-Bstatic'
6244 case $cc_basename in
6245 f77* | f90* | f95*)
6246 lt_prog_compiler_wl='-Qoption ld ';;
6247 *)
6248 lt_prog_compiler_wl='-Wl,';;
6249 esac
6250 ;;
6251
6252 sunos4*)
6253 lt_prog_compiler_wl='-Qoption ld '
6254 lt_prog_compiler_pic='-PIC'
6255 lt_prog_compiler_static='-Bstatic'
6256 ;;
6257
6258 sysv4 | sysv4.2uw2* | sysv4.3*)
6259 lt_prog_compiler_wl='-Wl,'
6260 lt_prog_compiler_pic='-KPIC'
6261 lt_prog_compiler_static='-Bstatic'
6262 ;;
6263
6264 sysv4*MP*)
6265 if test -d /usr/nec ;then
6266 lt_prog_compiler_pic='-Kconform_pic'
6267 lt_prog_compiler_static='-Bstatic'
6268 fi
6269 ;;
6270
6271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6272 lt_prog_compiler_wl='-Wl,'
6273 lt_prog_compiler_pic='-KPIC'
6274 lt_prog_compiler_static='-Bstatic'
6275 ;;
6276
6277 unicos*)
6278 lt_prog_compiler_wl='-Wl,'
6279 lt_prog_compiler_can_build_shared=no
6280 ;;
6281
6282 uts4*)
6283 lt_prog_compiler_pic='-pic'
6284 lt_prog_compiler_static='-Bstatic'
6285 ;;
6286
6287 *)
6288 lt_prog_compiler_can_build_shared=no
6289 ;;
6290 esac
6291 fi
6292
6293 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6294 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6295
6296 #
6297 # Check to make sure the PIC flag actually works.
6298 #
6299 if test -n "$lt_prog_compiler_pic"; then
6300
6301 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6302 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6303 if test "${lt_prog_compiler_pic_works+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 lt_prog_compiler_pic_works=no
6307 ac_outfile=conftest.$ac_objext
6308 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6309 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6310 # Insert the option either (1) after the last *FLAGS variable, or
6311 # (2) before a word containing "conftest.", or (3) at the end.
6312 # Note that $ac_compile itself does not contain backslashes and begins
6313 # with a dollar sign (not a hyphen), so the echo should work correctly.
6314 # The option is referenced via a variable to avoid confusing sed.
6315 lt_compile=`echo "$ac_compile" | $SED \
6316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6318 -e 's:$: $lt_compiler_flag:'`
6319 (eval echo "\"\$as_me:6319: $lt_compile\"" >&5)
6320 (eval "$lt_compile" 2>conftest.err)
6321 ac_status=$?
6322 cat conftest.err >&5
6323 echo "$as_me:6323: \$? = $ac_status" >&5
6324 if (exit $ac_status) && test -s "$ac_outfile"; then
6325 # The compiler can only warn and ignore the option if not recognized
6326 # So say no if there are warnings other than the usual output.
6327 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6329 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6330 lt_prog_compiler_pic_works=yes
6331 fi
6332 fi
6333 $rm conftest*
6334
6335 fi
6336 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6337 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6338
6339 if test x"$lt_prog_compiler_pic_works" = xyes; then
6340 case $lt_prog_compiler_pic in
6341 "" | " "*) ;;
6342 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6343 esac
6344 else
6345 lt_prog_compiler_pic=
6346 lt_prog_compiler_can_build_shared=no
6347 fi
6348
6349 fi
6350 case $host_os in
6351 # For platforms which do not support PIC, -DPIC is meaningless:
6352 *djgpp*)
6353 lt_prog_compiler_pic=
6354 ;;
6355 *)
6356 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6357 ;;
6358 esac
6359
6360 #
6361 # Check to make sure the static flag actually works.
6362 #
6363 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6364 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6365 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6366 if test "${lt_prog_compiler_static_works+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369 lt_prog_compiler_static_works=no
6370 save_LDFLAGS="$LDFLAGS"
6371 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6372 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6373 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6374 # The linker can only warn and ignore the option if not recognized
6375 # So say no if there are warnings
6376 if test -s conftest.err; then
6377 # Append any errors to the config.log.
6378 cat conftest.err 1>&5
6379 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6381 if diff conftest.exp conftest.er2 >/dev/null; then
6382 lt_prog_compiler_static_works=yes
6383 fi
6384 else
6385 lt_prog_compiler_static_works=yes
6386 fi
6387 fi
6388 $rm conftest*
6389 LDFLAGS="$save_LDFLAGS"
6390
6391 fi
6392 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6393 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6394
6395 if test x"$lt_prog_compiler_static_works" = xyes; then
6396 :
6397 else
6398 lt_prog_compiler_static=
6399 fi
6400
6401
6402 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6403 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6404 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407 lt_cv_prog_compiler_c_o=no
6408 $rm -r conftest 2>/dev/null
6409 mkdir conftest
6410 cd conftest
6411 mkdir out
6412 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6413
6414 lt_compiler_flag="-o out/conftest2.$ac_objext"
6415 # Insert the option either (1) after the last *FLAGS variable, or
6416 # (2) before a word containing "conftest.", or (3) at the end.
6417 # Note that $ac_compile itself does not contain backslashes and begins
6418 # with a dollar sign (not a hyphen), so the echo should work correctly.
6419 lt_compile=`echo "$ac_compile" | $SED \
6420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6422 -e 's:$: $lt_compiler_flag:'`
6423 (eval echo "\"\$as_me:6423: $lt_compile\"" >&5)
6424 (eval "$lt_compile" 2>out/conftest.err)
6425 ac_status=$?
6426 cat out/conftest.err >&5
6427 echo "$as_me:6427: \$? = $ac_status" >&5
6428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6429 then
6430 # The compiler can only warn and ignore the option if not recognized
6431 # So say no if there are warnings
6432 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6435 lt_cv_prog_compiler_c_o=yes
6436 fi
6437 fi
6438 chmod u+w . 2>&5
6439 $rm conftest*
6440 # SGI C++ compiler will create directory out/ii_files/ for
6441 # template instantiation
6442 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6443 $rm out/* && rmdir out
6444 cd ..
6445 rmdir conftest
6446 $rm conftest*
6447
6448 fi
6449 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6450 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6451
6452
6453 hard_links="nottested"
6454 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6455 # do not overwrite the value of need_locks provided by the user
6456 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6457 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6458 hard_links=yes
6459 $rm conftest*
6460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6461 touch conftest.a
6462 ln conftest.a conftest.b 2>&5 || hard_links=no
6463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6464 echo "$as_me:$LINENO: result: $hard_links" >&5
6465 echo "${ECHO_T}$hard_links" >&6
6466 if test "$hard_links" = no; then
6467 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6468 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6469 need_locks=warn
6470 fi
6471 else
6472 need_locks=no
6473 fi
6474
6475 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6476 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6477
6478 runpath_var=
6479 allow_undefined_flag=
6480 enable_shared_with_static_runtimes=no
6481 archive_cmds=
6482 archive_expsym_cmds=
6483 old_archive_From_new_cmds=
6484 old_archive_from_expsyms_cmds=
6485 export_dynamic_flag_spec=
6486 whole_archive_flag_spec=
6487 thread_safe_flag_spec=
6488 hardcode_libdir_flag_spec=
6489 hardcode_libdir_flag_spec_ld=
6490 hardcode_libdir_separator=
6491 hardcode_direct=no
6492 hardcode_minus_L=no
6493 hardcode_shlibpath_var=unsupported
6494 link_all_deplibs=unknown
6495 hardcode_automatic=no
6496 module_cmds=
6497 module_expsym_cmds=
6498 always_export_symbols=no
6499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6500 # include_expsyms should be a list of space-separated symbols to be *always*
6501 # included in the symbol list
6502 include_expsyms=
6503 # exclude_expsyms can be an extended regexp of symbols to exclude
6504 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6505 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6506 # as well as any symbol that contains `d'.
6507 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6508 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6509 # platforms (ab)use it in PIC code, but their linkers get confused if
6510 # the symbol is explicitly referenced. Since portable code cannot
6511 # rely on this symbol name, it's probably fine to never include it in
6512 # preloaded symbol tables.
6513 extract_expsyms_cmds=
6514 # Just being paranoid about ensuring that cc_basename is set.
6515 for cc_temp in $compiler""; do
6516 case $cc_temp in
6517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6519 \-*) ;;
6520 *) break;;
6521 esac
6522 done
6523 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6524
6525 case $host_os in
6526 cygwin* | mingw* | pw32*)
6527 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6528 # When not using gcc, we currently assume that we are using
6529 # Microsoft Visual C++.
6530 if test "$GCC" != yes; then
6531 with_gnu_ld=no
6532 fi
6533 ;;
6534 interix*)
6535 # we just hope/assume this is gcc and not c89 (= MSVC++)
6536 with_gnu_ld=yes
6537 ;;
6538 openbsd*)
6539 with_gnu_ld=no
6540 ;;
6541 esac
6542
6543 ld_shlibs=yes
6544 if test "$with_gnu_ld" = yes; then
6545 # If archive_cmds runs LD, not CC, wlarc should be empty
6546 wlarc='${wl}'
6547
6548 # Set some defaults for GNU ld with shared library support. These
6549 # are reset later if shared libraries are not supported. Putting them
6550 # here allows them to be overridden if necessary.
6551 runpath_var=LD_RUN_PATH
6552 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6553 export_dynamic_flag_spec='${wl}--export-dynamic'
6554 # ancient GNU ld didn't support --whole-archive et. al.
6555 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6556 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6557 else
6558 whole_archive_flag_spec=
6559 fi
6560 supports_anon_versioning=no
6561 case `$LD -v 2>/dev/null` in
6562 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6563 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6564 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6565 *\ 2.11.*) ;; # other 2.11 versions
6566 *) supports_anon_versioning=yes ;;
6567 esac
6568
6569 # See if GNU ld supports shared libraries.
6570 case $host_os in
6571 aix3* | aix4* | aix5*)
6572 # On AIX/PPC, the GNU linker is very broken
6573 if test "$host_cpu" != ia64; then
6574 ld_shlibs=no
6575 cat <<EOF 1>&2
6576
6577 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6578 *** to be unable to reliably create shared libraries on AIX.
6579 *** Therefore, libtool is disabling shared libraries support. If you
6580 *** really care for shared libraries, you may want to modify your PATH
6581 *** so that a non-GNU linker is found, and then restart.
6582
6583 EOF
6584 fi
6585 ;;
6586
6587 amigaos*)
6588 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)'
6589 hardcode_libdir_flag_spec='-L$libdir'
6590 hardcode_minus_L=yes
6591
6592 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6593 # that the semantics of dynamic libraries on AmigaOS, at least up
6594 # to version 4, is to share data among multiple programs linked
6595 # with the same dynamic library. Since this doesn't match the
6596 # behavior of shared libraries on other platforms, we can't use
6597 # them.
6598 ld_shlibs=no
6599 ;;
6600
6601 beos*)
6602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6603 allow_undefined_flag=unsupported
6604 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6605 # support --undefined. This deserves some investigation. FIXME
6606 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6607 else
6608 ld_shlibs=no
6609 fi
6610 ;;
6611
6612 cygwin* | mingw* | pw32*)
6613 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6614 # as there is no search path for DLLs.
6615 hardcode_libdir_flag_spec='-L$libdir'
6616 allow_undefined_flag=unsupported
6617 always_export_symbols=no
6618 enable_shared_with_static_runtimes=yes
6619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6620
6621 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6623 # If the export-symbols file already is a .def file (1st line
6624 # is EXPORTS), use it as is; otherwise, pre