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

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


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