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

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


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