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