/[pcre]/code/tags/pcre-6.6/configure
ViewVC logotype

Contents of /code/tags/pcre-6.6/configure

Parent Directory Parent Directory | Revision Log Revision Log


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