Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ab509236 | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
ab509236 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
252b5132 RH |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
13b2be9c DJ |
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 | |
ab509236 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
13b2be9c DJ |
23 | |
24 | # Support unset when possible. | |
ab509236 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
13b2be9c DJ |
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 | |
ab509236 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
13b2be9c DJ |
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 | |
ab509236 | 221 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
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. | |
ab509236 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
ab509236 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
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 | ||
d7040cdb SE |
244 | |
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$lt_ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | ECHO=${lt_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 <<_LT_EOF | |
274 | $* | |
275 | _LT_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 "$lt_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 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
290 | then | |
291 | break | |
292 | fi | |
293 | done | |
294 | fi | |
295 | ||
296 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
297 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
298 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
299 | : | |
300 | else | |
301 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
302 | # backslashes. This makes it impossible to quote backslashes using | |
303 | # echo "$something" | sed 's/\\/\\\\/g' | |
304 | # | |
305 | # So, first we look for a working echo in the user's PATH. | |
306 | ||
307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
308 | for dir in $PATH /usr/ucb; do | |
309 | IFS="$lt_save_ifs" | |
310 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
311 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
312 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
313 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
314 | ECHO="$dir/echo" | |
315 | break | |
316 | fi | |
317 | done | |
318 | IFS="$lt_save_ifs" | |
319 | ||
320 | if test "X$ECHO" = Xecho; then | |
321 | # We didn't find a better echo, so look for alternatives. | |
322 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
323 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
324 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
325 | # This shell has a builtin print -r that does the trick. | |
326 | ECHO='print -r' | |
327 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
328 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
329 | # If we have ksh, try running configure again with it. | |
330 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
331 | export ORIGINAL_CONFIG_SHELL | |
332 | CONFIG_SHELL=/bin/ksh | |
333 | export CONFIG_SHELL | |
334 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
335 | else | |
336 | # Try using printf. | |
337 | ECHO='printf %s\n' | |
338 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
339 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
340 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
341 | # Cool, printf works | |
342 | : | |
343 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
344 | test "X$echo_testing_string" = 'X\t' && | |
345 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
346 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
347 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
348 | export CONFIG_SHELL | |
349 | SHELL="$CONFIG_SHELL" | |
350 | export SHELL | |
351 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
352 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
353 | test "X$echo_testing_string" = 'X\t' && | |
354 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
355 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
356 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
357 | else | |
358 | # maybe with a smaller string... | |
359 | prev=: | |
360 | ||
361 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
362 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
363 | then | |
364 | break | |
365 | fi | |
366 | prev="$cmd" | |
367 | done | |
368 | ||
369 | if test "$prev" != 'sed 50q "$0"'; then | |
370 | echo_test_string=`eval $prev` | |
371 | export echo_test_string | |
372 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
373 | else | |
374 | # Oops. We lost completely, so just stick with echo. | |
375 | ECHO=echo | |
376 | fi | |
377 | fi | |
378 | fi | |
379 | fi | |
380 | fi | |
381 | fi | |
382 | ||
383 | # Copy echo and quote the copy suitably for passing to libtool from | |
384 | # the Makefile, instead of quoting the original, which is used later. | |
385 | lt_ECHO=$ECHO | |
386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
388 | fi | |
389 | ||
390 | ||
391 | ||
392 | ||
13b2be9c DJ |
393 | # Name of the host. |
394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
395 | # so uname gets run too. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 397 | |
13b2be9c DJ |
398 | exec 6>&1 |
399 | ||
400 | # | |
401 | # Initializations. | |
402 | # | |
252b5132 | 403 | ac_default_prefix=/usr/local |
13b2be9c DJ |
404 | ac_config_libobj_dir=. |
405 | cross_compiling=no | |
406 | subdirs= | |
407 | MFLAGS= | |
408 | MAKEFLAGS= | |
409 | SHELL=${CONFIG_SHELL-/bin/sh} | |
410 | ||
411 | # Maximum number of lines to put in a shell here document. | |
412 | # This variable seems obsolete. It should probably be removed, and | |
413 | # only ac_max_sed_lines should be used. | |
414 | : ${ac_max_here_lines=38} | |
415 | ||
416 | # Identity of this package. | |
417 | PACKAGE_NAME= | |
418 | PACKAGE_TARNAME= | |
419 | PACKAGE_VERSION= | |
420 | PACKAGE_STRING= | |
421 | PACKAGE_BUGREPORT= | |
422 | ||
423 | ac_unique_file="as.h" | |
424 | # Factoring default headers for most tests. | |
425 | ac_includes_default="\ | |
426 | #include <stdio.h> | |
427 | #if HAVE_SYS_TYPES_H | |
428 | # include <sys/types.h> | |
429 | #endif | |
430 | #if HAVE_SYS_STAT_H | |
431 | # include <sys/stat.h> | |
432 | #endif | |
433 | #if STDC_HEADERS | |
434 | # include <stdlib.h> | |
435 | # include <stddef.h> | |
436 | #else | |
437 | # if HAVE_STDLIB_H | |
438 | # include <stdlib.h> | |
439 | # endif | |
440 | #endif | |
441 | #if HAVE_STRING_H | |
442 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
443 | # include <memory.h> | |
444 | # endif | |
445 | # include <string.h> | |
446 | #endif | |
447 | #if HAVE_STRINGS_H | |
448 | # include <strings.h> | |
449 | #endif | |
450 | #if HAVE_INTTYPES_H | |
451 | # include <inttypes.h> | |
452 | #else | |
453 | # if HAVE_STDINT_H | |
454 | # include <stdint.h> | |
455 | # endif | |
456 | #endif | |
457 | #if HAVE_UNISTD_H | |
458 | # include <unistd.h> | |
459 | #endif" | |
460 | ||
31dd3154 | 461 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS' |
13b2be9c | 462 | ac_subst_files='' |
7a283e07 | 463 | ac_pwd=`pwd` |
252b5132 RH |
464 | |
465 | # Initialize some variables set by options. | |
13b2be9c DJ |
466 | ac_init_help= |
467 | ac_init_version=false | |
252b5132 RH |
468 | # The variables have the same names as the options, with |
469 | # dashes changed to underlines. | |
13b2be9c | 470 | cache_file=/dev/null |
252b5132 | 471 | exec_prefix=NONE |
252b5132 | 472 | no_create= |
252b5132 RH |
473 | no_recursion= |
474 | prefix=NONE | |
475 | program_prefix=NONE | |
476 | program_suffix=NONE | |
477 | program_transform_name=s,x,x, | |
478 | silent= | |
479 | site= | |
480 | srcdir= | |
252b5132 RH |
481 | verbose= |
482 | x_includes=NONE | |
483 | x_libraries=NONE | |
13b2be9c DJ |
484 | |
485 | # Installation directory options. | |
486 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
487 | # and all the variables that are supposed to be based on exec_prefix | |
488 | # by default will actually change. | |
489 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
490 | bindir='${exec_prefix}/bin' |
491 | sbindir='${exec_prefix}/sbin' | |
492 | libexecdir='${exec_prefix}/libexec' | |
493 | datadir='${prefix}/share' | |
494 | sysconfdir='${prefix}/etc' | |
495 | sharedstatedir='${prefix}/com' | |
496 | localstatedir='${prefix}/var' | |
497 | libdir='${exec_prefix}/lib' | |
498 | includedir='${prefix}/include' | |
499 | oldincludedir='/usr/include' | |
500 | infodir='${prefix}/info' | |
501 | mandir='${prefix}/man' | |
502 | ||
252b5132 RH |
503 | ac_prev= |
504 | for ac_option | |
505 | do | |
252b5132 RH |
506 | # If the previous option needs an argument, assign it. |
507 | if test -n "$ac_prev"; then | |
508 | eval "$ac_prev=\$ac_option" | |
509 | ac_prev= | |
510 | continue | |
511 | fi | |
512 | ||
13b2be9c | 513 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
514 | |
515 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
516 | ||
13b2be9c | 517 | case $ac_option in |
252b5132 RH |
518 | |
519 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
520 | ac_prev=bindir ;; | |
521 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
13b2be9c | 522 | bindir=$ac_optarg ;; |
252b5132 RH |
523 | |
524 | -build | --build | --buil | --bui | --bu) | |
13b2be9c | 525 | ac_prev=build_alias ;; |
252b5132 | 526 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
13b2be9c | 527 | build_alias=$ac_optarg ;; |
252b5132 RH |
528 | |
529 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
530 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
531 | ac_prev=cache_file ;; | |
532 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
533 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
13b2be9c DJ |
534 | cache_file=$ac_optarg ;; |
535 | ||
536 | --config-cache | -C) | |
537 | cache_file=config.cache ;; | |
252b5132 RH |
538 | |
539 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
540 | ac_prev=datadir ;; | |
541 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
542 | | --da=*) | |
13b2be9c | 543 | datadir=$ac_optarg ;; |
252b5132 RH |
544 | |
545 | -disable-* | --disable-*) | |
13b2be9c | 546 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 547 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
548 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
549 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
550 | { (exit 1); exit 1; }; } | |
551 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
552 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
553 | |
554 | -enable-* | --enable-*) | |
13b2be9c | 555 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 556 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
557 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
558 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
559 | { (exit 1); exit 1; }; } | |
560 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
561 | case $ac_option in | |
562 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
563 | *) ac_optarg=yes ;; |
564 | esac | |
13b2be9c | 565 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
566 | |
567 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
568 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
569 | | --exec | --exe | --ex) | |
570 | ac_prev=exec_prefix ;; | |
571 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
572 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
573 | | --exec=* | --exe=* | --ex=*) | |
13b2be9c | 574 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
575 | |
576 | -gas | --gas | --ga | --g) | |
577 | # Obsolete; use --with-gas. | |
578 | with_gas=yes ;; | |
579 | ||
13b2be9c DJ |
580 | -help | --help | --hel | --he | -h) |
581 | ac_init_help=long ;; | |
582 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
583 | ac_init_help=recursive ;; | |
584 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
585 | ac_init_help=short ;; | |
252b5132 RH |
586 | |
587 | -host | --host | --hos | --ho) | |
13b2be9c | 588 | ac_prev=host_alias ;; |
252b5132 | 589 | -host=* | --host=* | --hos=* | --ho=*) |
13b2be9c | 590 | host_alias=$ac_optarg ;; |
252b5132 RH |
591 | |
592 | -includedir | --includedir | --includedi | --included | --include \ | |
593 | | --includ | --inclu | --incl | --inc) | |
594 | ac_prev=includedir ;; | |
595 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
596 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
13b2be9c | 597 | includedir=$ac_optarg ;; |
252b5132 RH |
598 | |
599 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
600 | ac_prev=infodir ;; | |
601 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
13b2be9c | 602 | infodir=$ac_optarg ;; |
252b5132 RH |
603 | |
604 | -libdir | --libdir | --libdi | --libd) | |
605 | ac_prev=libdir ;; | |
606 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
13b2be9c | 607 | libdir=$ac_optarg ;; |
252b5132 RH |
608 | |
609 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
610 | | --libexe | --libex | --libe) | |
611 | ac_prev=libexecdir ;; | |
612 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
613 | | --libexe=* | --libex=* | --libe=*) | |
13b2be9c | 614 | libexecdir=$ac_optarg ;; |
252b5132 RH |
615 | |
616 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
617 | | --localstate | --localstat | --localsta | --localst \ | |
618 | | --locals | --local | --loca | --loc | --lo) | |
619 | ac_prev=localstatedir ;; | |
620 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
621 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
622 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
13b2be9c | 623 | localstatedir=$ac_optarg ;; |
252b5132 RH |
624 | |
625 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
626 | ac_prev=mandir ;; | |
627 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
13b2be9c | 628 | mandir=$ac_optarg ;; |
252b5132 RH |
629 | |
630 | -nfp | --nfp | --nf) | |
631 | # Obsolete; use --without-fp. | |
632 | with_fp=no ;; | |
633 | ||
634 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
13b2be9c | 635 | | --no-cr | --no-c | -n) |
252b5132 RH |
636 | no_create=yes ;; |
637 | ||
638 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
639 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
640 | no_recursion=yes ;; | |
641 | ||
642 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
643 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
644 | | --oldin | --oldi | --old | --ol | --o) | |
645 | ac_prev=oldincludedir ;; | |
646 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
647 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
648 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
13b2be9c | 649 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
650 | |
651 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
652 | ac_prev=prefix ;; | |
653 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13b2be9c | 654 | prefix=$ac_optarg ;; |
252b5132 RH |
655 | |
656 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
657 | | --program-pre | --program-pr | --program-p) | |
658 | ac_prev=program_prefix ;; | |
659 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
660 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
13b2be9c | 661 | program_prefix=$ac_optarg ;; |
252b5132 RH |
662 | |
663 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
664 | | --program-suf | --program-su | --program-s) | |
665 | ac_prev=program_suffix ;; | |
666 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
667 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
13b2be9c | 668 | program_suffix=$ac_optarg ;; |
252b5132 RH |
669 | |
670 | -program-transform-name | --program-transform-name \ | |
671 | | --program-transform-nam | --program-transform-na \ | |
672 | | --program-transform-n | --program-transform- \ | |
673 | | --program-transform | --program-transfor \ | |
674 | | --program-transfo | --program-transf \ | |
675 | | --program-trans | --program-tran \ | |
676 | | --progr-tra | --program-tr | --program-t) | |
677 | ac_prev=program_transform_name ;; | |
678 | -program-transform-name=* | --program-transform-name=* \ | |
679 | | --program-transform-nam=* | --program-transform-na=* \ | |
680 | | --program-transform-n=* | --program-transform-=* \ | |
681 | | --program-transform=* | --program-transfor=* \ | |
682 | | --program-transfo=* | --program-transf=* \ | |
683 | | --program-trans=* | --program-tran=* \ | |
684 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
13b2be9c | 685 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
686 | |
687 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
688 | | -silent | --silent | --silen | --sile | --sil) | |
689 | silent=yes ;; | |
690 | ||
691 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
692 | ac_prev=sbindir ;; | |
693 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
694 | | --sbi=* | --sb=*) | |
13b2be9c | 695 | sbindir=$ac_optarg ;; |
252b5132 RH |
696 | |
697 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
698 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
699 | | --sharedst | --shareds | --shared | --share | --shar \ | |
700 | | --sha | --sh) | |
701 | ac_prev=sharedstatedir ;; | |
702 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
703 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
704 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
705 | | --sha=* | --sh=*) | |
13b2be9c | 706 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
707 | |
708 | -site | --site | --sit) | |
709 | ac_prev=site ;; | |
710 | -site=* | --site=* | --sit=*) | |
13b2be9c | 711 | site=$ac_optarg ;; |
76bff705 | 712 | |
252b5132 RH |
713 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
714 | ac_prev=srcdir ;; | |
715 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13b2be9c | 716 | srcdir=$ac_optarg ;; |
252b5132 RH |
717 | |
718 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
719 | | --syscon | --sysco | --sysc | --sys | --sy) | |
720 | ac_prev=sysconfdir ;; | |
721 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
722 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
13b2be9c | 723 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
724 | |
725 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
13b2be9c | 726 | ac_prev=target_alias ;; |
252b5132 | 727 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
13b2be9c | 728 | target_alias=$ac_optarg ;; |
252b5132 RH |
729 | |
730 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
731 | verbose=yes ;; | |
732 | ||
13b2be9c DJ |
733 | -version | --version | --versio | --versi | --vers | -V) |
734 | ac_init_version=: ;; | |
252b5132 RH |
735 | |
736 | -with-* | --with-*) | |
13b2be9c | 737 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 738 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
739 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
740 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
741 | { (exit 1); exit 1; }; } | |
252b5132 | 742 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
13b2be9c DJ |
743 | case $ac_option in |
744 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
745 | *) ac_optarg=yes ;; |
746 | esac | |
13b2be9c | 747 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
748 | |
749 | -without-* | --without-*) | |
13b2be9c | 750 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 751 | # Reject names that are not valid shell variable names. |
13b2be9c DJ |
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
754 | { (exit 1); exit 1; }; } | |
755 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
756 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
757 | |
758 | --x) | |
759 | # Obsolete; use --with-x. | |
760 | with_x=yes ;; | |
761 | ||
762 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
763 | | --x-incl | --x-inc | --x-in | --x-i) | |
764 | ac_prev=x_includes ;; | |
765 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
766 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
13b2be9c | 767 | x_includes=$ac_optarg ;; |
252b5132 RH |
768 | |
769 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
770 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
771 | ac_prev=x_libraries ;; | |
772 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
773 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
13b2be9c | 774 | x_libraries=$ac_optarg ;; |
252b5132 | 775 | |
13b2be9c DJ |
776 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
777 | Try \`$0 --help' for more information." >&2 | |
778 | { (exit 1); exit 1; }; } | |
252b5132 RH |
779 | ;; |
780 | ||
13b2be9c DJ |
781 | *=*) |
782 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
783 | # Reject names that are not valid shell variable names. | |
784 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
785 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
786 | { (exit 1); exit 1; }; } | |
787 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
788 | eval "$ac_envvar='$ac_optarg'" | |
789 | export $ac_envvar ;; | |
790 | ||
252b5132 | 791 | *) |
13b2be9c DJ |
792 | # FIXME: should be removed in autoconf 3.0. |
793 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
794 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
795 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
796 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
797 | ;; |
798 | ||
799 | esac | |
800 | done | |
801 | ||
802 | if test -n "$ac_prev"; then | |
13b2be9c DJ |
803 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
804 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
805 | { (exit 1); exit 1; }; } | |
c8615825 | 806 | fi |
c8615825 | 807 | |
13b2be9c DJ |
808 | # Be sure to have absolute paths. |
809 | for ac_var in exec_prefix prefix | |
810 | do | |
811 | eval ac_val=$`echo $ac_var` | |
812 | case $ac_val in | |
813 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
814 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
815 | { (exit 1); exit 1; }; };; | |
816 | esac | |
817 | done | |
252b5132 | 818 | |
13b2be9c DJ |
819 | # Be sure to have absolute paths. |
820 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ab509236 | 821 | localstatedir libdir includedir oldincludedir infodir mandir |
252b5132 | 822 | do |
13b2be9c DJ |
823 | eval ac_val=$`echo $ac_var` |
824 | case $ac_val in | |
825 | [\\/$]* | ?:[\\/]* ) ;; | |
826 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
827 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
828 | esac |
829 | done | |
830 | ||
13b2be9c DJ |
831 | # There might be people who depend on the old broken behavior: `$host' |
832 | # used to hold the argument of --host etc. | |
833 | # FIXME: To remove some day. | |
834 | build=$build_alias | |
835 | host=$host_alias | |
836 | target=$target_alias | |
837 | ||
838 | # FIXME: To remove some day. | |
839 | if test "x$host_alias" != x; then | |
840 | if test "x$build_alias" = x; then | |
841 | cross_compiling=maybe | |
842 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
843 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
844 | elif test "x$build_alias" != "x$host_alias"; then | |
845 | cross_compiling=yes | |
846 | fi | |
847 | fi | |
9b2b7d69 | 848 | |
13b2be9c DJ |
849 | ac_tool_prefix= |
850 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
851 | ||
852 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 853 | |
252b5132 RH |
854 | |
855 | # Find the source files, if location was not specified. | |
856 | if test -z "$srcdir"; then | |
857 | ac_srcdir_defaulted=yes | |
858 | # Try the directory containing this script, then its parent. | |
13b2be9c DJ |
859 | ac_confdir=`(dirname "$0") 2>/dev/null || |
860 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
861 | X"$0" : 'X\(//\)[^/]' \| \ |
862 | X"$0" : 'X\(//\)$' \| \ | |
863 | X"$0" : 'X\(/\)' \| \ | |
864 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
865 | echo X"$0" | |
866 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
867 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
868 | /^X\(\/\/\)$/{ s//\1/; q; } | |
869 | /^X\(\/\).*/{ s//\1/; q; } | |
870 | s/.*/./; q'` | |
252b5132 RH |
871 | srcdir=$ac_confdir |
872 | if test ! -r $srcdir/$ac_unique_file; then | |
873 | srcdir=.. | |
874 | fi | |
875 | else | |
876 | ac_srcdir_defaulted=no | |
877 | fi | |
878 | if test ! -r $srcdir/$ac_unique_file; then | |
879 | if test "$ac_srcdir_defaulted" = yes; then | |
13b2be9c DJ |
880 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
881 | { (exit 1); exit 1; }; } | |
252b5132 | 882 | else |
13b2be9c DJ |
883 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
884 | { (exit 1); exit 1; }; } | |
252b5132 RH |
885 | fi |
886 | fi | |
13b2be9c DJ |
887 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
888 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
889 | { (exit 1); exit 1; }; } | |
890 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
891 | ac_env_build_alias_set=${build_alias+set} | |
892 | ac_env_build_alias_value=$build_alias | |
893 | ac_cv_env_build_alias_set=${build_alias+set} | |
894 | ac_cv_env_build_alias_value=$build_alias | |
895 | ac_env_host_alias_set=${host_alias+set} | |
896 | ac_env_host_alias_value=$host_alias | |
897 | ac_cv_env_host_alias_set=${host_alias+set} | |
898 | ac_cv_env_host_alias_value=$host_alias | |
899 | ac_env_target_alias_set=${target_alias+set} | |
900 | ac_env_target_alias_value=$target_alias | |
901 | ac_cv_env_target_alias_set=${target_alias+set} | |
902 | ac_cv_env_target_alias_value=$target_alias | |
903 | ac_env_CC_set=${CC+set} | |
904 | ac_env_CC_value=$CC | |
905 | ac_cv_env_CC_set=${CC+set} | |
906 | ac_cv_env_CC_value=$CC | |
907 | ac_env_CFLAGS_set=${CFLAGS+set} | |
908 | ac_env_CFLAGS_value=$CFLAGS | |
909 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
910 | ac_cv_env_CFLAGS_value=$CFLAGS | |
911 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
912 | ac_env_LDFLAGS_value=$LDFLAGS | |
913 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
914 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
915 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
916 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
917 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
918 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
919 | ac_env_CPP_set=${CPP+set} | |
920 | ac_env_CPP_value=$CPP | |
921 | ac_cv_env_CPP_set=${CPP+set} | |
922 | ac_cv_env_CPP_value=$CPP | |
d6d788bd | 923 | |
13b2be9c DJ |
924 | # |
925 | # Report the --help message. | |
926 | # | |
927 | if test "$ac_init_help" = "long"; then | |
928 | # Omit some internal or obsolete options to make the list less imposing. | |
929 | # This message is too long to be a string in the A/UX 3.1 sh. | |
930 | cat <<_ACEOF | |
931 | \`configure' configures this package to adapt to many kinds of systems. | |
9b2b7d69 | 932 | |
13b2be9c | 933 | Usage: $0 [OPTION]... [VAR=VALUE]... |
9b2b7d69 | 934 | |
13b2be9c DJ |
935 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
936 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
9b2b7d69 | 937 | |
13b2be9c | 938 | Defaults for the options are specified in brackets. |
9b2b7d69 | 939 | |
13b2be9c DJ |
940 | Configuration: |
941 | -h, --help display this help and exit | |
942 | --help=short display options specific to this package | |
943 | --help=recursive display the short help of all the included packages | |
944 | -V, --version display version information and exit | |
945 | -q, --quiet, --silent do not print \`checking...' messages | |
946 | --cache-file=FILE cache test results in FILE [disabled] | |
947 | -C, --config-cache alias for \`--cache-file=config.cache' | |
948 | -n, --no-create do not create output files | |
949 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
950 | ||
951 | _ACEOF | |
952 | ||
953 | cat <<_ACEOF | |
954 | Installation directories: | |
955 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ab509236 | 956 | [$ac_default_prefix] |
13b2be9c | 957 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ab509236 | 958 | [PREFIX] |
9b2b7d69 | 959 | |
13b2be9c DJ |
960 | By default, \`make install' will install all the files in |
961 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
962 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
963 | for instance \`--prefix=\$HOME'. | |
9b2b7d69 | 964 | |
13b2be9c | 965 | For better control, use the options below. |
9b2b7d69 | 966 | |
13b2be9c DJ |
967 | Fine tuning of the installation directories: |
968 | --bindir=DIR user executables [EPREFIX/bin] | |
969 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
970 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
971 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
972 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
973 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
974 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
975 | --libdir=DIR object code libraries [EPREFIX/lib] | |
976 | --includedir=DIR C header files [PREFIX/include] | |
977 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
978 | --infodir=DIR info documentation [PREFIX/info] | |
979 | --mandir=DIR man documentation [PREFIX/man] | |
980 | _ACEOF | |
9b2b7d69 | 981 | |
13b2be9c | 982 | cat <<\_ACEOF |
9b2b7d69 | 983 | |
13b2be9c DJ |
984 | Program names: |
985 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
986 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
987 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
9b2b7d69 | 988 | |
13b2be9c DJ |
989 | System types: |
990 | --build=BUILD configure for building on BUILD [guessed] | |
991 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
992 | --target=TARGET configure for building compilers for TARGET [HOST] | |
993 | _ACEOF | |
9b2b7d69 | 994 | fi |
9b2b7d69 | 995 | |
13b2be9c | 996 | if test -n "$ac_init_help"; then |
9b2b7d69 | 997 | |
13b2be9c | 998 | cat <<\_ACEOF |
9b2b7d69 | 999 | |
13b2be9c DJ |
1000 | Optional Features: |
1001 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1002 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ab509236 L |
1003 | --disable-dependency-tracking speeds up one-time build |
1004 | --enable-dependency-tracking do not reject slow dependency extractors | |
d053aef8 | 1005 | --disable-largefile omit support for large files |
d7040cdb SE |
1006 | --enable-shared[=PKGS] |
1007 | build shared libraries [default=yes] | |
1008 | --enable-static[=PKGS] | |
1009 | build static libraries [default=yes] | |
1010 | --enable-fast-install[=PKGS] | |
1011 | optimize for fast installation [default=yes] | |
13b2be9c | 1012 | --disable-libtool-lock avoid locking (might break parallel builds) |
241a6c40 | 1013 | --enable-targets alternative target configurations besides the primary |
c43a438d | 1014 | --enable-checking enable run-time checks |
241a6c40 AM |
1015 | --enable-werror treat compile warnings as errors |
1016 | --enable-build-warnings enable build-time compiler warnings | |
13b2be9c | 1017 | --disable-nls do not use Native Language Support |
ab509236 L |
1018 | --enable-maintainer-mode enable make rules and dependencies not useful |
1019 | (and sometimes confusing) to the casual installer | |
9b2b7d69 | 1020 | |
13b2be9c DJ |
1021 | Optional Packages: |
1022 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1023 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1024 | --with-pic try to use only PIC/non-PIC objects [default=use |
1025 | both] | |
1026 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
9b2b7d69 | 1027 | |
13b2be9c DJ |
1028 | Some influential environment variables: |
1029 | CC C compiler command | |
1030 | CFLAGS C compiler flags | |
1031 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1032 | nonstandard directory <lib dir> | |
1033 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1034 | headers in a nonstandard directory <include dir> | |
1035 | CPP C preprocessor | |
1036 | ||
1037 | Use these variables to override the choices made by `configure' or to help | |
1038 | it to find libraries and programs with nonstandard names/locations. | |
1039 | ||
1040 | _ACEOF | |
9b2b7d69 | 1041 | fi |
9b2b7d69 | 1042 | |
13b2be9c DJ |
1043 | if test "$ac_init_help" = "recursive"; then |
1044 | # If there are subdirs, report their specific --help. | |
1045 | ac_popdir=`pwd` | |
1046 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1047 | test -d $ac_dir || continue | |
1048 | ac_builddir=. | |
1049 | ||
1050 | if test "$ac_dir" != .; then | |
1051 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1052 | # A "../" for each directory in $ac_dir_suffix. | |
1053 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1054 | else | |
1055 | ac_dir_suffix= ac_top_builddir= | |
1056 | fi | |
9b2b7d69 | 1057 | |
13b2be9c DJ |
1058 | case $srcdir in |
1059 | .) # No --srcdir option. We are building in place. | |
1060 | ac_srcdir=. | |
1061 | if test -z "$ac_top_builddir"; then | |
1062 | ac_top_srcdir=. | |
1063 | else | |
1064 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
c8615825 | 1065 | fi ;; |
13b2be9c DJ |
1066 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1067 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1068 | ac_top_srcdir=$srcdir ;; | |
1069 | *) # Relative path. | |
1070 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1071 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
c8615825 | 1072 | esac |
ab509236 L |
1073 | |
1074 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1075 | # the directories may not exist. | |
1076 | case `pwd` in | |
1077 | .) ac_abs_builddir="$ac_dir";; | |
1078 | *) | |
1079 | case "$ac_dir" in | |
1080 | .) ac_abs_builddir=`pwd`;; | |
1081 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1082 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1083 | esac;; | |
1084 | esac | |
1085 | case $ac_abs_builddir in | |
1086 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1087 | *) | |
1088 | case ${ac_top_builddir}. in | |
1089 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1090 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1091 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1092 | esac;; | |
1093 | esac | |
1094 | case $ac_abs_builddir in | |
1095 | .) ac_abs_srcdir=$ac_srcdir;; | |
1096 | *) | |
1097 | case $ac_srcdir in | |
1098 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1099 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1100 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1101 | esac;; | |
1102 | esac | |
1103 | case $ac_abs_builddir in | |
1104 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1105 | *) | |
1106 | case $ac_top_srcdir in | |
1107 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1108 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1109 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1110 | esac;; | |
1111 | esac | |
13b2be9c DJ |
1112 | |
1113 | cd $ac_dir | |
1114 | # Check for guested configure; otherwise get Cygnus style configure. | |
1115 | if test -f $ac_srcdir/configure.gnu; then | |
1116 | echo | |
1117 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1118 | elif test -f $ac_srcdir/configure; then | |
1119 | echo | |
1120 | $SHELL $ac_srcdir/configure --help=recursive | |
1121 | elif test -f $ac_srcdir/configure.ac || | |
ab509236 | 1122 | test -f $ac_srcdir/configure.in; then |
13b2be9c DJ |
1123 | echo |
1124 | $ac_configure --help | |
1125 | else | |
1126 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1127 | fi | |
1ad12f97 | 1128 | cd $ac_popdir |
13b2be9c DJ |
1129 | done |
1130 | fi | |
6840198f | 1131 | |
13b2be9c DJ |
1132 | test -n "$ac_init_help" && exit 0 |
1133 | if $ac_init_version; then | |
1134 | cat <<\_ACEOF | |
c8615825 | 1135 | |
ab509236 | 1136 | Copyright (C) 2003 Free Software Foundation, Inc. |
13b2be9c DJ |
1137 | This configure script is free software; the Free Software Foundation |
1138 | gives unlimited permission to copy, distribute and modify it. | |
1139 | _ACEOF | |
1140 | exit 0 | |
1141 | fi | |
1142 | exec 5>config.log | |
1143 | cat >&5 <<_ACEOF | |
1144 | This file contains any messages produced by compilers while | |
1145 | running configure, to aid debugging if configure makes a mistake. | |
c8615825 | 1146 | |
13b2be9c | 1147 | It was created by $as_me, which was |
ab509236 | 1148 | generated by GNU Autoconf 2.59. Invocation command line was |
c8615825 | 1149 | |
13b2be9c | 1150 | $ $0 $@ |
c8615825 | 1151 | |
13b2be9c DJ |
1152 | _ACEOF |
1153 | { | |
1154 | cat <<_ASUNAME | |
1155 | ## --------- ## | |
1156 | ## Platform. ## | |
1157 | ## --------- ## | |
1158 | ||
1159 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1160 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1161 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1162 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1163 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1164 | ||
1165 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1166 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1167 | ||
1168 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1169 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1170 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1171 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1172 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1173 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1174 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1175 | ||
1176 | _ASUNAME | |
1177 | ||
1178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1179 | for as_dir in $PATH | |
1180 | do | |
1181 | IFS=$as_save_IFS | |
1182 | test -z "$as_dir" && as_dir=. | |
1183 | echo "PATH: $as_dir" | |
1184 | done | |
9b2b7d69 | 1185 | |
13b2be9c | 1186 | } >&5 |
6840198f | 1187 | |
13b2be9c | 1188 | cat >&5 <<_ACEOF |
c8615825 | 1189 | |
9b2b7d69 | 1190 | |
13b2be9c DJ |
1191 | ## ----------- ## |
1192 | ## Core tests. ## | |
1193 | ## ----------- ## | |
87ccc1b0 | 1194 | |
13b2be9c | 1195 | _ACEOF |
9b2b7d69 | 1196 | |
13b2be9c DJ |
1197 | |
1198 | # Keep a trace of the command line. | |
1199 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1200 | # Strip out --silent because we don't want to record it for future runs. | |
1201 | # Also quote any args containing shell meta-characters. | |
1202 | # Make two passes to allow for proper duplicate-argument suppression. | |
1203 | ac_configure_args= | |
1204 | ac_configure_args0= | |
1205 | ac_configure_args1= | |
1206 | ac_sep= | |
1207 | ac_must_keep_next=false | |
1208 | for ac_pass in 1 2 | |
1209 | do | |
1210 | for ac_arg | |
1211 | do | |
1212 | case $ac_arg in | |
1213 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1214 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1215 | | -silent | --silent | --silen | --sile | --sil) | |
1216 | continue ;; | |
1217 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1218 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1219 | esac | |
1220 | case $ac_pass in | |
1221 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1222 | 2) | |
1223 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1224 | if test $ac_must_keep_next = true; then | |
ab509236 | 1225 | ac_must_keep_next=false # Got value, back to normal. |
13b2be9c | 1226 | else |
ab509236 L |
1227 | case $ac_arg in |
1228 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1229 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1230 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1231 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1232 | case "$ac_configure_args0 " in | |
1233 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1234 | esac | |
1235 | ;; | |
1236 | -* ) ac_must_keep_next=true ;; | |
1237 | esac | |
13b2be9c DJ |
1238 | fi |
1239 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1240 | # Get rid of the leading space. | |
1241 | ac_sep=" " | |
c8615825 AM |
1242 | ;; |
1243 | esac | |
1244 | done | |
13b2be9c DJ |
1245 | done |
1246 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1247 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1248 | ||
1249 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1250 | # config.log. We remove comments because anyway the quotes in there | |
1251 | # would cause problems or look ugly. | |
1252 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1253 | # such as our DU 5.0 friend, will then `close' the trap. | |
1254 | trap 'exit_status=$? | |
1255 | # Save into config.log some information that might help in debugging. | |
1256 | { | |
1257 | echo | |
1258 | ||
1259 | cat <<\_ASBOX | |
1260 | ## ---------------- ## | |
1261 | ## Cache variables. ## | |
1262 | ## ---------------- ## | |
1263 | _ASBOX | |
1264 | echo | |
1265 | # The following way of writing the cache mishandles newlines in values, | |
1266 | { | |
1267 | (set) 2>&1 | | |
1268 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1269 | *ac_space=\ *) | |
1270 | sed -n \ | |
ab509236 L |
1271 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1272 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
13b2be9c DJ |
1273 | ;; |
1274 | *) | |
1275 | sed -n \ | |
ab509236 | 1276 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
13b2be9c DJ |
1277 | ;; |
1278 | esac; | |
1279 | } | |
1280 | echo | |
1281 | ||
1282 | cat <<\_ASBOX | |
1283 | ## ----------------- ## | |
1284 | ## Output variables. ## | |
1285 | ## ----------------- ## | |
1286 | _ASBOX | |
1287 | echo | |
1288 | for ac_var in $ac_subst_vars | |
1289 | do | |
1290 | eval ac_val=$`echo $ac_var` | |
1291 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1292 | done | sort | |
1293 | echo | |
1294 | ||
1295 | if test -n "$ac_subst_files"; then | |
1296 | cat <<\_ASBOX | |
1297 | ## ------------- ## | |
1298 | ## Output files. ## | |
1299 | ## ------------- ## | |
1300 | _ASBOX | |
1301 | echo | |
1302 | for ac_var in $ac_subst_files | |
1303 | do | |
1304 | eval ac_val=$`echo $ac_var` | |
ab509236 | 1305 | echo "$ac_var='"'"'$ac_val'"'"'" |
13b2be9c DJ |
1306 | done | sort |
1307 | echo | |
1308 | fi | |
1309 | ||
1310 | if test -s confdefs.h; then | |
1311 | cat <<\_ASBOX | |
1312 | ## ----------- ## | |
1313 | ## confdefs.h. ## | |
1314 | ## ----------- ## | |
1315 | _ASBOX | |
1316 | echo | |
1317 | sed "/^$/d" confdefs.h | sort | |
1318 | echo | |
1319 | fi | |
1320 | test "$ac_signal" != 0 && | |
1321 | echo "$as_me: caught signal $ac_signal" | |
1322 | echo "$as_me: exit $exit_status" | |
1323 | } >&5 | |
ab509236 | 1324 | rm -f core *.core && |
13b2be9c DJ |
1325 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1326 | exit $exit_status | |
1327 | ' 0 | |
1328 | for ac_signal in 1 2 13 15; do | |
1329 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1330 | done | |
1331 | ac_signal=0 | |
1332 | ||
1333 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1334 | rm -rf conftest* confdefs.h | |
1335 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1336 | echo >confdefs.h | |
1337 | ||
1338 | # Predefined preprocessor variables. | |
1339 | ||
1340 | cat >>confdefs.h <<_ACEOF | |
1341 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1342 | _ACEOF | |
1343 | ||
1344 | ||
1345 | cat >>confdefs.h <<_ACEOF | |
1346 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1347 | _ACEOF | |
1348 | ||
1349 | ||
1350 | cat >>confdefs.h <<_ACEOF | |
1351 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1352 | _ACEOF | |
1353 | ||
1354 | ||
1355 | cat >>confdefs.h <<_ACEOF | |
1356 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1357 | _ACEOF | |
1358 | ||
1359 | ||
1360 | cat >>confdefs.h <<_ACEOF | |
1361 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1362 | _ACEOF | |
1363 | ||
1364 | ||
1365 | # Let the site file select an alternate cache file if it wants to. | |
1366 | # Prefer explicitly selected file to automatically selected ones. | |
1367 | if test -z "$CONFIG_SITE"; then | |
1368 | if test "x$prefix" != xNONE; then | |
1369 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1370 | else | |
1371 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1372 | fi | |
1373 | fi | |
1374 | for ac_site_file in $CONFIG_SITE; do | |
1375 | if test -r "$ac_site_file"; then | |
1376 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1377 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1378 | sed 's/^/| /' "$ac_site_file" >&5 | |
1379 | . "$ac_site_file" | |
1380 | fi | |
1381 | done | |
1382 | ||
1383 | if test -r "$cache_file"; then | |
1384 | # Some versions of bash will fail to source /dev/null (special | |
1385 | # files actually), so we avoid doing that. | |
1386 | if test -f "$cache_file"; then | |
1387 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1388 | echo "$as_me: loading cache $cache_file" >&6;} | |
1389 | case $cache_file in | |
1390 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1391 | *) . ./$cache_file;; | |
1392 | esac | |
1393 | fi | |
1394 | else | |
1395 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1396 | echo "$as_me: creating cache $cache_file" >&6;} | |
1397 | >$cache_file | |
1398 | fi | |
1399 | ||
1400 | # Check that the precious variables saved in the cache have kept the same | |
1401 | # value. | |
1402 | ac_cache_corrupted=false | |
1403 | for ac_var in `(set) 2>&1 | | |
ab509236 | 1404 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
13b2be9c DJ |
1405 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1406 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1407 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1408 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1409 | case $ac_old_set,$ac_new_set in | |
1410 | set,) | |
1411 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1412 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1413 | ac_cache_corrupted=: ;; | |
1414 | ,set) | |
1415 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1416 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1417 | ac_cache_corrupted=: ;; | |
1418 | ,);; | |
1419 | *) | |
1420 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
6194aaab L |
1421 | # differences in whitespace do not lead to failure. |
1422 | ac_old_val_w=`echo x $ac_old_val` | |
1423 | ac_new_val_w=`echo x $ac_new_val` | |
1424 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1425 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
13b2be9c | 1426 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
6194aaab L |
1427 | ac_cache_corrupted=: |
1428 | else | |
1429 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1430 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1431 | eval $ac_var=\$ac_old_val | |
1432 | fi | |
1433 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1434 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1435 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1436 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
13b2be9c DJ |
1437 | fi;; |
1438 | esac | |
1439 | # Pass precious variables to config.status. | |
1440 | if test "$ac_new_set" = set; then | |
1441 | case $ac_new_val in | |
1442 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1443 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1444 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1445 | esac | |
1446 | case " $ac_configure_args " in | |
1447 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1448 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1449 | esac | |
1450 | fi | |
1451 | done | |
1452 | if $ac_cache_corrupted; then | |
7a283e07 RW |
1453 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1454 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13b2be9c DJ |
1455 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1456 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1457 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1458 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1459 | { (exit 1); exit 1; }; } | |
1460 | fi | |
1461 | ||
1462 | ac_ext=c | |
1463 | ac_cpp='$CPP $CPPFLAGS' | |
1464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
7a283e07 RW |
1484 | |
1485 | ||
1486 | ||
13b2be9c | 1487 | |
da594c4a | 1488 | |
13b2be9c DJ |
1489 | |
1490 | ||
1491 | ac_aux_dir= | |
1492 | for ac_dir in .. $srcdir/..; do | |
1493 | if test -f $ac_dir/install-sh; then | |
1494 | ac_aux_dir=$ac_dir | |
1495 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1496 | break | |
1497 | elif test -f $ac_dir/install.sh; then | |
1498 | ac_aux_dir=$ac_dir | |
1499 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1500 | break | |
1501 | elif test -f $ac_dir/shtool; then | |
1502 | ac_aux_dir=$ac_dir | |
1503 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1504 | break | |
1505 | fi | |
1506 | done | |
1507 | if test -z "$ac_aux_dir"; then | |
1508 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 | |
1509 | echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} | |
1510 | { (exit 1); exit 1; }; } | |
1511 | fi | |
1512 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1513 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1514 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1515 | ||
1516 | # Make sure we can run config.sub. | |
1517 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1518 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1519 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1520 | { (exit 1); exit 1; }; } | |
1521 | ||
1522 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1523 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1524 | if test "${ac_cv_build+set}" = set; then | |
1525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1526 | else | |
1527 | ac_cv_build_alias=$build_alias | |
1528 | test -z "$ac_cv_build_alias" && | |
1529 | ac_cv_build_alias=`$ac_config_guess` | |
1530 | test -z "$ac_cv_build_alias" && | |
1531 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1532 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1533 | { (exit 1); exit 1; }; } | |
1534 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1535 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1536 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1537 | { (exit 1); exit 1; }; } | |
1538 | ||
1539 | fi | |
1540 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1541 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1542 | build=$ac_cv_build | |
1543 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1544 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1545 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1546 | ||
1547 | ||
1548 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1549 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1550 | if test "${ac_cv_host+set}" = set; then | |
1551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1552 | else | |
1553 | ac_cv_host_alias=$host_alias | |
1554 | test -z "$ac_cv_host_alias" && | |
1555 | ac_cv_host_alias=$ac_cv_build_alias | |
1556 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1557 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1558 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1559 | { (exit 1); exit 1; }; } | |
1560 | ||
1561 | fi | |
1562 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1563 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1564 | host=$ac_cv_host | |
1565 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1566 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1567 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1568 | ||
1569 | ||
1570 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1571 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1572 | if test "${ac_cv_target+set}" = set; then | |
1573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1574 | else | |
1575 | ac_cv_target_alias=$target_alias | |
1576 | test "x$ac_cv_target_alias" = "x" && | |
1577 | ac_cv_target_alias=$ac_cv_host_alias | |
1578 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1579 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1580 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1581 | { (exit 1); exit 1; }; } | |
1582 | ||
1583 | fi | |
1584 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1585 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1586 | target=$ac_cv_target | |
1587 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1588 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1589 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1590 | ||
1591 | ||
1592 | # The aliases save the names the user supplied, while $host etc. | |
1593 | # will get canonicalized. | |
1594 | test -n "$target_alias" && | |
1595 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1596 | NONENONEs,x,x, && | |
1597 | program_prefix=${target_alias}- | |
1598 | ac_ext=c | |
1599 | ac_cpp='$CPP $CPPFLAGS' | |
1600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1603 | if test -n "$ac_tool_prefix"; then | |
1604 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1605 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1608 | if test "${ac_cv_prog_CC+set}" = set; then | |
1609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1610 | else | |
1611 | if test -n "$CC"; then | |
1612 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1613 | else | |
1614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1615 | for as_dir in $PATH | |
1616 | do | |
1617 | IFS=$as_save_IFS | |
1618 | test -z "$as_dir" && as_dir=. | |
1619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1620 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1621 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1623 | break 2 | |
1624 | fi | |
1625 | done | |
1626 | done | |
1627 | ||
1628 | fi | |
1629 | fi | |
1630 | CC=$ac_cv_prog_CC | |
1631 | if test -n "$CC"; then | |
1632 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1633 | echo "${ECHO_T}$CC" >&6 | |
1634 | else | |
1635 | echo "$as_me:$LINENO: result: no" >&5 | |
1636 | echo "${ECHO_T}no" >&6 | |
1637 | fi | |
1638 | ||
1639 | fi | |
1640 | if test -z "$ac_cv_prog_CC"; then | |
1641 | ac_ct_CC=$CC | |
1642 | # Extract the first word of "gcc", so it can be a program name with args. | |
1643 | set dummy gcc; ac_word=$2 | |
1644 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1646 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1648 | else | |
1649 | if test -n "$ac_ct_CC"; then | |
1650 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1651 | else | |
1652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1653 | for as_dir in $PATH | |
1654 | do | |
1655 | IFS=$as_save_IFS | |
1656 | test -z "$as_dir" && as_dir=. | |
1657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1659 | ac_cv_prog_ac_ct_CC="gcc" | |
1660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1661 | break 2 | |
1662 | fi | |
1663 | done | |
1664 | done | |
1665 | ||
1666 | fi | |
1667 | fi | |
1668 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1669 | if test -n "$ac_ct_CC"; then | |
1670 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1671 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1672 | else | |
1673 | echo "$as_me:$LINENO: result: no" >&5 | |
1674 | echo "${ECHO_T}no" >&6 | |
1675 | fi | |
1676 | ||
1677 | CC=$ac_ct_CC | |
1678 | else | |
1679 | CC="$ac_cv_prog_CC" | |
1680 | fi | |
1681 | ||
1682 | if test -z "$CC"; then | |
1683 | if test -n "$ac_tool_prefix"; then | |
1684 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1685 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1686 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1687 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1688 | if test "${ac_cv_prog_CC+set}" = set; then | |
1689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1690 | else | |
1691 | if test -n "$CC"; then | |
1692 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1693 | else | |
1694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1695 | for as_dir in $PATH | |
1696 | do | |
1697 | IFS=$as_save_IFS | |
1698 | test -z "$as_dir" && as_dir=. | |
1699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1700 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1701 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1702 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1703 | break 2 | |
1704 | fi | |
1705 | done | |
1706 | done | |
1707 | ||
1708 | fi | |
1709 | fi | |
1710 | CC=$ac_cv_prog_CC | |
1711 | if test -n "$CC"; then | |
1712 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1713 | echo "${ECHO_T}$CC" >&6 | |
1714 | else | |
1715 | echo "$as_me:$LINENO: result: no" >&5 | |
1716 | echo "${ECHO_T}no" >&6 | |
1717 | fi | |
1718 | ||
1719 | fi | |
1720 | if test -z "$ac_cv_prog_CC"; then | |
1721 | ac_ct_CC=$CC | |
1722 | # Extract the first word of "cc", so it can be a program name with args. | |
1723 | set dummy cc; ac_word=$2 | |
1724 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1726 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1728 | else | |
1729 | if test -n "$ac_ct_CC"; then | |
1730 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1731 | else | |
1732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1733 | for as_dir in $PATH | |
1734 | do | |
1735 | IFS=$as_save_IFS | |
1736 | test -z "$as_dir" && as_dir=. | |
1737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1738 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1739 | ac_cv_prog_ac_ct_CC="cc" | |
1740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1741 | break 2 | |
1742 | fi | |
1743 | done | |
1744 | done | |
1745 | ||
1746 | fi | |
1747 | fi | |
1748 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1749 | if test -n "$ac_ct_CC"; then | |
1750 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1751 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1752 | else | |
1753 | echo "$as_me:$LINENO: result: no" >&5 | |
1754 | echo "${ECHO_T}no" >&6 | |
1755 | fi | |
1756 | ||
1757 | CC=$ac_ct_CC | |
1758 | else | |
1759 | CC="$ac_cv_prog_CC" | |
1760 | fi | |
1761 | ||
1762 | fi | |
1763 | if test -z "$CC"; then | |
1764 | # Extract the first word of "cc", so it can be a program name with args. | |
1765 | set dummy cc; ac_word=$2 | |
1766 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1768 | if test "${ac_cv_prog_CC+set}" = set; then | |
1769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1770 | else | |
1771 | if test -n "$CC"; then | |
1772 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1773 | else | |
1774 | ac_prog_rejected=no | |
1775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1776 | for as_dir in $PATH | |
1777 | do | |
1778 | IFS=$as_save_IFS | |
1779 | test -z "$as_dir" && as_dir=. | |
1780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1782 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1783 | ac_prog_rejected=yes | |
1784 | continue | |
1785 | fi | |
1786 | ac_cv_prog_CC="cc" | |
1787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1788 | break 2 | |
1789 | fi | |
1790 | done | |
1791 | done | |
1792 | ||
1793 | if test $ac_prog_rejected = yes; then | |
1794 | # We found a bogon in the path, so make sure we never use it. | |
1795 | set dummy $ac_cv_prog_CC | |
1796 | shift | |
1797 | if test $# != 0; then | |
1798 | # We chose a different compiler from the bogus one. | |
1799 | # However, it has the same basename, so the bogon will be chosen | |
1800 | # first if we set CC to just the basename; use the full file name. | |
1801 | shift | |
1802 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1803 | fi | |
1804 | fi | |
1805 | fi | |
1806 | fi | |
1807 | CC=$ac_cv_prog_CC | |
1808 | if test -n "$CC"; then | |
1809 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1810 | echo "${ECHO_T}$CC" >&6 | |
1811 | else | |
1812 | echo "$as_me:$LINENO: result: no" >&5 | |
1813 | echo "${ECHO_T}no" >&6 | |
1814 | fi | |
1815 | ||
1816 | fi | |
1817 | if test -z "$CC"; then | |
1818 | if test -n "$ac_tool_prefix"; then | |
1819 | for ac_prog in cl | |
1820 | do | |
1821 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1822 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1823 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1825 | if test "${ac_cv_prog_CC+set}" = set; then | |
1826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1827 | else | |
1828 | if test -n "$CC"; then | |
1829 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1830 | else | |
1831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1832 | for as_dir in $PATH | |
1833 | do | |
1834 | IFS=$as_save_IFS | |
1835 | test -z "$as_dir" && as_dir=. | |
1836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1837 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1838 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1840 | break 2 | |
1841 | fi | |
1842 | done | |
1843 | done | |
1844 | ||
1845 | fi | |
1846 | fi | |
1847 | CC=$ac_cv_prog_CC | |
1848 | if test -n "$CC"; then | |
1849 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1850 | echo "${ECHO_T}$CC" >&6 | |
1851 | else | |
1852 | echo "$as_me:$LINENO: result: no" >&5 | |
1853 | echo "${ECHO_T}no" >&6 | |
1854 | fi | |
1855 | ||
1856 | test -n "$CC" && break | |
1857 | done | |
1858 | fi | |
1859 | if test -z "$CC"; then | |
1860 | ac_ct_CC=$CC | |
1861 | for ac_prog in cl | |
1862 | do | |
1863 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1864 | set dummy $ac_prog; ac_word=$2 | |
1865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1867 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1869 | else | |
1870 | if test -n "$ac_ct_CC"; then | |
1871 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1872 | else | |
1873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1874 | for as_dir in $PATH | |
1875 | do | |
1876 | IFS=$as_save_IFS | |
1877 | test -z "$as_dir" && as_dir=. | |
1878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1880 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1882 | break 2 | |
1883 | fi | |
1884 | done | |
1885 | done | |
1886 | ||
1887 | fi | |
1888 | fi | |
1889 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1890 | if test -n "$ac_ct_CC"; then | |
1891 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1892 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1893 | else | |
1894 | echo "$as_me:$LINENO: result: no" >&5 | |
1895 | echo "${ECHO_T}no" >&6 | |
1896 | fi | |
1897 | ||
1898 | test -n "$ac_ct_CC" && break | |
1899 | done | |
1900 | ||
1901 | CC=$ac_ct_CC | |
1902 | fi | |
1903 | ||
1904 | fi | |
1905 | ||
1906 | ||
7a283e07 RW |
1907 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1908 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1909 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
13b2be9c DJ |
1910 | See \`config.log' for more details." >&5 |
1911 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1912 | See \`config.log' for more details." >&2;} | |
7a283e07 | 1913 | { (exit 1); exit 1; }; }; } |
13b2be9c DJ |
1914 | |
1915 | # Provide some information about the compiler. | |
1916 | echo "$as_me:$LINENO:" \ | |
1917 | "checking for C compiler version" >&5 | |
1918 | ac_compiler=`set X $ac_compile; echo $2` | |
1919 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1920 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1921 | ac_status=$? | |
1922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1923 | (exit $ac_status); } | |
1924 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1925 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1926 | ac_status=$? | |
1927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1928 | (exit $ac_status); } | |
1929 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1930 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1931 | ac_status=$? | |
1932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1933 | (exit $ac_status); } | |
1934 | ||
1935 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
1936 | /* confdefs.h. */ |
1937 | _ACEOF | |
1938 | cat confdefs.h >>conftest.$ac_ext | |
1939 | cat >>conftest.$ac_ext <<_ACEOF | |
1940 | /* end confdefs.h. */ | |
1941 | ||
1942 | int | |
1943 | main () | |
1944 | { | |
1945 | ||
1946 | ; | |
1947 | return 0; | |
1948 | } | |
1949 | _ACEOF | |
1950 | ac_clean_files_save=$ac_clean_files | |
1951 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1952 | # Try to create an executable without -o first, disregard a.out. | |
1953 | # It will help us diagnose broken compilers, and finding out an intuition | |
1954 | # of exeext. | |
ab509236 L |
1955 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1956 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
13b2be9c DJ |
1957 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1958 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1959 | (eval $ac_link_default) 2>&5 | |
1960 | ac_status=$? | |
1961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1962 | (exit $ac_status); }; then | |
1963 | # Find the output, starting from the most likely. This scheme is | |
1964 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1965 | # resort. | |
1966 | ||
1967 | # Be careful to initialize this variable, since it used to be cached. | |
1968 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1969 | ac_cv_exeext= | |
1970 | # b.out is created by i960 compilers. | |
1971 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1972 | do | |
1973 | test -f "$ac_file" || continue | |
1974 | case $ac_file in | |
1975 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ab509236 | 1976 | ;; |
13b2be9c | 1977 | conftest.$ac_ext ) |
ab509236 L |
1978 | # This is the source file. |
1979 | ;; | |
13b2be9c | 1980 | [ab].out ) |
ab509236 L |
1981 | # We found the default executable, but exeext='' is most |
1982 | # certainly right. | |
1983 | break;; | |
13b2be9c | 1984 | *.* ) |
ab509236 L |
1985 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1986 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1987 | # but it would be cool to find out if it's true. Does anybody | |
1988 | # maintain Libtool? --akim. | |
1989 | export ac_cv_exeext | |
1990 | break;; | |
13b2be9c | 1991 | * ) |
ab509236 | 1992 | break;; |
13b2be9c DJ |
1993 | esac |
1994 | done | |
1995 | else | |
1996 | echo "$as_me: failed program was:" >&5 | |
1997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1998 | ||
7a283e07 RW |
1999 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2000 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13b2be9c DJ |
2001 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2002 | See \`config.log' for more details." >&5 | |
2003 | echo "$as_me: error: C compiler cannot create executables | |
2004 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2005 | { (exit 77); exit 77; }; }; } |
13b2be9c DJ |
2006 | fi |
2007 | ||
2008 | ac_exeext=$ac_cv_exeext | |
2009 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2010 | echo "${ECHO_T}$ac_file" >&6 | |
2011 | ||
2012 | # Check the compiler produces executables we can run. If not, either | |
2013 | # the compiler is broken, or we cross compile. | |
2014 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2015 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2016 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2017 | # If not cross compiling, check that we can run a simple program. | |
2018 | if test "$cross_compiling" != yes; then | |
2019 | if { ac_try='./$ac_file' | |
2020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2021 | (eval $ac_try) 2>&5 | |
2022 | ac_status=$? | |
2023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2024 | (exit $ac_status); }; }; then | |
2025 | cross_compiling=no | |
2026 | else | |
2027 | if test "$cross_compiling" = maybe; then | |
2028 | cross_compiling=yes | |
2029 | else | |
7a283e07 RW |
2030 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2031 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2032 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
13b2be9c DJ |
2033 | If you meant to cross compile, use \`--host'. |
2034 | See \`config.log' for more details." >&5 | |
2035 | echo "$as_me: error: cannot run C compiled programs. | |
2036 | If you meant to cross compile, use \`--host'. | |
2037 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2038 | { (exit 1); exit 1; }; }; } |
13b2be9c DJ |
2039 | fi |
2040 | fi | |
2041 | fi | |
2042 | echo "$as_me:$LINENO: result: yes" >&5 | |
2043 | echo "${ECHO_T}yes" >&6 | |
2044 | ||
2045 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2046 | ac_clean_files=$ac_clean_files_save | |
2047 | # Check the compiler produces executables we can run. If not, either | |
2048 | # the compiler is broken, or we cross compile. | |
2049 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2050 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2051 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2052 | echo "${ECHO_T}$cross_compiling" >&6 | |
2053 | ||
2054 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2055 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2057 | (eval $ac_link) 2>&5 | |
2058 | ac_status=$? | |
2059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2060 | (exit $ac_status); }; then | |
2061 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2062 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2063 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2064 | # `rm'. | |
2065 | for ac_file in conftest.exe conftest conftest.*; do | |
2066 | test -f "$ac_file" || continue | |
2067 | case $ac_file in | |
2068 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2069 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ab509236 L |
2070 | export ac_cv_exeext |
2071 | break;; | |
13b2be9c DJ |
2072 | * ) break;; |
2073 | esac | |
2074 | done | |
2075 | else | |
7a283e07 RW |
2076 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2077 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2078 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
13b2be9c DJ |
2079 | See \`config.log' for more details." >&5 |
2080 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2081 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2082 | { (exit 1); exit 1; }; }; } |
13b2be9c DJ |
2083 | fi |
2084 | ||
2085 | rm -f conftest$ac_cv_exeext | |
2086 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2087 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2088 | ||
2089 | rm -f conftest.$ac_ext | |
2090 | EXEEXT=$ac_cv_exeext | |
2091 | ac_exeext=$EXEEXT | |
2092 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2093 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2094 | if test "${ac_cv_objext+set}" = set; then | |
2095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2096 | else | |
2097 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2098 | /* confdefs.h. */ |
2099 | _ACEOF | |
2100 | cat confdefs.h >>conftest.$ac_ext | |
2101 | cat >>conftest.$ac_ext <<_ACEOF | |
2102 | /* end confdefs.h. */ | |
2103 | ||
2104 | int | |
2105 | main () | |
2106 | { | |
2107 | ||
2108 | ; | |
2109 | return 0; | |
2110 | } | |
2111 | _ACEOF | |
2112 | rm -f conftest.o conftest.obj | |
2113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2114 | (eval $ac_compile) 2>&5 | |
2115 | ac_status=$? | |
2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2117 | (exit $ac_status); }; then | |
2118 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2119 | case $ac_file in | |
2120 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2121 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2122 | break;; | |
2123 | esac | |
2124 | done | |
2125 | else | |
2126 | echo "$as_me: failed program was:" >&5 | |
2127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2128 | ||
7a283e07 RW |
2129 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2130 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13b2be9c DJ |
2131 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2132 | See \`config.log' for more details." >&5 | |
2133 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2134 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2135 | { (exit 1); exit 1; }; }; } |
13b2be9c DJ |
2136 | fi |
2137 | ||
2138 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2139 | fi | |
2140 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2141 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2142 | OBJEXT=$ac_cv_objext | |
2143 | ac_objext=$OBJEXT | |
2144 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2145 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2146 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2148 | else | |
2149 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2150 | /* confdefs.h. */ |
2151 | _ACEOF | |
2152 | cat confdefs.h >>conftest.$ac_ext | |
2153 | cat >>conftest.$ac_ext <<_ACEOF | |
2154 | /* end confdefs.h. */ | |
2155 | ||
2156 | int | |
2157 | main () | |
2158 | { | |
2159 | #ifndef __GNUC__ | |
2160 | choke me | |
2161 | #endif | |
2162 | ||
2163 | ; | |
2164 | return 0; | |
2165 | } | |
2166 | _ACEOF | |
2167 | rm -f conftest.$ac_objext | |
2168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2169 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2170 | ac_status=$? |
ab509236 L |
2171 | grep -v '^ *+' conftest.er1 >conftest.err |
2172 | rm -f conftest.er1 | |
2173 | cat conftest.err >&5 | |
13b2be9c DJ |
2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2175 | (exit $ac_status); } && | |
1ad12f97 NC |
2176 | { ac_try='test -z "$ac_c_werror_flag" |
2177 | || test ! -s conftest.err' | |
ab509236 L |
2178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2179 | (eval $ac_try) 2>&5 | |
2180 | ac_status=$? | |
2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2182 | (exit $ac_status); }; } && | |
2183 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2185 | (eval $ac_try) 2>&5 | |
2186 | ac_status=$? | |
2187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2188 | (exit $ac_status); }; }; then | |
2189 | ac_compiler_gnu=yes | |
2190 | else | |
2191 | echo "$as_me: failed program was:" >&5 | |
2192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2193 | ||
2194 | ac_compiler_gnu=no | |
2195 | fi | |
ab509236 | 2196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2197 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2198 | ||
2199 | fi | |
2200 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2201 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2202 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2203 | ac_test_CFLAGS=${CFLAGS+set} | |
2204 | ac_save_CFLAGS=$CFLAGS | |
2205 | CFLAGS="-g" | |
2206 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2207 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2208 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2210 | else | |
2211 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2212 | /* confdefs.h. */ |
2213 | _ACEOF | |
2214 | cat confdefs.h >>conftest.$ac_ext | |
2215 | cat >>conftest.$ac_ext <<_ACEOF | |
2216 | /* end confdefs.h. */ | |
2217 | ||
2218 | int | |
2219 | main () | |
2220 | { | |
2221 | ||
2222 | ; | |
2223 | return 0; | |
2224 | } | |
2225 | _ACEOF | |
2226 | rm -f conftest.$ac_objext | |
2227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2228 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2229 | ac_status=$? |
ab509236 L |
2230 | grep -v '^ *+' conftest.er1 >conftest.err |
2231 | rm -f conftest.er1 | |
2232 | cat conftest.err >&5 | |
13b2be9c DJ |
2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2234 | (exit $ac_status); } && | |
1ad12f97 NC |
2235 | { ac_try='test -z "$ac_c_werror_flag" |
2236 | || test ! -s conftest.err' | |
ab509236 L |
2237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2238 | (eval $ac_try) 2>&5 | |
2239 | ac_status=$? | |
2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2241 | (exit $ac_status); }; } && | |
2242 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2244 | (eval $ac_try) 2>&5 | |
2245 | ac_status=$? | |
2246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2247 | (exit $ac_status); }; }; then | |
2248 | ac_cv_prog_cc_g=yes | |
2249 | else | |
2250 | echo "$as_me: failed program was:" >&5 | |
2251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2252 | ||
2253 | ac_cv_prog_cc_g=no | |
2254 | fi | |
ab509236 | 2255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2256 | fi |
2257 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2258 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2259 | if test "$ac_test_CFLAGS" = set; then | |
2260 | CFLAGS=$ac_save_CFLAGS | |
2261 | elif test $ac_cv_prog_cc_g = yes; then | |
2262 | if test "$GCC" = yes; then | |
2263 | CFLAGS="-g -O2" | |
2264 | else | |
2265 | CFLAGS="-g" | |
2266 | fi | |
2267 | else | |
2268 | if test "$GCC" = yes; then | |
2269 | CFLAGS="-O2" | |
2270 | else | |
2271 | CFLAGS= | |
2272 | fi | |
2273 | fi | |
2274 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2275 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2276 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2278 | else | |
2279 | ac_cv_prog_cc_stdc=no | |
2280 | ac_save_CC=$CC | |
2281 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2282 | /* confdefs.h. */ |
2283 | _ACEOF | |
2284 | cat confdefs.h >>conftest.$ac_ext | |
2285 | cat >>conftest.$ac_ext <<_ACEOF | |
2286 | /* end confdefs.h. */ | |
2287 | #include <stdarg.h> | |
2288 | #include <stdio.h> | |
2289 | #include <sys/types.h> | |
2290 | #include <sys/stat.h> | |
2291 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2292 | struct buf { int x; }; | |
2293 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2294 | static char *e (p, i) | |
2295 | char **p; | |
2296 | int i; | |
2297 | { | |
2298 | return p[i]; | |
2299 | } | |
2300 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2301 | { | |
2302 | char *s; | |
2303 | va_list v; | |
2304 | va_start (v,p); | |
2305 | s = g (p, va_arg (v,int)); | |
2306 | va_end (v); | |
2307 | return s; | |
2308 | } | |
ab509236 L |
2309 | |
2310 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2311 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2312 | These don't provoke an error unfortunately, instead are silently treated | |
2313 | as 'x'. The following induces an error, until -std1 is added to get | |
2314 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2315 | array size at least. It's necessary to write '\x00'==0 to get something | |
2316 | that's true only with -std1. */ | |
2317 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2318 | ||
13b2be9c DJ |
2319 | int test (int i, double x); |
2320 | struct s1 {int (*f) (int a);}; | |
2321 | struct s2 {int (*f) (double a);}; | |
2322 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2323 | int argc; | |
2324 | char **argv; | |
2325 | int | |
2326 | main () | |
2327 | { | |
2328 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2329 | ; | |
2330 | return 0; | |
2331 | } | |
2332 | _ACEOF | |
2333 | # Don't try gcc -ansi; that turns off useful extensions and | |
2334 | # breaks some systems' header files. | |
2335 | # AIX -qlanglvl=ansi | |
2336 | # Ultrix and OSF/1 -std1 | |
2337 | # HP-UX 10.20 and later -Ae | |
2338 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2339 | # SVR4 -Xc -D__EXTENSIONS__ | |
2340 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2341 | do | |
2342 | CC="$ac_save_CC $ac_arg" | |
2343 | rm -f conftest.$ac_objext | |
2344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2345 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2346 | ac_status=$? |
ab509236 L |
2347 | grep -v '^ *+' conftest.er1 >conftest.err |
2348 | rm -f conftest.er1 | |
2349 | cat conftest.err >&5 | |
13b2be9c DJ |
2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2351 | (exit $ac_status); } && | |
1ad12f97 NC |
2352 | { ac_try='test -z "$ac_c_werror_flag" |
2353 | || test ! -s conftest.err' | |
ab509236 L |
2354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2355 | (eval $ac_try) 2>&5 | |
2356 | ac_status=$? | |
2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2358 | (exit $ac_status); }; } && | |
2359 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2361 | (eval $ac_try) 2>&5 | |
2362 | ac_status=$? | |
2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2364 | (exit $ac_status); }; }; then | |
2365 | ac_cv_prog_cc_stdc=$ac_arg | |
2366 | break | |
2367 | else | |
2368 | echo "$as_me: failed program was:" >&5 | |
2369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2370 | ||
2371 | fi | |
ab509236 | 2372 | rm -f conftest.err conftest.$ac_objext |
13b2be9c DJ |
2373 | done |
2374 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2375 | CC=$ac_save_CC | |
2376 | ||
2377 | fi | |
2378 | ||
2379 | case "x$ac_cv_prog_cc_stdc" in | |
2380 | x|xno) | |
2381 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2382 | echo "${ECHO_T}none needed" >&6 ;; | |
2383 | *) | |
2384 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2385 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2386 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2387 | esac | |
2388 | ||
2389 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2390 | # in C++ we need to declare it. In case someone uses the same compiler | |
2391 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2392 | # the declaration of exit, since it's the most demanding environment. | |
2393 | cat >conftest.$ac_ext <<_ACEOF | |
2394 | #ifndef __cplusplus | |
2395 | choke me | |
2396 | #endif | |
2397 | _ACEOF | |
2398 | rm -f conftest.$ac_objext | |
2399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2400 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2401 | ac_status=$? |
ab509236 L |
2402 | grep -v '^ *+' conftest.er1 >conftest.err |
2403 | rm -f conftest.er1 | |
2404 | cat conftest.err >&5 | |
13b2be9c DJ |
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2406 | (exit $ac_status); } && | |
1ad12f97 NC |
2407 | { ac_try='test -z "$ac_c_werror_flag" |
2408 | || test ! -s conftest.err' | |
ab509236 L |
2409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2410 | (eval $ac_try) 2>&5 | |
2411 | ac_status=$? | |
2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2413 | (exit $ac_status); }; } && | |
2414 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2416 | (eval $ac_try) 2>&5 | |
2417 | ac_status=$? | |
2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2419 | (exit $ac_status); }; }; then | |
2420 | for ac_declaration in \ | |
ab509236 | 2421 | '' \ |
13b2be9c DJ |
2422 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2423 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2424 | 'extern "C" void exit (int) throw ();' \ | |
2425 | 'extern "C" void exit (int);' \ | |
2426 | 'void exit (int);' | |
2427 | do | |
2428 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
2429 | /* confdefs.h. */ |
2430 | _ACEOF | |
2431 | cat confdefs.h >>conftest.$ac_ext | |
2432 | cat >>conftest.$ac_ext <<_ACEOF | |
2433 | /* end confdefs.h. */ | |
13dfd2d0 | 2434 | $ac_declaration |
ab509236 | 2435 | #include <stdlib.h> |
13b2be9c DJ |
2436 | int |
2437 | main () | |
2438 | { | |
2439 | exit (42); | |
2440 | ; | |
2441 | return 0; | |
2442 | } | |
2443 | _ACEOF | |
2444 | rm -f conftest.$ac_objext | |
2445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2446 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2447 | ac_status=$? |
ab509236 L |
2448 | grep -v '^ *+' conftest.er1 >conftest.err |
2449 | rm -f conftest.er1 | |
2450 | cat conftest.err >&5 | |
13b2be9c DJ |
2451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2452 | (exit $ac_status); } && | |
1ad12f97 NC |
2453 | { ac_try='test -z "$ac_c_werror_flag" |
2454 | || test ! -s conftest.err' | |
ab509236 L |
2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2456 | (eval $ac_try) 2>&5 | |
2457 | ac_status=$? | |
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2459 | (exit $ac_status); }; } && | |
2460 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2462 | (eval $ac_try) 2>&5 | |
2463 | ac_status=$? | |
2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2465 | (exit $ac_status); }; }; then | |
2466 | : | |
2467 | else | |
2468 | echo "$as_me: failed program was:" >&5 | |
2469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2470 | ||
2471 | continue | |
2472 | fi | |
ab509236 | 2473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c | 2474 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
2475 | /* confdefs.h. */ |
2476 | _ACEOF | |
2477 | cat confdefs.h >>conftest.$ac_ext | |
2478 | cat >>conftest.$ac_ext <<_ACEOF | |
2479 | /* end confdefs.h. */ | |
2480 | $ac_declaration | |
2481 | int | |
2482 | main () | |
2483 | { | |
2484 | exit (42); | |
2485 | ; | |
2486 | return 0; | |
2487 | } | |
2488 | _ACEOF | |
2489 | rm -f conftest.$ac_objext | |
2490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 2491 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 2492 | ac_status=$? |
ab509236 L |
2493 | grep -v '^ *+' conftest.er1 >conftest.err |
2494 | rm -f conftest.er1 | |
2495 | cat conftest.err >&5 | |
13b2be9c DJ |
2496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2497 | (exit $ac_status); } && | |
1ad12f97 NC |
2498 | { ac_try='test -z "$ac_c_werror_flag" |
2499 | || test ! -s conftest.err' | |
ab509236 L |
2500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2501 | (eval $ac_try) 2>&5 | |
2502 | ac_status=$? | |
2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2504 | (exit $ac_status); }; } && | |
2505 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
2506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2507 | (eval $ac_try) 2>&5 | |
2508 | ac_status=$? | |
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2510 | (exit $ac_status); }; }; then | |
2511 | break | |
2512 | else | |
2513 | echo "$as_me: failed program was:" >&5 | |
2514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2515 | ||
2516 | fi | |
ab509236 | 2517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2518 | done |
2519 | rm -f conftest* | |
2520 | if test -n "$ac_declaration"; then | |
2521 | echo '#ifdef __cplusplus' >>confdefs.h | |
2522 | echo $ac_declaration >>confdefs.h | |
2523 | echo '#endif' >>confdefs.h | |
2524 | fi | |
2525 | ||
2526 | else | |
2527 | echo "$as_me: failed program was:" >&5 | |
2528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2529 | ||
2530 | fi | |
ab509236 | 2531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2532 | ac_ext=c |
2533 | ac_cpp='$CPP $CPPFLAGS' | |
2534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2537 | ||
2538 | ||
ab509236 L |
2539 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2540 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2541 | if test "${ac_cv_search_strerror+set}" = set; then | |
13b2be9c DJ |
2542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2543 | else | |
ab509236 L |
2544 | ac_func_search_save_LIBS=$LIBS |
2545 | ac_cv_search_strerror=no | |
13b2be9c | 2546 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
2547 | /* confdefs.h. */ |
2548 | _ACEOF | |
2549 | cat confdefs.h >>conftest.$ac_ext | |
2550 | cat >>conftest.$ac_ext <<_ACEOF | |
2551 | /* end confdefs.h. */ | |
2552 | ||
2553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2554 | #ifdef __cplusplus | |
2555 | extern "C" | |
2556 | #endif | |
2557 | /* We use char because int might match the return type of a gcc2 | |
2558 | builtin and then its argument prototype would still apply. */ | |
2559 | char strerror (); | |
2560 | int | |
2561 | main () | |
2562 | { | |
2563 | strerror (); | |
2564 | ; | |
2565 | return 0; | |
2566 | } | |
2567 | _ACEOF | |
2568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 2570 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 2571 | ac_status=$? |
ab509236 L |
2572 | grep -v '^ *+' conftest.er1 >conftest.err |
2573 | rm -f conftest.er1 | |
2574 | cat conftest.err >&5 | |
13b2be9c DJ |
2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2576 | (exit $ac_status); } && | |
1ad12f97 NC |
2577 | { ac_try='test -z "$ac_c_werror_flag" |
2578 | || test ! -s conftest.err' | |
ab509236 L |
2579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2580 | (eval $ac_try) 2>&5 | |
2581 | ac_status=$? | |
2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2583 | (exit $ac_status); }; } && | |
2584 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
2585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2586 | (eval $ac_try) 2>&5 | |
2587 | ac_status=$? | |
2588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2589 | (exit $ac_status); }; }; then | |
ab509236 | 2590 | ac_cv_search_strerror="none required" |
13b2be9c DJ |
2591 | else |
2592 | echo "$as_me: failed program was:" >&5 | |
2593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2594 | ||
13b2be9c | 2595 | fi |
ab509236 L |
2596 | rm -f conftest.err conftest.$ac_objext \ |
2597 | conftest$ac_exeext conftest.$ac_ext | |
2598 | if test "$ac_cv_search_strerror" = no; then | |
2599 | for ac_lib in cposix; do | |
2600 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2601 | cat >conftest.$ac_ext <<_ACEOF | |
2602 | /* confdefs.h. */ | |
2603 | _ACEOF | |
2604 | cat confdefs.h >>conftest.$ac_ext | |
2605 | cat >>conftest.$ac_ext <<_ACEOF | |
2606 | /* end confdefs.h. */ | |
2607 | ||
2608 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2609 | #ifdef __cplusplus | |
2610 | extern "C" | |
2611 | #endif | |
2612 | /* We use char because int might match the return type of a gcc2 | |
2613 | builtin and then its argument prototype would still apply. */ | |
2614 | char strerror (); | |
2615 | int | |
2616 | main () | |
2617 | { | |
2618 | strerror (); | |
2619 | ; | |
2620 | return 0; | |
2621 | } | |
2622 | _ACEOF | |
2623 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2625 | (eval $ac_link) 2>conftest.er1 | |
2626 | ac_status=$? | |
2627 | grep -v '^ *+' conftest.er1 >conftest.err | |
2628 | rm -f conftest.er1 | |
2629 | cat conftest.err >&5 | |
2630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2631 | (exit $ac_status); } && | |
1ad12f97 NC |
2632 | { ac_try='test -z "$ac_c_werror_flag" |
2633 | || test ! -s conftest.err' | |
ab509236 L |
2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2635 | (eval $ac_try) 2>&5 | |
2636 | ac_status=$? | |
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2638 | (exit $ac_status); }; } && | |
2639 | { ac_try='test -s conftest$ac_exeext' | |
2640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2641 | (eval $ac_try) 2>&5 | |
2642 | ac_status=$? | |
2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2644 | (exit $ac_status); }; }; then | |
2645 | ac_cv_search_strerror="-l$ac_lib" | |
2646 | break | |
2647 | else | |
2648 | echo "$as_me: failed program was:" >&5 | |
2649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2650 | ||
13b2be9c | 2651 | fi |
ab509236 L |
2652 | rm -f conftest.err conftest.$ac_objext \ |
2653 | conftest$ac_exeext conftest.$ac_ext | |
2654 | done | |
13b2be9c | 2655 | fi |
ab509236 L |
2656 | LIBS=$ac_func_search_save_LIBS |
2657 | fi | |
2658 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2659 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2660 | if test "$ac_cv_search_strerror" != no; then | |
2661 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
13b2be9c | 2662 | |
ab509236 | 2663 | fi |
13b2be9c DJ |
2664 | |
2665 | ||
2666 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
8ea2b00f | 2667 | am__api_version="1.9" |
13b2be9c DJ |
2668 | # Find a good install program. We prefer a C program (faster), |
2669 | # so one script is as good as another. But avoid the broken or | |
2670 | # incompatible versions: | |
2671 | # SysV /etc/install, /usr/sbin/install | |
2672 | # SunOS /usr/etc/install | |
2673 | # IRIX /sbin/install | |
2674 | # AIX /bin/install | |
2675 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2676 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2677 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2678 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ab509236 | 2679 | # OS/2's system install, which has a completely different semantic |
13b2be9c | 2680 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2681 | # Reject install programs that cannot install multiple files. |
13b2be9c DJ |
2682 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2683 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2684 | if test -z "$INSTALL"; then | |
2685 | if test "${ac_cv_path_install+set}" = set; then | |
2686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2687 | else | |
2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2689 | for as_dir in $PATH | |
2690 | do | |
2691 | IFS=$as_save_IFS | |
2692 | test -z "$as_dir" && as_dir=. | |
2693 | # Account for people who put trailing slashes in PATH elements. | |
2694 | case $as_dir/ in | |
2695 | ./ | .// | /cC/* | \ | |
2696 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ab509236 | 2697 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
13b2be9c DJ |
2698 | /usr/ucb/* ) ;; |
2699 | *) | |
2700 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2701 | # Don't use installbsd from OSF since it installs stuff as root | |
2702 | # by default. | |
2703 | for ac_prog in ginstall scoinst install; do | |
2704 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ab509236 L |
2705 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2706 | if test $ac_prog = install && | |
2707 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2708 | # AIX install. It has an incompatible calling convention. | |
2709 | : | |
2710 | elif test $ac_prog = install && | |
2711 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2712 | # program-specific install script used by HP pwplus--don't use. | |
2713 | : | |
2714 | else | |
58c85be7 RW |
2715 | rm -rf conftest.one conftest.two conftest.dir |
2716 | echo one > conftest.one | |
2717 | echo two > conftest.two | |
2718 | mkdir conftest.dir | |
2719 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2720 | test -s conftest.one && test -s conftest.two && | |
2721 | test -s conftest.dir/conftest.one && | |
2722 | test -s conftest.dir/conftest.two | |
2723 | then | |
2724 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2725 | break 3 | |
2726 | fi | |
ab509236 L |
2727 | fi |
2728 | fi | |
13b2be9c DJ |
2729 | done |
2730 | done | |
2731 | ;; | |
2732 | esac | |
2733 | done | |
2734 | ||
58c85be7 | 2735 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
2736 | |
2737 | fi | |
2738 | if test "${ac_cv_path_install+set}" = set; then | |
13b2be9c | 2739 | INSTALL=$ac_cv_path_install |
252b5132 | 2740 | else |
58c85be7 RW |
2741 | # As a last resort, use the slow shell script. Don't cache a |
2742 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2743 | # break other packages using the cache if that directory is |
58c85be7 | 2744 | # removed, or if the value is a relative name. |
13b2be9c | 2745 | INSTALL=$ac_install_sh |
252b5132 RH |
2746 | fi |
2747 | fi | |
13b2be9c DJ |
2748 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2749 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2750 | |
2751 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2752 | # It thinks the first close brace ends the variable substitution. | |
2753 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2754 | ||
13b2be9c | 2755 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2756 | |
2757 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2758 | ||
13b2be9c DJ |
2759 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2760 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2761 | # Just in case |
2762 | sleep 1 | |
13b2be9c | 2763 | echo timestamp > conftest.file |
252b5132 RH |
2764 | # Do `set' in a subshell so we don't clobber the current shell's |
2765 | # arguments. Must try -L first in case configure is actually a | |
2766 | # symlink; some systems play weird games with the mod time of symlinks | |
2767 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2768 | # directory). | |
2769 | if ( | |
13b2be9c | 2770 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2771 | if test "$*" = "X"; then |
2772 | # -L didn't work. | |
13b2be9c | 2773 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2774 | fi |
13b2be9c DJ |
2775 | rm -f conftest.file |
2776 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2777 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2778 | |
2779 | # If neither matched, then we have a broken ls. This can happen | |
2780 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2781 | # broken ls alias from the environment. This has actually | |
2782 | # happened. Such a system could not be considered "sane". | |
13b2be9c DJ |
2783 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2784 | alias in your environment" >&5 | |
2785 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2786 | alias in your environment" >&2;} | |
2787 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2788 | fi |
2789 | ||
13b2be9c DJ |
2790 | test "$2" = conftest.file |
2791 | ) | |
2792 | then | |
2793 | # Ok. | |
2794 | : | |
2795 | else | |
2796 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2797 | Check your system clock" >&5 | |
2798 | echo "$as_me: error: newly created file is older than distributed files! | |
2799 | Check your system clock" >&2;} | |
2800 | { (exit 1); exit 1; }; } | |
2801 | fi | |
2802 | echo "$as_me:$LINENO: result: yes" >&5 | |
2803 | echo "${ECHO_T}yes" >&6 | |
2804 | test "$program_prefix" != NONE && | |
2805 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
2806 | # Use a double $ so make ignores it. | |
2807 | test "$program_suffix" != NONE && | |
2808 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
2809 | # Double any \ or $. echo might interpret backslashes. | |
2810 | # By default was `s,x,x', remove it if useless. | |
2811 | cat <<\_ACEOF >conftest.sed | |
2812 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2813 | _ACEOF | |
2814 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2815 | rm conftest.sed | |
2816 | ||
13b2be9c DJ |
2817 | # expand $ac_aux_dir to an absolute path |
2818 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2819 | ||
2820 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2821 | # Use eval to expand $SHELL | |
2822 | if eval "$MISSING --run true"; then | |
2823 | am_missing_run="$MISSING --run " | |
2824 | else | |
2825 | am_missing_run= | |
2826 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2827 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2828 | fi | |
2829 | ||
4b363073 | 2830 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
8ea2b00f AM |
2831 | # We used to keeping the `.' as first argument, in order to |
2832 | # allow $(mkdir_p) to be used without argument. As in | |
ab509236 | 2833 | # $(mkdir_p) $(somedir) |
8ea2b00f AM |
2834 | # where $(somedir) is conditionally defined. However this is wrong |
2835 | # for two reasons: | |
2836 | # 1. if the package is installed by a user who cannot write `.' | |
2837 | # make install will fail, | |
2838 | # 2. the above comment should most certainly read | |
2839 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2840 | # so it does not work when $(somedir) is undefined and | |
2841 | # $(DESTDIR) is not. | |
2842 | # To support the latter case, we have to write | |
2843 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2844 | # so the `.' trick is pointless. | |
2845 | mkdir_p='mkdir -p --' | |
ab509236 L |
2846 | else |
2847 | # On NextStep and OpenStep, the `mkdir' command does not | |
2848 | # recognize any option. It will interpret all options as | |
2849 | # directories to create, and then abort because `.' already | |
2850 | # exists. | |
4b363073 | 2851 | for d in ./-p ./--version; |
ab509236 L |
2852 | do |
2853 | test -d $d && rmdir $d | |
2854 | done | |
2855 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2856 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2857 | mkdir_p='$(mkinstalldirs)' | |
2858 | else | |
2859 | mkdir_p='$(install_sh) -d' | |
2860 | fi | |
2861 | fi | |
2862 | ||
13b2be9c DJ |
2863 | for ac_prog in gawk mawk nawk awk |
2864 | do | |
2865 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2866 | set dummy $ac_prog; ac_word=$2 | |
2867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2869 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2871 | else | |
2872 | if test -n "$AWK"; then | |
2873 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2874 | else | |
2875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2876 | for as_dir in $PATH | |
2877 | do | |
2878 | IFS=$as_save_IFS | |
2879 | test -z "$as_dir" && as_dir=. | |
2880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2882 | ac_cv_prog_AWK="$ac_prog" | |
2883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2884 | break 2 | |
2885 | fi | |
2886 | done | |
2887 | done | |
2888 | ||
2889 | fi | |
2890 | fi | |
2891 | AWK=$ac_cv_prog_AWK | |
2892 | if test -n "$AWK"; then | |
2893 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2894 | echo "${ECHO_T}$AWK" >&6 | |
2895 | else | |
2896 | echo "$as_me:$LINENO: result: no" >&5 | |
2897 | echo "${ECHO_T}no" >&6 | |
2898 | fi | |
2899 | ||
2900 | test -n "$AWK" && break | |
2901 | done | |
2902 | ||
2903 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2904 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ab509236 | 2905 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
13b2be9c DJ |
2906 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
2907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2908 | else | |
2909 | cat >conftest.make <<\_ACEOF | |
2910 | all: | |
2911 | @echo 'ac_maketemp="$(MAKE)"' | |
2912 | _ACEOF | |
2913 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2914 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2915 | if test -n "$ac_maketemp"; then | |
2916 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2917 | else | |
2918 | eval ac_cv_prog_make_${ac_make}_set=no | |
2919 | fi | |
2920 | rm -f conftest.make | |
2921 | fi | |
2922 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2923 | echo "$as_me:$LINENO: result: yes" >&5 | |
2924 | echo "${ECHO_T}yes" >&6 | |
2925 | SET_MAKE= | |
2926 | else | |
2927 | echo "$as_me:$LINENO: result: no" >&5 | |
2928 | echo "${ECHO_T}no" >&6 | |
2929 | SET_MAKE="MAKE=${MAKE-make}" | |
2930 | fi | |
2931 | ||
2932 | rm -rf .tst 2>/dev/null | |
2933 | mkdir .tst 2>/dev/null | |
2934 | if test -d .tst; then | |
2935 | am__leading_dot=. | |
2936 | else | |
2937 | am__leading_dot=_ | |
2938 | fi | |
2939 | rmdir .tst 2>/dev/null | |
2940 | ||
2941 | DEPDIR="${am__leading_dot}deps" | |
2942 | ||
2943 | ac_config_commands="$ac_config_commands depfiles" | |
2944 | ||
2945 | ||
2946 | am_make=${MAKE-make} | |
2947 | cat > confinc << 'END' | |
2948 | am__doit: | |
2949 | @echo done | |
2950 | .PHONY: am__doit | |
2951 | END | |
2952 | # If we don't find an include directive, just comment out the code. | |
2953 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2954 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2955 | am__include="#" | |
2956 | am__quote= | |
2957 | _am_result=none | |
2958 | # First try GNU make style include. | |
2959 | echo "include confinc" > confmf | |
2960 | # We grep out `Entering directory' and `Leaving directory' | |
2961 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2962 | # In particular we don't look at `^make:' because GNU make might | |
2963 | # be invoked under some other name (usually "gmake"), in which | |
2964 | # case it prints its new name instead of `make'. | |
2965 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2966 | am__include=include | |
2967 | am__quote= | |
2968 | _am_result=GNU | |
2969 | fi | |
2970 | # Now try BSD make style include. | |
2971 | if test "$am__include" = "#"; then | |
2972 | echo '.include "confinc"' > confmf | |
2973 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2974 | am__include=.include | |
2975 | am__quote="\"" | |
2976 | _am_result=BSD | |
2977 | fi | |
2978 | fi | |
2979 | ||
2980 | ||
2981 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2982 | echo "${ECHO_T}$_am_result" >&6 | |
2983 | rm -f confinc confmf | |
2984 | ||
2985 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2986 | if test "${enable_dependency_tracking+set}" = set; then | |
2987 | enableval="$enable_dependency_tracking" | |
2988 | ||
2989 | fi; | |
2990 | if test "x$enable_dependency_tracking" != xno; then | |
2991 | am_depcomp="$ac_aux_dir/depcomp" | |
2992 | AMDEPBACKSLASH='\' | |
2993 | fi | |
2994 | ||
2995 | ||
2996 | if test "x$enable_dependency_tracking" != xno; then | |
2997 | AMDEP_TRUE= | |
2998 | AMDEP_FALSE='#' | |
2999 | else | |
3000 | AMDEP_TRUE='#' | |
3001 | AMDEP_FALSE= | |
3002 | fi | |
3003 | ||
3004 | ||
3005 | ||
ab509236 | 3006 | # test to see if srcdir already configured |
13b2be9c DJ |
3007 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
3008 | test -f $srcdir/config.status; then | |
3009 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
3010 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
3011 | { (exit 1); exit 1; }; } | |
3012 | fi | |
3013 | ||
3014 | # test whether we have cygpath | |
3015 | if test -z "$CYGPATH_W"; then | |
3016 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3017 | CYGPATH_W='cygpath -w' | |
3018 | else | |
3019 | CYGPATH_W=echo | |
3020 | fi | |
3021 | fi | |
3022 | ||
3023 | ||
3024 | # Define the identity of the package. | |
3025 | PACKAGE=gas | |
3026 | VERSION=${BFD_VERSION} | |
3027 | ||
3028 | ||
3029 | cat >>confdefs.h <<_ACEOF | |
3030 | #define PACKAGE "$PACKAGE" | |
3031 | _ACEOF | |
3032 | ||
3033 | ||
3034 | cat >>confdefs.h <<_ACEOF | |
3035 | #define VERSION "$VERSION" | |
3036 | _ACEOF | |
3037 | ||
3038 | # Some tools Automake needs. | |
3039 | ||
3040 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3041 | ||
3042 | ||
3043 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3044 | ||
3045 | ||
3046 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3047 | ||
3048 | ||
3049 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3050 | ||
3051 | ||
3052 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3053 | ||
13b2be9c DJ |
3054 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
3055 | ||
3056 | # Installed binaries are usually stripped using `strip' when the user | |
3057 | # run `make install-strip'. However `strip' might not be the right | |
3058 | # tool to use in cross-compilation environments, therefore Automake | |
3059 | # will honor the `STRIP' environment variable to overrule this program. | |
3060 | if test "$cross_compiling" != no; then | |
3061 | if test -n "$ac_tool_prefix"; then | |
3062 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3063 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3066 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3068 | else | |
3069 | if test -n "$STRIP"; then | |
3070 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 3071 | else |
13b2be9c DJ |
3072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3073 | for as_dir in $PATH | |
3074 | do | |
3075 | IFS=$as_save_IFS | |
3076 | test -z "$as_dir" && as_dir=. | |
3077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3079 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3081 | break 2 | |
3082 | fi | |
3083 | done | |
3084 | done | |
3085 | ||
252b5132 | 3086 | fi |
13b2be9c DJ |
3087 | fi |
3088 | STRIP=$ac_cv_prog_STRIP | |
3089 | if test -n "$STRIP"; then | |
3090 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3091 | echo "${ECHO_T}$STRIP" >&6 | |
c8615825 | 3092 | else |
13b2be9c DJ |
3093 | echo "$as_me:$LINENO: result: no" >&5 |
3094 | echo "${ECHO_T}no" >&6 | |
c8615825 | 3095 | fi |
c8615825 | 3096 | |
13b2be9c DJ |
3097 | fi |
3098 | if test -z "$ac_cv_prog_STRIP"; then | |
3099 | ac_ct_STRIP=$STRIP | |
3100 | # Extract the first word of "strip", so it can be a program name with args. | |
3101 | set dummy strip; ac_word=$2 | |
3102 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3104 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c8615825 | 3106 | else |
13b2be9c DJ |
3107 | if test -n "$ac_ct_STRIP"; then |
3108 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
252b5132 | 3109 | else |
13b2be9c DJ |
3110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3111 | for as_dir in $PATH | |
3112 | do | |
3113 | IFS=$as_save_IFS | |
3114 | test -z "$as_dir" && as_dir=. | |
3115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3116 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3117 | ac_cv_prog_ac_ct_STRIP="strip" | |
3118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3119 | break 2 | |
3120 | fi | |
3121 | done | |
3122 | done | |
3123 | ||
3124 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
252b5132 | 3125 | fi |
252b5132 | 3126 | fi |
13b2be9c DJ |
3127 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3128 | if test -n "$ac_ct_STRIP"; then | |
3129 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3130 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 3131 | else |
13b2be9c DJ |
3132 | echo "$as_me:$LINENO: result: no" >&5 |
3133 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3134 | fi |
3135 | ||
13b2be9c DJ |
3136 | STRIP=$ac_ct_STRIP |
3137 | else | |
3138 | STRIP="$ac_cv_prog_STRIP" | |
3139 | fi | |
d6d788bd | 3140 | |
252b5132 | 3141 | fi |
13b2be9c | 3142 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
252b5132 | 3143 | |
13b2be9c DJ |
3144 | # We need awk for the "check" target. The system "awk" is bad on |
3145 | # some platforms. | |
8ea2b00f AM |
3146 | # Always define AMTAR for backward compatibility. |
3147 | ||
3148 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3149 | ||
3150 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3151 | ||
3152 | ||
252b5132 | 3153 | |
d6d788bd | 3154 | |
13b2be9c | 3155 | depcc="$CC" am_compiler_list= |
d6d788bd | 3156 | |
13b2be9c DJ |
3157 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3158 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3159 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3161 | else |
13b2be9c DJ |
3162 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3163 | # We make a subdir and do the tests there. Otherwise we can end up | |
3164 | # making bogus files that we don't know about and never remove. For | |
3165 | # instance it was reported that on HP-UX the gcc test will end up | |
3166 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3167 | # in D'. | |
3168 | mkdir conftest.dir | |
3169 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3170 | # using a relative directory. | |
3171 | cp "$am_depcomp" conftest.dir | |
3172 | cd conftest.dir | |
3173 | # We will build objects and dependencies in a subdirectory because | |
3174 | # it helps to detect inapplicable dependency modes. For instance | |
3175 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3176 | # side effect of compilation, but ICC will put the dependencies in | |
3177 | # the current directory while Tru64 will put them in the object | |
3178 | # directory. | |
3179 | mkdir sub | |
252b5132 | 3180 | |
13b2be9c DJ |
3181 | am_cv_CC_dependencies_compiler_type=none |
3182 | if test "$am_compiler_list" = ""; then | |
3183 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3184 | fi | |
3185 | for depmode in $am_compiler_list; do | |
3186 | # Setup a source with many dependencies, because some compilers | |
3187 | # like to wrap large dependency lists on column 80 (with \), and | |
3188 | # we should not choose a depcomp mode which is confused by this. | |
3189 | # | |
3190 | # We need to recreate these files for each test, as the compiler may | |
3191 | # overwrite some of them when testing with obscure command lines. | |
3192 | # This happens at least with the AIX C compiler. | |
3193 | : > sub/conftest.c | |
3194 | for i in 1 2 3 4 5 6; do | |
3195 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4b363073 NC |
3196 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3197 | # Solaris 8's {/usr,}/bin/sh. | |
3198 | touch sub/conftst$i.h | |
13b2be9c DJ |
3199 | done |
3200 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3201 | ||
3202 | case $depmode in | |
3203 | nosideeffect) | |
3204 | # after this tag, mechanisms are not by side-effect, so they'll | |
3205 | # only be used when explicitly requested | |
3206 | if test "x$enable_dependency_tracking" = xyes; then | |
3207 | continue | |
3208 | else | |
3209 | break | |
3210 | fi | |
3211 | ;; | |
3212 | none) break ;; | |
3213 | esac | |
3214 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3215 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3216 | # handle `-M -o', and we need to detect this. | |
3217 | if depmode=$depmode \ | |
3218 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3219 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3220 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3221 | >/dev/null 2>conftest.err && | |
3222 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3223 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3224 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3225 | # icc doesn't choke on unknown options, it will just issue warnings | |
4b363073 NC |
3226 | # or remarks (even with -Werror). So we grep stderr for any message |
3227 | # that says an option was ignored or not supported. | |
3228 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3229 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3230 | # The diagnosis changed in icc 8.0: | |
3231 | # icc: Command line remark: option '-MP' not supported | |
3232 | if (grep 'ignoring option' conftest.err || | |
3233 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
13b2be9c DJ |
3234 | am_cv_CC_dependencies_compiler_type=$depmode |
3235 | break | |
3236 | fi | |
3237 | fi | |
3238 | done | |
252b5132 | 3239 | |
13b2be9c DJ |
3240 | cd .. |
3241 | rm -rf conftest.dir | |
252b5132 | 3242 | else |
13b2be9c | 3243 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3244 | fi |
3245 | ||
252b5132 | 3246 | fi |
13b2be9c DJ |
3247 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3248 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3249 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3250 | |
13b2be9c DJ |
3251 | |
3252 | ||
3253 | if | |
3254 | test "x$enable_dependency_tracking" != xno \ | |
3255 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3256 | am__fastdepCC_TRUE= | |
3257 | am__fastdepCC_FALSE='#' | |
252b5132 | 3258 | else |
13b2be9c DJ |
3259 | am__fastdepCC_TRUE='#' |
3260 | am__fastdepCC_FALSE= | |
252b5132 RH |
3261 | fi |
3262 | ||
d6d788bd L |
3263 | |
3264 | ||
13b2be9c | 3265 | |
ce2cded5 L |
3266 | ac_ext=c |
3267 | ac_cpp='$CPP $CPPFLAGS' | |
3268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3271 | if test -n "$ac_tool_prefix"; then | |
3272 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3273 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3276 | if test "${ac_cv_prog_CC+set}" = set; then | |
3277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3278 | else |
ce2cded5 L |
3279 | if test -n "$CC"; then |
3280 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3281 | else |
ce2cded5 L |
3282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3283 | for as_dir in $PATH | |
3284 | do | |
3285 | IFS=$as_save_IFS | |
3286 | test -z "$as_dir" && as_dir=. | |
3287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3289 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3291 | break 2 | |
3292 | fi | |
3293 | done | |
3294 | done | |
d7040cdb | 3295 | |
ce2cded5 L |
3296 | fi |
3297 | fi | |
3298 | CC=$ac_cv_prog_CC | |
3299 | if test -n "$CC"; then | |
3300 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3301 | echo "${ECHO_T}$CC" >&6 | |
bedf545c | 3302 | else |
ce2cded5 L |
3303 | echo "$as_me:$LINENO: result: no" >&5 |
3304 | echo "${ECHO_T}no" >&6 | |
3305 | fi | |
d7040cdb | 3306 | |
ce2cded5 L |
3307 | fi |
3308 | if test -z "$ac_cv_prog_CC"; then | |
3309 | ac_ct_CC=$CC | |
3310 | # Extract the first word of "gcc", so it can be a program name with args. | |
3311 | set dummy gcc; ac_word=$2 | |
3312 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3314 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
d7040cdb SE |
3315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3316 | else | |
ce2cded5 L |
3317 | if test -n "$ac_ct_CC"; then |
3318 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3319 | else | |
d7040cdb SE |
3320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3321 | for as_dir in $PATH | |
3322 | do | |
3323 | IFS=$as_save_IFS | |
3324 | test -z "$as_dir" && as_dir=. | |
ce2cded5 L |
3325 | for ac_exec_ext in '' $ac_executable_extensions; do |
3326 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3327 | ac_cv_prog_ac_ct_CC="gcc" | |
3328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3329 | break 2 | |
d7040cdb | 3330 | fi |
ce2cded5 | 3331 | done |
d7040cdb SE |
3332 | done |
3333 | ||
ce2cded5 L |
3334 | fi |
3335 | fi | |
3336 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3337 | if test -n "$ac_ct_CC"; then | |
3338 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3339 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3340 | else | |
3341 | echo "$as_me:$LINENO: result: no" >&5 | |
3342 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
3343 | fi |
3344 | ||
ce2cded5 L |
3345 | CC=$ac_ct_CC |
3346 | else | |
3347 | CC="$ac_cv_prog_CC" | |
3348 | fi | |
d7040cdb | 3349 | |
ce2cded5 L |
3350 | if test -z "$CC"; then |
3351 | if test -n "$ac_tool_prefix"; then | |
3352 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3353 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3356 | if test "${ac_cv_prog_CC+set}" = set; then | |
d7040cdb SE |
3357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3358 | else | |
ce2cded5 L |
3359 | if test -n "$CC"; then |
3360 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3361 | else |
ce2cded5 L |
3362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3363 | for as_dir in $PATH | |
3364 | do | |
3365 | IFS=$as_save_IFS | |
3366 | test -z "$as_dir" && as_dir=. | |
3367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3369 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3371 | break 2 | |
3372 | fi | |
3373 | done | |
3374 | done | |
d7040cdb | 3375 | |
252b5132 RH |
3376 | fi |
3377 | fi | |
ce2cded5 L |
3378 | CC=$ac_cv_prog_CC |
3379 | if test -n "$CC"; then | |
3380 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3381 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3382 | else |
13b2be9c DJ |
3383 | echo "$as_me:$LINENO: result: no" >&5 |
3384 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3385 | fi |
d7040cdb | 3386 | |
252b5132 | 3387 | fi |
ce2cded5 L |
3388 | if test -z "$ac_cv_prog_CC"; then |
3389 | ac_ct_CC=$CC | |
3390 | # Extract the first word of "cc", so it can be a program name with args. | |
3391 | set dummy cc; ac_word=$2 | |
d7040cdb SE |
3392 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3394 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
13b2be9c | 3395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3396 | else |
ce2cded5 L |
3397 | if test -n "$ac_ct_CC"; then |
3398 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3399 | else |
3400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3401 | for as_dir in $PATH | |
3402 | do | |
3403 | IFS=$as_save_IFS | |
3404 | test -z "$as_dir" && as_dir=. | |
3405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3406 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ce2cded5 | 3407 | ac_cv_prog_ac_ct_CC="cc" |
d7040cdb SE |
3408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3409 | break 2 | |
3410 | fi | |
3411 | done | |
3412 | done | |
ac48eca1 | 3413 | |
d7040cdb SE |
3414 | fi |
3415 | fi | |
ce2cded5 L |
3416 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3417 | if test -n "$ac_ct_CC"; then | |
3418 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3419 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3420 | else | |
3421 | echo "$as_me:$LINENO: result: no" >&5 | |
d7040cdb SE |
3422 | echo "${ECHO_T}no" >&6 |
3423 | fi | |
f9c19112 | 3424 | |
ce2cded5 L |
3425 | CC=$ac_ct_CC |
3426 | else | |
3427 | CC="$ac_cv_prog_CC" | |
3428 | fi | |
3429 | ||
3430 | fi | |
3431 | if test -z "$CC"; then | |
3432 | # Extract the first word of "cc", so it can be a program name with args. | |
3433 | set dummy cc; ac_word=$2 | |
3434 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3436 | if test "${ac_cv_prog_CC+set}" = set; then | |
3437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3438 | else | |
3439 | if test -n "$CC"; then | |
3440 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3441 | else | |
3442 | ac_prog_rejected=no | |
3443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3444 | for as_dir in $PATH | |
3445 | do | |
3446 | IFS=$as_save_IFS | |
3447 | test -z "$as_dir" && as_dir=. | |
3448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3449 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3450 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3451 | ac_prog_rejected=yes | |
3452 | continue | |
3453 | fi | |
3454 | ac_cv_prog_CC="cc" | |
3455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3456 | break 2 | |
3457 | fi | |
3458 | done | |
3459 | done | |
3460 | ||
3461 | if test $ac_prog_rejected = yes; then | |
3462 | # We found a bogon in the path, so make sure we never use it. | |
3463 | set dummy $ac_cv_prog_CC | |
3464 | shift | |
3465 | if test $# != 0; then | |
3466 | # We chose a different compiler from the bogus one. | |
3467 | # However, it has the same basename, so the bogon will be chosen | |
3468 | # first if we set CC to just the basename; use the full file name. | |
3469 | shift | |
3470 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3471 | fi | |
3472 | fi | |
3473 | fi | |
3474 | fi | |
3475 | CC=$ac_cv_prog_CC | |
3476 | if test -n "$CC"; then | |
3477 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3478 | echo "${ECHO_T}$CC" >&6 | |
3479 | else | |
3480 | echo "$as_me:$LINENO: result: no" >&5 | |
3481 | echo "${ECHO_T}no" >&6 | |
3482 | fi | |
3483 | ||
3484 | fi | |
3485 | if test -z "$CC"; then | |
3486 | if test -n "$ac_tool_prefix"; then | |
3487 | for ac_prog in cl | |
3488 | do | |
3489 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3490 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3493 | if test "${ac_cv_prog_CC+set}" = set; then | |
3494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3495 | else | |
3496 | if test -n "$CC"; then | |
3497 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3498 | else | |
3499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3500 | for as_dir in $PATH | |
3501 | do | |
3502 | IFS=$as_save_IFS | |
3503 | test -z "$as_dir" && as_dir=. | |
3504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3506 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3508 | break 2 | |
3509 | fi | |
3510 | done | |
3511 | done | |
3512 | ||
3513 | fi | |
3514 | fi | |
3515 | CC=$ac_cv_prog_CC | |
3516 | if test -n "$CC"; then | |
3517 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3518 | echo "${ECHO_T}$CC" >&6 | |
3519 | else | |
3520 | echo "$as_me:$LINENO: result: no" >&5 | |
3521 | echo "${ECHO_T}no" >&6 | |
3522 | fi | |
3523 | ||
3524 | test -n "$CC" && break | |
d7040cdb SE |
3525 | done |
3526 | fi | |
ce2cded5 L |
3527 | if test -z "$CC"; then |
3528 | ac_ct_CC=$CC | |
3529 | for ac_prog in cl | |
d7040cdb SE |
3530 | do |
3531 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3532 | set dummy $ac_prog; ac_word=$2 | |
3533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3535 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
d7040cdb SE |
3536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3537 | else | |
ce2cded5 L |
3538 | if test -n "$ac_ct_CC"; then |
3539 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3540 | else |
3541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3542 | for as_dir in $PATH | |
3543 | do | |
3544 | IFS=$as_save_IFS | |
3545 | test -z "$as_dir" && as_dir=. | |
3546 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ce2cded5 | 3548 | ac_cv_prog_ac_ct_CC="$ac_prog" |
d7040cdb SE |
3549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3550 | break 2 | |
ac48eca1 | 3551 | fi |
d7040cdb SE |
3552 | done |
3553 | done | |
ac48eca1 | 3554 | |
d7040cdb SE |
3555 | fi |
3556 | fi | |
ce2cded5 L |
3557 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3558 | if test -n "$ac_ct_CC"; then | |
3559 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3560 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
d7040cdb SE |
3561 | else |
3562 | echo "$as_me:$LINENO: result: no" >&5 | |
3563 | echo "${ECHO_T}no" >&6 | |
3564 | fi | |
ac48eca1 | 3565 | |
ce2cded5 | 3566 | test -n "$ac_ct_CC" && break |
d7040cdb | 3567 | done |
ac48eca1 | 3568 | |
ce2cded5 | 3569 | CC=$ac_ct_CC |
d7040cdb | 3570 | fi |
ac48eca1 | 3571 | |
d7040cdb | 3572 | fi |
ac48eca1 | 3573 | |
ac48eca1 | 3574 | |
7a283e07 RW |
3575 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3576 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3577 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ce2cded5 L |
3578 | See \`config.log' for more details." >&5 |
3579 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3580 | See \`config.log' for more details." >&2;} | |
7a283e07 | 3581 | { (exit 1); exit 1; }; }; } |
6be7c12c | 3582 | |
ce2cded5 L |
3583 | # Provide some information about the compiler. |
3584 | echo "$as_me:$LINENO:" \ | |
3585 | "checking for C compiler version" >&5 | |
3586 | ac_compiler=`set X $ac_compile; echo $2` | |
3587 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3588 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3589 | ac_status=$? | |
3590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3591 | (exit $ac_status); } | |
3592 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3593 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3594 | ac_status=$? | |
3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3596 | (exit $ac_status); } | |
3597 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3598 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3599 | ac_status=$? | |
3600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3601 | (exit $ac_status); } | |
ac48eca1 | 3602 | |
ce2cded5 L |
3603 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3604 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3605 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
d7040cdb SE |
3606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3607 | else | |
ce2cded5 L |
3608 | cat >conftest.$ac_ext <<_ACEOF |
3609 | /* confdefs.h. */ | |
3610 | _ACEOF | |
3611 | cat confdefs.h >>conftest.$ac_ext | |
3612 | cat >>conftest.$ac_ext <<_ACEOF | |
3613 | /* end confdefs.h. */ | |
c8615825 | 3614 | |
ce2cded5 L |
3615 | int |
3616 | main () | |
3617 | { | |
3618 | #ifndef __GNUC__ | |
3619 | choke me | |
3620 | #endif | |
3621 | ||
3622 | ; | |
3623 | return 0; | |
3624 | } | |
3625 | _ACEOF | |
3626 | rm -f conftest.$ac_objext | |
3627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3628 | (eval $ac_compile) 2>conftest.er1 | |
3629 | ac_status=$? | |
3630 | grep -v '^ *+' conftest.er1 >conftest.err | |
3631 | rm -f conftest.er1 | |
3632 | cat conftest.err >&5 | |
3633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3634 | (exit $ac_status); } && | |
3635 | { ac_try='test -z "$ac_c_werror_flag" | |
3636 | || test ! -s conftest.err' | |
3637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3638 | (eval $ac_try) 2>&5 | |
3639 | ac_status=$? | |
3640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3641 | (exit $ac_status); }; } && | |
3642 | { ac_try='test -s conftest.$ac_objext' | |
3643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3644 | (eval $ac_try) 2>&5 | |
3645 | ac_status=$? | |
3646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3647 | (exit $ac_status); }; }; then | |
3648 | ac_compiler_gnu=yes | |
d7040cdb | 3649 | else |
ce2cded5 L |
3650 | echo "$as_me: failed program was:" >&5 |
3651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3652 | ||
3653 | ac_compiler_gnu=no | |
d7040cdb | 3654 | fi |
ce2cded5 L |
3655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3656 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
ac48eca1 | 3657 | |
ce2cded5 L |
3658 | fi |
3659 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3660 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3661 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3662 | ac_test_CFLAGS=${CFLAGS+set} | |
3663 | ac_save_CFLAGS=$CFLAGS | |
3664 | CFLAGS="-g" | |
3665 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3666 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3667 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
d70c5fc7 NC |
3668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3669 | else | |
ce2cded5 L |
3670 | cat >conftest.$ac_ext <<_ACEOF |
3671 | /* confdefs.h. */ | |
3672 | _ACEOF | |
3673 | cat confdefs.h >>conftest.$ac_ext | |
3674 | cat >>conftest.$ac_ext <<_ACEOF | |
3675 | /* end confdefs.h. */ | |
d7040cdb | 3676 | |
ce2cded5 L |
3677 | int |
3678 | main () | |
3679 | { | |
d7040cdb | 3680 | |
ce2cded5 L |
3681 | ; |
3682 | return 0; | |
3683 | } | |
3684 | _ACEOF | |
3685 | rm -f conftest.$ac_objext | |
3686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3687 | (eval $ac_compile) 2>conftest.er1 | |
3688 | ac_status=$? | |
3689 | grep -v '^ *+' conftest.er1 >conftest.err | |
3690 | rm -f conftest.er1 | |
3691 | cat conftest.err >&5 | |
3692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3693 | (exit $ac_status); } && | |
3694 | { ac_try='test -z "$ac_c_werror_flag" | |
3695 | || test ! -s conftest.err' | |
3696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3697 | (eval $ac_try) 2>&5 | |
3698 | ac_status=$? | |
3699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3700 | (exit $ac_status); }; } && | |
3701 | { ac_try='test -s conftest.$ac_objext' | |
3702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3703 | (eval $ac_try) 2>&5 | |
3704 | ac_status=$? | |
3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3706 | (exit $ac_status); }; }; then | |
3707 | ac_cv_prog_cc_g=yes | |
3708 | else | |
3709 | echo "$as_me: failed program was:" >&5 | |
3710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d70c5fc7 | 3711 | |
ce2cded5 | 3712 | ac_cv_prog_cc_g=no |
d70c5fc7 | 3713 | fi |
ce2cded5 | 3714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d70c5fc7 | 3715 | fi |
ce2cded5 L |
3716 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3717 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3718 | if test "$ac_test_CFLAGS" = set; then | |
3719 | CFLAGS=$ac_save_CFLAGS | |
3720 | elif test $ac_cv_prog_cc_g = yes; then | |
3721 | if test "$GCC" = yes; then | |
3722 | CFLAGS="-g -O2" | |
3723 | else | |
3724 | CFLAGS="-g" | |
3725 | fi | |
ac48eca1 | 3726 | else |
ce2cded5 L |
3727 | if test "$GCC" = yes; then |
3728 | CFLAGS="-O2" | |
3729 | else | |
3730 | CFLAGS= | |
3731 | fi | |
ac48eca1 | 3732 | fi |
ce2cded5 L |
3733 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3734 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3735 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
13b2be9c | 3736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3737 | else |
ce2cded5 L |
3738 | ac_cv_prog_cc_stdc=no |
3739 | ac_save_CC=$CC | |
3740 | cat >conftest.$ac_ext <<_ACEOF | |
3741 | /* confdefs.h. */ | |
3742 | _ACEOF | |
3743 | cat confdefs.h >>conftest.$ac_ext | |
3744 | cat >>conftest.$ac_ext <<_ACEOF | |
3745 | /* end confdefs.h. */ | |
3746 | #include <stdarg.h> | |
3747 | #include <stdio.h> | |
3748 | #include <sys/types.h> | |
3749 | #include <sys/stat.h> | |
3750 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3751 | struct buf { int x; }; | |
3752 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3753 | static char *e (p, i) | |
3754 | char **p; | |
3755 | int i; | |
3756 | { | |
3757 | return p[i]; | |
3758 | } | |
3759 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3760 | { | |
3761 | char *s; | |
3762 | va_list v; | |
3763 | va_start (v,p); | |
3764 | s = g (p, va_arg (v,int)); | |
3765 | va_end (v); | |
3766 | return s; | |
3767 | } | |
3768 | ||
3769 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3770 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3771 | These don't provoke an error unfortunately, instead are silently treated | |
3772 | as 'x'. The following induces an error, until -std1 is added to get | |
3773 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3774 | array size at least. It's necessary to write '\x00'==0 to get something | |
3775 | that's true only with -std1. */ | |
3776 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3777 | ||
3778 | int test (int i, double x); | |
3779 | struct s1 {int (*f) (int a);}; | |
3780 | struct s2 {int (*f) (double a);}; | |
3781 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3782 | int argc; | |
3783 | char **argv; | |
3784 | int | |
3785 | main () | |
3786 | { | |
3787 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3788 | ; | |
3789 | return 0; | |
3790 | } | |
3791 | _ACEOF | |
3792 | # Don't try gcc -ansi; that turns off useful extensions and | |
3793 | # breaks some systems' header files. | |
3794 | # AIX -qlanglvl=ansi | |
3795 | # Ultrix and OSF/1 -std1 | |
3796 | # HP-UX 10.20 and later -Ae | |
3797 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3798 | # SVR4 -Xc -D__EXTENSIONS__ | |
3799 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3800 | do | |
3801 | CC="$ac_save_CC $ac_arg" | |
3802 | rm -f conftest.$ac_objext | |
3803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3804 | (eval $ac_compile) 2>conftest.er1 | |
3805 | ac_status=$? | |
3806 | grep -v '^ *+' conftest.er1 >conftest.err | |
3807 | rm -f conftest.er1 | |
3808 | cat conftest.err >&5 | |
3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3810 | (exit $ac_status); } && | |
3811 | { ac_try='test -z "$ac_c_werror_flag" | |
3812 | || test ! -s conftest.err' | |
3813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3814 | (eval $ac_try) 2>&5 | |
3815 | ac_status=$? | |
3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3817 | (exit $ac_status); }; } && | |
3818 | { ac_try='test -s conftest.$ac_objext' | |
3819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3820 | (eval $ac_try) 2>&5 | |
3821 | ac_status=$? | |
3822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3823 | (exit $ac_status); }; }; then | |
3824 | ac_cv_prog_cc_stdc=$ac_arg | |
3825 | break | |
3826 | else | |
3827 | echo "$as_me: failed program was:" >&5 | |
3828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3829 | ||
3830 | fi | |
3831 | rm -f conftest.err conftest.$ac_objext | |
3832 | done | |
3833 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3834 | CC=$ac_save_CC | |
3835 | ||
3836 | fi | |
3837 | ||
3838 | case "x$ac_cv_prog_cc_stdc" in | |
3839 | x|xno) | |
3840 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3841 | echo "${ECHO_T}none needed" >&6 ;; | |
3842 | *) | |
3843 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3844 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3845 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
d7040cdb SE |
3846 | esac |
3847 | ||
ce2cded5 L |
3848 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3849 | # in C++ we need to declare it. In case someone uses the same compiler | |
3850 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3851 | # the declaration of exit, since it's the most demanding environment. | |
3852 | cat >conftest.$ac_ext <<_ACEOF | |
3853 | #ifndef __cplusplus | |
3854 | choke me | |
3855 | #endif | |
3856 | _ACEOF | |
3857 | rm -f conftest.$ac_objext | |
3858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3859 | (eval $ac_compile) 2>conftest.er1 | |
3860 | ac_status=$? | |
3861 | grep -v '^ *+' conftest.er1 >conftest.err | |
3862 | rm -f conftest.er1 | |
3863 | cat conftest.err >&5 | |
3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3865 | (exit $ac_status); } && | |
3866 | { ac_try='test -z "$ac_c_werror_flag" | |
3867 | || test ! -s conftest.err' | |
3868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3869 | (eval $ac_try) 2>&5 | |
3870 | ac_status=$? | |
3871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3872 | (exit $ac_status); }; } && | |
3873 | { ac_try='test -s conftest.$ac_objext' | |
3874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3875 | (eval $ac_try) 2>&5 | |
3876 | ac_status=$? | |
3877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3878 | (exit $ac_status); }; }; then | |
3879 | for ac_declaration in \ | |
3880 | '' \ | |
3881 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3882 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3883 | 'extern "C" void exit (int) throw ();' \ | |
3884 | 'extern "C" void exit (int);' \ | |
3885 | 'void exit (int);' | |
3886 | do | |
3887 | cat >conftest.$ac_ext <<_ACEOF | |
3888 | /* confdefs.h. */ | |
3889 | _ACEOF | |
3890 | cat confdefs.h >>conftest.$ac_ext | |
3891 | cat >>conftest.$ac_ext <<_ACEOF | |
3892 | /* end confdefs.h. */ | |
3893 | $ac_declaration | |
3894 | #include <stdlib.h> | |
3895 | int | |
3896 | main () | |
3897 | { | |
3898 | exit (42); | |
3899 | ; | |
3900 | return 0; | |
3901 | } | |
3902 | _ACEOF | |
3903 | rm -f conftest.$ac_objext | |
3904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3905 | (eval $ac_compile) 2>conftest.er1 | |
3906 | ac_status=$? | |
3907 | grep -v '^ *+' conftest.er1 >conftest.err | |
3908 | rm -f conftest.er1 | |
3909 | cat conftest.err >&5 | |
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3911 | (exit $ac_status); } && | |
3912 | { ac_try='test -z "$ac_c_werror_flag" | |
3913 | || test ! -s conftest.err' | |
3914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3915 | (eval $ac_try) 2>&5 | |
3916 | ac_status=$? | |
3917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3918 | (exit $ac_status); }; } && | |
3919 | { ac_try='test -s conftest.$ac_objext' | |
3920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3921 | (eval $ac_try) 2>&5 | |
3922 | ac_status=$? | |
3923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3924 | (exit $ac_status); }; }; then | |
3925 | : | |
3926 | else | |
3927 | echo "$as_me: failed program was:" >&5 | |
3928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3929 | |
ce2cded5 L |
3930 | continue |
3931 | fi | |
3932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3933 | cat >conftest.$ac_ext <<_ACEOF | |
3934 | /* confdefs.h. */ | |
3935 | _ACEOF | |
3936 | cat confdefs.h >>conftest.$ac_ext | |
3937 | cat >>conftest.$ac_ext <<_ACEOF | |
3938 | /* end confdefs.h. */ | |
3939 | $ac_declaration | |
3940 | int | |
3941 | main () | |
3942 | { | |
3943 | exit (42); | |
3944 | ; | |
3945 | return 0; | |
3946 | } | |
3947 | _ACEOF | |
3948 | rm -f conftest.$ac_objext | |
3949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3950 | (eval $ac_compile) 2>conftest.er1 | |
3951 | ac_status=$? | |
3952 | grep -v '^ *+' conftest.er1 >conftest.err | |
3953 | rm -f conftest.er1 | |
3954 | cat conftest.err >&5 | |
3955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3956 | (exit $ac_status); } && | |
3957 | { ac_try='test -z "$ac_c_werror_flag" | |
3958 | || test ! -s conftest.err' | |
3959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3960 | (eval $ac_try) 2>&5 | |
3961 | ac_status=$? | |
3962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3963 | (exit $ac_status); }; } && | |
3964 | { ac_try='test -s conftest.$ac_objext' | |
3965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3966 | (eval $ac_try) 2>&5 | |
3967 | ac_status=$? | |
3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3969 | (exit $ac_status); }; }; then | |
3970 | break | |
3971 | else | |
3972 | echo "$as_me: failed program was:" >&5 | |
3973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3974 | |
ce2cded5 L |
3975 | fi |
3976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3977 | done | |
3978 | rm -f conftest* | |
3979 | if test -n "$ac_declaration"; then | |
3980 | echo '#ifdef __cplusplus' >>confdefs.h | |
3981 | echo $ac_declaration >>confdefs.h | |
3982 | echo '#endif' >>confdefs.h | |
3983 | fi | |
d7040cdb | 3984 | |
ce2cded5 L |
3985 | else |
3986 | echo "$as_me: failed program was:" >&5 | |
3987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3988 | |
ce2cded5 L |
3989 | fi |
3990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3991 | ac_ext=c | |
3992 | ac_cpp='$CPP $CPPFLAGS' | |
3993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
3996 | |
3997 | ||
ce2cded5 L |
3998 | cat >>confdefs.h <<\_ACEOF |
3999 | #define _GNU_SOURCE 1 | |
4000 | _ACEOF | |
d7040cdb SE |
4001 | |
4002 | ||
7357c5b6 AM |
4003 | ac_ext=c |
4004 | ac_cpp='$CPP $CPPFLAGS' | |
4005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4008 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4009 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4010 | # On Suns, sometimes $CPP names a directory. | |
4011 | if test -n "$CPP" && test -d "$CPP"; then | |
4012 | CPP= | |
4013 | fi | |
4014 | if test -z "$CPP"; then | |
4015 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4017 | else | |
4018 | # Double quotes because CPP needs to be expanded | |
4019 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4020 | do | |
4021 | ac_preproc_ok=false | |
4022 | for ac_c_preproc_warn_flag in '' yes | |
4023 | do | |
4024 | # Use a header file that comes with gcc, so configuring glibc | |
4025 | # with a fresh cross-compiler works. | |
4026 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4027 | # <limits.h> exists even on freestanding compilers. | |
4028 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4029 | # not just through cpp. "Syntax error" is here to catch this case. | |
4030 | cat >conftest.$ac_ext <<_ACEOF | |
4031 | /* confdefs.h. */ | |
4032 | _ACEOF | |
4033 | cat confdefs.h >>conftest.$ac_ext | |
4034 | cat >>conftest.$ac_ext <<_ACEOF | |
4035 | /* end confdefs.h. */ | |
4036 | #ifdef __STDC__ | |
4037 | # include <limits.h> | |
4038 | #else | |
4039 | # include <assert.h> | |
4040 | #endif | |
4041 | Syntax error | |
4042 | _ACEOF | |
4043 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4044 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4045 | ac_status=$? | |
4046 | grep -v '^ *+' conftest.er1 >conftest.err | |
4047 | rm -f conftest.er1 | |
4048 | cat conftest.err >&5 | |
4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4050 | (exit $ac_status); } >/dev/null; then | |
4051 | if test -s conftest.err; then | |
4052 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4053 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4054 | else | |
4055 | ac_cpp_err= | |
4056 | fi | |
4057 | else | |
4058 | ac_cpp_err=yes | |
4059 | fi | |
4060 | if test -z "$ac_cpp_err"; then | |
4061 | : | |
4062 | else | |
4063 | echo "$as_me: failed program was:" >&5 | |
4064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4065 | |
7357c5b6 AM |
4066 | # Broken: fails on valid input. |
4067 | continue | |
4068 | fi | |
4069 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4070 | |
7357c5b6 AM |
4071 | # OK, works on sane cases. Now check whether non-existent headers |
4072 | # can be detected and how. | |
4073 | cat >conftest.$ac_ext <<_ACEOF | |
4074 | /* confdefs.h. */ | |
4075 | _ACEOF | |
4076 | cat confdefs.h >>conftest.$ac_ext | |
4077 | cat >>conftest.$ac_ext <<_ACEOF | |
4078 | /* end confdefs.h. */ | |
4079 | #include <ac_nonexistent.h> | |
4080 | _ACEOF | |
4081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4083 | ac_status=$? | |
4084 | grep -v '^ *+' conftest.er1 >conftest.err | |
4085 | rm -f conftest.er1 | |
4086 | cat conftest.err >&5 | |
4087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4088 | (exit $ac_status); } >/dev/null; then | |
4089 | if test -s conftest.err; then | |
4090 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4091 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4092 | else | |
4093 | ac_cpp_err= | |
4094 | fi | |
4095 | else | |
4096 | ac_cpp_err=yes | |
4097 | fi | |
4098 | if test -z "$ac_cpp_err"; then | |
4099 | # Broken: success on invalid input. | |
4100 | continue | |
4101 | else | |
4102 | echo "$as_me: failed program was:" >&5 | |
4103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4104 | |
7357c5b6 AM |
4105 | # Passes both tests. |
4106 | ac_preproc_ok=: | |
4107 | break | |
4108 | fi | |
4109 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4110 | |
7357c5b6 AM |
4111 | done |
4112 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4113 | rm -f conftest.err conftest.$ac_ext | |
4114 | if $ac_preproc_ok; then | |
4115 | break | |
4116 | fi | |
d7040cdb | 4117 | |
7357c5b6 AM |
4118 | done |
4119 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4120 | |
7357c5b6 AM |
4121 | fi |
4122 | CPP=$ac_cv_prog_CPP | |
4123 | else | |
4124 | ac_cv_prog_CPP=$CPP | |
4125 | fi | |
4126 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4127 | echo "${ECHO_T}$CPP" >&6 | |
4128 | ac_preproc_ok=false | |
4129 | for ac_c_preproc_warn_flag in '' yes | |
4130 | do | |
4131 | # Use a header file that comes with gcc, so configuring glibc | |
4132 | # with a fresh cross-compiler works. | |
4133 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4134 | # <limits.h> exists even on freestanding compilers. | |
4135 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4136 | # not just through cpp. "Syntax error" is here to catch this case. | |
4137 | cat >conftest.$ac_ext <<_ACEOF | |
4138 | /* confdefs.h. */ | |
4139 | _ACEOF | |
4140 | cat confdefs.h >>conftest.$ac_ext | |
4141 | cat >>conftest.$ac_ext <<_ACEOF | |
4142 | /* end confdefs.h. */ | |
4143 | #ifdef __STDC__ | |
4144 | # include <limits.h> | |
4145 | #else | |
4146 | # include <assert.h> | |
4147 | #endif | |
4148 | Syntax error | |
4149 | _ACEOF | |
4150 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4151 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4152 | ac_status=$? | |
4153 | grep -v '^ *+' conftest.er1 >conftest.err | |
4154 | rm -f conftest.er1 | |
4155 | cat conftest.err >&5 | |
4156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4157 | (exit $ac_status); } >/dev/null; then | |
4158 | if test -s conftest.err; then | |
4159 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4160 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4161 | else | |
4162 | ac_cpp_err= | |
4163 | fi | |
4164 | else | |
4165 | ac_cpp_err=yes | |
4166 | fi | |
4167 | if test -z "$ac_cpp_err"; then | |
4168 | : | |
4169 | else | |
4170 | echo "$as_me: failed program was:" >&5 | |
4171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4172 | |
7357c5b6 AM |
4173 | # Broken: fails on valid input. |
4174 | continue | |
4175 | fi | |
4176 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4177 | |
7357c5b6 AM |
4178 | # OK, works on sane cases. Now check whether non-existent headers |
4179 | # can be detected and how. | |
4180 | cat >conftest.$ac_ext <<_ACEOF | |
4181 | /* confdefs.h. */ | |
4182 | _ACEOF | |
4183 | cat confdefs.h >>conftest.$ac_ext | |
4184 | cat >>conftest.$ac_ext <<_ACEOF | |
4185 | /* end confdefs.h. */ | |
4186 | #include <ac_nonexistent.h> | |
4187 | _ACEOF | |
4188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4190 | ac_status=$? | |
4191 | grep -v '^ *+' conftest.er1 >conftest.err | |
4192 | rm -f conftest.er1 | |
4193 | cat conftest.err >&5 | |
4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4195 | (exit $ac_status); } >/dev/null; then | |
4196 | if test -s conftest.err; then | |
4197 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4198 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4199 | else | |
4200 | ac_cpp_err= | |
4201 | fi | |
4202 | else | |
4203 | ac_cpp_err=yes | |
4204 | fi | |
4205 | if test -z "$ac_cpp_err"; then | |
4206 | # Broken: success on invalid input. | |
4207 | continue | |
4208 | else | |
4209 | echo "$as_me: failed program was:" >&5 | |
4210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4211 | |
7357c5b6 AM |
4212 | # Passes both tests. |
4213 | ac_preproc_ok=: | |
4214 | break | |
4215 | fi | |
4216 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4217 | |
7357c5b6 AM |
4218 | done |
4219 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4220 | rm -f conftest.err conftest.$ac_ext | |
4221 | if $ac_preproc_ok; then | |
4222 | : | |
4223 | else | |
4224 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
4225 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4226 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4227 | See \`config.log' for more details." >&5 | |
4228 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4229 | See \`config.log' for more details." >&2;} | |
4230 | { (exit 1); exit 1; }; }; } | |
4231 | fi | |
ac48eca1 | 4232 | |
7357c5b6 AM |
4233 | ac_ext=c |
4234 | ac_cpp='$CPP $CPPFLAGS' | |
4235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4238 | |
ac48eca1 | 4239 | |
7357c5b6 AM |
4240 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4241 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4242 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4244 | else | |
4245 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4246 | then ac_cv_prog_egrep='grep -E' | |
4247 | else ac_cv_prog_egrep='egrep' | |
4248 | fi | |
4249 | fi | |
4250 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4251 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4252 | EGREP=$ac_cv_prog_egrep | |
ac48eca1 | 4253 | |
d7040cdb | 4254 | |
7357c5b6 AM |
4255 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4256 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4257 | if test "${ac_cv_header_stdc+set}" = set; then | |
4258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4259 | else | |
4260 | cat >conftest.$ac_ext <<_ACEOF | |
4261 | /* confdefs.h. */ | |
4262 | _ACEOF | |
4263 | cat confdefs.h >>conftest.$ac_ext | |
4264 | cat >>conftest.$ac_ext <<_ACEOF | |
4265 | /* end confdefs.h. */ | |
4266 | #include <stdlib.h> | |
4267 | #include <stdarg.h> | |
4268 | #include <string.h> | |
4269 | #include <float.h> | |
d7040cdb | 4270 | |
7357c5b6 AM |
4271 | int |
4272 | main () | |
4273 | { | |
d7040cdb | 4274 | |
7357c5b6 AM |
4275 | ; |
4276 | return 0; | |
4277 | } | |
4278 | _ACEOF | |
4279 | rm -f conftest.$ac_objext | |
4280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4281 | (eval $ac_compile) 2>conftest.er1 | |
4282 | ac_status=$? | |
4283 | grep -v '^ *+' conftest.er1 >conftest.err | |
4284 | rm -f conftest.er1 | |
4285 | cat conftest.err >&5 | |
4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4287 | (exit $ac_status); } && | |
4288 | { ac_try='test -z "$ac_c_werror_flag" | |
4289 | || test ! -s conftest.err' | |
4290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4291 | (eval $ac_try) 2>&5 | |
4292 | ac_status=$? | |
4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4294 | (exit $ac_status); }; } && | |
4295 | { ac_try='test -s conftest.$ac_objext' | |
4296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4297 | (eval $ac_try) 2>&5 | |
4298 | ac_status=$? | |
4299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4300 | (exit $ac_status); }; }; then | |
4301 | ac_cv_header_stdc=yes | |
4302 | else | |
4303 | echo "$as_me: failed program was:" >&5 | |
4304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4305 | |
7357c5b6 AM |
4306 | ac_cv_header_stdc=no |
4307 | fi | |
4308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 4309 | |
7357c5b6 AM |
4310 | if test $ac_cv_header_stdc = yes; then |
4311 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4312 | cat >conftest.$ac_ext <<_ACEOF | |
4313 | /* confdefs.h. */ | |
4314 | _ACEOF | |
4315 | cat confdefs.h >>conftest.$ac_ext | |
4316 | cat >>conftest.$ac_ext <<_ACEOF | |
4317 | /* end confdefs.h. */ | |
4318 | #include <string.h> | |
d7040cdb | 4319 | |
7357c5b6 AM |
4320 | _ACEOF |
4321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4322 | $EGREP "memchr" >/dev/null 2>&1; then | |
4323 | : | |
ce2cded5 | 4324 | else |
7357c5b6 AM |
4325 | ac_cv_header_stdc=no |
4326 | fi | |
4327 | rm -f conftest* | |
d7040cdb | 4328 | |
7357c5b6 | 4329 | fi |
d7040cdb | 4330 | |
7357c5b6 AM |
4331 | if test $ac_cv_header_stdc = yes; then |
4332 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4333 | cat >conftest.$ac_ext <<_ACEOF | |
4334 | /* confdefs.h. */ | |
4335 | _ACEOF | |
4336 | cat confdefs.h >>conftest.$ac_ext | |
4337 | cat >>conftest.$ac_ext <<_ACEOF | |
4338 | /* end confdefs.h. */ | |
4339 | #include <stdlib.h> | |
ac48eca1 | 4340 | |
7357c5b6 AM |
4341 | _ACEOF |
4342 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4343 | $EGREP "free" >/dev/null 2>&1; then | |
4344 | : | |
4345 | else | |
4346 | ac_cv_header_stdc=no | |
4347 | fi | |
4348 | rm -f conftest* | |
d7040cdb | 4349 | |
7357c5b6 | 4350 | fi |
d7040cdb | 4351 | |
7357c5b6 AM |
4352 | if test $ac_cv_header_stdc = yes; then |
4353 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4354 | if test "$cross_compiling" = yes; then | |
4355 | : | |
4356 | else | |
4357 | cat >conftest.$ac_ext <<_ACEOF | |
4358 | /* confdefs.h. */ | |
4359 | _ACEOF | |
4360 | cat confdefs.h >>conftest.$ac_ext | |
4361 | cat >>conftest.$ac_ext <<_ACEOF | |
4362 | /* end confdefs.h. */ | |
4363 | #include <ctype.h> | |
4364 | #if ((' ' & 0x0FF) == 0x020) | |
4365 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4366 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4367 | #else | |
4368 | # define ISLOWER(c) \ | |
4369 | (('a' <= (c) && (c) <= 'i') \ | |
4370 | || ('j' <= (c) && (c) <= 'r') \ | |
4371 | || ('s' <= (c) && (c) <= 'z')) | |
4372 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4373 | #endif | |
d7040cdb | 4374 | |
7357c5b6 AM |
4375 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4376 | int | |
4377 | main () | |
4378 | { | |
4379 | int i; | |
4380 | for (i = 0; i < 256; i++) | |
4381 | if (XOR (islower (i), ISLOWER (i)) | |
4382 | || toupper (i) != TOUPPER (i)) | |
4383 | exit(2); | |
4384 | exit (0); | |
4385 | } | |
4386 | _ACEOF | |
4387 | rm -f conftest$ac_exeext | |
4388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4389 | (eval $ac_link) 2>&5 | |
4390 | ac_status=$? | |
4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4392 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4394 | (eval $ac_try) 2>&5 | |
4395 | ac_status=$? | |
4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4397 | (exit $ac_status); }; }; then | |
4398 | : | |
4399 | else | |
4400 | echo "$as_me: program exited with status $ac_status" >&5 | |
4401 | echo "$as_me: failed program was:" >&5 | |
4402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4403 | |
7357c5b6 AM |
4404 | ( exit $ac_status ) |
4405 | ac_cv_header_stdc=no | |
4406 | fi | |
4407 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4408 | fi | |
4409 | fi | |
4410 | fi | |
4411 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4412 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4413 | if test $ac_cv_header_stdc = yes; then | |
d7040cdb | 4414 | |
7357c5b6 AM |
4415 | cat >>confdefs.h <<\_ACEOF |
4416 | #define STDC_HEADERS 1 | |
4417 | _ACEOF | |
d7040cdb | 4418 | |
7357c5b6 | 4419 | fi |
d7040cdb | 4420 | |
7357c5b6 | 4421 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d7040cdb SE |
4422 | |
4423 | ||
4424 | ||
4425 | ||
4426 | ||
ce2cded5 L |
4427 | |
4428 | ||
13b2be9c | 4429 | |
ce2cded5 | 4430 | |
7357c5b6 AM |
4431 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4432 | inttypes.h stdint.h unistd.h | |
4433 | do | |
4434 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4439 | else | |
4440 | cat >conftest.$ac_ext <<_ACEOF | |
4441 | /* confdefs.h. */ | |
4442 | _ACEOF | |
4443 | cat confdefs.h >>conftest.$ac_ext | |
4444 | cat >>conftest.$ac_ext <<_ACEOF | |
4445 | /* end confdefs.h. */ | |
4446 | $ac_includes_default | |
ce2cded5 | 4447 | |
7357c5b6 AM |
4448 | #include <$ac_header> |
4449 | _ACEOF | |
4450 | rm -f conftest.$ac_objext | |
4451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4452 | (eval $ac_compile) 2>conftest.er1 | |
4453 | ac_status=$? | |
4454 | grep -v '^ *+' conftest.er1 >conftest.err | |
4455 | rm -f conftest.er1 | |
4456 | cat conftest.err >&5 | |
4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4458 | (exit $ac_status); } && | |
4459 | { ac_try='test -z "$ac_c_werror_flag" | |
4460 | || test ! -s conftest.err' | |
4461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4462 | (eval $ac_try) 2>&5 | |
4463 | ac_status=$? | |
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4465 | (exit $ac_status); }; } && | |
4466 | { ac_try='test -s conftest.$ac_objext' | |
4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4468 | (eval $ac_try) 2>&5 | |
4469 | ac_status=$? | |
4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4471 | (exit $ac_status); }; }; then | |
4472 | eval "$as_ac_Header=yes" | |
4473 | else | |
4474 | echo "$as_me: failed program was:" >&5 | |
4475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ce2cded5 | 4476 | |
7357c5b6 AM |
4477 | eval "$as_ac_Header=no" |
4478 | fi | |
4479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4480 | fi | |
4481 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4482 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4483 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4484 | cat >>confdefs.h <<_ACEOF | |
4485 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4486 | _ACEOF | |
ce2cded5 | 4487 | |
7357c5b6 | 4488 | fi |
ce2cded5 | 4489 | |
7357c5b6 | 4490 | done |
ce2cded5 L |
4491 | |
4492 | ||
4493 | ||
7357c5b6 AM |
4494 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4495 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4496 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4497 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4499 | fi | |
4500 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4501 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
4502 | else | |
4503 | # Is the header compilable? | |
4504 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4505 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
4506 | cat >conftest.$ac_ext <<_ACEOF | |
4507 | /* confdefs.h. */ | |
4508 | _ACEOF | |
4509 | cat confdefs.h >>conftest.$ac_ext | |
4510 | cat >>conftest.$ac_ext <<_ACEOF | |
4511 | /* end confdefs.h. */ | |
4512 | $ac_includes_default | |
4513 | #include <minix/config.h> | |
4514 | _ACEOF | |
4515 | rm -f conftest.$ac_objext | |
4516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4517 | (eval $ac_compile) 2>conftest.er1 | |
4518 | ac_status=$? | |
4519 | grep -v '^ *+' conftest.er1 >conftest.err | |
4520 | rm -f conftest.er1 | |
4521 | cat conftest.err >&5 | |
4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4523 | (exit $ac_status); } && | |
4524 | { ac_try='test -z "$ac_c_werror_flag" | |
4525 | || test ! -s conftest.err' | |
4526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4527 | (eval $ac_try) 2>&5 | |
4528 | ac_status=$? | |
4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4530 | (exit $ac_status); }; } && | |
4531 | { ac_try='test -s conftest.$ac_objext' | |
4532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4533 | (eval $ac_try) 2>&5 | |
4534 | ac_status=$? | |
4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4536 | (exit $ac_status); }; }; then | |
4537 | ac_header_compiler=yes | |
4538 | else | |
4539 | echo "$as_me: failed program was:" >&5 | |
4540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ce2cded5 | 4541 | |
7357c5b6 AM |
4542 | ac_header_compiler=no |
4543 | fi | |
4544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4545 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4546 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
ce2cded5 | 4547 | |
7357c5b6 AM |
4548 | # Is the header present? |
4549 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4550 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
4551 | cat >conftest.$ac_ext <<_ACEOF | |
4552 | /* confdefs.h. */ | |
4553 | _ACEOF | |
4554 | cat confdefs.h >>conftest.$ac_ext | |
4555 | cat >>conftest.$ac_ext <<_ACEOF | |
4556 | /* end confdefs.h. */ | |
4557 | #include <minix/config.h> | |
4558 | _ACEOF | |
4559 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4560 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4561 | ac_status=$? | |
4562 | grep -v '^ *+' conftest.er1 >conftest.err | |
4563 | rm -f conftest.er1 | |
4564 | cat conftest.err >&5 | |
4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4566 | (exit $ac_status); } >/dev/null; then | |
4567 | if test -s conftest.err; then | |
4568 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4569 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4570 | else | |
4571 | ac_cpp_err= | |
4572 | fi | |
4573 | else | |
4574 | ac_cpp_err=yes | |
4575 | fi | |
4576 | if test -z "$ac_cpp_err"; then | |
4577 | ac_header_preproc=yes | |
4578 | else | |
4579 | echo "$as_me: failed program was:" >&5 | |
4580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ce2cded5 | 4581 | |
7357c5b6 AM |
4582 | ac_header_preproc=no |
4583 | fi | |
4584 | rm -f conftest.err conftest.$ac_ext | |
4585 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4586 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
ce2cded5 | 4587 | |
7357c5b6 AM |
4588 | # So? What about this header? |
4589 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4590 | yes:no: ) | |
4591 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4592 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4593 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4594 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4595 | ac_header_preproc=yes | |
4596 | ;; | |
4597 | no:yes:* ) | |
4598 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4599 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4600 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4601 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4602 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4603 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4604 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4605 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4606 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4607 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4608 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4609 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4610 | ( | |
4611 | cat <<\_ASBOX | |
4612 | ## ------------------------------------------ ## | |
4613 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4614 | ## ------------------------------------------ ## | |
4615 | _ASBOX | |
4616 | ) | | |
4617 | sed "s/^/$as_me: WARNING: /" >&2 | |
4618 | ;; | |
4619 | esac | |
4620 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4621 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4622 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
13b2be9c | 4623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d6d788bd | 4624 | else |
7357c5b6 | 4625 | ac_cv_header_minix_config_h=$ac_header_preproc |
ac48eca1 | 4626 | fi |
7357c5b6 AM |
4627 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4628 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
ac48eca1 | 4629 | |
7357c5b6 AM |
4630 | fi |
4631 | if test $ac_cv_header_minix_config_h = yes; then | |
4632 | MINIX=yes | |
4633 | else | |
4634 | MINIX= | |
4635 | fi | |
d7040cdb SE |
4636 | |
4637 | ||
7357c5b6 | 4638 | if test "$MINIX" = yes; then |
d7040cdb | 4639 | |
7357c5b6 AM |
4640 | cat >>confdefs.h <<\_ACEOF |
4641 | #define _POSIX_SOURCE 1 | |
4642 | _ACEOF | |
d7040cdb SE |
4643 | |
4644 | ||
7357c5b6 AM |
4645 | cat >>confdefs.h <<\_ACEOF |
4646 | #define _POSIX_1_SOURCE 2 | |
4647 | _ACEOF | |
d7040cdb SE |
4648 | |
4649 | ||
7357c5b6 AM |
4650 | cat >>confdefs.h <<\_ACEOF |
4651 | #define _MINIX 1 | |
4652 | _ACEOF | |
d7040cdb | 4653 | |
7357c5b6 | 4654 | fi |
d7040cdb SE |
4655 | |
4656 | ||
13b2be9c | 4657 | |
7357c5b6 AM |
4658 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
4659 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 | |
4660 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
ce2cded5 | 4661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 4662 | else |
7357c5b6 AM |
4663 | cat >conftest.$ac_ext <<_ACEOF |
4664 | /* confdefs.h. */ | |
4665 | _ACEOF | |
4666 | cat confdefs.h >>conftest.$ac_ext | |
4667 | cat >>conftest.$ac_ext <<_ACEOF | |
4668 | /* end confdefs.h. */ | |
ac48eca1 | 4669 | |
7357c5b6 AM |
4670 | # define __EXTENSIONS__ 1 |
4671 | $ac_includes_default | |
4672 | int | |
4673 | main () | |
4674 | { | |
13b2be9c | 4675 | |
7357c5b6 AM |
4676 | ; |
4677 | return 0; | |
4678 | } | |
4679 | _ACEOF | |
4680 | rm -f conftest.$ac_objext | |
4681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4682 | (eval $ac_compile) 2>conftest.er1 | |
4683 | ac_status=$? | |
4684 | grep -v '^ *+' conftest.er1 >conftest.err | |
4685 | rm -f conftest.er1 | |
4686 | cat conftest.err >&5 | |
4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4688 | (exit $ac_status); } && | |
4689 | { ac_try='test -z "$ac_c_werror_flag" | |
4690 | || test ! -s conftest.err' | |
4691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4692 | (eval $ac_try) 2>&5 | |
4693 | ac_status=$? | |
4694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4695 | (exit $ac_status); }; } && | |
4696 | { ac_try='test -s conftest.$ac_objext' | |
4697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4698 | (eval $ac_try) 2>&5 | |
4699 | ac_status=$? | |
4700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4701 | (exit $ac_status); }; }; then | |
4702 | ac_cv_safe_to_define___extensions__=yes | |
d6d788bd | 4703 | else |
7357c5b6 AM |
4704 | echo "$as_me: failed program was:" >&5 |
4705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4706 | ||
4707 | ac_cv_safe_to_define___extensions__=no | |
d6d788bd | 4708 | fi |
7357c5b6 AM |
4709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4710 | fi | |
4711 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4712 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 | |
4713 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4714 | cat >>confdefs.h <<\_ACEOF | |
4715 | #define __EXTENSIONS__ 1 | |
4716 | _ACEOF | |
d6d788bd | 4717 | |
7357c5b6 AM |
4718 | cat >>confdefs.h <<\_ACEOF |
4719 | #define _ALL_SOURCE 1 | |
4720 | _ACEOF | |
d6d788bd | 4721 | |
7357c5b6 AM |
4722 | cat >>confdefs.h <<\_ACEOF |
4723 | #define _GNU_SOURCE 1 | |
4724 | _ACEOF | |
252b5132 | 4725 | |
7357c5b6 AM |
4726 | cat >>confdefs.h <<\_ACEOF |
4727 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4728 | _ACEOF | |
252b5132 | 4729 | |
7357c5b6 AM |
4730 | cat >>confdefs.h <<\_ACEOF |
4731 | #define _TANDEM_SOURCE 1 | |
4732 | _ACEOF | |
d6d788bd | 4733 | |
a74801ba | 4734 | |
d053aef8 JK |
4735 | # Check whether --enable-largefile or --disable-largefile was given. |
4736 | if test "${enable_largefile+set}" = set; then | |
4737 | enableval="$enable_largefile" | |
4738 | ||
4739 | fi; | |
4740 | if test "$enable_largefile" != no; then | |
4741 | ||
4742 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
4743 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
4744 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4746 | else | |
4747 | ac_cv_sys_largefile_CC=no | |
4748 | if test "$GCC" != yes; then | |
4749 | ac_save_CC=$CC | |
4750 | while :; do | |
4751 | # IRIX 6.2 and later do not support large files by default, | |
4752 | # so use the C compiler's -n32 option if that helps. | |
4753 | cat >conftest.$ac_ext <<_ACEOF | |
4754 | /* confdefs.h. */ | |
4755 | _ACEOF | |
4756 | cat confdefs.h >>conftest.$ac_ext | |
4757 | cat >>conftest.$ac_ext <<_ACEOF | |
4758 | /* end confdefs.h. */ | |
4759 | #include <sys/types.h> | |
4760 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4761 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4762 | since some C++ compilers masquerading as C compilers | |
4763 | incorrectly reject 9223372036854775807. */ | |
4764 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4765 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4766 | && LARGE_OFF_T % 2147483647 == 1) | |
4767 | ? 1 : -1]; | |
4768 | int | |
4769 | main () | |
4770 | { | |
4771 | ||
4772 | ; | |
4773 | return 0; | |
4774 | } | |
4775 | _ACEOF | |
4776 | rm -f conftest.$ac_objext | |
4777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4778 | (eval $ac_compile) 2>conftest.er1 | |
4779 | ac_status=$? | |
4780 | grep -v '^ *+' conftest.er1 >conftest.err | |
4781 | rm -f conftest.er1 | |
4782 | cat conftest.err >&5 | |
4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4784 | (exit $ac_status); } && | |
4785 | { ac_try='test -z "$ac_c_werror_flag" | |
4786 | || test ! -s conftest.err' | |
4787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4788 | (eval $ac_try) 2>&5 | |
4789 | ac_status=$? | |
4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4791 | (exit $ac_status); }; } && | |
4792 | { ac_try='test -s conftest.$ac_objext' | |
4793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4794 | (eval $ac_try) 2>&5 | |
4795 | ac_status=$? | |
4796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4797 | (exit $ac_status); }; }; then | |
4798 | break | |
4799 | else | |
4800 | echo "$as_me: failed program was:" >&5 | |
4801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4802 | ||
4803 | fi | |
4804 | rm -f conftest.err conftest.$ac_objext | |
4805 | CC="$CC -n32" | |
4806 | rm -f conftest.$ac_objext | |
4807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4808 | (eval $ac_compile) 2>conftest.er1 | |
4809 | ac_status=$? | |
4810 | grep -v '^ *+' conftest.er1 >conftest.err | |
4811 | rm -f conftest.er1 | |
4812 | cat conftest.err >&5 | |
4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4814 | (exit $ac_status); } && | |
4815 | { ac_try='test -z "$ac_c_werror_flag" | |
4816 | || test ! -s conftest.err' | |
4817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4818 | (eval $ac_try) 2>&5 | |
4819 | ac_status=$? | |
4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4821 | (exit $ac_status); }; } && | |
4822 | { ac_try='test -s conftest.$ac_objext' | |
4823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4824 | (eval $ac_try) 2>&5 | |
4825 | ac_status=$? | |
4826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4827 | (exit $ac_status); }; }; then | |
4828 | ac_cv_sys_largefile_CC=' -n32'; break | |
4829 | else | |
4830 | echo "$as_me: failed program was:" >&5 | |
4831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4832 | ||
4833 | fi | |
4834 | rm -f conftest.err conftest.$ac_objext | |
4835 | break | |
4836 | done | |
4837 | CC=$ac_save_CC | |
4838 | rm -f conftest.$ac_ext | |
4839 | fi | |
4840 | fi | |
4841 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
4842 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
4843 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4844 | CC=$CC$ac_cv_sys_largefile_CC | |
4845 | fi | |
4846 | ||
4847 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4848 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
4849 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4851 | else | |
4852 | while :; do | |
4853 | ac_cv_sys_file_offset_bits=no | |
4854 | cat >conftest.$ac_ext <<_ACEOF | |
4855 | /* confdefs.h. */ | |
4856 | _ACEOF | |
4857 | cat confdefs.h >>conftest.$ac_ext | |
4858 | cat >>conftest.$ac_ext <<_ACEOF | |
4859 | /* end confdefs.h. */ | |
4860 | #include <sys/types.h> | |
4861 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4862 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4863 | since some C++ compilers masquerading as C compilers | |
4864 | incorrectly reject 9223372036854775807. */ | |
4865 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4866 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4867 | && LARGE_OFF_T % 2147483647 == 1) | |
4868 | ? 1 : -1]; | |
4869 | int | |
4870 | main () | |
4871 | { | |
4872 | ||
4873 | ; | |
4874 | return 0; | |
4875 | } | |
4876 | _ACEOF | |
4877 | rm -f conftest.$ac_objext | |
4878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4879 | (eval $ac_compile) 2>conftest.er1 | |
4880 | ac_status=$? | |
4881 | grep -v '^ *+' conftest.er1 >conftest.err | |
4882 | rm -f conftest.er1 | |
4883 | cat conftest.err >&5 | |
4884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4885 | (exit $ac_status); } && | |
4886 | { ac_try='test -z "$ac_c_werror_flag" | |
4887 | || test ! -s conftest.err' | |
4888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4889 | (eval $ac_try) 2>&5 | |
4890 | ac_status=$? | |
4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4892 | (exit $ac_status); }; } && | |
4893 | { ac_try='test -s conftest.$ac_objext' | |
4894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4895 | (eval $ac_try) 2>&5 | |
4896 | ac_status=$? | |
4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4898 | (exit $ac_status); }; }; then | |
4899 | break | |
4900 | else | |
4901 | echo "$as_me: failed program was:" >&5 | |
4902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4903 | ||
4904 | fi | |
4905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4906 | cat >conftest.$ac_ext <<_ACEOF | |
4907 | /* confdefs.h. */ | |
4908 | _ACEOF | |
4909 | cat confdefs.h >>conftest.$ac_ext | |
4910 | cat >>conftest.$ac_ext <<_ACEOF | |
4911 | /* end confdefs.h. */ | |
4912 | #define _FILE_OFFSET_BITS 64 | |
4913 | #include <sys/types.h> | |
4914 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4915 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4916 | since some C++ compilers masquerading as C compilers | |
4917 | incorrectly reject 9223372036854775807. */ | |
4918 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4919 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4920 | && LARGE_OFF_T % 2147483647 == 1) | |
4921 | ? 1 : -1]; | |
4922 | int | |
4923 | main () | |
4924 | { | |
4925 | ||
4926 | ; | |
4927 | return 0; | |
4928 | } | |
4929 | _ACEOF | |
4930 | rm -f conftest.$ac_objext | |
4931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4932 | (eval $ac_compile) 2>conftest.er1 | |
4933 | ac_status=$? | |
4934 | grep -v '^ *+' conftest.er1 >conftest.err | |
4935 | rm -f conftest.er1 | |
4936 | cat conftest.err >&5 | |
4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4938 | (exit $ac_status); } && | |
4939 | { ac_try='test -z "$ac_c_werror_flag" | |
4940 | || test ! -s conftest.err' | |
4941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4942 | (eval $ac_try) 2>&5 | |
4943 | ac_status=$? | |
4944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4945 | (exit $ac_status); }; } && | |
4946 | { ac_try='test -s conftest.$ac_objext' | |
4947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4948 | (eval $ac_try) 2>&5 | |
4949 | ac_status=$? | |
4950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4951 | (exit $ac_status); }; }; then | |
4952 | ac_cv_sys_file_offset_bits=64; break | |
4953 | else | |
4954 | echo "$as_me: failed program was:" >&5 | |
4955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4956 | ||
4957 | fi | |
4958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4959 | break | |
4960 | done | |
4961 | fi | |
4962 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
4963 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
4964 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
4965 | ||
4966 | cat >>confdefs.h <<_ACEOF | |
4967 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4968 | _ACEOF | |
4969 | ||
4970 | fi | |
4971 | rm -f conftest* | |
4972 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4973 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
4974 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4976 | else | |
4977 | while :; do | |
4978 | ac_cv_sys_large_files=no | |
4979 | cat >conftest.$ac_ext <<_ACEOF | |
4980 | /* confdefs.h. */ | |
4981 | _ACEOF | |
4982 | cat confdefs.h >>conftest.$ac_ext | |
4983 | cat >>conftest.$ac_ext <<_ACEOF | |
4984 | /* end confdefs.h. */ | |
4985 | #include <sys/types.h> | |
4986 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4987 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4988 | since some C++ compilers masquerading as C compilers | |
4989 | incorrectly reject 9223372036854775807. */ | |
4990 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4991 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4992 | && LARGE_OFF_T % 2147483647 == 1) | |
4993 | ? 1 : -1]; | |
4994 | int | |
4995 | main () | |
4996 | { | |
4997 | ||
4998 | ; | |
4999 | return 0; | |
5000 | } | |
5001 | _ACEOF | |
5002 | rm -f conftest.$ac_objext | |
5003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5004 | (eval $ac_compile) 2>conftest.er1 | |
5005 | ac_status=$? | |
5006 | grep -v '^ *+' conftest.er1 >conftest.err | |
5007 | rm -f conftest.er1 | |
5008 | cat conftest.err >&5 | |
5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5010 | (exit $ac_status); } && | |
5011 | { ac_try='test -z "$ac_c_werror_flag" | |
5012 | || test ! -s conftest.err' | |
5013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5014 | (eval $ac_try) 2>&5 | |
5015 | ac_status=$? | |
5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5017 | (exit $ac_status); }; } && | |
5018 | { ac_try='test -s conftest.$ac_objext' | |
5019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5020 | (eval $ac_try) 2>&5 | |
5021 | ac_status=$? | |
5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5023 | (exit $ac_status); }; }; then | |
5024 | break | |
5025 | else | |
5026 | echo "$as_me: failed program was:" >&5 | |
5027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5028 | ||
5029 | fi | |
5030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5031 | cat >conftest.$ac_ext <<_ACEOF | |
5032 | /* confdefs.h. */ | |
5033 | _ACEOF | |
5034 | cat confdefs.h >>conftest.$ac_ext | |
5035 | cat >>conftest.$ac_ext <<_ACEOF | |
5036 | /* end confdefs.h. */ | |
5037 | #define _LARGE_FILES 1 | |
5038 | #include <sys/types.h> | |
5039 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5040 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5041 | since some C++ compilers masquerading as C compilers | |
5042 | incorrectly reject 9223372036854775807. */ | |
5043 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5044 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5045 | && LARGE_OFF_T % 2147483647 == 1) | |
5046 | ? 1 : -1]; | |
5047 | int | |
5048 | main () | |
5049 | { | |
5050 | ||
5051 | ; | |
5052 | return 0; | |
5053 | } | |
5054 | _ACEOF | |
5055 | rm -f conftest.$ac_objext | |
5056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5057 | (eval $ac_compile) 2>conftest.er1 | |
5058 | ac_status=$? | |
5059 | grep -v '^ *+' conftest.er1 >conftest.err | |
5060 | rm -f conftest.er1 | |
5061 | cat conftest.err >&5 | |
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5063 | (exit $ac_status); } && | |
5064 | { ac_try='test -z "$ac_c_werror_flag" | |
5065 | || test ! -s conftest.err' | |
5066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5067 | (eval $ac_try) 2>&5 | |
5068 | ac_status=$? | |
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5070 | (exit $ac_status); }; } && | |
5071 | { ac_try='test -s conftest.$ac_objext' | |
5072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5073 | (eval $ac_try) 2>&5 | |
5074 | ac_status=$? | |
5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5076 | (exit $ac_status); }; }; then | |
5077 | ac_cv_sys_large_files=1; break | |
5078 | else | |
5079 | echo "$as_me: failed program was:" >&5 | |
5080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5081 | ||
5082 | fi | |
5083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5084 | break | |
5085 | done | |
5086 | fi | |
5087 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
5088 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
5089 | if test "$ac_cv_sys_large_files" != no; then | |
5090 | ||
5091 | cat >>confdefs.h <<_ACEOF | |
5092 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5093 | _ACEOF | |
5094 | ||
5095 | fi | |
5096 | rm -f conftest* | |
5097 | fi | |
5098 | ||
a74801ba | 5099 | |
718a6fd8 SE |
5100 | case `pwd` in |
5101 | *\ * | *\ *) | |
5102 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5103 | echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5104 | esac | |
13b2be9c | 5105 | |
252b5132 | 5106 | |
7357c5b6 | 5107 | |
718a6fd8 SE |
5108 | macro_version='2.2.6' |
5109 | macro_revision='1.3012' | |
7357c5b6 AM |
5110 | |
5111 | ||
5112 | ||
5113 | ||
5114 | ||
5115 | ||
7357c5b6 AM |
5116 | |
5117 | ||
5118 | ||
5119 | ||
5120 | ||
5121 | ||
5122 | ||
718a6fd8 | 5123 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 AM |
5124 | |
5125 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
5126 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
5127 | if test "${lt_cv_path_SED+set}" = set; then | |
5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5129 | else | |
5130 | # Loop through the user's path and test for sed and gsed. | |
5131 | # Then use that list of sed's as ones to test for truncation. | |
5132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5133 | for as_dir in $PATH | |
5134 | do | |
5135 | IFS=$as_save_IFS | |
5136 | test -z "$as_dir" && as_dir=. | |
5137 | for lt_ac_prog in sed gsed; do | |
5138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5139 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
5140 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
5141 | fi | |
5142 | done | |
5143 | done | |
5144 | done | |
5145 | IFS=$as_save_IFS | |
5146 | lt_ac_max=0 | |
5147 | lt_ac_count=0 | |
5148 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
5149 | # along with /bin/sed that truncates output. | |
5150 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
5151 | test ! -f $lt_ac_sed && continue | |
5152 | cat /dev/null > conftest.in | |
5153 | lt_ac_count=0 | |
5154 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
5155 | # Check for GNU sed and select it if it is found. | |
5156 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
5157 | lt_cv_path_SED=$lt_ac_sed | |
5158 | break | |
5159 | fi | |
5160 | while true; do | |
5161 | cat conftest.in conftest.in >conftest.tmp | |
5162 | mv conftest.tmp conftest.in | |
5163 | cp conftest.in conftest.nl | |
5164 | echo >>conftest.nl | |
5165 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
5166 | cmp -s conftest.out conftest.nl || break | |
5167 | # 10000 chars as input seems more than enough | |
5168 | test $lt_ac_count -gt 10 && break | |
5169 | lt_ac_count=`expr $lt_ac_count + 1` | |
5170 | if test $lt_ac_count -gt $lt_ac_max; then | |
5171 | lt_ac_max=$lt_ac_count | |
5172 | lt_cv_path_SED=$lt_ac_sed | |
5173 | fi | |
5174 | done | |
5175 | done | |
5176 | ||
5177 | fi | |
5178 | ||
5179 | SED=$lt_cv_path_SED | |
5180 | ||
5181 | echo "$as_me:$LINENO: result: $SED" >&5 | |
5182 | echo "${ECHO_T}$SED" >&6 | |
5183 | ||
5184 | test -z "$SED" && SED=sed | |
5185 | Xsed="$SED -e 1s/^X//" | |
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | ||
5197 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
5198 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
5199 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
5200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5201 | else | |
5202 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
5203 | then ac_cv_prog_fgrep='grep -F' | |
5204 | else ac_cv_prog_fgrep='fgrep' | |
5205 | fi | |
5206 | fi | |
5207 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
5208 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
5209 | FGREP=$ac_cv_prog_fgrep | |
5210 | ||
5211 | ||
5212 | test -z "$GREP" && GREP=grep | |
5213 | ||
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | ||
5226 | ||
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5233 | if test "${with_gnu_ld+set}" = set; then | |
5234 | withval="$with_gnu_ld" | |
5235 | test "$withval" = no || with_gnu_ld=yes | |
5236 | else | |
5237 | with_gnu_ld=no | |
ce2cded5 L |
5238 | fi; |
5239 | ac_prog=ld | |
5240 | if test "$GCC" = yes; then | |
5241 | # Check if gcc -print-prog-name=ld gives a path. | |
5242 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
5243 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
5244 | case $host in | |
5245 | *-*-mingw*) | |
5246 | # gcc leaves a trailing carriage return which upsets mingw | |
5247 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5248 | *) | |
5249 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5250 | esac | |
5251 | case $ac_prog in | |
5252 | # Accept absolute paths. | |
5253 | [\\/]* | ?:[\\/]*) | |
5254 | re_direlt='/[^/][^/]*/\.\./' | |
5255 | # Canonicalize the pathname of ld | |
5256 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5257 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5258 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5259 | done | |
5260 | test -z "$LD" && LD="$ac_prog" | |
5261 | ;; | |
5262 | "") | |
5263 | # If it fails, then pretend we aren't using GCC. | |
5264 | ac_prog=ld | |
5265 | ;; | |
5266 | *) | |
5267 | # If it is relative, then search for the first ld in PATH. | |
5268 | with_gnu_ld=unknown | |
5269 | ;; | |
5270 | esac | |
5271 | elif test "$with_gnu_ld" = yes; then | |
5272 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5273 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5274 | else | |
5275 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5276 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5277 | fi | |
5278 | if test "${lt_cv_path_LD+set}" = set; then | |
5279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5280 | else | |
5281 | if test -z "$LD"; then | |
5282 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5283 | for ac_dir in $PATH; do | |
5284 | IFS="$lt_save_ifs" | |
5285 | test -z "$ac_dir" && ac_dir=. | |
5286 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5287 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5288 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5289 | # but apparently some variants of GNU ld only accept -v. | |
5290 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5291 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5292 | *GNU* | *'with BFD'*) | |
5293 | test "$with_gnu_ld" != no && break | |
5294 | ;; | |
5295 | *) | |
5296 | test "$with_gnu_ld" != yes && break | |
5297 | ;; | |
5298 | esac | |
5299 | fi | |
5300 | done | |
5301 | IFS="$lt_save_ifs" | |
5302 | else | |
5303 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5304 | fi | |
5305 | fi | |
5306 | ||
5307 | LD="$lt_cv_path_LD" | |
5308 | if test -n "$LD"; then | |
5309 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5310 | echo "${ECHO_T}$LD" >&6 | |
5311 | else | |
5312 | echo "$as_me:$LINENO: result: no" >&5 | |
5313 | echo "${ECHO_T}no" >&6 | |
5314 | fi | |
5315 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5316 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5317 | { (exit 1); exit 1; }; } | |
5318 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5319 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5320 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
5321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5322 | else | |
5323 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5324 | case `$LD -v 2>&1 </dev/null` in | |
5325 | *GNU* | *'with BFD'*) | |
5326 | lt_cv_prog_gnu_ld=yes | |
5327 | ;; | |
5328 | *) | |
5329 | lt_cv_prog_gnu_ld=no | |
5330 | ;; | |
5331 | esac | |
5332 | fi | |
5333 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
5334 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
5335 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5336 | ||
5337 | ||
5338 | ||
5339 | ||
5340 | ||
5341 | ||
5342 | ||
5343 | ||
5344 | ||
ce2cded5 L |
5345 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5346 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
5347 | if test "${lt_cv_path_NM+set}" = set; then | |
5348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5349 | else | |
5350 | if test -n "$NM"; then | |
5351 | # Let the user override the test. | |
5352 | lt_cv_path_NM="$NM" | |
5353 | else | |
5354 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5355 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5356 | lt_nm_to_check="$lt_nm_to_check nm" | |
5357 | fi | |
5358 | for lt_tmp_nm in $lt_nm_to_check; do | |
5359 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5360 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5361 | IFS="$lt_save_ifs" | |
5362 | test -z "$ac_dir" && ac_dir=. | |
5363 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5364 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5365 | # Check to see if the nm accepts a BSD-compat flag. | |
5366 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5367 | # nm: unknown option "B" ignored | |
5368 | # Tru64's nm complains that /dev/null is an invalid object file | |
5369 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5370 | */dev/null* | *'Invalid file or object type'*) | |
5371 | lt_cv_path_NM="$tmp_nm -B" | |
5372 | break | |
5373 | ;; | |
5374 | *) | |
5375 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5376 | */dev/null*) | |
5377 | lt_cv_path_NM="$tmp_nm -p" | |
5378 | break | |
5379 | ;; | |
5380 | *) | |
5381 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5382 | continue # so that we can try to find one that supports BSD flags | |
5383 | ;; | |
5384 | esac | |
5385 | ;; | |
5386 | esac | |
5387 | fi | |
5388 | done | |
5389 | IFS="$lt_save_ifs" | |
5390 | done | |
5391 | : ${lt_cv_path_NM=no} | |
5392 | fi | |
5393 | fi | |
5394 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
5395 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
5396 | if test "$lt_cv_path_NM" != "no"; then | |
5397 | NM="$lt_cv_path_NM" | |
5398 | else | |
5399 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5400 | if test -n "$ac_tool_prefix"; then | |
5401 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5402 | do | |
5403 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5404 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
d7040cdb SE |
5405 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 5407 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
d7040cdb SE |
5408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5409 | else | |
ce2cded5 L |
5410 | if test -n "$DUMPBIN"; then |
5411 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5412 | else |
5413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5414 | for as_dir in $PATH | |
5415 | do | |
5416 | IFS=$as_save_IFS | |
5417 | test -z "$as_dir" && as_dir=. | |
5418 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5419 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ce2cded5 | 5420 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
d7040cdb SE |
5421 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5422 | break 2 | |
d70c5fc7 | 5423 | fi |
d7040cdb SE |
5424 | done |
5425 | done | |
d70c5fc7 | 5426 | |
d7040cdb SE |
5427 | fi |
5428 | fi | |
ce2cded5 L |
5429 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5430 | if test -n "$DUMPBIN"; then | |
5431 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
5432 | echo "${ECHO_T}$DUMPBIN" >&6 | |
bedf545c | 5433 | else |
d7040cdb SE |
5434 | echo "$as_me:$LINENO: result: no" >&5 |
5435 | echo "${ECHO_T}no" >&6 | |
5436 | fi | |
13b2be9c | 5437 | |
ce2cded5 L |
5438 | test -n "$DUMPBIN" && break |
5439 | done | |
5440 | fi | |
5441 | if test -z "$DUMPBIN"; then | |
5442 | ac_ct_DUMPBIN=$DUMPBIN | |
5443 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5444 | do | |
5445 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5446 | set dummy $ac_prog; ac_word=$2 | |
5447 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5449 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
5450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 5451 | else |
ce2cded5 L |
5452 | if test -n "$ac_ct_DUMPBIN"; then |
5453 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5454 | else | |
5455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5456 | for as_dir in $PATH | |
5457 | do | |
5458 | IFS=$as_save_IFS | |
5459 | test -z "$as_dir" && as_dir=. | |
5460 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5462 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5464 | break 2 | |
5465 | fi | |
5466 | done | |
5467 | done | |
5468 | ||
5469 | fi | |
5470 | fi | |
5471 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5472 | if test -n "$ac_ct_DUMPBIN"; then | |
5473 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
5474 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
5475 | else | |
5476 | echo "$as_me:$LINENO: result: no" >&5 | |
5477 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
5478 | fi |
5479 | ||
ce2cded5 L |
5480 | test -n "$ac_ct_DUMPBIN" && break |
5481 | done | |
5482 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
13b2be9c | 5483 | |
ce2cded5 L |
5484 | DUMPBIN=$ac_ct_DUMPBIN |
5485 | fi | |
13b2be9c | 5486 | |
bedf545c | 5487 | |
ce2cded5 L |
5488 | if test "$DUMPBIN" != ":"; then |
5489 | NM="$DUMPBIN" | |
5490 | fi | |
5491 | fi | |
5492 | test -z "$NM" && NM=nm | |
6840198f | 5493 | |
13b2be9c | 5494 | |
ac48eca1 | 5495 | |
d7040cdb | 5496 | |
ce2cded5 L |
5497 | |
5498 | ||
5499 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
5500 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
5501 | if test "${lt_cv_nm_interface+set}" = set; then | |
5502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5503 | else | |
5504 | lt_cv_nm_interface="BSD nm" | |
5505 | echo "int some_variable = 0;" > conftest.$ac_ext | |
29670fb9 | 5506 | (eval echo "\"\$as_me:5506: $ac_compile\"" >&5) |
ce2cded5 L |
5507 | (eval "$ac_compile" 2>conftest.err) |
5508 | cat conftest.err >&5 | |
29670fb9 | 5509 | (eval echo "\"\$as_me:5509: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
ce2cded5 L |
5510 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5511 | cat conftest.err >&5 | |
29670fb9 | 5512 | (eval echo "\"\$as_me:5512: output\"" >&5) |
ce2cded5 L |
5513 | cat conftest.out >&5 |
5514 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5515 | lt_cv_nm_interface="MS dumpbin" | |
5516 | fi | |
5517 | rm -f conftest* | |
5518 | fi | |
5519 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
5520 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
5521 | ||
5522 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
5523 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
5524 | LN_S=$as_ln_s | |
5525 | if test "$LN_S" = "ln -s"; then | |
5526 | echo "$as_me:$LINENO: result: yes" >&5 | |
5527 | echo "${ECHO_T}yes" >&6 | |
5528 | else | |
5529 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
5530 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5531 | fi | |
5532 | ||
5533 | # find the maximum length of command line arguments | |
5534 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5535 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5536 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5538 | else | |
5539 | i=0 | |
5540 | teststring="ABCD" | |
5541 | ||
5542 | case $build_os in | |
5543 | msdosdjgpp*) | |
5544 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5545 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5546 | # during glob expansion). Even if it were fixed, the result of this | |
5547 | # check would be larger than it should be. | |
5548 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5549 | ;; | |
5550 | ||
5551 | gnu*) | |
5552 | # Under GNU Hurd, this test is not required because there is | |
5553 | # no limit to the length of command line arguments. | |
5554 | # Libtool will interpret -1 as no limit whatsoever | |
5555 | lt_cv_sys_max_cmd_len=-1; | |
5556 | ;; | |
5557 | ||
718a6fd8 | 5558 | cygwin* | mingw* | cegcc*) |
ce2cded5 L |
5559 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5560 | # about 5 minutes as the teststring grows exponentially. | |
5561 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5562 | # you end up with a "frozen" computer, even though with patience | |
5563 | # the test eventually succeeds (with a max line length of 256k). | |
5564 | # Instead, let's just punt: use the minimum linelength reported by | |
5565 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5566 | lt_cv_sys_max_cmd_len=8192; | |
5567 | ;; | |
5568 | ||
5569 | amigaos*) | |
5570 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5571 | # So we just punt and use a minimum line length of 8192. | |
5572 | lt_cv_sys_max_cmd_len=8192; | |
5573 | ;; | |
5574 | ||
5575 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5576 | # This has been around since 386BSD, at least. Likely further. | |
5577 | if test -x /sbin/sysctl; then | |
5578 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5579 | elif test -x /usr/sbin/sysctl; then | |
5580 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5581 | else | |
5582 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5583 | fi | |
5584 | # And add a safety zone | |
5585 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5586 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5587 | ;; | |
5588 | ||
5589 | interix*) | |
5590 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5591 | lt_cv_sys_max_cmd_len=196608 | |
5592 | ;; | |
5593 | ||
5594 | osf*) | |
5595 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5596 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5597 | # nice to cause kernel panics so lets avoid the loop below. | |
5598 | # First set a reasonable default. | |
5599 | lt_cv_sys_max_cmd_len=16384 | |
5600 | # | |
5601 | if test -x /sbin/sysconfig; then | |
5602 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5603 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5604 | esac | |
5605 | fi | |
5606 | ;; | |
5607 | sco3.2v5*) | |
5608 | lt_cv_sys_max_cmd_len=102400 | |
5609 | ;; | |
5610 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5611 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5612 | if test -n "$kargmax"; then | |
5613 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5614 | else | |
5615 | lt_cv_sys_max_cmd_len=32768 | |
5616 | fi | |
d7040cdb SE |
5617 | ;; |
5618 | *) | |
718a6fd8 SE |
5619 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5620 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
ce2cded5 L |
5621 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5622 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5623 | else | |
5624 | # Make teststring a little bigger before we do anything with it. | |
5625 | # a 1K string should be a reasonable start. | |
5626 | for i in 1 2 3 4 5 6 7 8 ; do | |
5627 | teststring=$teststring$teststring | |
5628 | done | |
5629 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5630 | # If test is not a shell built-in, we'll probably end up computing a | |
5631 | # maximum length that is only half of the actual maximum length, but | |
5632 | # we can't tell. | |
5633 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5634 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5635 | test $i != 17 # 1/2 MB should be enough | |
5636 | do | |
5637 | i=`expr $i + 1` | |
5638 | teststring=$teststring$teststring | |
5639 | done | |
5640 | # Only check the string length outside the loop. | |
5641 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5642 | teststring= | |
5643 | # Add a significant safety factor because C++ compilers can tack on | |
5644 | # massive amounts of additional arguments before passing them to the | |
5645 | # linker. It appears as though 1/2 is a usable value. | |
5646 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5647 | fi | |
d7040cdb SE |
5648 | ;; |
5649 | esac | |
252b5132 | 5650 | |
ce2cded5 | 5651 | fi |
d6d788bd | 5652 | |
ce2cded5 L |
5653 | if test -n $lt_cv_sys_max_cmd_len ; then |
5654 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5655 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5656 | else | |
5657 | echo "$as_me:$LINENO: result: none" >&5 | |
5658 | echo "${ECHO_T}none" >&6 | |
5659 | fi | |
5660 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5661 | |
d6d788bd | 5662 | |
13b2be9c | 5663 | |
13b2be9c | 5664 | |
bedf545c | 5665 | |
252b5132 | 5666 | |
ce2cded5 L |
5667 | : ${CP="cp -f"} |
5668 | : ${MV="mv -f"} | |
5669 | : ${RM="rm -f"} | |
d6d788bd | 5670 | |
ce2cded5 L |
5671 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
5672 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
5673 | # Try some XSI features | |
5674 | xsi_shell=no | |
5675 | ( _lt_dummy="a/b/c" | |
5676 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
718a6fd8 SE |
5677 | = c,a/b,, \ |
5678 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5679 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
ce2cded5 L |
5680 | && xsi_shell=yes |
5681 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
5682 | echo "${ECHO_T}$xsi_shell" >&6 | |
bedf545c | 5683 | |
bedf545c | 5684 | |
ce2cded5 L |
5685 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
5686 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
5687 | lt_shell_append=no | |
5688 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5689 | >/dev/null 2>&1 \ | |
5690 | && lt_shell_append=yes | |
5691 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
5692 | echo "${ECHO_T}$lt_shell_append" >&6 | |
252b5132 | 5693 | |
d6d788bd | 5694 | |
ce2cded5 L |
5695 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5696 | lt_unset=unset | |
5697 | else | |
5698 | lt_unset=false | |
5699 | fi | |
13b2be9c DJ |
5700 | |
5701 | ||
5702 | ||
5703 | ||
d6d788bd | 5704 | |
ce2cded5 L |
5705 | # test EBCDIC or ASCII |
5706 | case `echo X|tr X '\101'` in | |
5707 | A) # ASCII based system | |
5708 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5709 | lt_SP2NL='tr \040 \012' | |
5710 | lt_NL2SP='tr \015\012 \040\040' | |
5711 | ;; | |
5712 | *) # EBCDIC based system | |
5713 | lt_SP2NL='tr \100 \n' | |
5714 | lt_NL2SP='tr \r\n \100\100' | |
5715 | ;; | |
5716 | esac | |
c43a438d | 5717 | |
c43a438d | 5718 | |
c43a438d | 5719 | |
252b5132 | 5720 | |
ad22bfe8 | 5721 | |
1ad12f97 | 5722 | |
1ad12f97 | 5723 | |
9e9b66a9 | 5724 | |
1ad12f97 | 5725 | |
ce2cded5 L |
5726 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
5727 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
5728 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5730 | else | |
5731 | lt_cv_ld_reload_flag='-r' | |
5732 | fi | |
5733 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
5734 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
5735 | reload_flag=$lt_cv_ld_reload_flag | |
5736 | case $reload_flag in | |
5737 | "" | " "*) ;; | |
5738 | *) reload_flag=" $reload_flag" ;; | |
5739 | esac | |
5740 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5741 | case $host_os in | |
5742 | darwin*) | |
5743 | if test "$GCC" = yes; then | |
5744 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5745 | else | |
5746 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5747 | fi | |
5748 | ;; | |
5749 | esac | |
a541e3ce | 5750 | |
9e9b66a9 | 5751 | |
a2d91340 | 5752 | |
d6d788bd | 5753 | |
9e9b66a9 AM |
5754 | |
5755 | ||
5756 | ||
d6d788bd | 5757 | |
252b5132 | 5758 | |
718a6fd8 SE |
5759 | if test -n "$ac_tool_prefix"; then |
5760 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5761 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5762 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5764 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
5765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5766 | else | |
5767 | if test -n "$OBJDUMP"; then | |
5768 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5769 | else | |
5770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5771 | for as_dir in $PATH | |
5772 | do | |
5773 | IFS=$as_save_IFS | |
5774 | test -z "$as_dir" && as_dir=. | |
5775 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5776 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5777 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5779 | break 2 | |
5780 | fi | |
5781 | done | |
5782 | done | |
5783 | ||
5784 | fi | |
5785 | fi | |
5786 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5787 | if test -n "$OBJDUMP"; then | |
5788 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
5789 | echo "${ECHO_T}$OBJDUMP" >&6 | |
5790 | else | |
5791 | echo "$as_me:$LINENO: result: no" >&5 | |
5792 | echo "${ECHO_T}no" >&6 | |
5793 | fi | |
5794 | ||
5795 | fi | |
5796 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5797 | ac_ct_OBJDUMP=$OBJDUMP | |
5798 | # Extract the first word of "objdump", so it can be a program name with args. | |
5799 | set dummy objdump; ac_word=$2 | |
5800 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5801 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5802 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
5803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5804 | else | |
5805 | if test -n "$ac_ct_OBJDUMP"; then | |
5806 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5807 | else | |
5808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5809 | for as_dir in $PATH | |
5810 | do | |
5811 | IFS=$as_save_IFS | |
5812 | test -z "$as_dir" && as_dir=. | |
5813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5814 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5815 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5816 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5817 | break 2 | |
5818 | fi | |
5819 | done | |
5820 | done | |
5821 | ||
5822 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | |
5823 | fi | |
5824 | fi | |
5825 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5826 | if test -n "$ac_ct_OBJDUMP"; then | |
5827 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
5828 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | |
5829 | else | |
5830 | echo "$as_me:$LINENO: result: no" >&5 | |
5831 | echo "${ECHO_T}no" >&6 | |
5832 | fi | |
5833 | ||
5834 | OBJDUMP=$ac_ct_OBJDUMP | |
5835 | else | |
5836 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5837 | fi | |
5838 | ||
5839 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5840 | ||
5841 | ||
5842 | ||
5843 | ||
5844 | ||
5845 | ||
5846 | ||
5847 | ||
13b2be9c | 5848 | |
ce2cded5 L |
5849 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
5850 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
5851 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
d7040cdb SE |
5852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5853 | else | |
ce2cded5 L |
5854 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5855 | lt_cv_file_magic_test_file= | |
5856 | lt_cv_deplibs_check_method='unknown' | |
5857 | # Need to set the preceding variable on all platforms that support | |
5858 | # interlibrary dependencies. | |
5859 | # 'none' -- dependencies not supported. | |
5860 | # `unknown' -- same as none, but documents that we really don't know. | |
5861 | # 'pass_all' -- all dependencies passed with no checks. | |
5862 | # 'test_compile' -- check by making test program. | |
5863 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5864 | # which responds to the $file_magic_cmd with a given extended regex. | |
5865 | # If you have `file' or equivalent on your system and you're not sure | |
5866 | # whether `pass_all' will *always* work, you probably want this one. | |
13b2be9c | 5867 | |
ce2cded5 | 5868 | case $host_os in |
50e7d84b | 5869 | aix[4-9]*) |
ce2cded5 L |
5870 | lt_cv_deplibs_check_method=pass_all |
5871 | ;; | |
d7040cdb | 5872 | |
ce2cded5 L |
5873 | beos*) |
5874 | lt_cv_deplibs_check_method=pass_all | |
5875 | ;; | |
d7040cdb | 5876 | |
ce2cded5 L |
5877 | bsdi[45]*) |
5878 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5879 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5880 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5881 | ;; | |
d7040cdb | 5882 | |
ce2cded5 L |
5883 | cygwin*) |
5884 | # func_win32_libid is a shell function defined in ltmain.sh | |
5885 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5886 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 5887 | ;; |
ce2cded5 L |
5888 | |
5889 | mingw* | pw32*) | |
5890 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5891 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5892 | # unless we find 'file', for example because we are cross-compiling. | |
5893 | if ( file / ) >/dev/null 2>&1; then | |
5894 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5895 | lt_cv_file_magic_cmd='func_win32_libid' | |
5896 | else | |
5897 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5898 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5899 | fi | |
d7040cdb | 5900 | ;; |
ce2cded5 | 5901 | |
718a6fd8 SE |
5902 | cegcc) |
5903 | # use the weaker test based on 'objdump'. See mingw*. | |
5904 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5905 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5906 | ;; | |
5907 | ||
ce2cded5 L |
5908 | darwin* | rhapsody*) |
5909 | lt_cv_deplibs_check_method=pass_all | |
5910 | ;; | |
5911 | ||
5912 | freebsd* | dragonfly*) | |
5913 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5914 | case $host_cpu in | |
5915 | i*86 ) | |
5916 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5917 | # Let's accept both of them until this is cleared up. | |
5918 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5919 | lt_cv_file_magic_cmd=/usr/bin/file | |
5920 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5921 | ;; | |
5922 | esac | |
5923 | else | |
5924 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
5925 | fi |
5926 | ;; | |
ce2cded5 L |
5927 | |
5928 | gnu*) | |
5929 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5930 | ;; |
ce2cded5 L |
5931 | |
5932 | hpux10.20* | hpux11*) | |
5933 | lt_cv_file_magic_cmd=/usr/bin/file | |
5934 | case $host_cpu in | |
5935 | ia64*) | |
5936 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5937 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5938 | ;; | |
5939 | hppa*64*) | |
5940 | 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]' | |
5941 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5942 | ;; | |
5943 | *) | |
5944 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5945 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5946 | ;; | |
5947 | esac | |
d7040cdb | 5948 | ;; |
ce2cded5 L |
5949 | |
5950 | interix[3-9]*) | |
5951 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5952 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
d7040cdb | 5953 | ;; |
ce2cded5 L |
5954 | |
5955 | irix5* | irix6* | nonstopux*) | |
5956 | case $LD in | |
5957 | *-32|*"-32 ") libmagic=32-bit;; | |
5958 | *-n32|*"-n32 ") libmagic=N32;; | |
5959 | *-64|*"-64 ") libmagic=64-bit;; | |
5960 | *) libmagic=never-match;; | |
5961 | esac | |
5962 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5963 | ;; |
ce2cded5 L |
5964 | |
5965 | # This must be Linux ELF. | |
58e24671 | 5966 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 5967 | lt_cv_deplibs_check_method=pass_all |
d7040cdb | 5968 | ;; |
ce2cded5 L |
5969 | |
5970 | netbsd*) | |
5971 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5972 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5973 | else | |
5974 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5975 | fi | |
d7040cdb | 5976 | ;; |
ce2cded5 L |
5977 | |
5978 | newos6*) | |
5979 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5980 | lt_cv_file_magic_cmd=/usr/bin/file | |
5981 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
d7040cdb | 5982 | ;; |
76a27922 | 5983 | |
ce2cded5 L |
5984 | *nto* | *qnx*) |
5985 | lt_cv_deplibs_check_method=pass_all | |
5986 | ;; | |
d6d788bd | 5987 | |
ce2cded5 L |
5988 | openbsd*) |
5989 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5990 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5991 | else | |
5992 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5993 | fi | |
5994 | ;; | |
44f2f9d2 | 5995 | |
ce2cded5 L |
5996 | osf3* | osf4* | osf5*) |
5997 | lt_cv_deplibs_check_method=pass_all | |
5998 | ;; | |
44f2f9d2 | 5999 | |
ce2cded5 L |
6000 | rdos*) |
6001 | lt_cv_deplibs_check_method=pass_all | |
6002 | ;; | |
6003 | ||
6004 | solaris*) | |
6005 | lt_cv_deplibs_check_method=pass_all | |
6006 | ;; | |
6007 | ||
6008 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6009 | lt_cv_deplibs_check_method=pass_all | |
6010 | ;; | |
6011 | ||
6012 | sysv4 | sysv4.3*) | |
6013 | case $host_vendor in | |
6014 | motorola) | |
6015 | 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]' | |
6016 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6017 | ;; | |
6018 | ncr) | |
6019 | lt_cv_deplibs_check_method=pass_all | |
6020 | ;; | |
6021 | sequent) | |
6022 | lt_cv_file_magic_cmd='/bin/file' | |
6023 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6024 | ;; | |
6025 | sni) | |
6026 | lt_cv_file_magic_cmd='/bin/file' | |
6027 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6028 | lt_cv_file_magic_test_file=/lib/libc.so | |
6029 | ;; | |
6030 | siemens) | |
6031 | lt_cv_deplibs_check_method=pass_all | |
6032 | ;; | |
6033 | pc) | |
6034 | lt_cv_deplibs_check_method=pass_all | |
6035 | ;; | |
6036 | esac | |
6037 | ;; | |
6038 | ||
6039 | tpf*) | |
6040 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
6041 | ;; |
6042 | esac | |
6043 | ||
ce2cded5 L |
6044 | fi |
6045 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
6046 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
6047 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6048 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6049 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6050 | |
d7040cdb | 6051 | |
d7040cdb | 6052 | |
d7040cdb | 6053 | |
d7040cdb | 6054 | |
44f2f9d2 | 6055 | |
d7040cdb | 6056 | |
d7040cdb | 6057 | |
d7040cdb | 6058 | |
d7040cdb | 6059 | |
44f2f9d2 | 6060 | |
d7040cdb | 6061 | |
ce2cded5 L |
6062 | if test -n "$ac_tool_prefix"; then |
6063 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6064 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6065 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6067 | if test "${ac_cv_prog_AR+set}" = set; then | |
6068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6069 | else | |
6070 | if test -n "$AR"; then | |
6071 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6072 | else | |
6073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6074 | for as_dir in $PATH | |
6075 | do | |
6076 | IFS=$as_save_IFS | |
6077 | test -z "$as_dir" && as_dir=. | |
6078 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6079 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6080 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6081 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6082 | break 2 | |
d7040cdb SE |
6083 | fi |
6084 | done | |
ce2cded5 | 6085 | done |
44f2f9d2 | 6086 | |
ce2cded5 L |
6087 | fi |
6088 | fi | |
6089 | AR=$ac_cv_prog_AR | |
6090 | if test -n "$AR"; then | |
6091 | echo "$as_me:$LINENO: result: $AR" >&5 | |
6092 | echo "${ECHO_T}$AR" >&6 | |
6093 | else | |
6094 | echo "$as_me:$LINENO: result: no" >&5 | |
6095 | echo "${ECHO_T}no" >&6 | |
44f2f9d2 | 6096 | fi |
d7040cdb | 6097 | |
d7040cdb | 6098 | fi |
ce2cded5 L |
6099 | if test -z "$ac_cv_prog_AR"; then |
6100 | ac_ct_AR=$AR | |
6101 | # Extract the first word of "ar", so it can be a program name with args. | |
6102 | set dummy ar; ac_word=$2 | |
6103 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6105 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
6106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44f2f9d2 | 6107 | else |
ce2cded5 L |
6108 | if test -n "$ac_ct_AR"; then |
6109 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6110 | else | |
6111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6112 | for as_dir in $PATH | |
6113 | do | |
6114 | IFS=$as_save_IFS | |
6115 | test -z "$as_dir" && as_dir=. | |
6116 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6117 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6118 | ac_cv_prog_ac_ct_AR="ar" | |
6119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6120 | break 2 | |
6121 | fi | |
6122 | done | |
6123 | done | |
6124 | ||
6125 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | |
6126 | fi | |
6127 | fi | |
6128 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6129 | if test -n "$ac_ct_AR"; then | |
6130 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6131 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
6132 | else | |
6133 | echo "$as_me:$LINENO: result: no" >&5 | |
6134 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 6135 | fi |
44f2f9d2 | 6136 | |
ce2cded5 L |
6137 | AR=$ac_ct_AR |
6138 | else | |
6139 | AR="$ac_cv_prog_AR" | |
6140 | fi | |
d7040cdb | 6141 | |
ce2cded5 L |
6142 | test -z "$AR" && AR=ar |
6143 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
6144 | |
6145 | ||
6146 | ||
6147 | ||
6148 | ||
6149 | ||
6150 | ||
6151 | ||
6152 | ||
6153 | ||
6154 | ||
ce2cded5 L |
6155 | if test -n "$ac_tool_prefix"; then |
6156 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6157 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6160 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6162 | else | |
6163 | if test -n "$STRIP"; then | |
6164 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6165 | else | |
6166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6167 | for as_dir in $PATH | |
6168 | do | |
6169 | IFS=$as_save_IFS | |
6170 | test -z "$as_dir" && as_dir=. | |
6171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6173 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6175 | break 2 | |
6176 | fi | |
6177 | done | |
6178 | done | |
d7040cdb | 6179 | |
ce2cded5 L |
6180 | fi |
6181 | fi | |
6182 | STRIP=$ac_cv_prog_STRIP | |
6183 | if test -n "$STRIP"; then | |
6184 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6185 | echo "${ECHO_T}$STRIP" >&6 | |
6186 | else | |
6187 | echo "$as_me:$LINENO: result: no" >&5 | |
6188 | echo "${ECHO_T}no" >&6 | |
6189 | fi | |
d7040cdb | 6190 | |
ce2cded5 L |
6191 | fi |
6192 | if test -z "$ac_cv_prog_STRIP"; then | |
6193 | ac_ct_STRIP=$STRIP | |
6194 | # Extract the first word of "strip", so it can be a program name with args. | |
6195 | set dummy strip; ac_word=$2 | |
6196 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6198 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6200 | else | |
6201 | if test -n "$ac_ct_STRIP"; then | |
6202 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6203 | else | |
6204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6205 | for as_dir in $PATH | |
6206 | do | |
6207 | IFS=$as_save_IFS | |
6208 | test -z "$as_dir" && as_dir=. | |
6209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6210 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6211 | ac_cv_prog_ac_ct_STRIP="strip" | |
6212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6213 | break 2 | |
6214 | fi | |
6215 | done | |
6216 | done | |
d7040cdb | 6217 | |
ce2cded5 L |
6218 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6219 | fi | |
6220 | fi | |
6221 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6222 | if test -n "$ac_ct_STRIP"; then | |
6223 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6224 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6225 | else | |
6226 | echo "$as_me:$LINENO: result: no" >&5 | |
6227 | echo "${ECHO_T}no" >&6 | |
6228 | fi | |
d7040cdb | 6229 | |
ce2cded5 L |
6230 | STRIP=$ac_ct_STRIP |
6231 | else | |
6232 | STRIP="$ac_cv_prog_STRIP" | |
6233 | fi | |
d7040cdb | 6234 | |
ce2cded5 | 6235 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6236 | |
d7040cdb | 6237 | |
d7040cdb | 6238 | |
d7040cdb | 6239 | |
d7040cdb | 6240 | |
d7040cdb | 6241 | |
ce2cded5 L |
6242 | if test -n "$ac_tool_prefix"; then |
6243 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6244 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6245 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6247 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44f2f9d2 | 6249 | else |
ce2cded5 L |
6250 | if test -n "$RANLIB"; then |
6251 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6252 | else | |
6253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6254 | for as_dir in $PATH | |
6255 | do | |
6256 | IFS=$as_save_IFS | |
6257 | test -z "$as_dir" && as_dir=. | |
6258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6259 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6260 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6262 | break 2 | |
6263 | fi | |
6264 | done | |
6265 | done | |
44f2f9d2 | 6266 | |
d7040cdb | 6267 | fi |
44f2f9d2 | 6268 | fi |
ce2cded5 L |
6269 | RANLIB=$ac_cv_prog_RANLIB |
6270 | if test -n "$RANLIB"; then | |
6271 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6272 | echo "${ECHO_T}$RANLIB" >&6 | |
6273 | else | |
6274 | echo "$as_me:$LINENO: result: no" >&5 | |
6275 | echo "${ECHO_T}no" >&6 | |
6276 | fi | |
d7040cdb | 6277 | |
d7040cdb | 6278 | fi |
ce2cded5 L |
6279 | if test -z "$ac_cv_prog_RANLIB"; then |
6280 | ac_ct_RANLIB=$RANLIB | |
6281 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6282 | set dummy ranlib; ac_word=$2 | |
6283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6285 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
d7040cdb | 6286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
44f2f9d2 | 6287 | else |
ce2cded5 L |
6288 | if test -n "$ac_ct_RANLIB"; then |
6289 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6290 | else | |
6291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6292 | for as_dir in $PATH | |
d7040cdb | 6293 | do |
ce2cded5 L |
6294 | IFS=$as_save_IFS |
6295 | test -z "$as_dir" && as_dir=. | |
6296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6298 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6300 | break 2 | |
d7040cdb | 6301 | fi |
ce2cded5 L |
6302 | done |
6303 | done | |
6304 | ||
6305 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
d7040cdb | 6306 | fi |
ce2cded5 L |
6307 | fi |
6308 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6309 | if test -n "$ac_ct_RANLIB"; then | |
6310 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6311 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
d7040cdb | 6312 | else |
ce2cded5 L |
6313 | echo "$as_me:$LINENO: result: no" >&5 |
6314 | echo "${ECHO_T}no" >&6 | |
44f2f9d2 | 6315 | fi |
44f2f9d2 | 6316 | |
ce2cded5 | 6317 | RANLIB=$ac_ct_RANLIB |
d7040cdb | 6318 | else |
ce2cded5 | 6319 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6320 | fi |
252b5132 | 6321 | |
ce2cded5 | 6322 | test -z "$RANLIB" && RANLIB=: |
252b5132 | 6323 | |
252b5132 | 6324 | |
ae57792d | 6325 | |
252b5132 | 6326 | |
13b2be9c | 6327 | |
14ee9f48 | 6328 | |
ce2cded5 | 6329 | # Determine commands to create old-style static archives. |
718a6fd8 | 6330 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
ce2cded5 L |
6331 | old_postinstall_cmds='chmod 644 $oldlib' |
6332 | old_postuninstall_cmds= | |
14ee9f48 | 6333 | |
ce2cded5 L |
6334 | if test -n "$RANLIB"; then |
6335 | case $host_os in | |
6336 | openbsd*) | |
6337 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6338 | ;; | |
6339 | *) | |
6340 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6341 | ;; | |
6342 | esac | |
6343 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb | 6344 | fi |
14ee9f48 | 6345 | |
f8fc3443 | 6346 | |
f8fc3443 | 6347 | |
252b5132 | 6348 | |
85fbca6a | 6349 | |
85fbca6a | 6350 | |
13b2be9c | 6351 | |
13b2be9c | 6352 | |
d7040cdb | 6353 | |
d7040cdb SE |
6354 | |
6355 | ||
6356 | ||
252b5132 | 6357 | |
93fbbb04 | 6358 | |
93fbbb04 | 6359 | |
d70c5fc7 | 6360 | |
e0001a05 | 6361 | |
252b5132 | 6362 | |
252b5132 | 6363 | |
252b5132 | 6364 | |
252b5132 | 6365 | |
252b5132 | 6366 | |
3bcbcc3d | 6367 | |
252b5132 | 6368 | |
252b5132 | 6369 | |
252b5132 | 6370 | |
15886821 | 6371 | |
252b5132 | 6372 | |
252b5132 | 6373 | |
13b2be9c DJ |
6374 | |
6375 | ||
252b5132 | 6376 | |
252b5132 | 6377 | |
d6d788bd | 6378 | |
ce2cded5 L |
6379 | # If no C compiler was specified, use CC. |
6380 | LTCC=${LTCC-"$CC"} | |
252b5132 | 6381 | |
ce2cded5 L |
6382 | # If no C compiler flags were specified, use CFLAGS. |
6383 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
252b5132 | 6384 | |
ce2cded5 L |
6385 | # Allow CC to be a program name with arguments. |
6386 | compiler=$CC | |
252b5132 | 6387 | |
252b5132 | 6388 | |
ce2cded5 L |
6389 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
6390 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
6391 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
6392 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
6393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6394 | else | |
252b5132 | 6395 | |
ce2cded5 L |
6396 | # These are sane defaults that work on at least a few old systems. |
6397 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
252b5132 | 6398 | |
ce2cded5 L |
6399 | # Character class describing NM global symbol codes. |
6400 | symcode='[BCDEGRST]' | |
252b5132 | 6401 | |
ce2cded5 L |
6402 | # Regexp to match symbols that can be accessed directly from C. |
6403 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
13b2be9c | 6404 | |
ce2cded5 L |
6405 | # Define system-specific variables. |
6406 | case $host_os in | |
6407 | aix*) | |
6408 | symcode='[BCDT]' | |
6409 | ;; | |
718a6fd8 | 6410 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
6411 | symcode='[ABCDGISTW]' |
6412 | ;; | |
6413 | hpux*) | |
6414 | if test "$host_cpu" = ia64; then | |
6415 | symcode='[ABCDEGRST]' | |
6416 | fi | |
6417 | ;; | |
6418 | irix* | nonstopux*) | |
6419 | symcode='[BCDEGRST]' | |
6420 | ;; | |
6421 | osf*) | |
6422 | symcode='[BCDEGQRST]' | |
6423 | ;; | |
6424 | solaris*) | |
6425 | symcode='[BDRT]' | |
6426 | ;; | |
6427 | sco3.2v5*) | |
6428 | symcode='[DT]' | |
6429 | ;; | |
6430 | sysv4.2uw2*) | |
6431 | symcode='[DT]' | |
6432 | ;; | |
6433 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6434 | symcode='[ABDT]' | |
6435 | ;; | |
6436 | sysv4) | |
6437 | symcode='[DFNSTU]' | |
6438 | ;; | |
6439 | esac | |
6440 | ||
6441 | # If we're using GNU nm, then use its standard symbol codes. | |
6442 | case `$NM -V 2>&1` in | |
6443 | *GNU* | *'with BFD'*) | |
6444 | symcode='[ABCDGIRSTW]' ;; | |
6445 | esac | |
252b5132 | 6446 | |
ce2cded5 L |
6447 | # Transform an extracted symbol line into a proper C declaration. |
6448 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6449 | # so use this general approach. | |
6450 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
13b2be9c | 6451 | |
ce2cded5 | 6452 | # Transform an extracted symbol line into symbol name and symbol address |
7357c5b6 | 6453 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
718a6fd8 | 6454 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
d7040cdb | 6455 | |
7357c5b6 AM |
6456 | # Handle CRLF in mingw tool chain |
6457 | opt_cr= | |
6458 | case $build_os in | |
6459 | mingw*) | |
6460 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6461 | ;; | |
6462 | esac | |
d7040cdb | 6463 | |
7357c5b6 AM |
6464 | # Try without a prefix underscore, then with it. |
6465 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6466 | |
7357c5b6 AM |
6467 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6468 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6469 | |
7357c5b6 AM |
6470 | # Write the raw and C identifiers. |
6471 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6472 | # Fake it for dumpbin and say T for any non-static function | |
6473 | # and D for any global variable. | |
6474 | # Also find C++ and __fastcall symbols from MSVC++, | |
6475 | # which start with @ or ?. | |
6476 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6477 | " {last_section=section; section=\$ 3};"\ | |
6478 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6479 | " \$ 0!~/External *\|/{next};"\ | |
6480 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6481 | " {if(hide[section]) next};"\ | |
6482 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6483 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6484 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6485 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6486 | " ' prfx=^$ac_symprfx" | |
6487 | else | |
6488 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6489 | fi | |
d7040cdb | 6490 | |
7357c5b6 AM |
6491 | # Check to see that the pipe works correctly. |
6492 | pipe_works=no | |
d7040cdb | 6493 | |
7357c5b6 AM |
6494 | rm -f conftest* |
6495 | cat > conftest.$ac_ext <<_LT_EOF | |
6496 | #ifdef __cplusplus | |
6497 | extern "C" { | |
6498 | #endif | |
6499 | char nm_test_var; | |
6500 | void nm_test_func(void); | |
6501 | void nm_test_func(void){} | |
6502 | #ifdef __cplusplus | |
ce2cded5 | 6503 | } |
7357c5b6 AM |
6504 | #endif |
6505 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6506 | _LT_EOF | |
6507 | ||
6508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6509 | (eval $ac_compile) 2>&5 | |
ce2cded5 L |
6510 | ac_status=$? |
6511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6512 | (exit $ac_status); }; then |
6513 | # Now try to grab the symbols. | |
6514 | nlist=conftest.nm | |
6515 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6516 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
ce2cded5 L |
6517 | ac_status=$? |
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6519 | (exit $ac_status); } && test -s "$nlist"; then |
6520 | # Try sorting and uniquifying the output. | |
6521 | if sort "$nlist" | uniq > "$nlist"T; then | |
6522 | mv -f "$nlist"T "$nlist" | |
6523 | else | |
6524 | rm -f "$nlist"T | |
6525 | fi | |
13b2be9c | 6526 | |
7357c5b6 AM |
6527 | # Make sure that we snagged all the symbols we need. |
6528 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6529 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6530 | cat <<_LT_EOF > conftest.$ac_ext | |
6531 | #ifdef __cplusplus | |
6532 | extern "C" { | |
6533 | #endif | |
13b2be9c | 6534 | |
7357c5b6 AM |
6535 | _LT_EOF |
6536 | # Now generate the symbol file. | |
6537 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
13b2be9c | 6538 | |
7357c5b6 | 6539 | cat <<_LT_EOF >> conftest.$ac_ext |
c8615825 | 6540 | |
7357c5b6 AM |
6541 | /* The mapping between symbol names and symbols. */ |
6542 | const struct { | |
6543 | const char *name; | |
6544 | void *address; | |
6545 | } | |
6546 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6547 | { | |
6548 | { "@PROGRAM@", (void *) 0 }, | |
6549 | _LT_EOF | |
6550 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6551 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6552 | {0, (void *) 0} | |
6553 | }; | |
d7040cdb | 6554 | |
7357c5b6 AM |
6555 | /* This works around a problem in FreeBSD linker */ |
6556 | #ifdef FREEBSD_WORKAROUND | |
6557 | static const void *lt_preloaded_setup() { | |
6558 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6559 | } | |
ce2cded5 | 6560 | #endif |
d7040cdb | 6561 | |
7357c5b6 | 6562 | #ifdef __cplusplus |
ce2cded5 | 6563 | } |
7357c5b6 AM |
6564 | #endif |
6565 | _LT_EOF | |
6566 | # Now try linking the two files. | |
6567 | mv conftest.$ac_objext conftstm.$ac_objext | |
6568 | lt_save_LIBS="$LIBS" | |
6569 | lt_save_CFLAGS="$CFLAGS" | |
6570 | LIBS="conftstm.$ac_objext" | |
6571 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ce2cded5 L |
6573 | (eval $ac_link) 2>&5 |
6574 | ac_status=$? | |
6575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6576 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6577 | pipe_works=yes | |
6578 | fi | |
6579 | LIBS="$lt_save_LIBS" | |
6580 | CFLAGS="$lt_save_CFLAGS" | |
6581 | else | |
6582 | echo "cannot find nm_test_func in $nlist" >&5 | |
6583 | fi | |
6584 | else | |
6585 | echo "cannot find nm_test_var in $nlist" >&5 | |
6586 | fi | |
6587 | else | |
6588 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6589 | fi | |
6590 | else | |
6591 | echo "$progname: failed program was:" >&5 | |
6592 | cat conftest.$ac_ext >&5 | |
6593 | fi | |
718a6fd8 | 6594 | rm -rf conftest* conftst* |
7357c5b6 AM |
6595 | |
6596 | # Do not use the global_symbol_pipe unless it works. | |
6597 | if test "$pipe_works" = yes; then | |
6598 | break | |
6599 | else | |
6600 | lt_cv_sys_global_symbol_pipe= | |
6601 | fi | |
6602 | done | |
d7040cdb | 6603 | |
ce2cded5 | 6604 | fi |
7357c5b6 AM |
6605 | |
6606 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6607 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 6608 | fi |
7357c5b6 AM |
6609 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6610 | echo "$as_me:$LINENO: result: failed" >&5 | |
6611 | echo "${ECHO_T}failed" >&6 | |
6612 | else | |
6613 | echo "$as_me:$LINENO: result: ok" >&5 | |
6614 | echo "${ECHO_T}ok" >&6 | |
ce2cded5 | 6615 | fi |
d7040cdb | 6616 | |
d7040cdb | 6617 | |
d7040cdb | 6618 | |
d7040cdb | 6619 | |
d7040cdb | 6620 | |
d7040cdb | 6621 | |
d7040cdb | 6622 | |
d7040cdb | 6623 | |
d7040cdb | 6624 | |
d7040cdb | 6625 | |
d7040cdb | 6626 | |
d7040cdb | 6627 | |
7357c5b6 AM |
6628 | |
6629 | ||
6630 | ||
718a6fd8 SE |
6631 | |
6632 | ||
6633 | ||
6634 | ||
6635 | ||
7357c5b6 AM |
6636 | |
6637 | ||
6638 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6639 | if test "${enable_libtool_lock+set}" = set; then | |
6640 | enableval="$enable_libtool_lock" | |
6641 | ||
6642 | fi; | |
6643 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6644 | ||
6645 | # Some flags need to be propagated to the compiler or linker for good | |
6646 | # libtool support. | |
6647 | case $host in | |
6648 | ia64-*-hpux*) | |
6649 | # Find out which ABI we are using. | |
6650 | echo 'int i;' > conftest.$ac_ext | |
6651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6652 | (eval $ac_compile) 2>&5 | |
6653 | ac_status=$? | |
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6655 | (exit $ac_status); }; then | |
6656 | case `/usr/bin/file conftest.$ac_objext` in | |
6657 | *ELF-32*) | |
6658 | HPUX_IA64_MODE="32" | |
6659 | ;; | |
6660 | *ELF-64*) | |
6661 | HPUX_IA64_MODE="64" | |
6662 | ;; | |
6663 | esac | |
6664 | fi | |
6665 | rm -rf conftest* | |
6666 | ;; | |
6667 | *-*-irix6*) | |
6668 | # Find out which ABI we are using. | |
29670fb9 | 6669 | echo '#line 6669 "configure"' > conftest.$ac_ext |
7357c5b6 AM |
6670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6671 | (eval $ac_compile) 2>&5 | |
6672 | ac_status=$? | |
6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6674 | (exit $ac_status); }; then | |
6675 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6676 | case `/usr/bin/file conftest.$ac_objext` in | |
6677 | *32-bit*) | |
6678 | LD="${LD-ld} -melf32bsmip" | |
6679 | ;; | |
6680 | *N32*) | |
6681 | LD="${LD-ld} -melf32bmipn32" | |
6682 | ;; | |
6683 | *64-bit*) | |
6684 | LD="${LD-ld} -melf64bmip" | |
6685 | ;; | |
6686 | esac | |
6687 | else | |
6688 | case `/usr/bin/file conftest.$ac_objext` in | |
6689 | *32-bit*) | |
6690 | LD="${LD-ld} -32" | |
6691 | ;; | |
6692 | *N32*) | |
6693 | LD="${LD-ld} -n32" | |
6694 | ;; | |
6695 | *64-bit*) | |
6696 | LD="${LD-ld} -64" | |
6697 | ;; | |
6698 | esac | |
6699 | fi | |
6700 | fi | |
6701 | rm -rf conftest* | |
6702 | ;; | |
6703 | ||
6704 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6705 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6706 | # Find out which ABI we are using. | |
6707 | echo 'int i;' > conftest.$ac_ext | |
6708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6709 | (eval $ac_compile) 2>&5 | |
6710 | ac_status=$? | |
6711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6712 | (exit $ac_status); }; then | |
6713 | case `/usr/bin/file conftest.o` in | |
6714 | *32-bit*) | |
6715 | case $host in | |
6716 | x86_64-*kfreebsd*-gnu) | |
6717 | LD="${LD-ld} -m elf_i386_fbsd" | |
6718 | ;; | |
6719 | x86_64-*linux*) | |
6720 | LD="${LD-ld} -m elf_i386" | |
6721 | ;; | |
6722 | ppc64-*linux*|powerpc64-*linux*) | |
6723 | LD="${LD-ld} -m elf32ppclinux" | |
6724 | ;; | |
6725 | s390x-*linux*) | |
6726 | LD="${LD-ld} -m elf_s390" | |
6727 | ;; | |
6728 | sparc64-*linux*) | |
6729 | LD="${LD-ld} -m elf32_sparc" | |
6730 | ;; | |
6731 | esac | |
6732 | ;; | |
6733 | *64-bit*) | |
6734 | case $host in | |
6735 | x86_64-*kfreebsd*-gnu) | |
6736 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6737 | ;; | |
6738 | x86_64-*linux*) | |
6739 | LD="${LD-ld} -m elf_x86_64" | |
6740 | ;; | |
6741 | ppc*-*linux*|powerpc*-*linux*) | |
6742 | LD="${LD-ld} -m elf64ppc" | |
6743 | ;; | |
6744 | s390*-*linux*|s390*-*tpf*) | |
6745 | LD="${LD-ld} -m elf64_s390" | |
6746 | ;; | |
6747 | sparc*-*linux*) | |
6748 | LD="${LD-ld} -m elf64_sparc" | |
6749 | ;; | |
6750 | esac | |
6751 | ;; | |
6752 | esac | |
6753 | fi | |
6754 | rm -rf conftest* | |
6755 | ;; | |
6756 | ||
6757 | *-*-sco3.2v5*) | |
6758 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6759 | SAVE_CFLAGS="$CFLAGS" | |
6760 | CFLAGS="$CFLAGS -belf" | |
6761 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6762 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
6763 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
ce2cded5 L |
6764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6765 | else | |
7357c5b6 AM |
6766 | ac_ext=c |
6767 | ac_cpp='$CPP $CPPFLAGS' | |
6768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6771 | ||
6772 | cat >conftest.$ac_ext <<_ACEOF | |
ce2cded5 L |
6773 | /* confdefs.h. */ |
6774 | _ACEOF | |
6775 | cat confdefs.h >>conftest.$ac_ext | |
6776 | cat >>conftest.$ac_ext <<_ACEOF | |
6777 | /* end confdefs.h. */ | |
d7040cdb | 6778 | |
7357c5b6 AM |
6779 | int |
6780 | main () | |
6781 | { | |
6782 | ||
6783 | ; | |
6784 | return 0; | |
6785 | } | |
ce2cded5 | 6786 | _ACEOF |
7357c5b6 AM |
6787 | rm -f conftest.$ac_objext conftest$ac_exeext |
6788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6789 | (eval $ac_link) 2>conftest.er1 | |
ce2cded5 L |
6790 | ac_status=$? |
6791 | grep -v '^ *+' conftest.er1 >conftest.err | |
6792 | rm -f conftest.er1 | |
6793 | cat conftest.err >&5 | |
6794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6795 | (exit $ac_status); } && | |
6796 | { ac_try='test -z "$ac_c_werror_flag" | |
6797 | || test ! -s conftest.err' | |
6798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6799 | (eval $ac_try) 2>&5 | |
6800 | ac_status=$? | |
6801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6802 | (exit $ac_status); }; } && | |
7357c5b6 | 6803 | { ac_try='test -s conftest$ac_exeext' |
ce2cded5 L |
6804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6805 | (eval $ac_try) 2>&5 | |
6806 | ac_status=$? | |
6807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6808 | (exit $ac_status); }; }; then | |
7357c5b6 | 6809 | lt_cv_cc_needs_belf=yes |
ce2cded5 L |
6810 | else |
6811 | echo "$as_me: failed program was:" >&5 | |
6812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6813 | |
7357c5b6 | 6814 | lt_cv_cc_needs_belf=no |
ce2cded5 | 6815 | fi |
7357c5b6 AM |
6816 | rm -f conftest.err conftest.$ac_objext \ |
6817 | conftest$ac_exeext conftest.$ac_ext | |
6818 | ac_ext=c | |
6819 | ac_cpp='$CPP $CPPFLAGS' | |
6820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6823 | |
ce2cded5 | 6824 | fi |
7357c5b6 AM |
6825 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
6826 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
6827 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6828 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6829 | CFLAGS="$SAVE_CFLAGS" | |
6830 | fi | |
6831 | ;; | |
6832 | sparc*-*solaris*) | |
6833 | # Find out which ABI we are using. | |
6834 | echo 'int i;' > conftest.$ac_ext | |
6835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6836 | (eval $ac_compile) 2>&5 | |
6837 | ac_status=$? | |
6838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6839 | (exit $ac_status); }; then | |
6840 | case `/usr/bin/file conftest.o` in | |
6841 | *64-bit*) | |
6842 | case $lt_cv_prog_gnu_ld in | |
6843 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
718a6fd8 SE |
6844 | *) |
6845 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6846 | LD="${LD-ld} -64" | |
6847 | fi | |
6848 | ;; | |
7357c5b6 AM |
6849 | esac |
6850 | ;; | |
6851 | esac | |
6852 | fi | |
6853 | rm -rf conftest* | |
6854 | ;; | |
6855 | esac | |
d7040cdb | 6856 | |
718a6fd8 SE |
6857 | need_locks="$enable_libtool_lock" |
6858 | ||
6859 | ||
6860 | case $host_os in | |
6861 | rhapsody* | darwin*) | |
6862 | if test -n "$ac_tool_prefix"; then | |
6863 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6864 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6867 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
6868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6869 | else | |
6870 | if test -n "$DSYMUTIL"; then | |
6871 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6872 | else | |
6873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6874 | for as_dir in $PATH | |
6875 | do | |
6876 | IFS=$as_save_IFS | |
6877 | test -z "$as_dir" && as_dir=. | |
6878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6880 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6882 | break 2 | |
6883 | fi | |
6884 | done | |
6885 | done | |
6886 | ||
6887 | fi | |
6888 | fi | |
6889 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6890 | if test -n "$DSYMUTIL"; then | |
6891 | echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
6892 | echo "${ECHO_T}$DSYMUTIL" >&6 | |
6893 | else | |
6894 | echo "$as_me:$LINENO: result: no" >&5 | |
6895 | echo "${ECHO_T}no" >&6 | |
6896 | fi | |
6897 | ||
6898 | fi | |
6899 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6900 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6901 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6902 | set dummy dsymutil; ac_word=$2 | |
6903 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6905 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
6906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6907 | else | |
6908 | if test -n "$ac_ct_DSYMUTIL"; then | |
6909 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6910 | else | |
6911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6912 | for as_dir in $PATH | |
6913 | do | |
6914 | IFS=$as_save_IFS | |
6915 | test -z "$as_dir" && as_dir=. | |
6916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6917 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6918 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6919 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6920 | break 2 | |
6921 | fi | |
6922 | done | |
6923 | done | |
6924 | ||
6925 | test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" | |
6926 | fi | |
6927 | fi | |
6928 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6929 | if test -n "$ac_ct_DSYMUTIL"; then | |
6930 | echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
6931 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 | |
6932 | else | |
6933 | echo "$as_me:$LINENO: result: no" >&5 | |
6934 | echo "${ECHO_T}no" >&6 | |
6935 | fi | |
6936 | ||
6937 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6938 | else | |
6939 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6940 | fi | |
6941 | ||
6942 | if test -n "$ac_tool_prefix"; then | |
6943 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6944 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6945 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6947 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6949 | else | |
6950 | if test -n "$NMEDIT"; then | |
6951 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6952 | else | |
6953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6954 | for as_dir in $PATH | |
6955 | do | |
6956 | IFS=$as_save_IFS | |
6957 | test -z "$as_dir" && as_dir=. | |
6958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6959 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6960 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6962 | break 2 | |
6963 | fi | |
6964 | done | |
6965 | done | |
6966 | ||
6967 | fi | |
6968 | fi | |
6969 | NMEDIT=$ac_cv_prog_NMEDIT | |
6970 | if test -n "$NMEDIT"; then | |
6971 | echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6972 | echo "${ECHO_T}$NMEDIT" >&6 | |
6973 | else | |
6974 | echo "$as_me:$LINENO: result: no" >&5 | |
6975 | echo "${ECHO_T}no" >&6 | |
6976 | fi | |
6977 | ||
6978 | fi | |
6979 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6980 | ac_ct_NMEDIT=$NMEDIT | |
6981 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6982 | set dummy nmedit; ac_word=$2 | |
6983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6985 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6987 | else | |
6988 | if test -n "$ac_ct_NMEDIT"; then | |
6989 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6990 | else | |
6991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6992 | for as_dir in $PATH | |
6993 | do | |
6994 | IFS=$as_save_IFS | |
6995 | test -z "$as_dir" && as_dir=. | |
6996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6998 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7000 | break 2 | |
7001 | fi | |
7002 | done | |
7003 | done | |
7004 | ||
7005 | test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" | |
7006 | fi | |
7007 | fi | |
7008 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7009 | if test -n "$ac_ct_NMEDIT"; then | |
7010 | echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
7011 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6 | |
7012 | else | |
7013 | echo "$as_me:$LINENO: result: no" >&5 | |
7014 | echo "${ECHO_T}no" >&6 | |
7015 | fi | |
7016 | ||
7017 | NMEDIT=$ac_ct_NMEDIT | |
7018 | else | |
7019 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7020 | fi | |
7021 | ||
7022 | if test -n "$ac_tool_prefix"; then | |
7023 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7024 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7027 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
7028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7029 | else | |
7030 | if test -n "$LIPO"; then | |
7031 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7032 | else | |
7033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7034 | for as_dir in $PATH | |
7035 | do | |
7036 | IFS=$as_save_IFS | |
7037 | test -z "$as_dir" && as_dir=. | |
7038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7040 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7042 | break 2 | |
7043 | fi | |
7044 | done | |
7045 | done | |
7046 | ||
7047 | fi | |
7048 | fi | |
7049 | LIPO=$ac_cv_prog_LIPO | |
7050 | if test -n "$LIPO"; then | |
7051 | echo "$as_me:$LINENO: result: $LIPO" >&5 | |
7052 | echo "${ECHO_T}$LIPO" >&6 | |
7053 | else | |
7054 | echo "$as_me:$LINENO: result: no" >&5 | |
7055 | echo "${ECHO_T}no" >&6 | |
7056 | fi | |
7057 | ||
7058 | fi | |
7059 | if test -z "$ac_cv_prog_LIPO"; then | |
7060 | ac_ct_LIPO=$LIPO | |
7061 | # Extract the first word of "lipo", so it can be a program name with args. | |
7062 | set dummy lipo; ac_word=$2 | |
7063 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7065 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
7066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7067 | else | |
7068 | if test -n "$ac_ct_LIPO"; then | |
7069 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7070 | else | |
7071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7072 | for as_dir in $PATH | |
7073 | do | |
7074 | IFS=$as_save_IFS | |
7075 | test -z "$as_dir" && as_dir=. | |
7076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7077 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7078 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7079 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7080 | break 2 | |
7081 | fi | |
7082 | done | |
7083 | done | |
7084 | ||
7085 | test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":" | |
7086 | fi | |
7087 | fi | |
7088 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7089 | if test -n "$ac_ct_LIPO"; then | |
7090 | echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
7091 | echo "${ECHO_T}$ac_ct_LIPO" >&6 | |
7092 | else | |
7093 | echo "$as_me:$LINENO: result: no" >&5 | |
7094 | echo "${ECHO_T}no" >&6 | |
7095 | fi | |
7096 | ||
7097 | LIPO=$ac_ct_LIPO | |
7098 | else | |
7099 | LIPO="$ac_cv_prog_LIPO" | |
7100 | fi | |
7101 | ||
7102 | if test -n "$ac_tool_prefix"; then | |
7103 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7104 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7107 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
7108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7109 | else | |
7110 | if test -n "$OTOOL"; then | |
7111 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7112 | else | |
7113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7114 | for as_dir in $PATH | |
7115 | do | |
7116 | IFS=$as_save_IFS | |
7117 | test -z "$as_dir" && as_dir=. | |
7118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7120 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7122 | break 2 | |
7123 | fi | |
7124 | done | |
7125 | done | |
7126 | ||
7127 | fi | |
7128 | fi | |
7129 | OTOOL=$ac_cv_prog_OTOOL | |
7130 | if test -n "$OTOOL"; then | |
7131 | echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
7132 | echo "${ECHO_T}$OTOOL" >&6 | |
7133 | else | |
7134 | echo "$as_me:$LINENO: result: no" >&5 | |
7135 | echo "${ECHO_T}no" >&6 | |
7136 | fi | |
7137 | ||
7138 | fi | |
7139 | if test -z "$ac_cv_prog_OTOOL"; then | |
7140 | ac_ct_OTOOL=$OTOOL | |
7141 | # Extract the first word of "otool", so it can be a program name with args. | |
7142 | set dummy otool; ac_word=$2 | |
7143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7145 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
7146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7147 | else | |
7148 | if test -n "$ac_ct_OTOOL"; then | |
7149 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7150 | else | |
7151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7152 | for as_dir in $PATH | |
7153 | do | |
7154 | IFS=$as_save_IFS | |
7155 | test -z "$as_dir" && as_dir=. | |
7156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7158 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7160 | break 2 | |
7161 | fi | |
7162 | done | |
7163 | done | |
7164 | ||
7165 | test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":" | |
7166 | fi | |
7167 | fi | |
7168 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7169 | if test -n "$ac_ct_OTOOL"; then | |
7170 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
7171 | echo "${ECHO_T}$ac_ct_OTOOL" >&6 | |
7172 | else | |
7173 | echo "$as_me:$LINENO: result: no" >&5 | |
7174 | echo "${ECHO_T}no" >&6 | |
7175 | fi | |
7176 | ||
7177 | OTOOL=$ac_ct_OTOOL | |
7178 | else | |
7179 | OTOOL="$ac_cv_prog_OTOOL" | |
7180 | fi | |
7181 | ||
7182 | if test -n "$ac_tool_prefix"; then | |
7183 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7184 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7187 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
7188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7189 | else | |
7190 | if test -n "$OTOOL64"; then | |
7191 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7192 | else | |
7193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7194 | for as_dir in $PATH | |
7195 | do | |
7196 | IFS=$as_save_IFS | |
7197 | test -z "$as_dir" && as_dir=. | |
7198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7200 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7202 | break 2 | |
7203 | fi | |
7204 | done | |
7205 | done | |
7206 | ||
7207 | fi | |
7208 | fi | |
7209 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7210 | if test -n "$OTOOL64"; then | |
7211 | echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
7212 | echo "${ECHO_T}$OTOOL64" >&6 | |
7213 | else | |
7214 | echo "$as_me:$LINENO: result: no" >&5 | |
7215 | echo "${ECHO_T}no" >&6 | |
7216 | fi | |
7217 | ||
7218 | fi | |
7219 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7220 | ac_ct_OTOOL64=$OTOOL64 | |
7221 | # Extract the first word of "otool64", so it can be a program name with args. | |
7222 | set dummy otool64; ac_word=$2 | |
7223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7225 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
7226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7227 | else | |
7228 | if test -n "$ac_ct_OTOOL64"; then | |
7229 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7230 | else | |
7231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7232 | for as_dir in $PATH | |
7233 | do | |
7234 | IFS=$as_save_IFS | |
7235 | test -z "$as_dir" && as_dir=. | |
7236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7238 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7240 | break 2 | |
7241 | fi | |
7242 | done | |
7243 | done | |
7244 | ||
7245 | test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":" | |
7246 | fi | |
7247 | fi | |
7248 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7249 | if test -n "$ac_ct_OTOOL64"; then | |
7250 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
7251 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6 | |
7252 | else | |
7253 | echo "$as_me:$LINENO: result: no" >&5 | |
7254 | echo "${ECHO_T}no" >&6 | |
7255 | fi | |
7256 | ||
7257 | OTOOL64=$ac_ct_OTOOL64 | |
7258 | else | |
7259 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7260 | fi | |
7261 | ||
7262 | ||
7263 | ||
7264 | ||
7265 | ||
7266 | ||
7267 | ||
7268 | ||
7269 | ||
7270 | ||
7271 | ||
7272 | ||
7273 | ||
7274 | ||
7275 | ||
7276 | ||
7277 | ||
7278 | ||
7279 | ||
7280 | ||
7281 | ||
7282 | ||
7283 | ||
7284 | ||
7285 | ||
7286 | ||
7287 | ||
7288 | echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
7289 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 | |
7290 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
7291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7292 | else | |
7293 | lt_cv_apple_cc_single_mod=no | |
7294 | if test -z "${LT_MULTI_MODULE}"; then | |
7295 | # By default we will add the -single_module flag. You can override | |
7296 | # by either setting the environment variable LT_MULTI_MODULE | |
7297 | # non-empty at configure time, or by adding -multi_module to the | |
7298 | # link flags. | |
7299 | rm -rf libconftest.dylib* | |
7300 | echo "int foo(void){return 1;}" > conftest.c | |
7301 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7302 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7303 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7304 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7305 | _lt_result=$? | |
7306 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7307 | lt_cv_apple_cc_single_mod=yes | |
7308 | else | |
7309 | cat conftest.err >&5 | |
7310 | fi | |
7311 | rm -rf libconftest.dylib* | |
7312 | rm -f conftest.* | |
7313 | fi | |
7314 | fi | |
7315 | echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
7316 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 | |
7317 | echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
7318 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 | |
7319 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
7320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7321 | else | |
7322 | lt_cv_ld_exported_symbols_list=no | |
7323 | save_LDFLAGS=$LDFLAGS | |
7324 | echo "_main" > conftest.sym | |
7325 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7326 | cat >conftest.$ac_ext <<_ACEOF | |
7327 | /* confdefs.h. */ | |
7328 | _ACEOF | |
7329 | cat confdefs.h >>conftest.$ac_ext | |
7330 | cat >>conftest.$ac_ext <<_ACEOF | |
7331 | /* end confdefs.h. */ | |
7332 | ||
7333 | int | |
7334 | main () | |
7335 | { | |
7336 | ||
7337 | ; | |
7338 | return 0; | |
7339 | } | |
7340 | _ACEOF | |
7341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7343 | (eval $ac_link) 2>conftest.er1 | |
7344 | ac_status=$? | |
7345 | grep -v '^ *+' conftest.er1 >conftest.err | |
7346 | rm -f conftest.er1 | |
7347 | cat conftest.err >&5 | |
7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7349 | (exit $ac_status); } && | |
7350 | { ac_try='test -z "$ac_c_werror_flag" | |
7351 | || test ! -s conftest.err' | |
7352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7353 | (eval $ac_try) 2>&5 | |
7354 | ac_status=$? | |
7355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7356 | (exit $ac_status); }; } && | |
7357 | { ac_try='test -s conftest$ac_exeext' | |
7358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7359 | (eval $ac_try) 2>&5 | |
7360 | ac_status=$? | |
7361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7362 | (exit $ac_status); }; }; then | |
7363 | lt_cv_ld_exported_symbols_list=yes | |
7364 | else | |
7365 | echo "$as_me: failed program was:" >&5 | |
7366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7367 | ||
7368 | lt_cv_ld_exported_symbols_list=no | |
7369 | fi | |
7370 | rm -f conftest.err conftest.$ac_objext \ | |
7371 | conftest$ac_exeext conftest.$ac_ext | |
7372 | LDFLAGS="$save_LDFLAGS" | |
7373 | ||
7374 | fi | |
7375 | echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7376 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 | |
7377 | case $host_os in | |
7378 | rhapsody* | darwin1.[012]) | |
7379 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7380 | darwin1.*) | |
7381 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7382 | darwin*) # darwin 5.x on | |
7383 | # if running on 10.5 or later, the deployment target defaults | |
7384 | # to the OS version, if on x86, and 10.4, the deployment | |
7385 | # target defaults to 10.4. Don't you love it? | |
7386 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7387 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7388 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7389 | 10.[012]*) | |
7390 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7391 | 10.*) | |
7392 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7393 | esac | |
7394 | ;; | |
7395 | esac | |
7396 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7397 | _lt_dar_single_mod='$single_module' | |
7398 | fi | |
7399 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7400 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7401 | else | |
7402 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7403 | fi | |
7404 | if test "$DSYMUTIL" != ":"; then | |
7405 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7406 | else | |
7407 | _lt_dsymutil= | |
7408 | fi | |
7409 | ;; | |
7410 | esac | |
7411 | ||
7412 | ||
7413 | for ac_header in dlfcn.h | |
7414 | do | |
7415 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7416 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7420 | else | |
7421 | cat >conftest.$ac_ext <<_ACEOF | |
7422 | /* confdefs.h. */ | |
7423 | _ACEOF | |
7424 | cat confdefs.h >>conftest.$ac_ext | |
7425 | cat >>conftest.$ac_ext <<_ACEOF | |
7426 | /* end confdefs.h. */ | |
7427 | $ac_includes_default | |
7428 | ||
7429 | #include <$ac_header> | |
7430 | _ACEOF | |
7431 | rm -f conftest.$ac_objext | |
7432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7433 | (eval $ac_compile) 2>conftest.er1 | |
7434 | ac_status=$? | |
7435 | grep -v '^ *+' conftest.er1 >conftest.err | |
7436 | rm -f conftest.er1 | |
7437 | cat conftest.err >&5 | |
7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7439 | (exit $ac_status); } && | |
7440 | { ac_try='test -z "$ac_c_werror_flag" | |
7441 | || test ! -s conftest.err' | |
7442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7443 | (eval $ac_try) 2>&5 | |
7444 | ac_status=$? | |
7445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7446 | (exit $ac_status); }; } && | |
7447 | { ac_try='test -s conftest.$ac_objext' | |
7448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7449 | (eval $ac_try) 2>&5 | |
7450 | ac_status=$? | |
7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7452 | (exit $ac_status); }; }; then | |
7453 | eval "$as_ac_Header=yes" | |
7454 | else | |
7455 | echo "$as_me: failed program was:" >&5 | |
7456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7457 | ||
7458 | eval "$as_ac_Header=no" | |
7459 | fi | |
7460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7461 | fi | |
7462 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7463 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7465 | cat >>confdefs.h <<_ACEOF | |
7466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7467 | _ACEOF | |
7468 | ||
7469 | fi | |
7470 | ||
7471 | done | |
7472 | ||
7473 | ||
7474 | ||
7475 | # Set options | |
7476 | ||
7477 | ||
7478 | ||
7479 | enable_dlopen=no | |
7480 | ||
7481 | ||
7482 | enable_win32_dll=no | |
7483 | ||
7484 | ||
7485 | # Check whether --enable-shared or --disable-shared was given. | |
7486 | if test "${enable_shared+set}" = set; then | |
7487 | enableval="$enable_shared" | |
7488 | p=${PACKAGE-default} | |
7489 | case $enableval in | |
7490 | yes) enable_shared=yes ;; | |
7491 | no) enable_shared=no ;; | |
7492 | *) | |
7493 | enable_shared=no | |
7494 | # Look at the argument we got. We use all the common list separators. | |
7495 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7496 | for pkg in $enableval; do | |
7497 | IFS="$lt_save_ifs" | |
7498 | if test "X$pkg" = "X$p"; then | |
7499 | enable_shared=yes | |
7500 | fi | |
7501 | done | |
7502 | IFS="$lt_save_ifs" | |
7503 | ;; | |
7504 | esac | |
7505 | else | |
7506 | enable_shared=yes | |
7507 | fi; | |
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | # Check whether --enable-static or --disable-static was given. | |
7517 | if test "${enable_static+set}" = set; then | |
7518 | enableval="$enable_static" | |
7519 | p=${PACKAGE-default} | |
7520 | case $enableval in | |
7521 | yes) enable_static=yes ;; | |
7522 | no) enable_static=no ;; | |
7523 | *) | |
7524 | enable_static=no | |
7525 | # Look at the argument we got. We use all the common list separators. | |
7526 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7527 | for pkg in $enableval; do | |
7528 | IFS="$lt_save_ifs" | |
7529 | if test "X$pkg" = "X$p"; then | |
7530 | enable_static=yes | |
7531 | fi | |
7532 | done | |
7533 | IFS="$lt_save_ifs" | |
7534 | ;; | |
7535 | esac | |
7536 | else | |
7537 | enable_static=yes | |
7538 | fi; | |
7539 | ||
7540 | ||
d7040cdb | 7541 | |
d7040cdb | 7542 | |
718a6fd8 SE |
7543 | |
7544 | ||
7545 | ||
7546 | ||
7547 | ||
7548 | # Check whether --with-pic or --without-pic was given. | |
7549 | if test "${with_pic+set}" = set; then | |
7550 | withval="$with_pic" | |
7551 | pic_mode="$withval" | |
ce2cded5 | 7552 | else |
718a6fd8 SE |
7553 | pic_mode=default |
7554 | fi; | |
d7040cdb | 7555 | |
718a6fd8 SE |
7556 | test -z "$pic_mode" && pic_mode=default |
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
7565 | if test "${enable_fast_install+set}" = set; then | |
7566 | enableval="$enable_fast_install" | |
7567 | p=${PACKAGE-default} | |
7568 | case $enableval in | |
7569 | yes) enable_fast_install=yes ;; | |
7570 | no) enable_fast_install=no ;; | |
7571 | *) | |
7572 | enable_fast_install=no | |
7573 | # Look at the argument we got. We use all the common list separators. | |
7574 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7575 | for pkg in $enableval; do | |
7576 | IFS="$lt_save_ifs" | |
7577 | if test "X$pkg" = "X$p"; then | |
7578 | enable_fast_install=yes | |
7579 | fi | |
7580 | done | |
7581 | IFS="$lt_save_ifs" | |
7582 | ;; | |
7583 | esac | |
ce2cded5 | 7584 | else |
718a6fd8 SE |
7585 | enable_fast_install=yes |
7586 | fi; | |
7587 | ||
7588 | ||
7589 | ||
7590 | ||
d7040cdb | 7591 | |
d7040cdb | 7592 | |
d7040cdb | 7593 | |
d7040cdb | 7594 | |
d7040cdb | 7595 | |
d7040cdb | 7596 | |
ce2cded5 L |
7597 | # This can be used to rebuild libtool when needed |
7598 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7599 | |
ce2cded5 L |
7600 | # Always use our own libtool. |
7601 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7602 | |
d7040cdb | 7603 | |
d7040cdb | 7604 | |
d7040cdb SE |
7605 | |
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
d7040cdb | 7611 | |
d7040cdb | 7612 | |
ab509236 | 7613 | |
ab509236 | 7614 | |
d7040cdb SE |
7615 | |
7616 | ||
7617 | ||
7618 | ||
7619 | ||
13b2be9c | 7620 | |
13b2be9c | 7621 | |
13b2be9c | 7622 | |
13b2be9c | 7623 | |
d7040cdb SE |
7624 | |
7625 | ||
7626 | ||
ce2cded5 | 7627 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7628 | |
7629 | ||
d7040cdb | 7630 | |
d7040cdb | 7631 | |
d7040cdb SE |
7632 | |
7633 | ||
7634 | ||
7635 | ||
7636 | ||
7637 | ||
ce2cded5 L |
7638 | |
7639 | ||
7640 | ||
7641 | ||
7642 | if test -n "${ZSH_VERSION+set}" ; then | |
7643 | setopt NO_GLOB_SUBST | |
7644 | fi | |
7645 | ||
7646 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
7647 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
7648 | if test "${lt_cv_objdir+set}" = set; then | |
d7040cdb SE |
7649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7650 | else | |
ce2cded5 L |
7651 | rm -f .libs 2>/dev/null |
7652 | mkdir .libs 2>/dev/null | |
7653 | if test -d .libs; then | |
7654 | lt_cv_objdir=.libs | |
7655 | else | |
7656 | # MS-DOS does not allow filenames that begin with a dot. | |
7657 | lt_cv_objdir=_libs | |
d7040cdb | 7658 | fi |
ce2cded5 L |
7659 | rmdir .libs 2>/dev/null |
7660 | fi | |
7661 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7662 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
7663 | objdir=$lt_cv_objdir | |
d7040cdb SE |
7664 | |
7665 | ||
7666 | ||
7667 | ||
d7040cdb | 7668 | |
ce2cded5 L |
7669 | cat >>confdefs.h <<_ACEOF |
7670 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7671 | _ACEOF | |
d7040cdb SE |
7672 | |
7673 | ||
7674 | ||
7675 | ||
7676 | ||
d7040cdb | 7677 | |
d7040cdb | 7678 | |
d7040cdb | 7679 | |
d7040cdb | 7680 | |
d7040cdb | 7681 | |
d7040cdb | 7682 | |
d7040cdb | 7683 | |
d7040cdb | 7684 | |
d7040cdb | 7685 | |
d7040cdb | 7686 | |
d7040cdb | 7687 | |
d7040cdb | 7688 | |
ce2cded5 L |
7689 | case $host_os in |
7690 | aix3*) | |
7691 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7692 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7693 | # vanish in a puff of smoke. | |
7694 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7695 | COLLECT_NAMES= | |
7696 | export COLLECT_NAMES | |
7697 | fi | |
7698 | ;; | |
7699 | esac | |
d7040cdb | 7700 | |
ce2cded5 L |
7701 | # Sed substitution that helps us do robust quoting. It backslashifies |
7702 | # metacharacters that are still active within double-quoted strings. | |
7703 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 7704 | |
ce2cded5 L |
7705 | # Same as above, but do not quote variable references. |
7706 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 7707 | |
ce2cded5 L |
7708 | # Sed substitution to delay expansion of an escaped shell variable in a |
7709 | # double_quote_subst'ed string. | |
7710 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 7711 | |
ce2cded5 L |
7712 | # Sed substitution to delay expansion of an escaped single quote. |
7713 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 7714 | |
ce2cded5 L |
7715 | # Sed substitution to avoid accidental globbing in evaled expressions |
7716 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 7717 | |
ce2cded5 L |
7718 | # Global variables: |
7719 | ofile=libtool | |
7720 | can_build_shared=yes | |
d7040cdb | 7721 | |
ce2cded5 L |
7722 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7723 | # which needs '.lib'). | |
7724 | libext=a | |
d7040cdb | 7725 | |
ce2cded5 | 7726 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7727 | |
ce2cded5 L |
7728 | old_CC="$CC" |
7729 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7730 | |
ce2cded5 L |
7731 | # Set sane defaults for various variables |
7732 | test -z "$CC" && CC=cc | |
7733 | test -z "$LTCC" && LTCC=$CC | |
7734 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7735 | test -z "$LD" && LD=ld | |
7736 | test -z "$ac_objext" && ac_objext=o | |
7737 | ||
7738 | for cc_temp in $compiler""; do | |
7739 | case $cc_temp in | |
7740 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7741 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7742 | \-*) ;; | |
7743 | *) break;; | |
7744 | esac | |
7745 | done | |
7746 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7747 | ||
7748 | ||
7749 | # Only perform the check for file, if the check method requires it | |
7750 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7751 | case $deplibs_check_method in | |
7752 | file_magic*) | |
7753 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7754 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7755 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
7756 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7758 | else | |
7759 | case $MAGIC_CMD in | |
7760 | [\\/*] | ?:[\\/]*) | |
7761 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7762 | ;; | |
7763 | *) | |
7764 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7765 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7766 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7767 | for ac_dir in $ac_dummy; do | |
7768 | IFS="$lt_save_ifs" | |
7769 | test -z "$ac_dir" && ac_dir=. | |
7770 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7771 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7772 | if test -n "$file_magic_test_file"; then | |
7773 | case $deplibs_check_method in | |
7774 | "file_magic "*) | |
7775 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7776 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7777 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7778 | $EGREP "$file_magic_regex" > /dev/null; then | |
7779 | : | |
d7040cdb | 7780 | else |
ce2cded5 | 7781 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7782 | |
ce2cded5 L |
7783 | *** Warning: the command libtool uses to detect shared libraries, |
7784 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7785 | *** The result is that libtool may fail to recognize shared libraries | |
7786 | *** as such. This will affect the creation of libtool libraries that | |
7787 | *** depend on shared libraries, but programs linked with such libtool | |
7788 | *** libraries will work regardless of this problem. Nevertheless, you | |
7789 | *** may want to report the problem to your system manager and/or to | |
7790 | *** bug-libtool@gnu.org | |
d7040cdb | 7791 | |
ce2cded5 L |
7792 | _LT_EOF |
7793 | fi ;; | |
7794 | esac | |
d7040cdb | 7795 | fi |
ce2cded5 | 7796 | break |
d7040cdb | 7797 | fi |
ce2cded5 L |
7798 | done |
7799 | IFS="$lt_save_ifs" | |
7800 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7801 | ;; | |
7802 | esac | |
7803 | fi | |
d7040cdb | 7804 | |
ce2cded5 L |
7805 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7806 | if test -n "$MAGIC_CMD"; then | |
7807 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7808 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
7809 | else | |
7810 | echo "$as_me:$LINENO: result: no" >&5 | |
7811 | echo "${ECHO_T}no" >&6 | |
7812 | fi | |
d7040cdb | 7813 | |
d7040cdb | 7814 | |
d7040cdb | 7815 | |
d7040cdb | 7816 | |
d7040cdb | 7817 | |
ce2cded5 L |
7818 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7819 | if test -n "$ac_tool_prefix"; then | |
7820 | echo "$as_me:$LINENO: checking for file" >&5 | |
7821 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
7822 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7824 | else | |
7825 | case $MAGIC_CMD in | |
7826 | [\\/*] | ?:[\\/]*) | |
7827 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7828 | ;; | |
7829 | *) | |
7830 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7831 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7832 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7833 | for ac_dir in $ac_dummy; do | |
7834 | IFS="$lt_save_ifs" | |
7835 | test -z "$ac_dir" && ac_dir=. | |
7836 | if test -f $ac_dir/file; then | |
7837 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7838 | if test -n "$file_magic_test_file"; then | |
7839 | case $deplibs_check_method in | |
7840 | "file_magic "*) | |
7841 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7842 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7843 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7844 | $EGREP "$file_magic_regex" > /dev/null; then | |
7845 | : | |
d7040cdb | 7846 | else |
ce2cded5 L |
7847 | cat <<_LT_EOF 1>&2 |
7848 | ||
7849 | *** Warning: the command libtool uses to detect shared libraries, | |
7850 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7851 | *** The result is that libtool may fail to recognize shared libraries | |
7852 | *** as such. This will affect the creation of libtool libraries that | |
7853 | *** depend on shared libraries, but programs linked with such libtool | |
7854 | *** libraries will work regardless of this problem. Nevertheless, you | |
7855 | *** may want to report the problem to your system manager and/or to | |
7856 | *** bug-libtool@gnu.org | |
7857 | ||
7858 | _LT_EOF | |
7859 | fi ;; | |
d7040cdb | 7860 | esac |
d7040cdb | 7861 | fi |
ce2cded5 L |
7862 | break |
7863 | fi | |
7864 | done | |
7865 | IFS="$lt_save_ifs" | |
7866 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7867 | ;; | |
7868 | esac | |
7869 | fi | |
d7040cdb | 7870 | |
ce2cded5 L |
7871 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7872 | if test -n "$MAGIC_CMD"; then | |
7873 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7874 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
7875 | else | |
7876 | echo "$as_me:$LINENO: result: no" >&5 | |
7877 | echo "${ECHO_T}no" >&6 | |
7878 | fi | |
d7040cdb | 7879 | |
d7040cdb | 7880 | |
ce2cded5 L |
7881 | else |
7882 | MAGIC_CMD=: | |
7883 | fi | |
d7040cdb | 7884 | fi |
d7040cdb | 7885 | |
ce2cded5 L |
7886 | fi |
7887 | ;; | |
7888 | esac | |
d7040cdb | 7889 | |
ce2cded5 | 7890 | # Use C for the default configuration in the libtool script |
d7040cdb | 7891 | |
ce2cded5 L |
7892 | lt_save_CC="$CC" |
7893 | ac_ext=c | |
7894 | ac_cpp='$CPP $CPPFLAGS' | |
7895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7898 | |
d7040cdb | 7899 | |
ce2cded5 L |
7900 | # Source file extension for C test sources. |
7901 | ac_ext=c | |
d7040cdb | 7902 | |
ce2cded5 L |
7903 | # Object file extension for compiled C test sources. |
7904 | objext=o | |
7905 | objext=$objext | |
d7040cdb | 7906 | |
ce2cded5 L |
7907 | # Code to be used in simple compile tests |
7908 | lt_simple_compile_test_code="int some_variable = 0;" | |
7909 | ||
7910 | # Code to be used in simple link tests | |
7911 | lt_simple_link_test_code='int main(){return(0);}' | |
7912 | ||
7913 | ||
7914 | ||
7915 | ||
7916 | ||
7917 | ||
7918 | ||
7919 | # If no C compiler was specified, use CC. | |
7920 | LTCC=${LTCC-"$CC"} | |
7921 | ||
7922 | # If no C compiler flags were specified, use CFLAGS. | |
7923 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7924 | ||
7925 | # Allow CC to be a program name with arguments. | |
7926 | compiler=$CC | |
7927 | ||
7928 | # Save the default compiler, since it gets overwritten when the other | |
7929 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7930 | compiler_DEFAULT=$CC | |
7931 | ||
7932 | # save warnings/boilerplate of simple test code | |
7933 | ac_outfile=conftest.$ac_objext | |
7934 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7935 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7936 | _lt_compiler_boilerplate=`cat conftest.err` | |
7937 | $RM conftest* | |
7938 | ||
7939 | ac_outfile=conftest.$ac_objext | |
7940 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7941 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7942 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 7943 | $RM -r conftest* |
ce2cded5 L |
7944 | |
7945 | ||
7946 | ## CAVEAT EMPTOR: | |
7947 | ## There is no encapsulation within the following macros, do not change | |
7948 | ## the running order or otherwise move them around unless you know exactly | |
7949 | ## what you are doing... | |
7950 | if test -n "$compiler"; then | |
7951 | ||
7952 | lt_prog_compiler_no_builtin_flag= | |
7953 | ||
7954 | if test "$GCC" = yes; then | |
7955 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7956 | ||
7957 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7958 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
7959 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7961 | else | |
7962 | lt_cv_prog_compiler_rtti_exceptions=no | |
7963 | ac_outfile=conftest.$ac_objext | |
7964 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7965 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7966 | # Insert the option either (1) after the last *FLAGS variable, or | |
7967 | # (2) before a word containing "conftest.", or (3) at the end. | |
7968 | # Note that $ac_compile itself does not contain backslashes and begins | |
7969 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7970 | # The option is referenced via a variable to avoid confusing sed. | |
7971 | lt_compile=`echo "$ac_compile" | $SED \ | |
7972 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7973 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7974 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 7975 | (eval echo "\"\$as_me:7975: $lt_compile\"" >&5) |
ce2cded5 L |
7976 | (eval "$lt_compile" 2>conftest.err) |
7977 | ac_status=$? | |
7978 | cat conftest.err >&5 | |
29670fb9 | 7979 | echo "$as_me:7979: \$? = $ac_status" >&5 |
ce2cded5 L |
7980 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7981 | # The compiler can only warn and ignore the option if not recognized | |
7982 | # So say no if there are warnings other than the usual output. | |
7983 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7984 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7985 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7986 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7987 | fi | |
7988 | fi | |
7989 | $RM conftest* | |
7990 | ||
7991 | fi | |
7992 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7993 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
7994 | ||
7995 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7996 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7997 | else | |
7998 | : | |
7999 | fi | |
8000 | ||
8001 | fi | |
8002 | ||
8003 | ||
8004 | ||
8005 | ||
8006 | ||
8007 | ||
8008 | lt_prog_compiler_wl= | |
8009 | lt_prog_compiler_pic= | |
8010 | lt_prog_compiler_static= | |
8011 | ||
8012 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
8013 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
8014 | ||
8015 | if test "$GCC" = yes; then | |
8016 | lt_prog_compiler_wl='-Wl,' | |
8017 | lt_prog_compiler_static='-static' | |
8018 | ||
8019 | case $host_os in | |
8020 | aix*) | |
8021 | # All AIX code is PIC. | |
8022 | if test "$host_cpu" = ia64; then | |
8023 | # AIX 5 now supports IA64 processor | |
8024 | lt_prog_compiler_static='-Bstatic' | |
8025 | fi | |
8026 | ;; | |
d7040cdb SE |
8027 | |
8028 | amigaos*) | |
718a6fd8 SE |
8029 | case $host_cpu in |
8030 | powerpc) | |
8031 | # see comment about AmigaOS4 .so support | |
8032 | lt_prog_compiler_pic='-fPIC' | |
8033 | ;; | |
8034 | m68k) | |
8035 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8036 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8037 | # like `-m68040'. | |
8038 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8039 | ;; | |
8040 | esac | |
d7040cdb SE |
8041 | ;; |
8042 | ||
ce2cded5 L |
8043 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8044 | # PIC is the default for these OSes. | |
d7040cdb SE |
8045 | ;; |
8046 | ||
718a6fd8 | 8047 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8048 | # This hack is so that the source file can tell whether it is being |
8049 | # built for inclusion in a dll (and should export symbols for example). | |
8050 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8051 | # (--disable-auto-import) libraries | |
8052 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8053 | ;; |
8054 | ||
8055 | darwin* | rhapsody*) | |
ce2cded5 L |
8056 | # PIC is the default on this platform |
8057 | # Common symbols not allowed in MH_DYLIB files | |
8058 | lt_prog_compiler_pic='-fno-common' | |
8059 | ;; | |
8060 | ||
8061 | hpux*) | |
718a6fd8 SE |
8062 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8063 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8064 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8065 | case $host_cpu in |
718a6fd8 | 8066 | hppa*64*) |
ce2cded5 | 8067 | # +Z the default |
d7040cdb | 8068 | ;; |
ce2cded5 L |
8069 | *) |
8070 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
8071 | ;; |
8072 | esac | |
ce2cded5 | 8073 | ;; |
d7040cdb | 8074 | |
ce2cded5 L |
8075 | interix[3-9]*) |
8076 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8077 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
8078 | ;; |
8079 | ||
ce2cded5 L |
8080 | msdosdjgpp*) |
8081 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8082 | # on systems that don't support them. | |
8083 | lt_prog_compiler_can_build_shared=no | |
8084 | enable_shared=no | |
d7040cdb SE |
8085 | ;; |
8086 | ||
ce2cded5 L |
8087 | *nto* | *qnx*) |
8088 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8089 | # it will coredump. | |
8090 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8091 | ;; |
8092 | ||
ce2cded5 L |
8093 | sysv4*MP*) |
8094 | if test -d /usr/nec; then | |
8095 | lt_prog_compiler_pic=-Kconform_pic | |
8096 | fi | |
d7040cdb SE |
8097 | ;; |
8098 | ||
ce2cded5 L |
8099 | *) |
8100 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 8101 | ;; |
ce2cded5 L |
8102 | esac |
8103 | else | |
8104 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8105 | case $host_os in | |
8106 | aix*) | |
8107 | lt_prog_compiler_wl='-Wl,' | |
8108 | if test "$host_cpu" = ia64; then | |
8109 | # AIX 5 now supports IA64 processor | |
8110 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 8111 | else |
ce2cded5 | 8112 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 8113 | fi |
ce2cded5 | 8114 | ;; |
d7040cdb | 8115 | |
718a6fd8 | 8116 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8117 | # This hack is so that the source file can tell whether it is being |
8118 | # built for inclusion in a dll (and should export symbols for example). | |
8119 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8120 | ;; |
8121 | ||
ce2cded5 L |
8122 | hpux9* | hpux10* | hpux11*) |
8123 | lt_prog_compiler_wl='-Wl,' | |
8124 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8125 | # not for PA HP-UX. | |
8126 | case $host_cpu in | |
8127 | hppa*64*|ia64*) | |
8128 | # +Z the default | |
8129 | ;; | |
8130 | *) | |
8131 | lt_prog_compiler_pic='+Z' | |
8132 | ;; | |
8133 | esac | |
8134 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8135 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
8136 | ;; |
8137 | ||
ce2cded5 L |
8138 | irix5* | irix6* | nonstopux*) |
8139 | lt_prog_compiler_wl='-Wl,' | |
8140 | # PIC (with -KPIC) is the default. | |
8141 | lt_prog_compiler_static='-non_shared' | |
8142 | ;; | |
d7040cdb | 8143 | |
58e24671 | 8144 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8145 | case $cc_basename in |
718a6fd8 SE |
8146 | # old Intel for x86_64 which still supported -KPIC. |
8147 | ecc*) | |
ce2cded5 L |
8148 | lt_prog_compiler_wl='-Wl,' |
8149 | lt_prog_compiler_pic='-KPIC' | |
8150 | lt_prog_compiler_static='-static' | |
8151 | ;; | |
718a6fd8 SE |
8152 | # icc used to be incompatible with GCC. |
8153 | # ICC 10 doesn't accept -KPIC any more. | |
8154 | icc* | ifort*) | |
8155 | lt_prog_compiler_wl='-Wl,' | |
8156 | lt_prog_compiler_pic='-fPIC' | |
8157 | lt_prog_compiler_static='-static' | |
8158 | ;; | |
8159 | # Lahey Fortran 8.1. | |
8160 | lf95*) | |
8161 | lt_prog_compiler_wl='-Wl,' | |
8162 | lt_prog_compiler_pic='--shared' | |
8163 | lt_prog_compiler_static='--static' | |
8164 | ;; | |
ce2cded5 L |
8165 | pgcc* | pgf77* | pgf90* | pgf95*) |
8166 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8167 | # which looks to be a dead project) | |
8168 | lt_prog_compiler_wl='-Wl,' | |
8169 | lt_prog_compiler_pic='-fpic' | |
8170 | lt_prog_compiler_static='-Bstatic' | |
8171 | ;; | |
8172 | ccc*) | |
8173 | lt_prog_compiler_wl='-Wl,' | |
8174 | # All Alpha code is PIC. | |
8175 | lt_prog_compiler_static='-non_shared' | |
8176 | ;; | |
718a6fd8 SE |
8177 | xl*) |
8178 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8179 | lt_prog_compiler_wl='-Wl,' | |
8180 | lt_prog_compiler_pic='-qpic' | |
8181 | lt_prog_compiler_static='-qstaticlink' | |
8182 | ;; | |
ce2cded5 L |
8183 | *) |
8184 | case `$CC -V 2>&1 | sed 5q` in | |
8185 | *Sun\ C*) | |
8186 | # Sun C 5.9 | |
8187 | lt_prog_compiler_pic='-KPIC' | |
8188 | lt_prog_compiler_static='-Bstatic' | |
8189 | lt_prog_compiler_wl='-Wl,' | |
d7040cdb | 8190 | ;; |
ce2cded5 L |
8191 | *Sun\ F*) |
8192 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8193 | lt_prog_compiler_pic='-KPIC' | |
8194 | lt_prog_compiler_static='-Bstatic' | |
8195 | lt_prog_compiler_wl='' | |
d7040cdb SE |
8196 | ;; |
8197 | esac | |
ce2cded5 L |
8198 | ;; |
8199 | esac | |
d7040cdb SE |
8200 | ;; |
8201 | ||
ce2cded5 L |
8202 | newsos6) |
8203 | lt_prog_compiler_pic='-KPIC' | |
8204 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8205 | ;; |
8206 | ||
ce2cded5 L |
8207 | *nto* | *qnx*) |
8208 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8209 | # it will coredump. | |
8210 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8211 | ;; |
8212 | ||
ce2cded5 L |
8213 | osf3* | osf4* | osf5*) |
8214 | lt_prog_compiler_wl='-Wl,' | |
8215 | # All OSF/1 code is PIC. | |
8216 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8217 | ;; |
8218 | ||
ce2cded5 L |
8219 | rdos*) |
8220 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8221 | ;; |
8222 | ||
8223 | solaris*) | |
ce2cded5 L |
8224 | lt_prog_compiler_pic='-KPIC' |
8225 | lt_prog_compiler_static='-Bstatic' | |
8226 | case $cc_basename in | |
8227 | f77* | f90* | f95*) | |
8228 | lt_prog_compiler_wl='-Qoption ld ';; | |
d7040cdb | 8229 | *) |
ce2cded5 | 8230 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 8231 | esac |
d7040cdb SE |
8232 | ;; |
8233 | ||
8234 | sunos4*) | |
ce2cded5 L |
8235 | lt_prog_compiler_wl='-Qoption ld ' |
8236 | lt_prog_compiler_pic='-PIC' | |
8237 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8238 | ;; |
8239 | ||
ce2cded5 L |
8240 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8241 | lt_prog_compiler_wl='-Wl,' | |
8242 | lt_prog_compiler_pic='-KPIC' | |
8243 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8244 | ;; |
8245 | ||
8246 | sysv4*MP*) | |
ce2cded5 L |
8247 | if test -d /usr/nec ;then |
8248 | lt_prog_compiler_pic='-Kconform_pic' | |
8249 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8250 | fi |
8251 | ;; | |
8252 | ||
ce2cded5 L |
8253 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8254 | lt_prog_compiler_wl='-Wl,' | |
8255 | lt_prog_compiler_pic='-KPIC' | |
8256 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8257 | ;; |
8258 | ||
ce2cded5 L |
8259 | unicos*) |
8260 | lt_prog_compiler_wl='-Wl,' | |
8261 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
8262 | ;; |
8263 | ||
8264 | uts4*) | |
ce2cded5 L |
8265 | lt_prog_compiler_pic='-pic' |
8266 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8267 | ;; |
8268 | ||
8269 | *) | |
ce2cded5 | 8270 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
8271 | ;; |
8272 | esac | |
d7040cdb SE |
8273 | fi |
8274 | ||
ce2cded5 L |
8275 | case $host_os in |
8276 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8277 | *djgpp*) | |
8278 | lt_prog_compiler_pic= | |
8279 | ;; | |
8280 | *) | |
8281 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8282 | ;; | |
8283 | esac | |
8284 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
8285 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
d7040cdb SE |
8286 | |
8287 | ||
8288 | ||
8289 | ||
8290 | ||
8291 | ||
8292 | # | |
ce2cded5 | 8293 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8294 | # |
ce2cded5 L |
8295 | if test -n "$lt_prog_compiler_pic"; then |
8296 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8297 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
718a6fd8 | 8298 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
ce2cded5 L |
8299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8300 | else | |
718a6fd8 | 8301 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8302 | ac_outfile=conftest.$ac_objext |
8303 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8304 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8305 | # Insert the option either (1) after the last *FLAGS variable, or | |
8306 | # (2) before a word containing "conftest.", or (3) at the end. | |
8307 | # Note that $ac_compile itself does not contain backslashes and begins | |
8308 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8309 | # The option is referenced via a variable to avoid confusing sed. | |
8310 | lt_compile=`echo "$ac_compile" | $SED \ | |
8311 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8312 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8313 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8314 | (eval echo "\"\$as_me:8314: $lt_compile\"" >&5) |
ce2cded5 L |
8315 | (eval "$lt_compile" 2>conftest.err) |
8316 | ac_status=$? | |
8317 | cat conftest.err >&5 | |
29670fb9 | 8318 | echo "$as_me:8318: \$? = $ac_status" >&5 |
ce2cded5 L |
8319 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8320 | # The compiler can only warn and ignore the option if not recognized | |
8321 | # So say no if there are warnings other than the usual output. | |
8322 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8323 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8324 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8325 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
8326 | fi |
8327 | fi | |
8328 | $RM conftest* | |
d7040cdb | 8329 | |
ce2cded5 | 8330 | fi |
718a6fd8 SE |
8331 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
8332 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 | |
d7040cdb | 8333 | |
718a6fd8 | 8334 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
8335 | case $lt_prog_compiler_pic in |
8336 | "" | " "*) ;; | |
8337 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8338 | esac | |
8339 | else | |
8340 | lt_prog_compiler_pic= | |
8341 | lt_prog_compiler_can_build_shared=no | |
8342 | fi | |
d7040cdb | 8343 | |
ce2cded5 | 8344 | fi |
d7040cdb SE |
8345 | |
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
ce2cded5 L |
8351 | # |
8352 | # Check to make sure the static flag actually works. | |
8353 | # | |
8354 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8355 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8356 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
718a6fd8 | 8357 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
ce2cded5 L |
8358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8359 | else | |
718a6fd8 | 8360 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
8361 | save_LDFLAGS="$LDFLAGS" |
8362 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8363 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8364 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8365 | # The linker can only warn and ignore the option if not recognized | |
8366 | # So say no if there are warnings | |
8367 | if test -s conftest.err; then | |
8368 | # Append any errors to the config.log. | |
8369 | cat conftest.err 1>&5 | |
8370 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8371 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8372 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8373 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8374 | fi |
8375 | else | |
718a6fd8 | 8376 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8377 | fi |
8378 | fi | |
718a6fd8 | 8379 | $RM -r conftest* |
ce2cded5 | 8380 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8381 | |
ce2cded5 | 8382 | fi |
718a6fd8 SE |
8383 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
8384 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 | |
d7040cdb | 8385 | |
718a6fd8 | 8386 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
8387 | : |
8388 | else | |
8389 | lt_prog_compiler_static= | |
8390 | fi | |
d7040cdb SE |
8391 | |
8392 | ||
8393 | ||
8394 | ||
8395 | ||
8396 | ||
8397 | ||
ce2cded5 L |
8398 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8399 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
8400 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8402 | else | |
8403 | lt_cv_prog_compiler_c_o=no | |
8404 | $RM -r conftest 2>/dev/null | |
8405 | mkdir conftest | |
8406 | cd conftest | |
8407 | mkdir out | |
8408 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8409 | |
ce2cded5 L |
8410 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8411 | # Insert the option either (1) after the last *FLAGS variable, or | |
8412 | # (2) before a word containing "conftest.", or (3) at the end. | |
8413 | # Note that $ac_compile itself does not contain backslashes and begins | |
8414 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8415 | lt_compile=`echo "$ac_compile" | $SED \ | |
8416 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8417 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8418 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8419 | (eval echo "\"\$as_me:8419: $lt_compile\"" >&5) |
ce2cded5 L |
8420 | (eval "$lt_compile" 2>out/conftest.err) |
8421 | ac_status=$? | |
8422 | cat out/conftest.err >&5 | |
29670fb9 | 8423 | echo "$as_me:8423: \$? = $ac_status" >&5 |
ce2cded5 L |
8424 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8425 | then | |
8426 | # The compiler can only warn and ignore the option if not recognized | |
8427 | # So say no if there are warnings | |
8428 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8429 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8430 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8431 | lt_cv_prog_compiler_c_o=yes | |
8432 | fi | |
8433 | fi | |
8434 | chmod u+w . 2>&5 | |
8435 | $RM conftest* | |
8436 | # SGI C++ compiler will create directory out/ii_files/ for | |
8437 | # template instantiation | |
8438 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8439 | $RM out/* && rmdir out | |
8440 | cd .. | |
8441 | $RM -r conftest | |
8442 | $RM conftest* | |
d7040cdb | 8443 | |
ce2cded5 L |
8444 | fi |
8445 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8446 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
d7040cdb SE |
8447 | |
8448 | ||
8449 | ||
8450 | ||
8451 | ||
8452 | ||
ce2cded5 L |
8453 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8454 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
8455 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8457 | else | |
8458 | lt_cv_prog_compiler_c_o=no | |
8459 | $RM -r conftest 2>/dev/null | |
8460 | mkdir conftest | |
8461 | cd conftest | |
8462 | mkdir out | |
8463 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8464 | |
ce2cded5 L |
8465 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8466 | # Insert the option either (1) after the last *FLAGS variable, or | |
8467 | # (2) before a word containing "conftest.", or (3) at the end. | |
8468 | # Note that $ac_compile itself does not contain backslashes and begins | |
8469 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8470 | lt_compile=`echo "$ac_compile" | $SED \ | |
8471 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8472 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8473 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8474 | (eval echo "\"\$as_me:8474: $lt_compile\"" >&5) |
ce2cded5 L |
8475 | (eval "$lt_compile" 2>out/conftest.err) |
8476 | ac_status=$? | |
8477 | cat out/conftest.err >&5 | |
29670fb9 | 8478 | echo "$as_me:8478: \$? = $ac_status" >&5 |
ce2cded5 L |
8479 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8480 | then | |
8481 | # The compiler can only warn and ignore the option if not recognized | |
8482 | # So say no if there are warnings | |
8483 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8484 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8485 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8486 | lt_cv_prog_compiler_c_o=yes | |
8487 | fi | |
8488 | fi | |
8489 | chmod u+w . 2>&5 | |
8490 | $RM conftest* | |
8491 | # SGI C++ compiler will create directory out/ii_files/ for | |
8492 | # template instantiation | |
8493 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8494 | $RM out/* && rmdir out | |
8495 | cd .. | |
8496 | $RM -r conftest | |
8497 | $RM conftest* | |
d7040cdb | 8498 | |
ce2cded5 L |
8499 | fi |
8500 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8501 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
d7040cdb SE |
8502 | |
8503 | ||
8504 | ||
8505 | ||
ce2cded5 L |
8506 | hard_links="nottested" |
8507 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8508 | # do not overwrite the value of need_locks provided by the user | |
8509 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8510 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
8511 | hard_links=yes | |
8512 | $RM conftest* | |
8513 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8514 | touch conftest.a | |
8515 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8516 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8517 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8518 | echo "${ECHO_T}$hard_links" >&6 | |
8519 | if test "$hard_links" = no; then | |
8520 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8521 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8522 | need_locks=warn | |
8523 | fi | |
8524 | else | |
8525 | need_locks=no | |
8526 | fi | |
d7040cdb SE |
8527 | |
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
ce2cded5 L |
8533 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8534 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
d7040cdb | 8535 | |
ce2cded5 L |
8536 | runpath_var= |
8537 | allow_undefined_flag= | |
8538 | always_export_symbols=no | |
8539 | archive_cmds= | |
8540 | archive_expsym_cmds= | |
8541 | compiler_needs_object=no | |
8542 | enable_shared_with_static_runtimes=no | |
8543 | export_dynamic_flag_spec= | |
8544 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8545 | hardcode_automatic=no | |
8546 | hardcode_direct=no | |
8547 | hardcode_direct_absolute=no | |
8548 | hardcode_libdir_flag_spec= | |
8549 | hardcode_libdir_flag_spec_ld= | |
8550 | hardcode_libdir_separator= | |
8551 | hardcode_minus_L=no | |
8552 | hardcode_shlibpath_var=unsupported | |
8553 | inherit_rpath=no | |
8554 | link_all_deplibs=unknown | |
8555 | module_cmds= | |
8556 | module_expsym_cmds= | |
8557 | old_archive_from_new_cmds= | |
8558 | old_archive_from_expsyms_cmds= | |
8559 | thread_safe_flag_spec= | |
8560 | whole_archive_flag_spec= | |
8561 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8562 | # included in the symbol list | |
8563 | include_expsyms= | |
8564 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8565 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8566 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8567 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8568 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
8569 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8570 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8571 | # the symbol is explicitly referenced. Since portable code cannot | |
8572 | # rely on this symbol name, it's probably fine to never include it in | |
8573 | # preloaded symbol tables. | |
718a6fd8 | 8574 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 8575 | extract_expsyms_cmds= |
d7040cdb | 8576 | |
ce2cded5 | 8577 | case $host_os in |
718a6fd8 | 8578 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8579 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8580 | # When not using gcc, we currently assume that we are using | |
8581 | # Microsoft Visual C++. | |
8582 | if test "$GCC" != yes; then | |
8583 | with_gnu_ld=no | |
8584 | fi | |
8585 | ;; | |
8586 | interix*) | |
8587 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8588 | with_gnu_ld=yes | |
8589 | ;; | |
8590 | openbsd*) | |
8591 | with_gnu_ld=no | |
8592 | ;; | |
8593 | esac | |
d7040cdb | 8594 | |
ce2cded5 L |
8595 | ld_shlibs=yes |
8596 | if test "$with_gnu_ld" = yes; then | |
8597 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8598 | wlarc='${wl}' | |
d7040cdb | 8599 | |
ce2cded5 L |
8600 | # Set some defaults for GNU ld with shared library support. These |
8601 | # are reset later if shared libraries are not supported. Putting them | |
8602 | # here allows them to be overridden if necessary. | |
8603 | runpath_var=LD_RUN_PATH | |
8604 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8605 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8606 | # ancient GNU ld didn't support --whole-archive et. al. | |
8607 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8608 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8609 | else | |
8610 | whole_archive_flag_spec= | |
8611 | fi | |
8612 | supports_anon_versioning=no | |
8613 | case `$LD -v 2>&1` in | |
8614 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8615 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8616 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8617 | *\ 2.11.*) ;; # other 2.11 versions | |
8618 | *) supports_anon_versioning=yes ;; | |
8619 | esac | |
d7040cdb | 8620 | |
ce2cded5 L |
8621 | # See if GNU ld supports shared libraries. |
8622 | case $host_os in | |
50e7d84b | 8623 | aix[3-9]*) |
ce2cded5 L |
8624 | # On AIX/PPC, the GNU linker is very broken |
8625 | if test "$host_cpu" != ia64; then | |
8626 | ld_shlibs=no | |
8627 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8628 | |
ce2cded5 L |
8629 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8630 | *** to be unable to reliably create shared libraries on AIX. | |
8631 | *** Therefore, libtool is disabling shared libraries support. If you | |
8632 | *** really care for shared libraries, you may want to modify your PATH | |
8633 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 8634 | |
ce2cded5 L |
8635 | _LT_EOF |
8636 | fi | |
8637 | ;; | |
d7040cdb | 8638 | |
ce2cded5 | 8639 | amigaos*) |
718a6fd8 SE |
8640 | case $host_cpu in |
8641 | powerpc) | |
8642 | # see comment about AmigaOS4 .so support | |
8643 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8644 | archive_expsym_cmds='' | |
8645 | ;; | |
8646 | m68k) | |
8647 | 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)' | |
8648 | hardcode_libdir_flag_spec='-L$libdir' | |
8649 | hardcode_minus_L=yes | |
8650 | ;; | |
8651 | esac | |
ce2cded5 | 8652 | ;; |
d7040cdb | 8653 | |
ce2cded5 L |
8654 | beos*) |
8655 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8656 | allow_undefined_flag=unsupported | |
8657 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8658 | # support --undefined. This deserves some investigation. FIXME | |
8659 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8660 | else | |
8661 | ld_shlibs=no | |
8662 | fi | |
8663 | ;; | |
d7040cdb | 8664 | |
718a6fd8 | 8665 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8666 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8667 | # as there is no search path for DLLs. | |
8668 | hardcode_libdir_flag_spec='-L$libdir' | |
8669 | allow_undefined_flag=unsupported | |
8670 | always_export_symbols=no | |
8671 | enable_shared_with_static_runtimes=yes | |
8672 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 8673 | |
ce2cded5 L |
8674 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8675 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8676 | # If the export-symbols file already is a .def file (1st line | |
8677 | # is EXPORTS), use it as is; otherwise, prepend... | |
8678 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8679 | cp $export_symbols $output_objdir/$soname.def; | |
8680 | else | |
8681 | echo EXPORTS > $output_objdir/$soname.def; | |
8682 | cat $export_symbols >> $output_objdir/$soname.def; | |
8683 | fi~ | |
8684 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8685 | else | |
8686 | ld_shlibs=no | |
8687 | fi | |
8688 | ;; | |
d7040cdb | 8689 | |
ce2cded5 L |
8690 | interix[3-9]*) |
8691 | hardcode_direct=no | |
8692 | hardcode_shlibpath_var=no | |
8693 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8694 | export_dynamic_flag_spec='${wl}-E' | |
8695 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8696 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8697 | # default) and relocated if they conflict, which is a slow very memory | |
8698 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8699 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8700 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8701 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8702 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8703 | ;; | |
d7040cdb | 8704 | |
58e24671 | 8705 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
8706 | tmp_diet=no |
8707 | if test "$host_os" = linux-dietlibc; then | |
8708 | case $cc_basename in | |
8709 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8710 | esac | |
8711 | fi | |
8712 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8713 | && test "$tmp_diet" = no | |
8714 | then | |
8715 | tmp_addflag= | |
718a6fd8 | 8716 | tmp_sharedflag='-shared' |
ce2cded5 L |
8717 | case $cc_basename,$host_cpu in |
8718 | pgcc*) # Portland Group C compiler | |
8719 | 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' | |
8720 | tmp_addflag=' $pic_flag' | |
8721 | ;; | |
8722 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8723 | 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' | |
8724 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8725 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8726 | tmp_addflag=' -i_dynamic' ;; | |
8727 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8728 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8729 | ifc* | ifort*) # Intel Fortran compiler | |
8730 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8731 | lf95*) # Lahey Fortran 8.1 |
8732 | whole_archive_flag_spec= | |
8733 | tmp_sharedflag='--shared' ;; | |
8734 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8735 | tmp_sharedflag='-qmkshrobj' | |
8736 | tmp_addflag= ;; | |
ce2cded5 L |
8737 | esac |
8738 | case `$CC -V 2>&1 | sed 5q` in | |
8739 | *Sun\ C*) # Sun C 5.9 | |
8740 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8741 | compiler_needs_object=yes | |
8742 | tmp_sharedflag='-G' ;; | |
8743 | *Sun\ F*) # Sun Fortran 8.3 | |
8744 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
8745 | esac |
8746 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8747 | |
ce2cded5 L |
8748 | if test "x$supports_anon_versioning" = xyes; then |
8749 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8750 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8751 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8752 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8753 | fi | |
718a6fd8 SE |
8754 | |
8755 | case $cc_basename in | |
8756 | xlf*) | |
8757 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8758 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8759 | hardcode_libdir_flag_spec= | |
8760 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8761 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8762 | if test "x$supports_anon_versioning" = xyes; then | |
8763 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8764 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8765 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8766 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8767 | fi | |
8768 | ;; | |
8769 | esac | |
ce2cded5 L |
8770 | else |
8771 | ld_shlibs=no | |
8772 | fi | |
8773 | ;; | |
d7040cdb | 8774 | |
ce2cded5 L |
8775 | netbsd*) |
8776 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8777 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8778 | wlarc= | |
8779 | else | |
8780 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8781 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8782 | fi | |
8783 | ;; | |
d7040cdb | 8784 | |
ce2cded5 L |
8785 | solaris*) |
8786 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8787 | ld_shlibs=no | |
8788 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8789 | |
ce2cded5 L |
8790 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8791 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8792 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8793 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8794 | *** your PATH or compiler configuration so that the native linker is | |
8795 | *** used, and then restart. | |
d7040cdb | 8796 | |
ce2cded5 L |
8797 | _LT_EOF |
8798 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8799 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8800 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8801 | else | |
8802 | ld_shlibs=no | |
8803 | fi | |
8804 | ;; | |
d7040cdb | 8805 | |
ce2cded5 L |
8806 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8807 | case `$LD -v 2>&1` in | |
8808 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8809 | ld_shlibs=no | |
8810 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8811 | |
ce2cded5 L |
8812 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8813 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8814 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8815 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8816 | *** your PATH or compiler configuration so that the native linker is | |
8817 | *** used, and then restart. | |
d7040cdb | 8818 | |
ce2cded5 L |
8819 | _LT_EOF |
8820 | ;; | |
8821 | *) | |
8822 | # For security reasons, it is highly recommended that you always | |
8823 | # use absolute paths for naming shared libraries, and exclude the | |
8824 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8825 | # requires that you compile everything twice, which is a pain. | |
8826 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8827 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8828 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8829 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8830 | else | |
8831 | ld_shlibs=no | |
8832 | fi | |
8833 | ;; | |
8834 | esac | |
8835 | ;; | |
d7040cdb | 8836 | |
ce2cded5 L |
8837 | sunos4*) |
8838 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8839 | wlarc= | |
8840 | hardcode_direct=yes | |
8841 | hardcode_shlibpath_var=no | |
8842 | ;; | |
d7040cdb | 8843 | |
ce2cded5 L |
8844 | *) |
8845 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8846 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8847 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8848 | else | |
8849 | ld_shlibs=no | |
8850 | fi | |
8851 | ;; | |
8852 | esac | |
d7040cdb | 8853 | |
ce2cded5 L |
8854 | if test "$ld_shlibs" = no; then |
8855 | runpath_var= | |
8856 | hardcode_libdir_flag_spec= | |
8857 | export_dynamic_flag_spec= | |
8858 | whole_archive_flag_spec= | |
8859 | fi | |
8860 | else | |
8861 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8862 | case $host_os in | |
8863 | aix3*) | |
8864 | allow_undefined_flag=unsupported | |
8865 | always_export_symbols=yes | |
8866 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
8867 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8868 | # are no directories specified by -L. | |
8869 | hardcode_minus_L=yes | |
8870 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8871 | # Neither direct hardcoding nor static linking is supported with a | |
8872 | # broken collect2. | |
8873 | hardcode_direct=unsupported | |
8874 | fi | |
8875 | ;; | |
d7040cdb | 8876 | |
50e7d84b | 8877 | aix[4-9]*) |
ce2cded5 L |
8878 | if test "$host_cpu" = ia64; then |
8879 | # On IA64, the linker does run time linking by default, so we don't | |
8880 | # have to do anything special. | |
8881 | aix_use_runtimelinking=no | |
8882 | exp_sym_flag='-Bexport' | |
8883 | no_entry_flag="" | |
8884 | else | |
8885 | # If we're using GNU nm, then we don't want the "-C" option. | |
8886 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8887 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8888 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8889 | else | |
8890 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8891 | fi | |
8892 | aix_use_runtimelinking=no | |
d7040cdb | 8893 | |
ce2cded5 L |
8894 | # Test if we are trying to use run time linking or normal |
8895 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8896 | # need to do runtime linking. | |
50e7d84b | 8897 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
8898 | for ld_flag in $LDFLAGS; do |
8899 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8900 | aix_use_runtimelinking=yes | |
8901 | break | |
8902 | fi | |
8903 | done | |
8904 | ;; | |
8905 | esac | |
d7040cdb | 8906 | |
ce2cded5 L |
8907 | exp_sym_flag='-bexport' |
8908 | no_entry_flag='-bnoentry' | |
8909 | fi | |
d7040cdb | 8910 | |
ce2cded5 L |
8911 | # When large executables or shared objects are built, AIX ld can |
8912 | # have problems creating the table of contents. If linking a library | |
8913 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8914 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8915 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 8916 | |
ce2cded5 L |
8917 | archive_cmds='' |
8918 | hardcode_direct=yes | |
8919 | hardcode_direct_absolute=yes | |
8920 | hardcode_libdir_separator=':' | |
8921 | link_all_deplibs=yes | |
8922 | file_list_spec='${wl}-f,' | |
d7040cdb | 8923 | |
ce2cded5 L |
8924 | if test "$GCC" = yes; then |
8925 | case $host_os in aix4.[012]|aix4.[012].*) | |
8926 | # We only want to do this on AIX 4.2 and lower, the check | |
8927 | # below for broken collect2 doesn't work under 4.3+ | |
8928 | collect2name=`${CC} -print-prog-name=collect2` | |
8929 | if test -f "$collect2name" && | |
8930 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8931 | then | |
8932 | # We have reworked collect2 | |
8933 | : | |
8934 | else | |
8935 | # We have old collect2 | |
8936 | hardcode_direct=unsupported | |
8937 | # It fails to find uninstalled libraries when the uninstalled | |
8938 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8939 | # to unsupported forces relinking | |
8940 | hardcode_minus_L=yes | |
8941 | hardcode_libdir_flag_spec='-L$libdir' | |
8942 | hardcode_libdir_separator= | |
8943 | fi | |
8944 | ;; | |
8945 | esac | |
8946 | shared_flag='-shared' | |
8947 | if test "$aix_use_runtimelinking" = yes; then | |
8948 | shared_flag="$shared_flag "'${wl}-G' | |
8949 | fi | |
8950 | else | |
8951 | # not using gcc | |
8952 | if test "$host_cpu" = ia64; then | |
8953 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8954 | # chokes on -Wl,-G. The following line is correct: | |
8955 | shared_flag='-G' | |
8956 | else | |
8957 | if test "$aix_use_runtimelinking" = yes; then | |
8958 | shared_flag='${wl}-G' | |
8959 | else | |
8960 | shared_flag='${wl}-bM:SRE' | |
8961 | fi | |
8962 | fi | |
8963 | fi | |
d7040cdb | 8964 | |
718a6fd8 | 8965 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
8966 | # It seems that -bexpall does not export symbols beginning with |
8967 | # underscore (_), so it is better to generate a list of symbols to export. | |
8968 | always_export_symbols=yes | |
8969 | if test "$aix_use_runtimelinking" = yes; then | |
8970 | # Warning - without using the other runtime loading flags (-brtl), | |
8971 | # -berok will link without error, but may produce a broken library. | |
8972 | allow_undefined_flag='-berok' | |
8973 | # Determine the default libpath from the value encoded in an | |
8974 | # empty executable. | |
8975 | cat >conftest.$ac_ext <<_ACEOF | |
8976 | /* confdefs.h. */ | |
8977 | _ACEOF | |
8978 | cat confdefs.h >>conftest.$ac_ext | |
8979 | cat >>conftest.$ac_ext <<_ACEOF | |
8980 | /* end confdefs.h. */ | |
d7040cdb | 8981 | |
ce2cded5 L |
8982 | int |
8983 | main () | |
8984 | { | |
d7040cdb | 8985 | |
ce2cded5 L |
8986 | ; |
8987 | return 0; | |
8988 | } | |
8989 | _ACEOF | |
8990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8992 | (eval $ac_link) 2>conftest.er1 | |
8993 | ac_status=$? | |
8994 | grep -v '^ *+' conftest.er1 >conftest.err | |
8995 | rm -f conftest.er1 | |
8996 | cat conftest.err >&5 | |
8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8998 | (exit $ac_status); } && | |
8999 | { ac_try='test -z "$ac_c_werror_flag" | |
9000 | || test ! -s conftest.err' | |
9001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9002 | (eval $ac_try) 2>&5 | |
9003 | ac_status=$? | |
9004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9005 | (exit $ac_status); }; } && | |
9006 | { ac_try='test -s conftest$ac_exeext' | |
9007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9008 | (eval $ac_try) 2>&5 | |
9009 | ac_status=$? | |
9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9011 | (exit $ac_status); }; }; then | |
d7040cdb | 9012 | |
ce2cded5 L |
9013 | lt_aix_libpath_sed=' |
9014 | /Import File Strings/,/^$/ { | |
9015 | /^0/ { | |
9016 | s/^0 *\(.*\)$/\1/ | |
9017 | p | |
9018 | } | |
9019 | }' | |
9020 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9021 | # Check for a 64-bit object if we didn't find anything. | |
9022 | if test -z "$aix_libpath"; then | |
9023 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9024 | fi | |
9025 | else | |
9026 | echo "$as_me: failed program was:" >&5 | |
9027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 9028 | |
ce2cded5 L |
9029 | fi |
9030 | rm -f conftest.err conftest.$ac_objext \ | |
9031 | conftest$ac_exeext conftest.$ac_ext | |
9032 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d7040cdb | 9033 | |
ce2cded5 L |
9034 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9035 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9036 | else | |
9037 | if test "$host_cpu" = ia64; then | |
9038 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9039 | allow_undefined_flag="-z nodefs" | |
9040 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
9041 | else | |
9042 | # Determine the default libpath from the value encoded in an | |
9043 | # empty executable. | |
9044 | cat >conftest.$ac_ext <<_ACEOF | |
9045 | /* confdefs.h. */ | |
9046 | _ACEOF | |
9047 | cat confdefs.h >>conftest.$ac_ext | |
9048 | cat >>conftest.$ac_ext <<_ACEOF | |
9049 | /* end confdefs.h. */ | |
d7040cdb | 9050 | |
ce2cded5 L |
9051 | int |
9052 | main () | |
9053 | { | |
d7040cdb | 9054 | |
ce2cded5 L |
9055 | ; |
9056 | return 0; | |
9057 | } | |
9058 | _ACEOF | |
9059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9061 | (eval $ac_link) 2>conftest.er1 | |
9062 | ac_status=$? | |
9063 | grep -v '^ *+' conftest.er1 >conftest.err | |
9064 | rm -f conftest.er1 | |
9065 | cat conftest.err >&5 | |
9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9067 | (exit $ac_status); } && | |
9068 | { ac_try='test -z "$ac_c_werror_flag" | |
9069 | || test ! -s conftest.err' | |
9070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9071 | (eval $ac_try) 2>&5 | |
9072 | ac_status=$? | |
9073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9074 | (exit $ac_status); }; } && | |
9075 | { ac_try='test -s conftest$ac_exeext' | |
9076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9077 | (eval $ac_try) 2>&5 | |
9078 | ac_status=$? | |
9079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9080 | (exit $ac_status); }; }; then | |
d7040cdb | 9081 | |
ce2cded5 L |
9082 | lt_aix_libpath_sed=' |
9083 | /Import File Strings/,/^$/ { | |
9084 | /^0/ { | |
9085 | s/^0 *\(.*\)$/\1/ | |
9086 | p | |
9087 | } | |
9088 | }' | |
9089 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9090 | # Check for a 64-bit object if we didn't find anything. | |
9091 | if test -z "$aix_libpath"; then | |
9092 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9093 | fi | |
9094 | else | |
9095 | echo "$as_me: failed program was:" >&5 | |
9096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 9097 | |
ce2cded5 L |
9098 | fi |
9099 | rm -f conftest.err conftest.$ac_objext \ | |
9100 | conftest$ac_exeext conftest.$ac_ext | |
9101 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d7040cdb | 9102 | |
ce2cded5 L |
9103 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9104 | # Warning - without using the other run time loading flags, | |
9105 | # -berok will link without error, but may produce a broken library. | |
9106 | no_undefined_flag=' ${wl}-bernotok' | |
9107 | allow_undefined_flag=' ${wl}-berok' | |
9108 | # Exported symbols can be pulled into shared objects from archives | |
9109 | whole_archive_flag_spec='$convenience' | |
9110 | archive_cmds_need_lc=yes | |
9111 | # This is similar to how AIX traditionally builds its shared libraries. | |
9112 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
9113 | fi | |
9114 | fi | |
9115 | ;; | |
d7040cdb | 9116 | |
ce2cded5 | 9117 | amigaos*) |
718a6fd8 SE |
9118 | case $host_cpu in |
9119 | powerpc) | |
9120 | # see comment about AmigaOS4 .so support | |
9121 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9122 | archive_expsym_cmds='' | |
9123 | ;; | |
9124 | m68k) | |
9125 | 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)' | |
9126 | hardcode_libdir_flag_spec='-L$libdir' | |
9127 | hardcode_minus_L=yes | |
9128 | ;; | |
9129 | esac | |
ce2cded5 | 9130 | ;; |
d7040cdb | 9131 | |
ce2cded5 L |
9132 | bsdi[45]*) |
9133 | export_dynamic_flag_spec=-rdynamic | |
9134 | ;; | |
d7040cdb | 9135 | |
718a6fd8 | 9136 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9137 | # When not using gcc, we currently assume that we are using |
9138 | # Microsoft Visual C++. | |
9139 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9140 | # no search path for DLLs. | |
9141 | hardcode_libdir_flag_spec=' ' | |
9142 | allow_undefined_flag=unsupported | |
9143 | # Tell ltmain to make .lib files, not .a files. | |
9144 | libext=lib | |
9145 | # Tell ltmain to make .dll files, not .so files. | |
9146 | shrext_cmds=".dll" | |
9147 | # FIXME: Setting linknames here is a bad hack. | |
9148 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9149 | # The linker will automatically build a .lib file if we build a DLL. | |
9150 | old_archive_from_new_cmds='true' | |
9151 | # FIXME: Should let the user specify the lib program. | |
9152 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9153 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9154 | enable_shared_with_static_runtimes=yes | |
9155 | ;; | |
d7040cdb | 9156 | |
ce2cded5 | 9157 | darwin* | rhapsody*) |
d7040cdb | 9158 | |
718a6fd8 SE |
9159 | |
9160 | archive_cmds_need_lc=no | |
9161 | hardcode_direct=no | |
9162 | hardcode_automatic=yes | |
9163 | hardcode_shlibpath_var=unsupported | |
9164 | whole_archive_flag_spec='' | |
9165 | link_all_deplibs=yes | |
9166 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9167 | case $cc_basename in | |
9168 | ifort*) _lt_dar_can_shared=yes ;; | |
9169 | *) _lt_dar_can_shared=$GCC ;; | |
9170 | esac | |
9171 | if test "$_lt_dar_can_shared" = "yes"; then | |
9172 | output_verbose_link_cmd=echo | |
9173 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9174 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9175 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
9176 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
9177 | ||
9178 | else | |
9179 | ld_shlibs=no | |
9180 | fi | |
9181 | ||
ce2cded5 | 9182 | ;; |
d7040cdb | 9183 | |
ce2cded5 L |
9184 | dgux*) |
9185 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9186 | hardcode_libdir_flag_spec='-L$libdir' | |
9187 | hardcode_shlibpath_var=no | |
9188 | ;; | |
d7040cdb | 9189 | |
ce2cded5 L |
9190 | freebsd1*) |
9191 | ld_shlibs=no | |
9192 | ;; | |
d7040cdb | 9193 | |
ce2cded5 L |
9194 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9195 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9196 | # does not break anything, and helps significantly (at the cost of a little | |
9197 | # extra space). | |
9198 | freebsd2.2*) | |
9199 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9200 | hardcode_libdir_flag_spec='-R$libdir' | |
9201 | hardcode_direct=yes | |
9202 | hardcode_shlibpath_var=no | |
9203 | ;; | |
d7040cdb | 9204 | |
ce2cded5 L |
9205 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9206 | freebsd2*) | |
9207 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9208 | hardcode_direct=yes | |
9209 | hardcode_minus_L=yes | |
9210 | hardcode_shlibpath_var=no | |
9211 | ;; | |
d7040cdb | 9212 | |
ce2cded5 L |
9213 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9214 | freebsd* | dragonfly*) | |
9215 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9216 | hardcode_libdir_flag_spec='-R$libdir' | |
9217 | hardcode_direct=yes | |
9218 | hardcode_shlibpath_var=no | |
9219 | ;; | |
d7040cdb | 9220 | |
ce2cded5 L |
9221 | hpux9*) |
9222 | if test "$GCC" = yes; then | |
9223 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9224 | else | |
9225 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9226 | fi | |
9227 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9228 | hardcode_libdir_separator=: | |
9229 | hardcode_direct=yes | |
d7040cdb | 9230 | |
ce2cded5 L |
9231 | # hardcode_minus_L: Not really in the search PATH, |
9232 | # but as the default location of the library. | |
9233 | hardcode_minus_L=yes | |
9234 | export_dynamic_flag_spec='${wl}-E' | |
9235 | ;; | |
d7040cdb | 9236 | |
ce2cded5 L |
9237 | hpux10*) |
9238 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9239 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9240 | else | |
9241 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9242 | fi | |
9243 | if test "$with_gnu_ld" = no; then | |
9244 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9245 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9246 | hardcode_libdir_separator=: | |
9247 | hardcode_direct=yes | |
9248 | hardcode_direct_absolute=yes | |
9249 | export_dynamic_flag_spec='${wl}-E' | |
9250 | # hardcode_minus_L: Not really in the search PATH, | |
9251 | # but as the default location of the library. | |
9252 | hardcode_minus_L=yes | |
9253 | fi | |
9254 | ;; | |
d7040cdb | 9255 | |
ce2cded5 L |
9256 | hpux11*) |
9257 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9258 | case $host_cpu in | |
9259 | hppa*64*) | |
9260 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9261 | ;; | |
9262 | ia64*) | |
718a6fd8 | 9263 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9264 | ;; |
9265 | *) | |
9266 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9267 | ;; | |
9268 | esac | |
9269 | else | |
9270 | case $host_cpu in | |
9271 | hppa*64*) | |
9272 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9273 | ;; | |
9274 | ia64*) | |
9275 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9276 | ;; | |
9277 | *) | |
9278 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9279 | ;; | |
9280 | esac | |
9281 | fi | |
9282 | if test "$with_gnu_ld" = no; then | |
9283 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9284 | hardcode_libdir_separator=: | |
d7040cdb | 9285 | |
ce2cded5 L |
9286 | case $host_cpu in |
9287 | hppa*64*|ia64*) | |
9288 | hardcode_direct=no | |
9289 | hardcode_shlibpath_var=no | |
9290 | ;; | |
9291 | *) | |
9292 | hardcode_direct=yes | |
9293 | hardcode_direct_absolute=yes | |
9294 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9295 | |
ce2cded5 L |
9296 | # hardcode_minus_L: Not really in the search PATH, |
9297 | # but as the default location of the library. | |
9298 | hardcode_minus_L=yes | |
9299 | ;; | |
9300 | esac | |
9301 | fi | |
9302 | ;; | |
9303 | ||
9304 | irix5* | irix6* | nonstopux*) | |
9305 | if test "$GCC" = yes; then | |
9306 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9307 | # Try to use the -exported_symbol ld option, if it does not | |
9308 | # work, assume that -exports_file does not work either and | |
9309 | # implicitly export all symbols. | |
9310 | save_LDFLAGS="$LDFLAGS" | |
9311 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9312 | cat >conftest.$ac_ext <<_ACEOF | |
9313 | int foo(void) {} | |
9314 | _ACEOF | |
9315 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9317 | (eval $ac_link) 2>conftest.er1 | |
9318 | ac_status=$? | |
9319 | grep -v '^ *+' conftest.er1 >conftest.err | |
9320 | rm -f conftest.er1 | |
9321 | cat conftest.err >&5 | |
9322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9323 | (exit $ac_status); } && | |
9324 | { ac_try='test -z "$ac_c_werror_flag" | |
9325 | || test ! -s conftest.err' | |
9326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9327 | (eval $ac_try) 2>&5 | |
9328 | ac_status=$? | |
9329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9330 | (exit $ac_status); }; } && | |
9331 | { ac_try='test -s conftest$ac_exeext' | |
9332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9333 | (eval $ac_try) 2>&5 | |
9334 | ac_status=$? | |
9335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9336 | (exit $ac_status); }; }; then | |
9337 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
d7040cdb | 9338 | |
d7040cdb | 9339 | else |
ce2cded5 L |
9340 | echo "$as_me: failed program was:" >&5 |
9341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9342 | ||
d7040cdb | 9343 | fi |
ce2cded5 L |
9344 | rm -f conftest.err conftest.$ac_objext \ |
9345 | conftest$ac_exeext conftest.$ac_ext | |
9346 | LDFLAGS="$save_LDFLAGS" | |
9347 | else | |
9348 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9349 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9350 | fi | |
9351 | archive_cmds_need_lc='no' | |
9352 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9353 | hardcode_libdir_separator=: | |
9354 | inherit_rpath=yes | |
9355 | link_all_deplibs=yes | |
9356 | ;; | |
d7040cdb | 9357 | |
ce2cded5 L |
9358 | netbsd*) |
9359 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9360 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9361 | else | |
9362 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9363 | fi | |
9364 | hardcode_libdir_flag_spec='-R$libdir' | |
9365 | hardcode_direct=yes | |
9366 | hardcode_shlibpath_var=no | |
9367 | ;; | |
d7040cdb | 9368 | |
ce2cded5 L |
9369 | newsos6) |
9370 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9371 | hardcode_direct=yes | |
9372 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9373 | hardcode_libdir_separator=: | |
9374 | hardcode_shlibpath_var=no | |
9375 | ;; | |
d7040cdb | 9376 | |
ce2cded5 L |
9377 | *nto* | *qnx*) |
9378 | ;; | |
d7040cdb | 9379 | |
ce2cded5 | 9380 | openbsd*) |
718a6fd8 SE |
9381 | if test -f /usr/libexec/ld.so; then |
9382 | hardcode_direct=yes | |
9383 | hardcode_shlibpath_var=no | |
9384 | hardcode_direct_absolute=yes | |
9385 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 9386 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9387 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 9388 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9389 | export_dynamic_flag_spec='${wl}-E' |
9390 | else | |
9391 | case $host_os in | |
9392 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9393 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9394 | hardcode_libdir_flag_spec='-R$libdir' | |
9395 | ;; | |
9396 | *) | |
9397 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9398 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9399 | ;; | |
9400 | esac | |
9401 | fi | |
9402 | else | |
9403 | ld_shlibs=no | |
d7040cdb SE |
9404 | fi |
9405 | ;; | |
d7040cdb | 9406 | |
ce2cded5 L |
9407 | os2*) |
9408 | hardcode_libdir_flag_spec='-L$libdir' | |
9409 | hardcode_minus_L=yes | |
9410 | allow_undefined_flag=unsupported | |
9411 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
9412 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9413 | ;; | |
d7040cdb | 9414 | |
ce2cded5 L |
9415 | osf3*) |
9416 | if test "$GCC" = yes; then | |
9417 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9418 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9419 | else | |
9420 | allow_undefined_flag=' -expect_unresolved \*' | |
9421 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9422 | fi | |
9423 | archive_cmds_need_lc='no' | |
9424 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9425 | hardcode_libdir_separator=: | |
9426 | ;; | |
d7040cdb | 9427 | |
ce2cded5 L |
9428 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9429 | if test "$GCC" = yes; then | |
9430 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9431 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9432 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9433 | else | |
9434 | allow_undefined_flag=' -expect_unresolved \*' | |
9435 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9436 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
9437 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
d7040cdb | 9438 | |
ce2cded5 L |
9439 | # Both c and cxx compiler support -rpath directly |
9440 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9441 | fi | |
9442 | archive_cmds_need_lc='no' | |
9443 | hardcode_libdir_separator=: | |
9444 | ;; | |
d7040cdb | 9445 | |
ce2cded5 L |
9446 | solaris*) |
9447 | no_undefined_flag=' -z defs' | |
9448 | if test "$GCC" = yes; then | |
9449 | wlarc='${wl}' | |
9450 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9451 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9452 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9453 | else | |
9454 | case `$CC -V 2>&1` in | |
9455 | *"Compilers 5.0"*) | |
9456 | wlarc='' | |
9457 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9458 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9459 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9460 | ;; | |
9461 | *) | |
9462 | wlarc='${wl}' | |
9463 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9464 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9465 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9466 | ;; | |
9467 | esac | |
9468 | fi | |
9469 | hardcode_libdir_flag_spec='-R$libdir' | |
9470 | hardcode_shlibpath_var=no | |
9471 | case $host_os in | |
9472 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9473 | *) | |
9474 | # The compiler driver will combine and reorder linker options, | |
9475 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9476 | # but is careful enough not to reorder. | |
9477 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9478 | if test "$GCC" = yes; then | |
9479 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9480 | else | |
9481 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9482 | fi | |
9483 | ;; | |
9484 | esac | |
9485 | link_all_deplibs=yes | |
d7040cdb | 9486 | ;; |
ce2cded5 L |
9487 | |
9488 | sunos4*) | |
9489 | if test "x$host_vendor" = xsequent; then | |
9490 | # Use $CC to link under sequent, because it throws in some extra .o | |
9491 | # files that make .init and .fini sections work. | |
9492 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9493 | else |
ce2cded5 | 9494 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9495 | fi |
ce2cded5 L |
9496 | hardcode_libdir_flag_spec='-L$libdir' |
9497 | hardcode_direct=yes | |
9498 | hardcode_minus_L=yes | |
9499 | hardcode_shlibpath_var=no | |
d7040cdb | 9500 | ;; |
ce2cded5 L |
9501 | |
9502 | sysv4) | |
9503 | case $host_vendor in | |
9504 | sni) | |
9505 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9506 | hardcode_direct=yes # is this really true??? | |
9507 | ;; | |
9508 | siemens) | |
9509 | ## LD is ld it makes a PLAMLIB | |
9510 | ## CC just makes a GrossModule. | |
9511 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9512 | reload_cmds='$CC -r -o $output$reload_objs' | |
9513 | hardcode_direct=no | |
9514 | ;; | |
9515 | motorola) | |
9516 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9517 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9518 | ;; | |
9519 | esac | |
9520 | runpath_var='LD_RUN_PATH' | |
9521 | hardcode_shlibpath_var=no | |
d7040cdb | 9522 | ;; |
d7040cdb | 9523 | |
ce2cded5 L |
9524 | sysv4.3*) |
9525 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9526 | hardcode_shlibpath_var=no | |
9527 | export_dynamic_flag_spec='-Bexport' | |
9528 | ;; | |
d7040cdb | 9529 | |
ce2cded5 L |
9530 | sysv4*MP*) |
9531 | if test -d /usr/nec; then | |
9532 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9533 | hardcode_shlibpath_var=no | |
9534 | runpath_var=LD_RUN_PATH | |
9535 | hardcode_runpath_var=yes | |
9536 | ld_shlibs=yes | |
9537 | fi | |
9538 | ;; | |
d7040cdb | 9539 | |
ce2cded5 L |
9540 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9541 | no_undefined_flag='${wl}-z,text' | |
9542 | archive_cmds_need_lc=no | |
9543 | hardcode_shlibpath_var=no | |
9544 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9545 | |
ce2cded5 L |
9546 | if test "$GCC" = yes; then |
9547 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9548 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9549 | else | |
9550 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9551 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9552 | fi | |
9553 | ;; | |
d7040cdb | 9554 | |
ce2cded5 L |
9555 | sysv5* | sco3.2v5* | sco5v6*) |
9556 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9557 | # link with -lc, and that would cause any symbols used from libc to | |
9558 | # always be unresolved, which means just about no library would | |
9559 | # ever link correctly. If we're not using GNU ld we use -z text | |
9560 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9561 | # as -z defs. | |
9562 | no_undefined_flag='${wl}-z,text' | |
9563 | allow_undefined_flag='${wl}-z,nodefs' | |
9564 | archive_cmds_need_lc=no | |
9565 | hardcode_shlibpath_var=no | |
9566 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9567 | hardcode_libdir_separator=':' | |
9568 | link_all_deplibs=yes | |
9569 | export_dynamic_flag_spec='${wl}-Bexport' | |
9570 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9571 | |
ce2cded5 L |
9572 | if test "$GCC" = yes; then |
9573 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9574 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9575 | else | |
9576 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9577 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9578 | fi | |
d7040cdb | 9579 | ;; |
d7040cdb | 9580 | |
ce2cded5 L |
9581 | uts4*) |
9582 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9583 | hardcode_libdir_flag_spec='-L$libdir' | |
9584 | hardcode_shlibpath_var=no | |
9585 | ;; | |
d7040cdb | 9586 | |
ce2cded5 L |
9587 | *) |
9588 | ld_shlibs=no | |
9589 | ;; | |
9590 | esac | |
9591 | ||
9592 | if test x$host_vendor = xsni; then | |
9593 | case $host in | |
9594 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9595 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9596 | ;; | |
9597 | esac | |
d7040cdb | 9598 | fi |
ce2cded5 | 9599 | fi |
d7040cdb | 9600 | |
ce2cded5 L |
9601 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
9602 | echo "${ECHO_T}$ld_shlibs" >&6 | |
9603 | test "$ld_shlibs" = no && can_build_shared=no | |
d7040cdb | 9604 | |
ce2cded5 | 9605 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9606 | |
d7040cdb | 9607 | |
d7040cdb | 9608 | |
d7040cdb | 9609 | |
d7040cdb | 9610 | |
d7040cdb | 9611 | |
d7040cdb | 9612 | |
d7040cdb | 9613 | |
d7040cdb | 9614 | |
d7040cdb | 9615 | |
d7040cdb | 9616 | |
d7040cdb | 9617 | |
d7040cdb | 9618 | |
d7040cdb | 9619 | |
d7040cdb | 9620 | |
ce2cded5 L |
9621 | # |
9622 | # Do we need to explicitly link libc? | |
9623 | # | |
9624 | case "x$archive_cmds_need_lc" in | |
9625 | x|xyes) | |
9626 | # Assume -lc should be added | |
9627 | archive_cmds_need_lc=yes | |
d7040cdb | 9628 | |
ce2cded5 L |
9629 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9630 | case $archive_cmds in | |
9631 | *'~'*) | |
9632 | # FIXME: we may have to deal with multi-command sequences. | |
9633 | ;; | |
9634 | '$CC '*) | |
9635 | # Test whether the compiler implicitly links with -lc since on some | |
9636 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9637 | # to ld, don't add -lc before -lgcc. | |
9638 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9639 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
39144654 RW |
9640 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
9641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9642 | else | |
9643 | $RM conftest* | |
9644 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9645 | |
39144654 | 9646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
ce2cded5 L |
9647 | (eval $ac_compile) 2>&5 |
9648 | ac_status=$? | |
9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9650 | (exit $ac_status); } 2>conftest.err; then | |
39144654 RW |
9651 | soname=conftest |
9652 | lib=conftest | |
9653 | libobjs=conftest.$ac_objext | |
9654 | deplibs= | |
9655 | wl=$lt_prog_compiler_wl | |
9656 | pic_flag=$lt_prog_compiler_pic | |
9657 | compiler_flags=-v | |
9658 | linker_flags=-v | |
9659 | verstring= | |
9660 | output_objdir=. | |
9661 | libname=conftest | |
9662 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9663 | allow_undefined_flag= | |
9664 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
ce2cded5 L |
9665 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9666 | ac_status=$? | |
9667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9668 | (exit $ac_status); } | |
39144654 RW |
9669 | then |
9670 | lt_cv_archive_cmds_need_lc=no | |
9671 | else | |
9672 | lt_cv_archive_cmds_need_lc=yes | |
9673 | fi | |
9674 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9675 | else | |
9676 | cat conftest.err 1>&5 | |
9677 | fi | |
9678 | $RM conftest* | |
9679 | ||
9680 | fi | |
9681 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9682 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 | |
9683 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
ce2cded5 L |
9684 | ;; |
9685 | esac | |
d7040cdb | 9686 | fi |
d7040cdb | 9687 | ;; |
ce2cded5 | 9688 | esac |
d7040cdb | 9689 | |
d7040cdb | 9690 | |
d7040cdb | 9691 | |
d7040cdb | 9692 | |
d7040cdb | 9693 | |
d7040cdb | 9694 | |
d7040cdb | 9695 | |
d7040cdb SE |
9696 | |
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | ||
9713 | ||
9714 | ||
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | ||
9730 | ||
9731 | ||
9732 | ||
9733 | ||
9734 | ||
9735 | ||
9736 | ||
9737 | ||
9738 | ||
9739 | ||
9740 | ||
9741 | ||
9742 | ||
9743 | ||
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | ||
9763 | ||
9764 | ||
9765 | ||
9766 | ||
9767 | ||
9768 | ||
9769 | ||
9770 | ||
9771 | ||
9772 | ||
9773 | ||
9774 | ||
9775 | ||
9776 | ||
9777 | ||
9778 | ||
9779 | ||
9780 | ||
9781 | ||
9782 | ||
d7040cdb | 9783 | |
d7040cdb | 9784 | |
d7040cdb SE |
9785 | |
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | ||
d7040cdb | 9791 | |
d7040cdb | 9792 | |
d7040cdb | 9793 | |
d7040cdb | 9794 | |
d7040cdb | 9795 | |
d7040cdb | 9796 | |
d7040cdb | 9797 | |
d7040cdb | 9798 | |
d7040cdb | 9799 | |
d7040cdb | 9800 | |
d7040cdb | 9801 | |
d7040cdb | 9802 | |
d7040cdb | 9803 | |
d7040cdb | 9804 | |
d7040cdb | 9805 | |
d7040cdb | 9806 | |
d7040cdb | 9807 | |
d7040cdb | 9808 | |
d7040cdb | 9809 | |
d7040cdb | 9810 | |
d7040cdb | 9811 | |
d7040cdb | 9812 | |
d7040cdb | 9813 | |
ce2cded5 L |
9814 | |
9815 | ||
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9847 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
718a6fd8 SE |
9848 | |
9849 | if test "$GCC" = yes; then | |
ce2cded5 L |
9850 | case $host_os in |
9851 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9852 | *) lt_awk_arg="/^libraries:/" ;; | |
9853 | esac | |
9854 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9855 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9856 | # if the path contains ";" then we assume it to be the separator | |
9857 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9858 | # assumed that no part of a normal pathname contains ";" but that should | |
9859 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9860 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9861 | else | |
9862 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9863 | fi | |
9864 | # Ok, now we have the path, separated by spaces, we can step through it | |
9865 | # and add multilib dir if necessary. | |
9866 | lt_tmp_lt_search_path_spec= | |
9867 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9868 | for lt_sys_path in $lt_search_path_spec; do | |
9869 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9870 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9871 | else | |
9872 | test -d "$lt_sys_path" && \ | |
9873 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9874 | fi | |
9875 | done | |
9876 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9877 | BEGIN {RS=" "; FS="/|\n";} { | |
9878 | lt_foo=""; | |
9879 | lt_count=0; | |
9880 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9881 | if ($lt_i != "" && $lt_i != ".") { | |
9882 | if ($lt_i == "..") { | |
9883 | lt_count++; | |
9884 | } else { | |
9885 | if (lt_count == 0) { | |
9886 | lt_foo="/" $lt_i lt_foo; | |
9887 | } else { | |
9888 | lt_count--; | |
9889 | } | |
9890 | } | |
9891 | } | |
9892 | } | |
9893 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9894 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9895 | }'` | |
9896 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
d7040cdb | 9897 | else |
ce2cded5 L |
9898 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
9899 | fi | |
9900 | library_names_spec= | |
9901 | libname_spec='lib$name' | |
9902 | soname_spec= | |
9903 | shrext_cmds=".so" | |
9904 | postinstall_cmds= | |
9905 | postuninstall_cmds= | |
9906 | finish_cmds= | |
9907 | finish_eval= | |
9908 | shlibpath_var= | |
9909 | shlibpath_overrides_runpath=unknown | |
9910 | version_type=none | |
9911 | dynamic_linker="$host_os ld.so" | |
9912 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9913 | need_lib_prefix=unknown | |
9914 | hardcode_into_libs=no | |
9915 | ||
9916 | # when you set need_version to no, make sure it does not cause -set_version | |
9917 | # flags to be left without arguments | |
9918 | need_version=unknown | |
9919 | ||
9920 | case $host_os in | |
9921 | aix3*) | |
9922 | version_type=linux | |
9923 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9924 | shlibpath_var=LIBPATH | |
9925 | ||
9926 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9927 | soname_spec='${libname}${release}${shared_ext}$major' | |
9928 | ;; | |
9929 | ||
50e7d84b | 9930 | aix[4-9]*) |
ce2cded5 L |
9931 | version_type=linux |
9932 | need_lib_prefix=no | |
9933 | need_version=no | |
9934 | hardcode_into_libs=yes | |
9935 | if test "$host_cpu" = ia64; then | |
9936 | # AIX 5 supports IA64 | |
9937 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9938 | shlibpath_var=LD_LIBRARY_PATH | |
9939 | else | |
9940 | # With GCC up to 2.95.x, collect2 would create an import file | |
9941 | # for dependence libraries. The import file would start with | |
9942 | # the line `#! .'. This would cause the generated library to | |
9943 | # depend on `.', always an invalid library. This was fixed in | |
9944 | # development snapshots of GCC prior to 3.0. | |
9945 | case $host_os in | |
9946 | aix4 | aix4.[01] | aix4.[01].*) | |
9947 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9948 | echo ' yes ' | |
9949 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9950 | : | |
9951 | else | |
9952 | can_build_shared=no | |
9953 | fi | |
9954 | ;; | |
9955 | esac | |
9956 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9957 | # soname into executable. Probably we can add versioning support to | |
9958 | # collect2, so additional links can be useful in future. | |
9959 | if test "$aix_use_runtimelinking" = yes; then | |
9960 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9961 | # instead of lib<name>.a to let people know that these are not | |
9962 | # typical AIX shared libraries. | |
9963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9964 | else | |
9965 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9966 | # and later when we are not doing run time linking. | |
9967 | library_names_spec='${libname}${release}.a $libname.a' | |
9968 | soname_spec='${libname}${release}${shared_ext}$major' | |
9969 | fi | |
9970 | shlibpath_var=LIBPATH | |
9971 | fi | |
9972 | ;; | |
9973 | ||
9974 | amigaos*) | |
718a6fd8 SE |
9975 | case $host_cpu in |
9976 | powerpc) | |
9977 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9978 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9980 | ;; | |
9981 | m68k) | |
ce2cded5 L |
9982 | library_names_spec='$libname.ixlibrary $libname.a' |
9983 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9984 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
718a6fd8 SE |
9985 | ;; |
9986 | esac | |
ce2cded5 L |
9987 | ;; |
9988 | ||
9989 | beos*) | |
9990 | library_names_spec='${libname}${shared_ext}' | |
9991 | dynamic_linker="$host_os ld.so" | |
9992 | shlibpath_var=LIBRARY_PATH | |
9993 | ;; | |
9994 | ||
9995 | bsdi[45]*) | |
9996 | version_type=linux | |
9997 | need_version=no | |
9998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9999 | soname_spec='${libname}${release}${shared_ext}$major' | |
10000 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10001 | shlibpath_var=LD_LIBRARY_PATH | |
10002 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10003 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10004 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10005 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10006 | # libtool to hard-code these into programs | |
10007 | ;; | |
10008 | ||
718a6fd8 | 10009 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10010 | version_type=windows |
10011 | shrext_cmds=".dll" | |
10012 | need_version=no | |
10013 | need_lib_prefix=no | |
10014 | ||
718a6fd8 SE |
10015 | case $GCC,$host_os in |
10016 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10017 | library_names_spec='$libname.dll.a' |
10018 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10019 | postinstall_cmds='base_file=`basename \${file}`~ | |
10020 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10021 | dldir=$destdir/`dirname \$dlpath`~ | |
10022 | test -d \$dldir || mkdir -p \$dldir~ | |
10023 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10024 | chmod a+x \$dldir/$dlname~ | |
10025 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10026 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10027 | fi' | |
10028 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10029 | dlpath=$dir/\$dldll~ | |
10030 | $RM \$dlpath' | |
10031 | shlibpath_overrides_runpath=yes | |
10032 | ||
10033 | case $host_os in | |
10034 | cygwin*) | |
10035 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10036 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10037 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10038 | ;; | |
718a6fd8 | 10039 | mingw* | cegcc*) |
ce2cded5 L |
10040 | # MinGW DLLs use traditional 'lib' prefix |
10041 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10042 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10043 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10044 | # It is most probably a Windows format PATH printed by | |
10045 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10046 | # path with ; separators, and with drive letters. We can handle the | |
10047 | # drive letters (cygwin fileutils understands them), so leave them, | |
10048 | # especially as we might pass files found there to a mingw objdump, | |
10049 | # which wouldn't understand a cygwinified path. Ahh. | |
10050 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10051 | else | |
10052 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10053 | fi | |
10054 | ;; | |
10055 | pw32*) | |
10056 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10057 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10058 | ;; | |
10059 | esac | |
10060 | ;; | |
10061 | ||
10062 | *) | |
10063 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10064 | ;; | |
10065 | esac | |
10066 | dynamic_linker='Win32 ld.exe' | |
10067 | # FIXME: first we should search . and the directory the executable is in | |
10068 | shlibpath_var=PATH | |
10069 | ;; | |
10070 | ||
10071 | darwin* | rhapsody*) | |
10072 | dynamic_linker="$host_os dyld" | |
10073 | version_type=darwin | |
10074 | need_lib_prefix=no | |
10075 | need_version=no | |
10076 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10077 | soname_spec='${libname}${release}${major}$shared_ext' | |
10078 | shlibpath_overrides_runpath=yes | |
10079 | shlibpath_var=DYLD_LIBRARY_PATH | |
10080 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10081 | ||
10082 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10083 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10084 | ;; | |
10085 | ||
10086 | dgux*) | |
10087 | version_type=linux | |
10088 | need_lib_prefix=no | |
10089 | need_version=no | |
10090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10091 | soname_spec='${libname}${release}${shared_ext}$major' | |
10092 | shlibpath_var=LD_LIBRARY_PATH | |
10093 | ;; | |
10094 | ||
10095 | freebsd1*) | |
10096 | dynamic_linker=no | |
10097 | ;; | |
10098 | ||
10099 | freebsd* | dragonfly*) | |
10100 | # DragonFly does not have aout. When/if they implement a new | |
10101 | # versioning mechanism, adjust this. | |
10102 | if test -x /usr/bin/objformat; then | |
10103 | objformat=`/usr/bin/objformat` | |
10104 | else | |
10105 | case $host_os in | |
10106 | freebsd[123]*) objformat=aout ;; | |
10107 | *) objformat=elf ;; | |
10108 | esac | |
10109 | fi | |
10110 | version_type=freebsd-$objformat | |
10111 | case $version_type in | |
10112 | freebsd-elf*) | |
10113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10114 | need_version=no | |
10115 | need_lib_prefix=no | |
10116 | ;; | |
10117 | freebsd-*) | |
10118 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10119 | need_version=yes | |
10120 | ;; | |
10121 | esac | |
10122 | shlibpath_var=LD_LIBRARY_PATH | |
10123 | case $host_os in | |
10124 | freebsd2*) | |
10125 | shlibpath_overrides_runpath=yes | |
10126 | ;; | |
10127 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10128 | shlibpath_overrides_runpath=yes | |
10129 | hardcode_into_libs=yes | |
10130 | ;; | |
10131 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10132 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10133 | shlibpath_overrides_runpath=no | |
10134 | hardcode_into_libs=yes | |
10135 | ;; | |
10136 | *) # from 4.6 on, and DragonFly | |
10137 | shlibpath_overrides_runpath=yes | |
10138 | hardcode_into_libs=yes | |
10139 | ;; | |
10140 | esac | |
10141 | ;; | |
10142 | ||
10143 | gnu*) | |
10144 | version_type=linux | |
10145 | need_lib_prefix=no | |
10146 | need_version=no | |
10147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10148 | soname_spec='${libname}${release}${shared_ext}$major' | |
10149 | shlibpath_var=LD_LIBRARY_PATH | |
10150 | hardcode_into_libs=yes | |
10151 | ;; | |
10152 | ||
10153 | hpux9* | hpux10* | hpux11*) | |
10154 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10155 | # link against other versions. | |
10156 | version_type=sunos | |
10157 | need_lib_prefix=no | |
10158 | need_version=no | |
10159 | case $host_cpu in | |
10160 | ia64*) | |
10161 | shrext_cmds='.so' | |
10162 | hardcode_into_libs=yes | |
10163 | dynamic_linker="$host_os dld.so" | |
10164 | shlibpath_var=LD_LIBRARY_PATH | |
10165 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10167 | soname_spec='${libname}${release}${shared_ext}$major' | |
10168 | if test "X$HPUX_IA64_MODE" = X32; then | |
10169 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10170 | else | |
10171 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10172 | fi | |
10173 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10174 | ;; | |
10175 | hppa*64*) | |
10176 | shrext_cmds='.sl' | |
10177 | hardcode_into_libs=yes | |
10178 | dynamic_linker="$host_os dld.sl" | |
10179 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10180 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10182 | soname_spec='${libname}${release}${shared_ext}$major' | |
10183 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10184 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10185 | ;; | |
10186 | *) | |
10187 | shrext_cmds='.sl' | |
10188 | dynamic_linker="$host_os dld.sl" | |
10189 | shlibpath_var=SHLIB_PATH | |
10190 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10192 | soname_spec='${libname}${release}${shared_ext}$major' | |
10193 | ;; | |
10194 | esac | |
10195 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10196 | postinstall_cmds='chmod 555 $lib' | |
10197 | ;; | |
10198 | ||
10199 | interix[3-9]*) | |
10200 | version_type=linux | |
10201 | need_lib_prefix=no | |
10202 | need_version=no | |
10203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10204 | soname_spec='${libname}${release}${shared_ext}$major' | |
10205 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10206 | shlibpath_var=LD_LIBRARY_PATH | |
10207 | shlibpath_overrides_runpath=no | |
10208 | hardcode_into_libs=yes | |
10209 | ;; | |
10210 | ||
10211 | irix5* | irix6* | nonstopux*) | |
10212 | case $host_os in | |
10213 | nonstopux*) version_type=nonstopux ;; | |
10214 | *) | |
10215 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10216 | version_type=linux | |
10217 | else | |
10218 | version_type=irix | |
10219 | fi ;; | |
10220 | esac | |
10221 | need_lib_prefix=no | |
10222 | need_version=no | |
10223 | soname_spec='${libname}${release}${shared_ext}$major' | |
10224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10225 | case $host_os in | |
10226 | irix5* | nonstopux*) | |
10227 | libsuff= shlibsuff= | |
10228 | ;; | |
10229 | *) | |
10230 | case $LD in # libtool.m4 will add one of these switches to LD | |
10231 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10232 | libsuff= shlibsuff= libmagic=32-bit;; | |
10233 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10234 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10235 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10236 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10237 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10238 | esac | |
10239 | ;; | |
10240 | esac | |
10241 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10242 | shlibpath_overrides_runpath=no | |
10243 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10244 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10245 | hardcode_into_libs=yes | |
10246 | ;; | |
d7040cdb | 10247 | |
ce2cded5 L |
10248 | # No shared lib support for Linux oldld, aout, or coff. |
10249 | linux*oldld* | linux*aout* | linux*coff*) | |
10250 | dynamic_linker=no | |
10251 | ;; | |
10252 | ||
10253 | # This must be Linux ELF. | |
58e24671 | 10254 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
10255 | version_type=linux |
10256 | need_lib_prefix=no | |
10257 | need_version=no | |
10258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10259 | soname_spec='${libname}${release}${shared_ext}$major' | |
10260 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10261 | shlibpath_var=LD_LIBRARY_PATH | |
10262 | shlibpath_overrides_runpath=no | |
39144654 | 10263 | |
ce2cded5 | 10264 | # Some binutils ld are patched to set DT_RUNPATH |
39144654 RW |
10265 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then |
10266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10267 | else | |
10268 | lt_cv_shlibpath_overrides_runpath=no | |
10269 | save_LDFLAGS=$LDFLAGS | |
10270 | save_libdir=$libdir | |
10271 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10272 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10273 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
10274 | /* confdefs.h. */ |
10275 | _ACEOF | |
10276 | cat confdefs.h >>conftest.$ac_ext | |
10277 | cat >>conftest.$ac_ext <<_ACEOF | |
10278 | /* end confdefs.h. */ | |
10279 | ||
d7040cdb SE |
10280 | int |
10281 | main () | |
10282 | { | |
ce2cded5 | 10283 | |
d7040cdb SE |
10284 | ; |
10285 | return 0; | |
10286 | } | |
10287 | _ACEOF | |
10288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10290 | (eval $ac_link) 2>conftest.er1 | |
10291 | ac_status=$? | |
10292 | grep -v '^ *+' conftest.er1 >conftest.err | |
10293 | rm -f conftest.er1 | |
10294 | cat conftest.err >&5 | |
10295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10296 | (exit $ac_status); } && | |
10297 | { ac_try='test -z "$ac_c_werror_flag" | |
10298 | || test ! -s conftest.err' | |
10299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10300 | (eval $ac_try) 2>&5 | |
10301 | ac_status=$? | |
10302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10303 | (exit $ac_status); }; } && | |
10304 | { ac_try='test -s conftest$ac_exeext' | |
10305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10306 | (eval $ac_try) 2>&5 | |
10307 | ac_status=$? | |
10308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10309 | (exit $ac_status); }; }; then | |
718a6fd8 | 10310 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
39144654 | 10311 | lt_cv_shlibpath_overrides_runpath=yes |
ce2cded5 L |
10312 | fi |
10313 | ||
d7040cdb SE |
10314 | else |
10315 | echo "$as_me: failed program was:" >&5 | |
10316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10317 | ||
ce2cded5 L |
10318 | fi |
10319 | rm -f conftest.err conftest.$ac_objext \ | |
10320 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10321 | LDFLAGS=$save_LDFLAGS |
10322 | libdir=$save_libdir | |
10323 | ||
10324 | fi | |
10325 | ||
10326 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
ce2cded5 L |
10327 | |
10328 | # This implies no fast_install, which is unacceptable. | |
10329 | # Some rework will be needed to allow for fast_install | |
10330 | # before this can be enabled. | |
10331 | hardcode_into_libs=yes | |
10332 | ||
10333 | # Append ld.so.conf contents to the search path | |
10334 | if test -f /etc/ld.so.conf; then | |
718a6fd8 | 10335 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
ce2cded5 L |
10336 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10337 | fi | |
10338 | ||
10339 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10340 | # powerpc, because MkLinux only supported shared libraries with the | |
10341 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10342 | # most powerpc-linux boxes support dynamic linking these days and | |
10343 | # people can always --disable-shared, the test was removed, and we | |
10344 | # assume the GNU/Linux dynamic linker is in use. | |
10345 | dynamic_linker='GNU/Linux ld.so' | |
10346 | ;; | |
10347 | ||
10348 | netbsd*) | |
10349 | version_type=sunos | |
10350 | need_lib_prefix=no | |
10351 | need_version=no | |
10352 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10354 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10355 | dynamic_linker='NetBSD (a.out) ld.so' | |
10356 | else | |
10357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10358 | soname_spec='${libname}${release}${shared_ext}$major' | |
10359 | dynamic_linker='NetBSD ld.elf_so' | |
10360 | fi | |
10361 | shlibpath_var=LD_LIBRARY_PATH | |
10362 | shlibpath_overrides_runpath=yes | |
10363 | hardcode_into_libs=yes | |
10364 | ;; | |
10365 | ||
10366 | newsos6) | |
10367 | version_type=linux | |
10368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10369 | shlibpath_var=LD_LIBRARY_PATH | |
10370 | shlibpath_overrides_runpath=yes | |
10371 | ;; | |
10372 | ||
10373 | *nto* | *qnx*) | |
10374 | version_type=qnx | |
10375 | need_lib_prefix=no | |
10376 | need_version=no | |
10377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10378 | soname_spec='${libname}${release}${shared_ext}$major' | |
10379 | shlibpath_var=LD_LIBRARY_PATH | |
10380 | shlibpath_overrides_runpath=no | |
10381 | hardcode_into_libs=yes | |
10382 | dynamic_linker='ldqnx.so' | |
10383 | ;; | |
10384 | ||
10385 | openbsd*) | |
10386 | version_type=sunos | |
10387 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10388 | need_lib_prefix=no | |
10389 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10390 | case $host_os in | |
10391 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10392 | *) need_version=no ;; | |
10393 | esac | |
10394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10395 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10396 | shlibpath_var=LD_LIBRARY_PATH | |
10397 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10398 | case $host_os in | |
10399 | openbsd2.[89] | openbsd2.[89].*) | |
10400 | shlibpath_overrides_runpath=no | |
10401 | ;; | |
10402 | *) | |
10403 | shlibpath_overrides_runpath=yes | |
10404 | ;; | |
10405 | esac | |
10406 | else | |
10407 | shlibpath_overrides_runpath=yes | |
10408 | fi | |
10409 | ;; | |
10410 | ||
10411 | os2*) | |
10412 | libname_spec='$name' | |
10413 | shrext_cmds=".dll" | |
10414 | need_lib_prefix=no | |
10415 | library_names_spec='$libname${shared_ext} $libname.a' | |
10416 | dynamic_linker='OS/2 ld.exe' | |
10417 | shlibpath_var=LIBPATH | |
10418 | ;; | |
10419 | ||
10420 | osf3* | osf4* | osf5*) | |
10421 | version_type=osf | |
10422 | need_lib_prefix=no | |
10423 | need_version=no | |
10424 | soname_spec='${libname}${release}${shared_ext}$major' | |
10425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10426 | shlibpath_var=LD_LIBRARY_PATH | |
10427 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10428 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10429 | ;; | |
10430 | ||
10431 | rdos*) | |
10432 | dynamic_linker=no | |
10433 | ;; | |
10434 | ||
10435 | solaris*) | |
10436 | version_type=linux | |
10437 | need_lib_prefix=no | |
10438 | need_version=no | |
10439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10440 | soname_spec='${libname}${release}${shared_ext}$major' | |
10441 | shlibpath_var=LD_LIBRARY_PATH | |
10442 | shlibpath_overrides_runpath=yes | |
10443 | hardcode_into_libs=yes | |
10444 | # ldd complains unless libraries are executable | |
10445 | postinstall_cmds='chmod +x $lib' | |
10446 | ;; | |
10447 | ||
10448 | sunos4*) | |
10449 | version_type=sunos | |
10450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10451 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10452 | shlibpath_var=LD_LIBRARY_PATH | |
10453 | shlibpath_overrides_runpath=yes | |
10454 | if test "$with_gnu_ld" = yes; then | |
10455 | need_lib_prefix=no | |
10456 | fi | |
10457 | need_version=yes | |
10458 | ;; | |
10459 | ||
10460 | sysv4 | sysv4.3*) | |
10461 | version_type=linux | |
10462 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10463 | soname_spec='${libname}${release}${shared_ext}$major' | |
10464 | shlibpath_var=LD_LIBRARY_PATH | |
10465 | case $host_vendor in | |
10466 | sni) | |
10467 | shlibpath_overrides_runpath=no | |
10468 | need_lib_prefix=no | |
10469 | runpath_var=LD_RUN_PATH | |
10470 | ;; | |
10471 | siemens) | |
10472 | need_lib_prefix=no | |
10473 | ;; | |
10474 | motorola) | |
10475 | need_lib_prefix=no | |
10476 | need_version=no | |
10477 | shlibpath_overrides_runpath=no | |
10478 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10479 | ;; | |
10480 | esac | |
10481 | ;; | |
10482 | ||
10483 | sysv4*MP*) | |
10484 | if test -d /usr/nec ;then | |
10485 | version_type=linux | |
10486 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10487 | soname_spec='$libname${shared_ext}.$major' | |
10488 | shlibpath_var=LD_LIBRARY_PATH | |
10489 | fi | |
10490 | ;; | |
10491 | ||
10492 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10493 | version_type=freebsd-elf | |
10494 | need_lib_prefix=no | |
10495 | need_version=no | |
10496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10497 | soname_spec='${libname}${release}${shared_ext}$major' | |
10498 | shlibpath_var=LD_LIBRARY_PATH | |
10499 | shlibpath_overrides_runpath=yes | |
10500 | hardcode_into_libs=yes | |
10501 | if test "$with_gnu_ld" = yes; then | |
10502 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10503 | else | |
10504 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10505 | case $host_os in | |
10506 | sco3.2v5*) | |
10507 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10508 | ;; | |
10509 | esac | |
10510 | fi | |
10511 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10512 | ;; | |
10513 | ||
10514 | tpf*) | |
10515 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10516 | version_type=linux | |
10517 | need_lib_prefix=no | |
10518 | need_version=no | |
718a6fd8 | 10519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
10520 | shlibpath_var=LD_LIBRARY_PATH |
10521 | shlibpath_overrides_runpath=no | |
10522 | hardcode_into_libs=yes | |
10523 | ;; | |
d7040cdb | 10524 | |
ce2cded5 L |
10525 | uts4*) |
10526 | version_type=linux | |
10527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10528 | soname_spec='${libname}${release}${shared_ext}$major' | |
10529 | shlibpath_var=LD_LIBRARY_PATH | |
10530 | ;; | |
d7040cdb | 10531 | |
ce2cded5 L |
10532 | *) |
10533 | dynamic_linker=no | |
10534 | ;; | |
10535 | esac | |
10536 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10537 | echo "${ECHO_T}$dynamic_linker" >&6 | |
10538 | test "$dynamic_linker" = no && can_build_shared=no | |
10539 | ||
10540 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10541 | if test "$GCC" = yes; then | |
10542 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10543 | fi |
d7040cdb | 10544 | |
718a6fd8 SE |
10545 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10546 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10547 | fi | |
10548 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10549 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10550 | fi | |
10551 | ||
d7040cdb | 10552 | |
d7040cdb SE |
10553 | |
10554 | ||
d7040cdb SE |
10555 | |
10556 | ||
d7040cdb SE |
10557 | |
10558 | ||
d7040cdb SE |
10559 | |
10560 | ||
d7040cdb SE |
10561 | |
10562 | ||
d7040cdb | 10563 | |
d7040cdb | 10564 | |
d7040cdb | 10565 | |
d7040cdb | 10566 | |
d7040cdb | 10567 | |
d7040cdb | 10568 | |
d7040cdb | 10569 | |
d7040cdb | 10570 | |
d7040cdb | 10571 | |
d7040cdb | 10572 | |
d7040cdb | 10573 | |
d7040cdb | 10574 | |
d7040cdb | 10575 | |
d7040cdb | 10576 | |
d7040cdb SE |
10577 | |
10578 | ||
d7040cdb | 10579 | |
d7040cdb | 10580 | |
d7040cdb | 10581 | |
d7040cdb | 10582 | |
d7040cdb | 10583 | |
d7040cdb | 10584 | |
d7040cdb | 10585 | |
d7040cdb | 10586 | |
d7040cdb | 10587 | |
d7040cdb SE |
10588 | |
10589 | ||
d7040cdb | 10590 | |
d7040cdb | 10591 | |
d7040cdb | 10592 | |
d7040cdb SE |
10593 | |
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | ||
10603 | ||
10604 | ||
10605 | ||
10606 | ||
10607 | ||
10608 | ||
10609 | ||
d7040cdb SE |
10610 | |
10611 | ||
10612 | ||
10613 | ||
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | ||
10620 | ||
10621 | ||
d7040cdb | 10622 | |
d7040cdb | 10623 | |
d7040cdb | 10624 | |
d7040cdb | 10625 | |
d7040cdb SE |
10626 | |
10627 | ||
10628 | ||
10629 | ||
ce2cded5 L |
10630 | |
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10639 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
10640 | hardcode_action= | |
10641 | if test -n "$hardcode_libdir_flag_spec" || | |
10642 | test -n "$runpath_var" || | |
10643 | test "X$hardcode_automatic" = "Xyes" ; then | |
10644 | ||
10645 | # We can hardcode non-existent directories. | |
10646 | if test "$hardcode_direct" != no && | |
10647 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10648 | # have to relink, otherwise we might link with an installed library | |
10649 | # when we should be linking with a yet-to-be-installed one | |
10650 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10651 | test "$hardcode_minus_L" != no; then | |
10652 | # Linking always hardcodes the temporary library directory. | |
10653 | hardcode_action=relink | |
10654 | else | |
10655 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10656 | hardcode_action=immediate | |
10657 | fi | |
10658 | else | |
10659 | # We cannot hardcode anything, or else we can only hardcode existing | |
10660 | # directories. | |
10661 | hardcode_action=unsupported | |
10662 | fi | |
10663 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10664 | echo "${ECHO_T}$hardcode_action" >&6 | |
10665 | ||
10666 | if test "$hardcode_action" = relink || | |
10667 | test "$inherit_rpath" = yes; then | |
10668 | # Fast installation is not supported | |
10669 | enable_fast_install=no | |
10670 | elif test "$shlibpath_overrides_runpath" = yes || | |
10671 | test "$enable_shared" = no; then | |
10672 | # Fast installation is not necessary | |
10673 | enable_fast_install=needless | |
d7040cdb | 10674 | fi |
d7040cdb | 10675 | |
d7040cdb SE |
10676 | |
10677 | ||
10678 | ||
10679 | ||
10680 | ||
ce2cded5 L |
10681 | if test "x$enable_dlopen" != xyes; then |
10682 | enable_dlopen=unknown | |
10683 | enable_dlopen_self=unknown | |
10684 | enable_dlopen_self_static=unknown | |
10685 | else | |
10686 | lt_cv_dlopen=no | |
10687 | lt_cv_dlopen_libs= | |
10688 | ||
10689 | case $host_os in | |
10690 | beos*) | |
10691 | lt_cv_dlopen="load_add_on" | |
10692 | lt_cv_dlopen_libs= | |
10693 | lt_cv_dlopen_self=yes | |
10694 | ;; | |
d7040cdb | 10695 | |
718a6fd8 | 10696 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10697 | lt_cv_dlopen="LoadLibrary" |
10698 | lt_cv_dlopen_libs= | |
10699 | ;; | |
d7040cdb | 10700 | |
ce2cded5 L |
10701 | cygwin*) |
10702 | lt_cv_dlopen="dlopen" | |
10703 | lt_cv_dlopen_libs= | |
10704 | ;; | |
d7040cdb | 10705 | |
ce2cded5 L |
10706 | darwin*) |
10707 | # if libdl is installed we need to link against it | |
10708 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10709 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10710 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10712 | else | |
10713 | ac_check_lib_save_LIBS=$LIBS | |
10714 | LIBS="-ldl $LIBS" | |
10715 | cat >conftest.$ac_ext <<_ACEOF | |
10716 | /* confdefs.h. */ | |
10717 | _ACEOF | |
10718 | cat confdefs.h >>conftest.$ac_ext | |
10719 | cat >>conftest.$ac_ext <<_ACEOF | |
10720 | /* end confdefs.h. */ | |
d7040cdb | 10721 | |
ce2cded5 L |
10722 | /* Override any gcc2 internal prototype to avoid an error. */ |
10723 | #ifdef __cplusplus | |
10724 | extern "C" | |
10725 | #endif | |
10726 | /* We use char because int might match the return type of a gcc2 | |
10727 | builtin and then its argument prototype would still apply. */ | |
10728 | char dlopen (); | |
10729 | int | |
10730 | main () | |
10731 | { | |
10732 | dlopen (); | |
10733 | ; | |
10734 | return 0; | |
10735 | } | |
10736 | _ACEOF | |
10737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10739 | (eval $ac_link) 2>conftest.er1 | |
10740 | ac_status=$? | |
10741 | grep -v '^ *+' conftest.er1 >conftest.err | |
10742 | rm -f conftest.er1 | |
10743 | cat conftest.err >&5 | |
10744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10745 | (exit $ac_status); } && | |
10746 | { ac_try='test -z "$ac_c_werror_flag" | |
10747 | || test ! -s conftest.err' | |
10748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10749 | (eval $ac_try) 2>&5 | |
10750 | ac_status=$? | |
10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10752 | (exit $ac_status); }; } && | |
10753 | { ac_try='test -s conftest$ac_exeext' | |
10754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10755 | (eval $ac_try) 2>&5 | |
10756 | ac_status=$? | |
10757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10758 | (exit $ac_status); }; }; then | |
10759 | ac_cv_lib_dl_dlopen=yes | |
10760 | else | |
10761 | echo "$as_me: failed program was:" >&5 | |
10762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10763 | |
ce2cded5 L |
10764 | ac_cv_lib_dl_dlopen=no |
10765 | fi | |
10766 | rm -f conftest.err conftest.$ac_objext \ | |
10767 | conftest$ac_exeext conftest.$ac_ext | |
10768 | LIBS=$ac_check_lib_save_LIBS | |
10769 | fi | |
10770 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10771 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10772 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10773 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10774 | else | |
d7040cdb | 10775 | |
ce2cded5 L |
10776 | lt_cv_dlopen="dyld" |
10777 | lt_cv_dlopen_libs= | |
10778 | lt_cv_dlopen_self=yes | |
d7040cdb | 10779 | |
ce2cded5 | 10780 | fi |
d7040cdb | 10781 | |
ce2cded5 | 10782 | ;; |
d7040cdb | 10783 | |
ce2cded5 L |
10784 | *) |
10785 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10786 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
10787 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10789 | else | |
10790 | cat >conftest.$ac_ext <<_ACEOF | |
10791 | /* confdefs.h. */ | |
10792 | _ACEOF | |
10793 | cat confdefs.h >>conftest.$ac_ext | |
10794 | cat >>conftest.$ac_ext <<_ACEOF | |
10795 | /* end confdefs.h. */ | |
10796 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10797 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10798 | #define shl_load innocuous_shl_load | |
d7040cdb | 10799 | |
ce2cded5 L |
10800 | /* System header to define __stub macros and hopefully few prototypes, |
10801 | which can conflict with char shl_load (); below. | |
10802 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10803 | <limits.h> exists even on freestanding compilers. */ | |
d7040cdb | 10804 | |
ce2cded5 L |
10805 | #ifdef __STDC__ |
10806 | # include <limits.h> | |
10807 | #else | |
10808 | # include <assert.h> | |
10809 | #endif | |
d7040cdb | 10810 | |
ce2cded5 | 10811 | #undef shl_load |
d7040cdb | 10812 | |
ce2cded5 L |
10813 | /* Override any gcc2 internal prototype to avoid an error. */ |
10814 | #ifdef __cplusplus | |
10815 | extern "C" | |
10816 | { | |
10817 | #endif | |
10818 | /* We use char because int might match the return type of a gcc2 | |
10819 | builtin and then its argument prototype would still apply. */ | |
10820 | char shl_load (); | |
10821 | /* The GNU C library defines this for functions which it implements | |
10822 | to always fail with ENOSYS. Some functions are actually named | |
10823 | something starting with __ and the normal name is an alias. */ | |
10824 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
10825 | choke me | |
10826 | #else | |
10827 | char (*f) () = shl_load; | |
10828 | #endif | |
10829 | #ifdef __cplusplus | |
10830 | } | |
10831 | #endif | |
d7040cdb | 10832 | |
ce2cded5 L |
10833 | int |
10834 | main () | |
10835 | { | |
10836 | return f != shl_load; | |
10837 | ; | |
10838 | return 0; | |
10839 | } | |
10840 | _ACEOF | |
10841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10843 | (eval $ac_link) 2>conftest.er1 | |
10844 | ac_status=$? | |
10845 | grep -v '^ *+' conftest.er1 >conftest.err | |
10846 | rm -f conftest.er1 | |
10847 | cat conftest.err >&5 | |
10848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10849 | (exit $ac_status); } && | |
10850 | { ac_try='test -z "$ac_c_werror_flag" | |
10851 | || test ! -s conftest.err' | |
10852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10853 | (eval $ac_try) 2>&5 | |
10854 | ac_status=$? | |
10855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10856 | (exit $ac_status); }; } && | |
10857 | { ac_try='test -s conftest$ac_exeext' | |
10858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10859 | (eval $ac_try) 2>&5 | |
10860 | ac_status=$? | |
10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10862 | (exit $ac_status); }; }; then | |
10863 | ac_cv_func_shl_load=yes | |
10864 | else | |
10865 | echo "$as_me: failed program was:" >&5 | |
10866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10867 | |
ce2cded5 | 10868 | ac_cv_func_shl_load=no |
d7040cdb | 10869 | fi |
ce2cded5 L |
10870 | rm -f conftest.err conftest.$ac_objext \ |
10871 | conftest$ac_exeext conftest.$ac_ext | |
10872 | fi | |
10873 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10874 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
10875 | if test $ac_cv_func_shl_load = yes; then | |
10876 | lt_cv_dlopen="shl_load" | |
10877 | else | |
10878 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10879 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
10880 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10882 | else | |
10883 | ac_check_lib_save_LIBS=$LIBS | |
10884 | LIBS="-ldld $LIBS" | |
10885 | cat >conftest.$ac_ext <<_ACEOF | |
10886 | /* confdefs.h. */ | |
10887 | _ACEOF | |
10888 | cat confdefs.h >>conftest.$ac_ext | |
10889 | cat >>conftest.$ac_ext <<_ACEOF | |
10890 | /* end confdefs.h. */ | |
d7040cdb | 10891 | |
ce2cded5 L |
10892 | /* Override any gcc2 internal prototype to avoid an error. */ |
10893 | #ifdef __cplusplus | |
10894 | extern "C" | |
10895 | #endif | |
10896 | /* We use char because int might match the return type of a gcc2 | |
10897 | builtin and then its argument prototype would still apply. */ | |
10898 | char shl_load (); | |
10899 | int | |
10900 | main () | |
10901 | { | |
10902 | shl_load (); | |
10903 | ; | |
10904 | return 0; | |
10905 | } | |
d7040cdb | 10906 | _ACEOF |
ce2cded5 L |
10907 | rm -f conftest.$ac_objext conftest$ac_exeext |
10908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10909 | (eval $ac_link) 2>conftest.er1 | |
10910 | ac_status=$? | |
10911 | grep -v '^ *+' conftest.er1 >conftest.err | |
10912 | rm -f conftest.er1 | |
10913 | cat conftest.err >&5 | |
10914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10915 | (exit $ac_status); } && | |
10916 | { ac_try='test -z "$ac_c_werror_flag" | |
10917 | || test ! -s conftest.err' | |
10918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10919 | (eval $ac_try) 2>&5 | |
10920 | ac_status=$? | |
10921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10922 | (exit $ac_status); }; } && | |
10923 | { ac_try='test -s conftest$ac_exeext' | |
10924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10925 | (eval $ac_try) 2>&5 | |
10926 | ac_status=$? | |
10927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10928 | (exit $ac_status); }; }; then | |
10929 | ac_cv_lib_dld_shl_load=yes | |
10930 | else | |
10931 | echo "$as_me: failed program was:" >&5 | |
10932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10933 | |
ce2cded5 | 10934 | ac_cv_lib_dld_shl_load=no |
d7040cdb | 10935 | fi |
ce2cded5 L |
10936 | rm -f conftest.err conftest.$ac_objext \ |
10937 | conftest$ac_exeext conftest.$ac_ext | |
10938 | LIBS=$ac_check_lib_save_LIBS | |
10939 | fi | |
10940 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10941 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
10942 | if test $ac_cv_lib_dld_shl_load = yes; then | |
718a6fd8 | 10943 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
10944 | else |
10945 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10946 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
10947 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10949 | else | |
10950 | cat >conftest.$ac_ext <<_ACEOF | |
10951 | /* confdefs.h. */ | |
10952 | _ACEOF | |
10953 | cat confdefs.h >>conftest.$ac_ext | |
10954 | cat >>conftest.$ac_ext <<_ACEOF | |
10955 | /* end confdefs.h. */ | |
10956 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10958 | #define dlopen innocuous_dlopen | |
d7040cdb | 10959 | |
ce2cded5 L |
10960 | /* System header to define __stub macros and hopefully few prototypes, |
10961 | which can conflict with char dlopen (); below. | |
10962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10963 | <limits.h> exists even on freestanding compilers. */ | |
d7040cdb | 10964 | |
ce2cded5 L |
10965 | #ifdef __STDC__ |
10966 | # include <limits.h> | |
10967 | #else | |
10968 | # include <assert.h> | |
10969 | #endif | |
d7040cdb | 10970 | |
ce2cded5 | 10971 | #undef dlopen |
d7040cdb | 10972 | |
ce2cded5 L |
10973 | /* Override any gcc2 internal prototype to avoid an error. */ |
10974 | #ifdef __cplusplus | |
10975 | extern "C" | |
10976 | { | |
10977 | #endif | |
10978 | /* We use char because int might match the return type of a gcc2 | |
10979 | builtin and then its argument prototype would still apply. */ | |
10980 | char dlopen (); | |
10981 | /* The GNU C library defines this for functions which it implements | |
10982 | to always fail with ENOSYS. Some functions are actually named | |
10983 | something starting with __ and the normal name is an alias. */ | |
10984 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10985 | choke me | |
10986 | #else | |
10987 | char (*f) () = dlopen; | |
10988 | #endif | |
10989 | #ifdef __cplusplus | |
10990 | } | |
10991 | #endif | |
d7040cdb | 10992 | |
ce2cded5 L |
10993 | int |
10994 | main () | |
10995 | { | |
10996 | return f != dlopen; | |
10997 | ; | |
10998 | return 0; | |
10999 | } | |
11000 | _ACEOF | |
11001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11003 | (eval $ac_link) 2>conftest.er1 | |
11004 | ac_status=$? | |
11005 | grep -v '^ *+' conftest.er1 >conftest.err | |
11006 | rm -f conftest.er1 | |
11007 | cat conftest.err >&5 | |
11008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11009 | (exit $ac_status); } && | |
11010 | { ac_try='test -z "$ac_c_werror_flag" | |
11011 | || test ! -s conftest.err' | |
11012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11013 | (eval $ac_try) 2>&5 | |
11014 | ac_status=$? | |
11015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11016 | (exit $ac_status); }; } && | |
11017 | { ac_try='test -s conftest$ac_exeext' | |
11018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11019 | (eval $ac_try) 2>&5 | |
11020 | ac_status=$? | |
11021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11022 | (exit $ac_status); }; }; then | |
11023 | ac_cv_func_dlopen=yes | |
11024 | else | |
11025 | echo "$as_me: failed program was:" >&5 | |
11026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 11027 | |
ce2cded5 | 11028 | ac_cv_func_dlopen=no |
d7040cdb | 11029 | fi |
ce2cded5 L |
11030 | rm -f conftest.err conftest.$ac_objext \ |
11031 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 11032 | fi |
ce2cded5 L |
11033 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
11034 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
11035 | if test $ac_cv_func_dlopen = yes; then | |
11036 | lt_cv_dlopen="dlopen" | |
11037 | else | |
11038 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11039 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
11040 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
d7040cdb SE |
11041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11042 | else | |
ce2cded5 L |
11043 | ac_check_lib_save_LIBS=$LIBS |
11044 | LIBS="-ldl $LIBS" | |
d7040cdb SE |
11045 | cat >conftest.$ac_ext <<_ACEOF |
11046 | /* confdefs.h. */ | |
11047 | _ACEOF | |
11048 | cat confdefs.h >>conftest.$ac_ext | |
11049 | cat >>conftest.$ac_ext <<_ACEOF | |
11050 | /* end confdefs.h. */ | |
d7040cdb | 11051 | |
ce2cded5 L |
11052 | /* Override any gcc2 internal prototype to avoid an error. */ |
11053 | #ifdef __cplusplus | |
11054 | extern "C" | |
11055 | #endif | |
11056 | /* We use char because int might match the return type of a gcc2 | |
11057 | builtin and then its argument prototype would still apply. */ | |
11058 | char dlopen (); | |
d7040cdb SE |
11059 | int |
11060 | main () | |
11061 | { | |
ce2cded5 | 11062 | dlopen (); |
d7040cdb SE |
11063 | ; |
11064 | return 0; | |
11065 | } | |
11066 | _ACEOF | |
ce2cded5 L |
11067 | rm -f conftest.$ac_objext conftest$ac_exeext |
11068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11069 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
11070 | ac_status=$? |
11071 | grep -v '^ *+' conftest.er1 >conftest.err | |
11072 | rm -f conftest.er1 | |
11073 | cat conftest.err >&5 | |
11074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11075 | (exit $ac_status); } && | |
11076 | { ac_try='test -z "$ac_c_werror_flag" | |
11077 | || test ! -s conftest.err' | |
11078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11079 | (eval $ac_try) 2>&5 | |
11080 | ac_status=$? | |
11081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11082 | (exit $ac_status); }; } && | |
ce2cded5 | 11083 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
11084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11085 | (eval $ac_try) 2>&5 | |
11086 | ac_status=$? | |
11087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11088 | (exit $ac_status); }; }; then | |
ce2cded5 L |
11089 | ac_cv_lib_dl_dlopen=yes |
11090 | else | |
11091 | echo "$as_me: failed program was:" >&5 | |
11092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11093 | ||
11094 | ac_cv_lib_dl_dlopen=no | |
11095 | fi | |
11096 | rm -f conftest.err conftest.$ac_objext \ | |
11097 | conftest$ac_exeext conftest.$ac_ext | |
11098 | LIBS=$ac_check_lib_save_LIBS | |
11099 | fi | |
11100 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11101 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
11102 | if test $ac_cv_lib_dl_dlopen = yes; then | |
11103 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11104 | else | |
11105 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
11106 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
11107 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11109 | else | |
11110 | ac_check_lib_save_LIBS=$LIBS | |
11111 | LIBS="-lsvld $LIBS" | |
d7040cdb SE |
11112 | cat >conftest.$ac_ext <<_ACEOF |
11113 | /* confdefs.h. */ | |
11114 | _ACEOF | |
11115 | cat confdefs.h >>conftest.$ac_ext | |
11116 | cat >>conftest.$ac_ext <<_ACEOF | |
11117 | /* end confdefs.h. */ | |
d7040cdb | 11118 | |
ce2cded5 L |
11119 | /* Override any gcc2 internal prototype to avoid an error. */ |
11120 | #ifdef __cplusplus | |
11121 | extern "C" | |
11122 | #endif | |
11123 | /* We use char because int might match the return type of a gcc2 | |
11124 | builtin and then its argument prototype would still apply. */ | |
11125 | char dlopen (); | |
d7040cdb SE |
11126 | int |
11127 | main () | |
11128 | { | |
ce2cded5 | 11129 | dlopen (); |
d7040cdb SE |
11130 | ; |
11131 | return 0; | |
11132 | } | |
11133 | _ACEOF | |
ce2cded5 L |
11134 | rm -f conftest.$ac_objext conftest$ac_exeext |
11135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11136 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
11137 | ac_status=$? |
11138 | grep -v '^ *+' conftest.er1 >conftest.err | |
11139 | rm -f conftest.er1 | |
11140 | cat conftest.err >&5 | |
11141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11142 | (exit $ac_status); } && | |
11143 | { ac_try='test -z "$ac_c_werror_flag" | |
11144 | || test ! -s conftest.err' | |
11145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11146 | (eval $ac_try) 2>&5 | |
11147 | ac_status=$? | |
11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11149 | (exit $ac_status); }; } && | |
ce2cded5 | 11150 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
11151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11152 | (eval $ac_try) 2>&5 | |
11153 | ac_status=$? | |
11154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11155 | (exit $ac_status); }; }; then | |
ce2cded5 | 11156 | ac_cv_lib_svld_dlopen=yes |
d7040cdb SE |
11157 | else |
11158 | echo "$as_me: failed program was:" >&5 | |
11159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11160 | ||
ce2cded5 | 11161 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 11162 | fi |
ce2cded5 L |
11163 | rm -f conftest.err conftest.$ac_objext \ |
11164 | conftest$ac_exeext conftest.$ac_ext | |
11165 | LIBS=$ac_check_lib_save_LIBS | |
11166 | fi | |
11167 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11168 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
11169 | if test $ac_cv_lib_svld_dlopen = yes; then | |
11170 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11171 | else | |
11172 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11173 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
11174 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 11176 | else |
ce2cded5 L |
11177 | ac_check_lib_save_LIBS=$LIBS |
11178 | LIBS="-ldld $LIBS" | |
11179 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
11180 | /* confdefs.h. */ |
11181 | _ACEOF | |
11182 | cat confdefs.h >>conftest.$ac_ext | |
11183 | cat >>conftest.$ac_ext <<_ACEOF | |
11184 | /* end confdefs.h. */ | |
ce2cded5 L |
11185 | |
11186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11187 | #ifdef __cplusplus | |
11188 | extern "C" | |
11189 | #endif | |
11190 | /* We use char because int might match the return type of a gcc2 | |
11191 | builtin and then its argument prototype would still apply. */ | |
11192 | char dld_link (); | |
d7040cdb SE |
11193 | int |
11194 | main () | |
11195 | { | |
ce2cded5 | 11196 | dld_link (); |
d7040cdb SE |
11197 | ; |
11198 | return 0; | |
11199 | } | |
11200 | _ACEOF | |
ce2cded5 L |
11201 | rm -f conftest.$ac_objext conftest$ac_exeext |
11202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11203 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
11204 | ac_status=$? |
11205 | grep -v '^ *+' conftest.er1 >conftest.err | |
11206 | rm -f conftest.er1 | |
11207 | cat conftest.err >&5 | |
11208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11209 | (exit $ac_status); } && | |
11210 | { ac_try='test -z "$ac_c_werror_flag" | |
11211 | || test ! -s conftest.err' | |
11212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11213 | (eval $ac_try) 2>&5 | |
11214 | ac_status=$? | |
11215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11216 | (exit $ac_status); }; } && | |
ce2cded5 | 11217 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
11218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11219 | (eval $ac_try) 2>&5 | |
11220 | ac_status=$? | |
11221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11222 | (exit $ac_status); }; }; then | |
ce2cded5 L |
11223 | ac_cv_lib_dld_dld_link=yes |
11224 | else | |
11225 | echo "$as_me: failed program was:" >&5 | |
11226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11227 | ||
11228 | ac_cv_lib_dld_dld_link=no | |
d7040cdb | 11229 | fi |
ce2cded5 L |
11230 | rm -f conftest.err conftest.$ac_objext \ |
11231 | conftest$ac_exeext conftest.$ac_ext | |
11232 | LIBS=$ac_check_lib_save_LIBS | |
11233 | fi | |
11234 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11235 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
11236 | if test $ac_cv_lib_dld_dld_link = yes; then | |
718a6fd8 | 11237 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
11238 | fi |
11239 | ||
11240 | ||
11241 | fi | |
11242 | ||
11243 | ||
11244 | fi | |
11245 | ||
11246 | ||
11247 | fi | |
11248 | ||
11249 | ||
11250 | fi | |
11251 | ||
11252 | ||
11253 | fi | |
11254 | ||
11255 | ;; | |
11256 | esac | |
11257 | ||
11258 | if test "x$lt_cv_dlopen" != xno; then | |
11259 | enable_dlopen=yes | |
d7040cdb | 11260 | else |
ce2cded5 | 11261 | enable_dlopen=no |
d7040cdb | 11262 | fi |
ce2cded5 L |
11263 | |
11264 | case $lt_cv_dlopen in | |
11265 | dlopen) | |
11266 | save_CPPFLAGS="$CPPFLAGS" | |
11267 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11268 | ||
11269 | save_LDFLAGS="$LDFLAGS" | |
11270 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11271 | ||
11272 | save_LIBS="$LIBS" | |
11273 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11274 | ||
11275 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11276 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
11277 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 11279 | else |
ce2cded5 L |
11280 | if test "$cross_compiling" = yes; then : |
11281 | lt_cv_dlopen_self=cross | |
11282 | else | |
11283 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11284 | lt_status=$lt_dlunknown | |
11285 | cat > conftest.$ac_ext <<_LT_EOF | |
29670fb9 | 11286 | #line 11286 "configure" |
ce2cded5 L |
11287 | #include "confdefs.h" |
11288 | ||
11289 | #if HAVE_DLFCN_H | |
11290 | #include <dlfcn.h> | |
11291 | #endif | |
11292 | ||
11293 | #include <stdio.h> | |
11294 | ||
11295 | #ifdef RTLD_GLOBAL | |
11296 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11297 | #else | |
11298 | # ifdef DL_GLOBAL | |
11299 | # define LT_DLGLOBAL DL_GLOBAL | |
11300 | # else | |
11301 | # define LT_DLGLOBAL 0 | |
11302 | # endif | |
11303 | #endif | |
11304 | ||
11305 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11306 | find out it does not work in some platform. */ | |
11307 | #ifndef LT_DLLAZY_OR_NOW | |
11308 | # ifdef RTLD_LAZY | |
11309 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11310 | # else | |
11311 | # ifdef DL_LAZY | |
11312 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11313 | # else | |
11314 | # ifdef RTLD_NOW | |
11315 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11316 | # else | |
11317 | # ifdef DL_NOW | |
11318 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11319 | # else | |
11320 | # define LT_DLLAZY_OR_NOW 0 | |
11321 | # endif | |
11322 | # endif | |
11323 | # endif | |
11324 | # endif | |
11325 | #endif | |
11326 | ||
ce2cded5 L |
11327 | void fnord() { int i=42;} |
11328 | int main () | |
11329 | { | |
11330 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11331 | int status = $lt_dlunknown; | |
11332 | ||
11333 | if (self) | |
11334 | { | |
11335 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11336 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11337 | /* dlclose (self); */ | |
11338 | } | |
11339 | else | |
11340 | puts (dlerror ()); | |
11341 | ||
718a6fd8 | 11342 | return status; |
ce2cded5 L |
11343 | } |
11344 | _LT_EOF | |
11345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11346 | (eval $ac_link) 2>&5 | |
11347 | ac_status=$? | |
11348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11349 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11350 | (./conftest; exit; ) >&5 2>/dev/null | |
11351 | lt_status=$? | |
11352 | case x$lt_status in | |
11353 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11354 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11355 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11356 | esac | |
11357 | else : | |
11358 | # compilation failed | |
11359 | lt_cv_dlopen_self=no | |
11360 | fi | |
11361 | fi | |
11362 | rm -fr conftest* | |
11363 | ||
d7040cdb SE |
11364 | |
11365 | fi | |
ce2cded5 L |
11366 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
11367 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
11368 | ||
11369 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11370 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11371 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11372 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
11373 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 11375 | else |
ce2cded5 L |
11376 | if test "$cross_compiling" = yes; then : |
11377 | lt_cv_dlopen_self_static=cross | |
11378 | else | |
11379 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11380 | lt_status=$lt_dlunknown | |
11381 | cat > conftest.$ac_ext <<_LT_EOF | |
29670fb9 | 11382 | #line 11382 "configure" |
ce2cded5 L |
11383 | #include "confdefs.h" |
11384 | ||
11385 | #if HAVE_DLFCN_H | |
11386 | #include <dlfcn.h> | |
11387 | #endif | |
11388 | ||
11389 | #include <stdio.h> | |
11390 | ||
11391 | #ifdef RTLD_GLOBAL | |
11392 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11393 | #else | |
11394 | # ifdef DL_GLOBAL | |
11395 | # define LT_DLGLOBAL DL_GLOBAL | |
11396 | # else | |
11397 | # define LT_DLGLOBAL 0 | |
11398 | # endif | |
11399 | #endif | |
11400 | ||
11401 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11402 | find out it does not work in some platform. */ | |
11403 | #ifndef LT_DLLAZY_OR_NOW | |
11404 | # ifdef RTLD_LAZY | |
11405 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11406 | # else | |
11407 | # ifdef DL_LAZY | |
11408 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11409 | # else | |
11410 | # ifdef RTLD_NOW | |
11411 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11412 | # else | |
11413 | # ifdef DL_NOW | |
11414 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11415 | # else | |
11416 | # define LT_DLLAZY_OR_NOW 0 | |
11417 | # endif | |
11418 | # endif | |
11419 | # endif | |
11420 | # endif | |
11421 | #endif | |
11422 | ||
ce2cded5 L |
11423 | void fnord() { int i=42;} |
11424 | int main () | |
d7040cdb | 11425 | { |
ce2cded5 L |
11426 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11427 | int status = $lt_dlunknown; | |
11428 | ||
11429 | if (self) | |
11430 | { | |
11431 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11432 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11433 | /* dlclose (self); */ | |
11434 | } | |
11435 | else | |
11436 | puts (dlerror ()); | |
11437 | ||
718a6fd8 | 11438 | return status; |
d7040cdb | 11439 | } |
ce2cded5 L |
11440 | _LT_EOF |
11441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
d7040cdb SE |
11442 | (eval $ac_link) 2>&5 |
11443 | ac_status=$? | |
11444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
11445 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
11446 | (./conftest; exit; ) >&5 2>/dev/null | |
11447 | lt_status=$? | |
11448 | case x$lt_status in | |
11449 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11450 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11451 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11452 | esac | |
11453 | else : | |
11454 | # compilation failed | |
11455 | lt_cv_dlopen_self_static=no | |
11456 | fi | |
d7040cdb | 11457 | fi |
ce2cded5 L |
11458 | rm -fr conftest* |
11459 | ||
11460 | ||
d7040cdb | 11461 | fi |
ce2cded5 L |
11462 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
11463 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
11464 | fi | |
11465 | ||
11466 | CPPFLAGS="$save_CPPFLAGS" | |
11467 | LDFLAGS="$save_LDFLAGS" | |
11468 | LIBS="$save_LIBS" | |
11469 | ;; | |
11470 | esac | |
11471 | ||
11472 | case $lt_cv_dlopen_self in | |
11473 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11474 | *) enable_dlopen_self=unknown ;; | |
11475 | esac | |
11476 | ||
11477 | case $lt_cv_dlopen_self_static in | |
11478 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11479 | *) enable_dlopen_self_static=unknown ;; | |
11480 | esac | |
d7040cdb | 11481 | fi |
d7040cdb | 11482 | |
d7040cdb SE |
11483 | |
11484 | ||
d7040cdb | 11485 | |
d7040cdb | 11486 | |
ce2cded5 L |
11487 | |
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | striplib= | |
11500 | old_striplib= | |
11501 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11502 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
11503 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11504 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11505 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11506 | echo "$as_me:$LINENO: result: yes" >&5 | |
11507 | echo "${ECHO_T}yes" >&6 | |
11508 | else | |
11509 | # FIXME - insert some real tests, host_os isn't really good enough | |
11510 | case $host_os in | |
11511 | darwin*) | |
11512 | if test -n "$STRIP" ; then | |
11513 | striplib="$STRIP -x" | |
11514 | old_striplib="$STRIP -S" | |
11515 | echo "$as_me:$LINENO: result: yes" >&5 | |
11516 | echo "${ECHO_T}yes" >&6 | |
11517 | else | |
11518 | echo "$as_me:$LINENO: result: no" >&5 | |
11519 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 11520 | fi |
ce2cded5 L |
11521 | ;; |
11522 | *) | |
11523 | echo "$as_me:$LINENO: result: no" >&5 | |
11524 | echo "${ECHO_T}no" >&6 | |
11525 | ;; | |
d7040cdb | 11526 | esac |
d7040cdb SE |
11527 | fi |
11528 | ||
d7040cdb | 11529 | |
d7040cdb | 11530 | |
d7040cdb | 11531 | |
d7040cdb | 11532 | |
d7040cdb | 11533 | |
d7040cdb | 11534 | |
d7040cdb | 11535 | |
d7040cdb | 11536 | |
d7040cdb | 11537 | |
d7040cdb | 11538 | |
d7040cdb | 11539 | |
ce2cded5 L |
11540 | # Report which library types will actually be built |
11541 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11542 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
11543 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11544 | echo "${ECHO_T}$can_build_shared" >&6 | |
d7040cdb | 11545 | |
ce2cded5 L |
11546 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
11547 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
11548 | test "$can_build_shared" = "no" && enable_shared=no | |
d7040cdb | 11549 | |
ce2cded5 L |
11550 | # On AIX, shared libraries and static libraries use the same namespace, and |
11551 | # are all built from PIC. | |
11552 | case $host_os in | |
11553 | aix3*) | |
11554 | test "$enable_shared" = yes && enable_static=no | |
11555 | if test -n "$RANLIB"; then | |
11556 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11557 | postinstall_cmds='$RANLIB $lib' | |
11558 | fi | |
11559 | ;; | |
d7040cdb | 11560 | |
50e7d84b | 11561 | aix[4-9]*) |
ce2cded5 L |
11562 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11563 | test "$enable_shared" = yes && enable_static=no | |
11564 | fi | |
11565 | ;; | |
11566 | esac | |
11567 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11568 | echo "${ECHO_T}$enable_shared" >&6 | |
11569 | ||
11570 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
11571 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
11572 | # Make sure either enable_shared or enable_static is yes. | |
11573 | test "$enable_shared" = yes || enable_static=yes | |
11574 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11575 | echo "${ECHO_T}$enable_static" >&6 | |
d7040cdb | 11576 | |
d7040cdb | 11577 | |
d7040cdb | 11578 | |
d7040cdb | 11579 | |
ce2cded5 L |
11580 | fi |
11581 | ac_ext=c | |
11582 | ac_cpp='$CPP $CPPFLAGS' | |
11583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 11586 | |
ce2cded5 | 11587 | CC="$lt_save_CC" |
d7040cdb | 11588 | |
d7040cdb | 11589 | |
d7040cdb | 11590 | |
d7040cdb | 11591 | |
d7040cdb | 11592 | |
d7040cdb | 11593 | |
d7040cdb | 11594 | |
d7040cdb | 11595 | |
d7040cdb | 11596 | |
d7040cdb SE |
11597 | |
11598 | ||
d7040cdb SE |
11599 | |
11600 | ||
ce2cded5 | 11601 | ac_config_commands="$ac_config_commands libtool" |
d7040cdb SE |
11602 | |
11603 | ||
d7040cdb | 11604 | |
d7040cdb | 11605 | |
ce2cded5 | 11606 | # Only expand once: |
d7040cdb | 11607 | |
d7040cdb | 11608 | |
d7040cdb | 11609 | |
ce2cded5 L |
11610 | # Check whether --enable-targets or --disable-targets was given. |
11611 | if test "${enable_targets+set}" = set; then | |
11612 | enableval="$enable_targets" | |
11613 | case "${enableval}" in | |
11614 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
11615 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
11616 | { (exit 1); exit 1; }; } | |
11617 | ;; | |
11618 | no) enable_targets= ;; | |
11619 | *) enable_targets=$enableval ;; | |
11620 | esac | |
11621 | fi; | |
ce2cded5 L |
11622 | ac_checking=yes |
11623 | if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then | |
11624 | ac_checking= | |
11625 | fi | |
11626 | # Check whether --enable-checking or --disable-checking was given. | |
11627 | if test "${enable_checking+set}" = set; then | |
11628 | enableval="$enable_checking" | |
11629 | case "${enableval}" in | |
11630 | no|none) ac_checking= ;; | |
11631 | *) ac_checking=yes ;; | |
11632 | esac | |
11633 | fi; if test x$ac_checking != x ; then | |
d7040cdb | 11634 | |
ce2cded5 L |
11635 | cat >>confdefs.h <<\_ACEOF |
11636 | #define ENABLE_CHECKING 1 | |
11637 | _ACEOF | |
d7040cdb | 11638 | |
ce2cded5 | 11639 | fi |
d7040cdb | 11640 | |
ce2cded5 | 11641 | using_cgen=no |
d7040cdb | 11642 | |
d7040cdb | 11643 | |
ce2cded5 | 11644 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
d7040cdb | 11645 | |
ce2cded5 L |
11646 | # Check whether --enable-werror or --disable-werror was given. |
11647 | if test "${enable_werror+set}" = set; then | |
11648 | enableval="$enable_werror" | |
11649 | case "${enableval}" in | |
11650 | yes | y) ERROR_ON_WARNING="yes" ;; | |
11651 | no | n) ERROR_ON_WARNING="no" ;; | |
11652 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
11653 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
11654 | { (exit 1); exit 1; }; } ;; | |
11655 | esac | |
11656 | fi; | |
d7040cdb | 11657 | |
bb8541b9 L |
11658 | # Enable -Wno-format by default when using gcc on mingw |
11659 | case "${host}" in | |
11660 | *-*-mingw32*) | |
11661 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11662 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11663 | fi | |
11664 | ;; | |
11665 | *) ;; | |
11666 | esac | |
11667 | ||
ce2cded5 L |
11668 | # Enable -Werror by default when using gcc |
11669 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11670 | ERROR_ON_WARNING=yes | |
11671 | fi | |
11672 | ||
11673 | NO_WERROR= | |
11674 | if test "${ERROR_ON_WARNING}" = yes ; then | |
11675 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
11676 | NO_WERROR="-Wno-error" | |
11677 | fi | |
11678 | ||
11679 | if test "${GCC}" = yes ; then | |
11680 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11681 | fi | |
11682 | ||
11683 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
11684 | if test "${enable_build_warnings+set}" = set; then | |
11685 | enableval="$enable_build_warnings" | |
11686 | case "${enableval}" in | |
11687 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
11688 | no) if test "${GCC}" = yes ; then | |
11689 | WARN_CFLAGS="-w" | |
11690 | fi;; | |
11691 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11692 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
11693 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11694 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
11695 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
11696 | esac | |
11697 | fi; | |
d7040cdb | 11698 | |
ce2cded5 L |
11699 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11700 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
11701 | fi | |
d7040cdb | 11702 | |
d7040cdb | 11703 | |
d7040cdb | 11704 | |
d7040cdb | 11705 | |
d7040cdb | 11706 | |
ce2cded5 L |
11707 | # Generate a header file |
11708 | ac_config_headers="$ac_config_headers config.h:config.in" | |
d7040cdb | 11709 | |
d7040cdb | 11710 | |
ce2cded5 L |
11711 | # If we are on a DOS filesystem, we must use gdb.ini rather than |
11712 | # .gdbinit. | |
11713 | case "${host}" in | |
11714 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) | |
11715 | GDBINIT="gdb.ini" | |
11716 | ac_config_files="$ac_config_files gdb.ini:gdbinit.in" | |
d7040cdb | 11717 | |
ce2cded5 L |
11718 | ;; |
11719 | *) | |
11720 | GDBINIT=".gdbinit" | |
11721 | ac_config_files="$ac_config_files .gdbinit:gdbinit.in" | |
d7040cdb | 11722 | |
ce2cded5 L |
11723 | ;; |
11724 | esac | |
d7040cdb | 11725 | |
d7040cdb | 11726 | |
ce2cded5 L |
11727 | #We need this for the host. BOUT header is in host order. |
11728 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
11729 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
11730 | if test "${ac_cv_c_bigendian+set}" = set; then | |
11731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11732 | else | |
11733 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11734 | cat >conftest.$ac_ext <<_ACEOF | |
11735 | /* confdefs.h. */ | |
11736 | _ACEOF | |
11737 | cat confdefs.h >>conftest.$ac_ext | |
11738 | cat >>conftest.$ac_ext <<_ACEOF | |
11739 | /* end confdefs.h. */ | |
11740 | #include <sys/types.h> | |
11741 | #include <sys/param.h> | |
d7040cdb | 11742 | |
ce2cded5 L |
11743 | int |
11744 | main () | |
11745 | { | |
11746 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11747 | bogus endian macros | |
11748 | #endif | |
d7040cdb | 11749 | |
ce2cded5 L |
11750 | ; |
11751 | return 0; | |
11752 | } | |
11753 | _ACEOF | |
11754 | rm -f conftest.$ac_objext | |
11755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11756 | (eval $ac_compile) 2>conftest.er1 | |
11757 | ac_status=$? | |
11758 | grep -v '^ *+' conftest.er1 >conftest.err | |
11759 | rm -f conftest.er1 | |
11760 | cat conftest.err >&5 | |
11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11762 | (exit $ac_status); } && | |
11763 | { ac_try='test -z "$ac_c_werror_flag" | |
11764 | || test ! -s conftest.err' | |
11765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11766 | (eval $ac_try) 2>&5 | |
11767 | ac_status=$? | |
11768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11769 | (exit $ac_status); }; } && | |
11770 | { ac_try='test -s conftest.$ac_objext' | |
11771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11772 | (eval $ac_try) 2>&5 | |
11773 | ac_status=$? | |
11774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11775 | (exit $ac_status); }; }; then | |
11776 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
11777 | cat >conftest.$ac_ext <<_ACEOF | |
11778 | /* confdefs.h. */ | |
11779 | _ACEOF | |
11780 | cat confdefs.h >>conftest.$ac_ext | |
11781 | cat >>conftest.$ac_ext <<_ACEOF | |
11782 | /* end confdefs.h. */ | |
11783 | #include <sys/types.h> | |
11784 | #include <sys/param.h> | |
d7040cdb | 11785 | |
ce2cded5 L |
11786 | int |
11787 | main () | |
11788 | { | |
11789 | #if BYTE_ORDER != BIG_ENDIAN | |
11790 | not big endian | |
11791 | #endif | |
d7040cdb | 11792 | |
ce2cded5 L |
11793 | ; |
11794 | return 0; | |
11795 | } | |
11796 | _ACEOF | |
11797 | rm -f conftest.$ac_objext | |
11798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11799 | (eval $ac_compile) 2>conftest.er1 | |
11800 | ac_status=$? | |
11801 | grep -v '^ *+' conftest.er1 >conftest.err | |
11802 | rm -f conftest.er1 | |
11803 | cat conftest.err >&5 | |
11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11805 | (exit $ac_status); } && | |
11806 | { ac_try='test -z "$ac_c_werror_flag" | |
11807 | || test ! -s conftest.err' | |
11808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11809 | (eval $ac_try) 2>&5 | |
11810 | ac_status=$? | |
11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11812 | (exit $ac_status); }; } && | |
11813 | { ac_try='test -s conftest.$ac_objext' | |
11814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11815 | (eval $ac_try) 2>&5 | |
11816 | ac_status=$? | |
11817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11818 | (exit $ac_status); }; }; then | |
11819 | ac_cv_c_bigendian=yes | |
11820 | else | |
11821 | echo "$as_me: failed program was:" >&5 | |
11822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 11823 | |
ce2cded5 L |
11824 | ac_cv_c_bigendian=no |
11825 | fi | |
11826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11827 | else | |
11828 | echo "$as_me: failed program was:" >&5 | |
11829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 11830 | |
ce2cded5 L |
11831 | # It does not; compile a test program. |
11832 | if test "$cross_compiling" = yes; then | |
11833 | # try to guess the endianness by grepping values into an object file | |
11834 | ac_cv_c_bigendian=unknown | |
11835 | cat >conftest.$ac_ext <<_ACEOF | |
11836 | /* confdefs.h. */ | |
11837 | _ACEOF | |
11838 | cat confdefs.h >>conftest.$ac_ext | |
11839 | cat >>conftest.$ac_ext <<_ACEOF | |
11840 | /* end confdefs.h. */ | |
11841 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
11842 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
11843 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
11844 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
11845 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
11846 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
11847 | int | |
11848 | main () | |
11849 | { | |
11850 | _ascii (); _ebcdic (); | |
11851 | ; | |
11852 | return 0; | |
11853 | } | |
11854 | _ACEOF | |
11855 | rm -f conftest.$ac_objext | |
11856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11857 | (eval $ac_compile) 2>conftest.er1 | |
11858 | ac_status=$? | |
11859 | grep -v '^ *+' conftest.er1 >conftest.err | |
11860 | rm -f conftest.er1 | |
11861 | cat conftest.err >&5 | |
11862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11863 | (exit $ac_status); } && | |
11864 | { ac_try='test -z "$ac_c_werror_flag" | |
11865 | || test ! -s conftest.err' | |
11866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11867 | (eval $ac_try) 2>&5 | |
11868 | ac_status=$? | |
11869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11870 | (exit $ac_status); }; } && | |
11871 | { ac_try='test -s conftest.$ac_objext' | |
11872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11873 | (eval $ac_try) 2>&5 | |
11874 | ac_status=$? | |
11875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11876 | (exit $ac_status); }; }; then | |
11877 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
11878 | ac_cv_c_bigendian=yes | |
d7040cdb | 11879 | fi |
ce2cded5 L |
11880 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
11881 | if test "$ac_cv_c_bigendian" = unknown; then | |
11882 | ac_cv_c_bigendian=no | |
11883 | else | |
11884 | # finding both strings is unlikely to happen, but who knows? | |
11885 | ac_cv_c_bigendian=unknown | |
11886 | fi | |
11887 | fi | |
11888 | else | |
11889 | echo "$as_me: failed program was:" >&5 | |
11890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 11891 | |
ce2cded5 L |
11892 | fi |
11893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11894 | else | |
11895 | cat >conftest.$ac_ext <<_ACEOF | |
11896 | /* confdefs.h. */ | |
11897 | _ACEOF | |
11898 | cat confdefs.h >>conftest.$ac_ext | |
11899 | cat >>conftest.$ac_ext <<_ACEOF | |
11900 | /* end confdefs.h. */ | |
11901 | int | |
11902 | main () | |
11903 | { | |
11904 | /* Are we little or big endian? From Harbison&Steele. */ | |
11905 | union | |
11906 | { | |
11907 | long l; | |
11908 | char c[sizeof (long)]; | |
11909 | } u; | |
11910 | u.l = 1; | |
11911 | exit (u.c[sizeof (long) - 1] == 1); | |
11912 | } | |
d7040cdb | 11913 | _ACEOF |
ce2cded5 L |
11914 | rm -f conftest$ac_exeext |
11915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11916 | (eval $ac_link) 2>&5 | |
11917 | ac_status=$? | |
11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11919 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11921 | (eval $ac_try) 2>&5 | |
11922 | ac_status=$? | |
11923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11924 | (exit $ac_status); }; }; then | |
11925 | ac_cv_c_bigendian=no | |
11926 | else | |
11927 | echo "$as_me: program exited with status $ac_status" >&5 | |
11928 | echo "$as_me: failed program was:" >&5 | |
11929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 11930 | |
ce2cded5 L |
11931 | ( exit $ac_status ) |
11932 | ac_cv_c_bigendian=yes | |
d7040cdb | 11933 | fi |
ce2cded5 | 11934 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 11935 | fi |
d7040cdb | 11936 | fi |
ce2cded5 L |
11937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11938 | fi | |
11939 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
11940 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
11941 | case $ac_cv_c_bigendian in | |
11942 | yes) | |
d7040cdb | 11943 | |
d7040cdb | 11944 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 11945 | #define WORDS_BIGENDIAN 1 |
d7040cdb SE |
11946 | _ACEOF |
11947 | ;; | |
ce2cded5 L |
11948 | no) |
11949 | ;; | |
11950 | *) | |
11951 | { { echo "$as_me:$LINENO: error: unknown endianness | |
11952 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
11953 | echo "$as_me: error: unknown endianness | |
11954 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
11955 | { (exit 1); exit 1; }; } ;; | |
d7040cdb SE |
11956 | esac |
11957 | ||
d7040cdb | 11958 | |
ce2cded5 | 11959 | te_file=generic |
d7040cdb | 11960 | |
ce2cded5 L |
11961 | # Makefile target for installing gas in $(tooldir)/bin. |
11962 | install_tooldir=install-exec-tooldir | |
d7040cdb | 11963 | |
ce2cded5 L |
11964 | canon_targets="" |
11965 | all_targets=no | |
11966 | if test -n "$enable_targets" ; then | |
11967 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | |
11968 | if test $t = "all"; then | |
11969 | all_targets=yes | |
11970 | continue | |
11971 | fi | |
11972 | result=`$ac_config_sub $t 2>/dev/null` | |
11973 | if test -n "$result" ; then | |
11974 | canon_targets="$canon_targets $result" | |
11975 | # else | |
11976 | # # Permit "all", etc. We don't support it yet though. | |
11977 | # canon_targets="$canon_targets $t" | |
11978 | fi | |
11979 | done | |
11980 | _gas_uniq_list="$canon_targets" | |
d7040cdb SE |
11981 | _gas_uniq_newlist="" |
11982 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
11983 | case $_gas_uniq_i in | |
11984 | _gas_uniq_dummy) ;; | |
11985 | *) case " $_gas_uniq_newlist " in | |
11986 | *" $_gas_uniq_i "*) ;; | |
11987 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
11988 | esac ;; | |
11989 | esac | |
11990 | done | |
ce2cded5 | 11991 | canon_targets=$_gas_uniq_newlist |
d7040cdb | 11992 | |
ce2cded5 L |
11993 | fi |
11994 | ||
11995 | emulations="" | |
11996 | ||
11997 | for this_target in $target $canon_targets ; do | |
11998 | ||
11999 | targ=${this_target} | |
12000 | . ${srcdir}/configure.tgt | |
12001 | ||
12002 | case ${target_cpu} in | |
12003 | crisv32) | |
12004 | ||
12005 | cat >>confdefs.h <<_ACEOF | |
12006 | #define DEFAULT_CRIS_ARCH $arch | |
d7040cdb | 12007 | _ACEOF |
ce2cded5 L |
12008 | |
12009 | ;; | |
12010 | esac | |
12011 | ||
12012 | if test ${this_target} = $target ; then | |
12013 | target_cpu_type=${cpu_type} | |
12014 | elif test ${target_cpu_type} != ${cpu_type} ; then | |
12015 | continue | |
12016 | fi | |
12017 | ||
12018 | generic_target=${cpu_type}-${target_vendor}-${target_os} | |
12019 | case ${generic_target} in | |
12020 | i386-*-sco3.2v5*) | |
12021 | if test ${this_target} = $target; then | |
12022 | ||
d7040cdb | 12023 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 12024 | #define SCO_ELF 1 |
d7040cdb | 12025 | _ACEOF |
ce2cded5 L |
12026 | |
12027 | fi | |
12028 | ;; | |
12029 | ||
12030 | i386-*-msdosdjgpp* \ | |
12031 | | i386-*-go32* \ | |
12032 | | i386-go32-rtems*) | |
12033 | ||
d7040cdb | 12034 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 12035 | #define STRICTCOFF 1 |
d7040cdb | 12036 | _ACEOF |
ce2cded5 L |
12037 | |
12038 | ;; | |
12039 | ||
12040 | i860-*-*) | |
12041 | { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5 | |
12042 | echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} | |
12043 | ;; | |
12044 | ||
12045 | mips-sony-bsd*) | |
12046 | ;; | |
12047 | mips-*-bsd*) | |
12048 | { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5 | |
12049 | echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;} | |
12050 | { (exit 1); exit 1; }; } | |
12051 | ;; | |
12052 | ||
e5231592 | 12053 | ppc-*-aix[5-9].*) |
ce2cded5 | 12054 | |
d7040cdb | 12055 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 12056 | #define AIX_WEAK_SUPPORT 1 |
d7040cdb | 12057 | _ACEOF |
ce2cded5 L |
12058 | |
12059 | ;; | |
12060 | ppc-*-linux-*) | |
12061 | case "$endian" in | |
12062 | big) ;; | |
12063 | *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5 | |
12064 | echo "$as_me: error: GNU/Linux must be configured big endian" >&2;} | |
12065 | { (exit 1); exit 1; }; } ;; | |
12066 | esac | |
12067 | ;; | |
12068 | ppc-*-solaris*) | |
12069 | if test ${this_target} = $target; then | |
12070 | ||
d7040cdb | 12071 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 12072 | #define TARGET_SOLARIS_COMMENT 1 |
d7040cdb | 12073 | _ACEOF |
ce2cded5 L |
12074 | |
12075 | fi | |
12076 | if test x${endian} = xbig; then | |
12077 | { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5 | |
12078 | echo "$as_me: error: Solaris must be configured little endian" >&2;} | |
12079 | { (exit 1); exit 1; }; } | |
12080 | fi | |
12081 | ;; | |
12082 | ||
12083 | sh*-*-symbianelf*) | |
12084 | ||
d7040cdb | 12085 | cat >>confdefs.h <<\_ACEOF |
ce2cded5 | 12086 | #define TARGET_SYMBIAN 1 |
d7040cdb | 12087 | _ACEOF |
ce2cded5 L |
12088 | |
12089 | ;; | |
d7040cdb | 12090 | esac |
d7040cdb | 12091 | |
ce2cded5 L |
12092 | if test ${this_target} = $target ; then |
12093 | endian_def= | |
12094 | if test x${endian} = xbig; then | |
12095 | endian_def=1 | |
12096 | elif test x${endian} = xlittle; then | |
12097 | endian_def=0 | |
12098 | fi | |
12099 | if test x${endian_def} != x; then | |
12100 | ||
12101 | cat >>confdefs.h <<_ACEOF | |
12102 | #define TARGET_BYTES_BIG_ENDIAN $endian_def | |
12103 | _ACEOF | |
12104 | ||
12105 | fi | |
12106 | fi | |
12107 | ||
12108 | # Other random stuff. | |
12109 | ||
12110 | case ${cpu_type} in | |
12111 | mips) | |
12112 | # Set mips_cpu to the name of the default CPU. | |
12113 | case ${target_cpu} in | |
12114 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) | |
12115 | mips_cpu=from-abi | |
12116 | ;; | |
12117 | mipsisa32 | mipsisa32el) | |
12118 | mips_cpu=mips32 | |
12119 | ;; | |
12120 | mipsisa32r2 | mipsisa32r2el) | |
12121 | mips_cpu=mips32r2 | |
12122 | ;; | |
12123 | mipsisa64 | mipsisa64el) | |
12124 | mips_cpu=mips64 | |
12125 | ;; | |
12126 | mipsisa64r2 | mipsisa64r2el) | |
12127 | mips_cpu=mips64r2 | |
12128 | ;; | |
12129 | mipstx39 | mipstx39el) | |
12130 | mips_cpu=r3900 | |
12131 | ;; | |
12132 | mips64vr | mips64vrel) | |
12133 | mips_cpu=vr4100 | |
12134 | ;; | |
12135 | mipsisa32r2* | mipsisa64r2*) | |
12136 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` | |
12137 | ;; | |
12138 | mips64* | mipsisa64* | mipsisa32*) | |
12139 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` | |
12140 | ;; | |
12141 | *) | |
12142 | { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5 | |
12143 | echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;} | |
12144 | { (exit 1); exit 1; }; } | |
12145 | ;; | |
12146 | esac | |
12147 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 | |
12148 | # binaries. It's a GNU extension that some OSes don't understand. | |
12149 | # The value only matters on ELF targets. | |
12150 | case ${target} in | |
12151 | *-*-irix*) | |
12152 | use_e_mips_abi_o32=0 | |
12153 | ;; | |
12154 | *) | |
12155 | use_e_mips_abi_o32=1 | |
12156 | ;; | |
12157 | esac | |
12158 | # Decide whether to generate 32-bit or 64-bit code by default. | |
12159 | # Used to resolve -march=from-abi when an embedded ABI is selected. | |
12160 | case ${target} in | |
12161 | mips64*-*-* | mipsisa64*-*-*) | |
12162 | mips_default_64bit=1 | |
12163 | ;; | |
12164 | *) | |
12165 | mips_default_64bit=0 | |
12166 | ;; | |
12167 | esac | |
12168 | # Decide which ABI to target by default. | |
12169 | case ${target} in | |
12170 | mips64*-linux* | mips-sgi-irix6*) | |
12171 | mips_default_abi=N32_ABI | |
12172 | ;; | |
12173 | mips*-linux*) | |
12174 | mips_default_abi=O32_ABI | |
12175 | ;; | |
12176 | mips64*-openbsd*) | |
12177 | mips_default_abi=N64_ABI | |
12178 | ;; | |
12179 | *) | |
12180 | mips_default_abi=NO_ABI | |
12181 | ;; | |
12182 | esac | |
12183 | ||
12184 | cat >>confdefs.h <<_ACEOF | |
12185 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu" | |
d7040cdb | 12186 | _ACEOF |
d7040cdb SE |
12187 | |
12188 | ||
12189 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12190 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 |
d7040cdb SE |
12191 | _ACEOF |
12192 | ||
12193 | ||
12194 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12195 | #define MIPS_DEFAULT_64BIT $mips_default_64bit |
d7040cdb SE |
12196 | _ACEOF |
12197 | ||
12198 | ||
ce2cded5 L |
12199 | cat >>confdefs.h <<_ACEOF |
12200 | #define MIPS_DEFAULT_ABI $mips_default_abi | |
12201 | _ACEOF | |
d7040cdb | 12202 | |
ce2cded5 L |
12203 | ;; |
12204 | esac | |
d7040cdb | 12205 | |
ce2cded5 L |
12206 | # Do we need the opcodes library? |
12207 | case ${cpu_type} in | |
12208 | vax | tic30) | |
12209 | ;; | |
d7040cdb | 12210 | |
ce2cded5 L |
12211 | *) |
12212 | need_opcodes=yes | |
d7040cdb | 12213 | |
ce2cded5 L |
12214 | case "${enable_shared}" in |
12215 | yes) shared_opcodes=true ;; | |
12216 | *opcodes*) shared_opcodes=true ;; | |
12217 | *) shared_opcodes=false ;; | |
12218 | esac | |
12219 | ;; | |
12220 | esac | |
d7040cdb | 12221 | |
ce2cded5 L |
12222 | # Any other special object files needed ? |
12223 | case ${cpu_type} in | |
d7040cdb | 12224 | |
ce2cded5 L |
12225 | bfin) |
12226 | echo ${extra_objects} | grep -s "bfin-parse.o" | |
12227 | if test $? -ne 0 ; then | |
12228 | extra_objects="$extra_objects bfin-parse.o" | |
12229 | fi | |
d7040cdb | 12230 | |
ce2cded5 L |
12231 | echo ${extra_objects} | grep -s "bfin-lex.o" |
12232 | if test $? -ne 0 ; then | |
12233 | extra_objects="$extra_objects bfin-lex.o" | |
12234 | fi | |
12235 | ;; | |
d7040cdb | 12236 | |
84e94c90 | 12237 | fr30 | ip2k | iq2000 | lm32 | m32r | openrisc) |
ce2cded5 L |
12238 | using_cgen=yes |
12239 | ;; | |
d7040cdb | 12240 | |
ce2cded5 L |
12241 | m32c) |
12242 | using_cgen=yes | |
12243 | ;; | |
12244 | frv) | |
12245 | using_cgen=yes | |
12246 | ;; | |
12247 | m68k) | |
12248 | case ${extra_objects} in | |
12249 | *m68k-parse.o*) ;; | |
12250 | *) extra_objects="$extra_objects m68k-parse.o" ;; | |
12251 | esac | |
12252 | ;; | |
d7040cdb | 12253 | |
ce2cded5 L |
12254 | mep) |
12255 | using_cgen=yes | |
12256 | ;; | |
d7040cdb | 12257 | |
ce2cded5 L |
12258 | mips) |
12259 | echo ${extra_objects} | grep -s "itbl-parse.o" | |
12260 | if test $? -ne 0 ; then | |
12261 | extra_objects="$extra_objects itbl-parse.o" | |
12262 | fi | |
d7040cdb | 12263 | |
ce2cded5 L |
12264 | echo ${extra_objects} | grep -s "itbl-lex.o" |
12265 | if test $? -ne 0 ; then | |
12266 | extra_objects="$extra_objects itbl-lex.o" | |
12267 | fi | |
d7040cdb | 12268 | |
ce2cded5 L |
12269 | echo ${extra_objects} | grep -s "itbl-ops.o" |
12270 | if test $? -ne 0 ; then | |
12271 | extra_objects="$extra_objects itbl-ops.o" | |
12272 | fi | |
12273 | ;; | |
d7040cdb | 12274 | |
ce2cded5 L |
12275 | mt) |
12276 | using_cgen=yes | |
12277 | ;; | |
d7040cdb | 12278 | |
ce2cded5 L |
12279 | i386 | s390 | sparc) |
12280 | if test $this_target = $target ; then | |
d7040cdb SE |
12281 | |
12282 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12283 | #define DEFAULT_ARCH "${arch}" |
d7040cdb SE |
12284 | _ACEOF |
12285 | ||
ce2cded5 L |
12286 | fi |
12287 | ;; | |
d7040cdb | 12288 | |
ce2cded5 L |
12289 | xstormy16) |
12290 | using_cgen=yes | |
12291 | ;; | |
d7040cdb | 12292 | |
ce2cded5 L |
12293 | xc16x) |
12294 | using_cgen=yes | |
12295 | ;; | |
d7040cdb | 12296 | |
ce2cded5 L |
12297 | xtensa) |
12298 | echo ${extra_objects} | grep -s "xtensa-relax.o" | |
12299 | if test $? -ne 0 ; then | |
12300 | extra_objects="$extra_objects xtensa-relax.o" | |
12301 | fi | |
12302 | ;; | |
d7040cdb | 12303 | |
ce2cded5 L |
12304 | *) |
12305 | ;; | |
12306 | esac | |
d7040cdb | 12307 | |
ce2cded5 L |
12308 | if test $using_cgen = yes ; then |
12309 | case "x${extra_objects}" in | |
12310 | *cgen.o*) ;; | |
12311 | *) extra_objects="$extra_objects cgen.o" ;; | |
12312 | esac | |
12313 | fi | |
d7040cdb | 12314 | |
ce2cded5 | 12315 | # See if we really can support this configuration with the emulation code. |
d7040cdb | 12316 | |
ce2cded5 L |
12317 | if test $this_target = $target ; then |
12318 | obj_format=$fmt | |
12319 | te_file=$em | |
12320 | fi | |
d7040cdb | 12321 | |
ce2cded5 | 12322 | # From target name and format, produce a list of supported emulations. |
d7040cdb | 12323 | |
ce2cded5 L |
12324 | case ${generic_target}-${fmt} in |
12325 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | |
12326 | mips*-*-linux*-*) case "$endian" in | |
12327 | big) emulation="mipsbelf mipslelf mipself" ;; | |
12328 | *) emulation="mipslelf mipsbelf mipself" ;; | |
12329 | esac ;; | |
12330 | mips-*-lnews*-ecoff) ;; | |
12331 | mips-*-*-ecoff) case "$endian" in | |
12332 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;; | |
12333 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;; | |
12334 | esac ;; | |
12335 | mips-*-*-elf) case "$endian" in | |
12336 | big) emulation="mipsbelf mipslelf mipself" ;; | |
12337 | *) emulation="mipslelf mipsbelf mipself" ;; | |
12338 | esac ;; | |
12339 | mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | |
12340 | # i386-pc-pe-coff != i386-pc-coff. | |
12341 | i386-*-pe-coff) ;; | |
12342 | # Uncommenting the next line will turn on support for i386 AOUT | |
12343 | # for the default linux configuration | |
12344 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | |
12345 | # | |
12346 | i386-*-aout) emulation="i386aout" ;; | |
12347 | i386-*-coff) emulation="i386coff" ;; | |
12348 | i386-*-elf) emulation="i386elf" ;; | |
d7040cdb | 12349 | |
ce2cded5 L |
12350 | # Always all formats. The first stated emulation becomes the default. |
12351 | cris-*-*aout*) emulation="crisaout criself" ;; | |
12352 | cris-*-*) emulation="criself crisaout" ;; | |
12353 | esac | |
13b2be9c | 12354 | |
ce2cded5 | 12355 | emulations="$emulations $emulation" |
13b2be9c | 12356 | |
13b2be9c | 12357 | done |
13b2be9c | 12358 | |
ce2cded5 L |
12359 | # Turn on all targets if possible |
12360 | if test ${all_targets} = "yes"; then | |
12361 | case ${target_cpu_type} in | |
12362 | i386) | |
12363 | case ${obj_format} in | |
12364 | aout) | |
12365 | emulations="$emulations i386coff i386elf" | |
12366 | ;; | |
12367 | coff) | |
12368 | emulations="$emulations i386aout i386elf" | |
12369 | ;; | |
12370 | elf) | |
12371 | emulations="$emulations i386aout i386coff" | |
12372 | ;; | |
12373 | esac | |
12374 | ;; | |
12375 | x86_64) | |
12376 | case ${obj_format} in | |
12377 | aout) | |
12378 | emulations="$emulations i386coff i386elf" | |
12379 | ;; | |
12380 | coff) | |
12381 | emulations="$emulations i386aout i386elf" | |
12382 | ;; | |
12383 | elf) | |
12384 | emulations="$emulations i386aout i386coff" | |
12385 | ;; | |
12386 | esac | |
12387 | ;; | |
12388 | esac | |
13b2be9c | 12389 | fi |
c8615825 | 12390 | |
ce2cded5 L |
12391 | # Assign floating point type. Most processors with FP support |
12392 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
12393 | # is emulated. | |
12394 | case ${target_cpu} in | |
12395 | vax | pdp11 ) atof=vax ;; | |
12396 | *) atof=ieee ;; | |
12397 | esac | |
c8615825 | 12398 | |
ce2cded5 L |
12399 | case "${obj_format}" in |
12400 | "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5 | |
12401 | echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;} | |
12402 | { (exit 1); exit 1; }; } ;; | |
12403 | esac | |
13b2be9c | 12404 | |
ce2cded5 L |
12405 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). |
12406 | cgen_cpu_prefix="" | |
12407 | if test $using_cgen = yes ; then | |
12408 | case ${target_cpu} in | |
12409 | *) cgen_cpu_prefix=${target_cpu} ;; | |
12410 | esac | |
c8615825 | 12411 | |
c8615825 | 12412 | |
ce2cded5 L |
12413 | cat >>confdefs.h <<\_ACEOF |
12414 | #define USING_CGEN 1 | |
12415 | _ACEOF | |
d7040cdb | 12416 | |
d7040cdb | 12417 | fi |
13b2be9c | 12418 | |
ce2cded5 L |
12419 | |
12420 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then | |
12421 | { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5 | |
12422 | echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;} | |
12423 | { (exit 1); exit 1; }; } | |
13b2be9c | 12424 | fi |
ce2cded5 L |
12425 | |
12426 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | |
12427 | { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5 | |
12428 | echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;} | |
12429 | { (exit 1); exit 1; }; } | |
13b2be9c DJ |
12430 | fi |
12431 | ||
ce2cded5 L |
12432 | # Some COFF configurations want these random other flags set. |
12433 | case ${obj_format} in | |
12434 | coff) | |
12435 | case ${target_cpu_type} in | |
12436 | i386) | |
12437 | cat >>confdefs.h <<\_ACEOF | |
12438 | #define I386COFF 1 | |
12439 | _ACEOF | |
12440 | ;; | |
12441 | m68k) | |
12442 | cat >>confdefs.h <<\_ACEOF | |
12443 | #define M68KCOFF 1 | |
12444 | _ACEOF | |
12445 | ;; | |
12446 | m88k) | |
12447 | cat >>confdefs.h <<\_ACEOF | |
12448 | #define M88KCOFF 1 | |
12449 | _ACEOF | |
12450 | ;; | |
12451 | x86_64) | |
12452 | cat >>confdefs.h <<\_ACEOF | |
12453 | #define I386COFF 1 | |
12454 | _ACEOF | |
12455 | ;; | |
12456 | esac | |
12457 | ;; | |
12458 | esac | |
12459 | ||
12460 | # Getting this done right is going to be a bitch. Each configuration specified | |
12461 | # with --enable-targets=... should be checked for environment, format, cpu | |
12462 | # setting. | |
12463 | # | |
12464 | # For each configuration, the necessary object file support code must be linked | |
12465 | # in. This might be only one, it might be up to four. The necessary emulation | |
12466 | # code needs to be provided, too. | |
12467 | # | |
12468 | # And then there's "--enable-targets=all".... | |
12469 | # | |
12470 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh. | |
12471 | ||
12472 | formats="${obj_format}" | |
12473 | emfiles="" | |
12474 | EMULATIONS="" | |
12475 | _gas_uniq_list="$emulations" | |
12476 | _gas_uniq_newlist="" | |
12477 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12478 | case $_gas_uniq_i in | |
12479 | _gas_uniq_dummy) ;; | |
12480 | *) case " $_gas_uniq_newlist " in | |
12481 | *" $_gas_uniq_i "*) ;; | |
12482 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12483 | esac ;; | |
12484 | esac | |
12485 | done | |
12486 | emulations=$_gas_uniq_newlist | |
12487 | ||
12488 | for em in . $emulations ; do | |
12489 | case $em in | |
12490 | .) continue ;; | |
12491 | mipsbelf | mipslelf | mipself) | |
12492 | fmt=elf file=mipself ;; | |
12493 | mipsbecoff | mipslecoff | mipsecoff) | |
12494 | fmt=ecoff file=mipsecoff ;; | |
12495 | *coff) | |
12496 | fmt=coff file=$em ;; | |
12497 | *aout) | |
12498 | fmt=aout file=$em ;; | |
12499 | *elf) | |
12500 | fmt=elf file=$em ;; | |
12501 | esac | |
12502 | formats="$formats $fmt" | |
12503 | emfiles="$emfiles e-$file.o" | |
12504 | EMULATIONS="$EMULATIONS &$em," | |
12505 | done | |
12506 | _gas_uniq_list="$formats" | |
12507 | _gas_uniq_newlist="" | |
12508 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12509 | case $_gas_uniq_i in | |
12510 | _gas_uniq_dummy) ;; | |
12511 | *) case " $_gas_uniq_newlist " in | |
12512 | *" $_gas_uniq_i "*) ;; | |
12513 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12514 | esac ;; | |
12515 | esac | |
13b2be9c | 12516 | done |
ce2cded5 | 12517 | formats=$_gas_uniq_newlist |
13b2be9c | 12518 | |
ce2cded5 L |
12519 | _gas_uniq_list="$emfiles" |
12520 | _gas_uniq_newlist="" | |
12521 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12522 | case $_gas_uniq_i in | |
12523 | _gas_uniq_dummy) ;; | |
12524 | *) case " $_gas_uniq_newlist " in | |
12525 | *" $_gas_uniq_i "*) ;; | |
12526 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12527 | esac ;; | |
12528 | esac | |
12529 | done | |
12530 | emfiles=$_gas_uniq_newlist | |
d7040cdb | 12531 | |
ce2cded5 L |
12532 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then |
12533 | for fmt in $formats ; do | |
12534 | case $fmt in | |
12535 | aout) | |
12536 | cat >>confdefs.h <<\_ACEOF | |
12537 | #define OBJ_MAYBE_AOUT 1 | |
13b2be9c | 12538 | _ACEOF |
ce2cded5 L |
12539 | ;; |
12540 | bout) | |
12541 | cat >>confdefs.h <<\_ACEOF | |
12542 | #define OBJ_MAYBE_BOUT 1 | |
13b2be9c | 12543 | _ACEOF |
ce2cded5 L |
12544 | ;; |
12545 | coff) | |
12546 | cat >>confdefs.h <<\_ACEOF | |
12547 | #define OBJ_MAYBE_COFF 1 | |
12548 | _ACEOF | |
12549 | ;; | |
12550 | ecoff) | |
12551 | cat >>confdefs.h <<\_ACEOF | |
12552 | #define OBJ_MAYBE_ECOFF 1 | |
12553 | _ACEOF | |
12554 | ;; | |
12555 | elf) | |
12556 | cat >>confdefs.h <<\_ACEOF | |
12557 | #define OBJ_MAYBE_ELF 1 | |
12558 | _ACEOF | |
12559 | ;; | |
12560 | generic) | |
12561 | cat >>confdefs.h <<\_ACEOF | |
12562 | #define OBJ_MAYBE_GENERIC 1 | |
12563 | _ACEOF | |
12564 | ;; | |
12565 | som) | |
12566 | cat >>confdefs.h <<\_ACEOF | |
12567 | #define OBJ_MAYBE_SOM 1 | |
12568 | _ACEOF | |
12569 | ;; | |
12570 | esac | |
12571 | extra_objects="$extra_objects obj-$fmt.o" | |
12572 | done | |
12573 | obj_format=multi | |
13b2be9c | 12574 | fi |
ce2cded5 L |
12575 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then |
12576 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | |
12577 | # e-mips* has more than one emulation per file, e-i386* has just one at the | |
12578 | # moment. If only one emulation is specified, then don't define | |
12579 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | |
12580 | case "${obj_format}${emfiles}" in | |
12581 | multi* | *mips*) | |
12582 | extra_objects="$extra_objects $emfiles" | |
d7040cdb | 12583 | |
ce2cded5 L |
12584 | cat >>confdefs.h <<\_ACEOF |
12585 | #define USE_EMULATIONS 1 | |
13b2be9c | 12586 | _ACEOF |
ce2cded5 L |
12587 | ;; |
12588 | esac | |
12589 | fi | |
d7040cdb | 12590 | |
13b2be9c | 12591 | |
ce2cded5 L |
12592 | cat >>confdefs.h <<_ACEOF |
12593 | #define EMULATIONS $EMULATIONS | |
13b2be9c | 12594 | _ACEOF |
d7040cdb | 12595 | |
d7040cdb | 12596 | |
ce2cded5 L |
12597 | cat >>confdefs.h <<_ACEOF |
12598 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | |
d7040cdb | 12599 | _ACEOF |
d7040cdb | 12600 | |
d7040cdb | 12601 | |
ce2cded5 | 12602 | reject_dev_configs=yes |
252b5132 | 12603 | |
ce2cded5 L |
12604 | case ${reject_dev_configs}-${dev} in |
12605 | yes-yes) # Oops. | |
12606 | { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5 | |
12607 | echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;} | |
12608 | { (exit 1); exit 1; }; } | |
12609 | ;; | |
d7040cdb SE |
12610 | esac |
12611 | ||
13b2be9c | 12612 | |
ce2cded5 L |
12613 | |
12614 | ||
12615 | ||
12616 | ||
12617 | ||
12618 | # do we need the opcodes library? | |
12619 | case "${need_opcodes}" in | |
12620 | yes) | |
12621 | OPCODES_LIB=../opcodes/libopcodes.la | |
12622 | ;; | |
12623 | esac | |
12624 | ||
12625 | ||
12626 | ||
12627 | ||
12628 | cat >>confdefs.h <<_ACEOF | |
12629 | #define TARGET_ALIAS "${target_alias}" | |
d7040cdb | 12630 | _ACEOF |
20e95c23 | 12631 | |
20e95c23 | 12632 | |
ce2cded5 L |
12633 | cat >>confdefs.h <<_ACEOF |
12634 | #define TARGET_CANONICAL "${target}" | |
12635 | _ACEOF | |
20e95c23 | 12636 | |
d6d788bd | 12637 | |
ce2cded5 L |
12638 | cat >>confdefs.h <<_ACEOF |
12639 | #define TARGET_CPU "${target_cpu}" | |
12640 | _ACEOF | |
20e95c23 | 12641 | |
ce2cded5 L |
12642 | |
12643 | cat >>confdefs.h <<_ACEOF | |
12644 | #define TARGET_VENDOR "${target_vendor}" | |
0efedc4c AM |
12645 | _ACEOF |
12646 | ||
12647 | ||
ce2cded5 L |
12648 | cat >>confdefs.h <<_ACEOF |
12649 | #define TARGET_OS "${target_os}" | |
12650 | _ACEOF | |
12651 | ||
0efedc4c | 12652 | |
d7040cdb SE |
12653 | for ac_prog in 'bison -y' byacc |
12654 | do | |
12655 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12656 | set dummy $ac_prog; ac_word=$2 | |
20e95c23 DJ |
12657 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 12659 | if test "${ac_cv_prog_YACC+set}" = set; then |
20e95c23 DJ |
12660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12661 | else | |
d7040cdb SE |
12662 | if test -n "$YACC"; then |
12663 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
d6d788bd | 12664 | else |
d7040cdb SE |
12665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12666 | for as_dir in $PATH | |
12667 | do | |
12668 | IFS=$as_save_IFS | |
12669 | test -z "$as_dir" && as_dir=. | |
12670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12672 | ac_cv_prog_YACC="$ac_prog" | |
12673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12674 | break 2 | |
20e95c23 | 12675 | fi |
d7040cdb SE |
12676 | done |
12677 | done | |
20e95c23 | 12678 | |
d7040cdb SE |
12679 | fi |
12680 | fi | |
12681 | YACC=$ac_cv_prog_YACC | |
12682 | if test -n "$YACC"; then | |
12683 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
12684 | echo "${ECHO_T}$YACC" >&6 | |
12685 | else | |
12686 | echo "$as_me:$LINENO: result: no" >&5 | |
12687 | echo "${ECHO_T}no" >&6 | |
12688 | fi | |
20e95c23 | 12689 | |
d7040cdb SE |
12690 | test -n "$YACC" && break |
12691 | done | |
12692 | test -n "$YACC" || YACC="yacc" | |
20e95c23 | 12693 | |
d7040cdb SE |
12694 | for ac_prog in flex lex |
12695 | do | |
12696 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12697 | set dummy $ac_prog; ac_word=$2 | |
12698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12700 | if test "${ac_cv_prog_LEX+set}" = set; then | |
12701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d6d788bd | 12702 | else |
d7040cdb SE |
12703 | if test -n "$LEX"; then |
12704 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
12705 | else | |
12706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12707 | for as_dir in $PATH | |
12708 | do | |
12709 | IFS=$as_save_IFS | |
12710 | test -z "$as_dir" && as_dir=. | |
12711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12713 | ac_cv_prog_LEX="$ac_prog" | |
12714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12715 | break 2 | |
12716 | fi | |
12717 | done | |
12718 | done | |
20e95c23 | 12719 | |
d7040cdb SE |
12720 | fi |
12721 | fi | |
12722 | LEX=$ac_cv_prog_LEX | |
12723 | if test -n "$LEX"; then | |
12724 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
12725 | echo "${ECHO_T}$LEX" >&6 | |
20e95c23 | 12726 | else |
d7040cdb SE |
12727 | echo "$as_me:$LINENO: result: no" >&5 |
12728 | echo "${ECHO_T}no" >&6 | |
13b2be9c DJ |
12729 | fi |
12730 | ||
d7040cdb SE |
12731 | test -n "$LEX" && break |
12732 | done | |
12733 | test -n "$LEX" || LEX=":" | |
20e95c23 | 12734 | |
d7040cdb SE |
12735 | if test -z "$LEXLIB" |
12736 | then | |
12737 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | |
12738 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
12739 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
12740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d5fbea21 | 12741 | else |
d7040cdb SE |
12742 | ac_check_lib_save_LIBS=$LIBS |
12743 | LIBS="-lfl $LIBS" | |
12744 | cat >conftest.$ac_ext <<_ACEOF | |
12745 | /* confdefs.h. */ | |
12746 | _ACEOF | |
12747 | cat confdefs.h >>conftest.$ac_ext | |
12748 | cat >>conftest.$ac_ext <<_ACEOF | |
12749 | /* end confdefs.h. */ | |
d5fbea21 | 12750 | |
d7040cdb SE |
12751 | /* Override any gcc2 internal prototype to avoid an error. */ |
12752 | #ifdef __cplusplus | |
12753 | extern "C" | |
12754 | #endif | |
12755 | /* We use char because int might match the return type of a gcc2 | |
12756 | builtin and then its argument prototype would still apply. */ | |
12757 | char yywrap (); | |
12758 | int | |
12759 | main () | |
12760 | { | |
12761 | yywrap (); | |
12762 | ; | |
12763 | return 0; | |
12764 | } | |
12765 | _ACEOF | |
12766 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12768 | (eval $ac_link) 2>conftest.er1 | |
12769 | ac_status=$? | |
12770 | grep -v '^ *+' conftest.er1 >conftest.err | |
12771 | rm -f conftest.er1 | |
12772 | cat conftest.err >&5 | |
12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12774 | (exit $ac_status); } && | |
12775 | { ac_try='test -z "$ac_c_werror_flag" | |
12776 | || test ! -s conftest.err' | |
12777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12778 | (eval $ac_try) 2>&5 | |
12779 | ac_status=$? | |
12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12781 | (exit $ac_status); }; } && | |
12782 | { ac_try='test -s conftest$ac_exeext' | |
12783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12784 | (eval $ac_try) 2>&5 | |
12785 | ac_status=$? | |
12786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12787 | (exit $ac_status); }; }; then | |
12788 | ac_cv_lib_fl_yywrap=yes | |
12789 | else | |
12790 | echo "$as_me: failed program was:" >&5 | |
12791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d5fbea21 | 12792 | |
d7040cdb | 12793 | ac_cv_lib_fl_yywrap=no |
d6d788bd | 12794 | fi |
d7040cdb SE |
12795 | rm -f conftest.err conftest.$ac_objext \ |
12796 | conftest$ac_exeext conftest.$ac_ext | |
12797 | LIBS=$ac_check_lib_save_LIBS | |
12798 | fi | |
12799 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
12800 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
12801 | if test $ac_cv_lib_fl_yywrap = yes; then | |
12802 | LEXLIB="-lfl" | |
12803 | else | |
12804 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
12805 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
12806 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
13b2be9c DJ |
12807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12808 | else | |
d7040cdb SE |
12809 | ac_check_lib_save_LIBS=$LIBS |
12810 | LIBS="-ll $LIBS" | |
12811 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
12812 | /* confdefs.h. */ |
12813 | _ACEOF | |
12814 | cat confdefs.h >>conftest.$ac_ext | |
12815 | cat >>conftest.$ac_ext <<_ACEOF | |
12816 | /* end confdefs.h. */ | |
d7040cdb SE |
12817 | |
12818 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12819 | #ifdef __cplusplus | |
12820 | extern "C" | |
13b2be9c | 12821 | #endif |
d7040cdb SE |
12822 | /* We use char because int might match the return type of a gcc2 |
12823 | builtin and then its argument prototype would still apply. */ | |
12824 | char yywrap (); | |
12825 | int | |
12826 | main () | |
12827 | { | |
12828 | yywrap (); | |
12829 | ; | |
12830 | return 0; | |
12831 | } | |
12832 | _ACEOF | |
12833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12835 | (eval $ac_link) 2>conftest.er1 | |
12836 | ac_status=$? | |
12837 | grep -v '^ *+' conftest.er1 >conftest.err | |
12838 | rm -f conftest.er1 | |
12839 | cat conftest.err >&5 | |
12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12841 | (exit $ac_status); } && | |
12842 | { ac_try='test -z "$ac_c_werror_flag" | |
12843 | || test ! -s conftest.err' | |
12844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12845 | (eval $ac_try) 2>&5 | |
12846 | ac_status=$? | |
12847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12848 | (exit $ac_status); }; } && | |
12849 | { ac_try='test -s conftest$ac_exeext' | |
12850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12851 | (eval $ac_try) 2>&5 | |
12852 | ac_status=$? | |
12853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12854 | (exit $ac_status); }; }; then | |
12855 | ac_cv_lib_l_yywrap=yes | |
12856 | else | |
12857 | echo "$as_me: failed program was:" >&5 | |
12858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12859 | ||
12860 | ac_cv_lib_l_yywrap=no | |
12861 | fi | |
12862 | rm -f conftest.err conftest.$ac_objext \ | |
12863 | conftest$ac_exeext conftest.$ac_ext | |
12864 | LIBS=$ac_check_lib_save_LIBS | |
12865 | fi | |
12866 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
12867 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
12868 | if test $ac_cv_lib_l_yywrap = yes; then | |
12869 | LEXLIB="-ll" | |
12870 | fi | |
12871 | ||
12872 | fi | |
12873 | ||
12874 | fi | |
12875 | ||
12876 | if test "x$LEX" != "x:"; then | |
12877 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
12878 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
12879 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
12880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12881 | else | |
12882 | # The minimal lex program is just a single line: %%. But some broken lexes | |
12883 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
12884 | cat >conftest.l <<_ACEOF | |
12885 | %% | |
12886 | %% | |
13b2be9c | 12887 | _ACEOF |
d7040cdb SE |
12888 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
12889 | (eval $LEX conftest.l) 2>&5 | |
13b2be9c | 12890 | ac_status=$? |
13b2be9c | 12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
12892 | (exit $ac_status); } |
12893 | if test -f lex.yy.c; then | |
12894 | ac_cv_prog_lex_root=lex.yy | |
12895 | elif test -f lexyy.c; then | |
12896 | ac_cv_prog_lex_root=lexyy | |
13b2be9c | 12897 | else |
d7040cdb SE |
12898 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
12899 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
12900 | { (exit 1); exit 1; }; } | |
d6d788bd | 12901 | fi |
13b2be9c | 12902 | fi |
d7040cdb SE |
12903 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
12904 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
12905 | rm -f conftest.l | |
12906 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
13b2be9c | 12907 | |
d7040cdb SE |
12908 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
12909 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
12910 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
12911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12912 | else | |
12913 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
12914 | # default is implementation-dependent. Figure out which it is, since | |
12915 | # not all implementations provide the %pointer and %array declarations. | |
12916 | ac_cv_prog_lex_yytext_pointer=no | |
12917 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
12918 | ac_save_LIBS=$LIBS | |
12919 | LIBS="$LIBS $LEXLIB" | |
12920 | cat >conftest.$ac_ext <<_ACEOF | |
12921 | `cat $LEX_OUTPUT_ROOT.c` | |
13b2be9c | 12922 | _ACEOF |
d7040cdb SE |
12923 | rm -f conftest.$ac_objext conftest$ac_exeext |
12924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12925 | (eval $ac_link) 2>conftest.er1 | |
13b2be9c DJ |
12926 | ac_status=$? |
12927 | grep -v '^ *+' conftest.er1 >conftest.err | |
12928 | rm -f conftest.er1 | |
12929 | cat conftest.err >&5 | |
12930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d7040cdb SE |
12931 | (exit $ac_status); } && |
12932 | { ac_try='test -z "$ac_c_werror_flag" | |
12933 | || test ! -s conftest.err' | |
12934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12935 | (eval $ac_try) 2>&5 | |
12936 | ac_status=$? | |
12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12938 | (exit $ac_status); }; } && | |
12939 | { ac_try='test -s conftest$ac_exeext' | |
12940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12941 | (eval $ac_try) 2>&5 | |
12942 | ac_status=$? | |
12943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12944 | (exit $ac_status); }; }; then | |
12945 | ac_cv_prog_lex_yytext_pointer=yes | |
13b2be9c DJ |
12946 | else |
12947 | echo "$as_me: failed program was:" >&5 | |
12948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6840198f | 12949 | |
13b2be9c | 12950 | fi |
d7040cdb SE |
12951 | rm -f conftest.err conftest.$ac_objext \ |
12952 | conftest$ac_exeext conftest.$ac_ext | |
12953 | LIBS=$ac_save_LIBS | |
12954 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
252b5132 | 12955 | |
9b2b7d69 | 12956 | fi |
d7040cdb SE |
12957 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12958 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
12959 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
13b2be9c | 12960 | |
d7040cdb SE |
12961 | cat >>confdefs.h <<\_ACEOF |
12962 | #define YYTEXT_POINTER 1 | |
12963 | _ACEOF | |
9b2b7d69 | 12964 | |
d6d788bd | 12965 | fi |
d7040cdb | 12966 | |
c8615825 | 12967 | fi |
d7040cdb SE |
12968 | if test "$LEX" = :; then |
12969 | LEX=${am_missing_run}flex | |
12970 | fi | |
12971 | ||
8cc9115f | 12972 | ALL_LINGUAS="fr tr es rw id" |
d7040cdb SE |
12973 | # If we haven't got the data from the intl directory, |
12974 | # assume NLS is disabled. | |
12975 | USE_NLS=no | |
12976 | LIBINTL= | |
12977 | LIBINTL_DEP= | |
12978 | INCINTL= | |
12979 | XGETTEXT= | |
12980 | GMSGFMT= | |
12981 | POSUB= | |
12982 | ||
12983 | if test -f ../intl/config.intl; then | |
12984 | . ../intl/config.intl | |
12985 | fi | |
12986 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
12987 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
12988 | if test x"$USE_NLS" != xyes; then | |
12989 | echo "$as_me:$LINENO: result: no" >&5 | |
12990 | echo "${ECHO_T}no" >&6 | |
12991 | else | |
12992 | echo "$as_me:$LINENO: result: yes" >&5 | |
12993 | echo "${ECHO_T}yes" >&6 | |
12994 | ||
12995 | cat >>confdefs.h <<\_ACEOF | |
12996 | #define ENABLE_NLS 1 | |
13b2be9c | 12997 | _ACEOF |
d7040cdb SE |
12998 | |
12999 | ||
13000 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
13001 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
13002 | # Look for .po and .gmo files in the source directory. | |
13003 | CATALOGS= | |
13004 | XLINGUAS= | |
13005 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
13006 | # If there aren't any .gmo files the shell will give us the | |
13007 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
13008 | # weeded out. | |
13009 | case "$cat" in *\**) | |
13010 | continue;; | |
13011 | esac | |
13012 | # The quadruple backslash is collapsed to a double backslash | |
13013 | # by the backticks, then collapsed again by the double quotes, | |
13014 | # leaving us with one backslash in the sed expression (right | |
13015 | # before the dot that mustn't act as a wildcard). | |
13016 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
13017 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
13018 | # The user is allowed to set LINGUAS to a list of languages to | |
13019 | # install catalogs for. If it's empty that means "all of them." | |
13020 | if test "x$LINGUAS" = x; then | |
13021 | CATALOGS="$CATALOGS $cat" | |
13022 | XLINGUAS="$XLINGUAS $lang" | |
13023 | else | |
13024 | case "$LINGUAS" in *$lang*) | |
13025 | CATALOGS="$CATALOGS $cat" | |
13026 | XLINGUAS="$XLINGUAS $lang" | |
13027 | ;; | |
13028 | esac | |
13029 | fi | |
13030 | done | |
13031 | LINGUAS="$XLINGUAS" | |
13032 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
13033 | echo "${ECHO_T}$LINGUAS" >&6 | |
13034 | ||
13035 | ||
13036 | DATADIRNAME=share | |
13037 | ||
13038 | INSTOBJEXT=.mo | |
13039 | ||
13040 | GENCAT=gencat | |
13041 | ||
13042 | CATOBJEXT=.gmo | |
13043 | ||
13044 | fi | |
13045 | ||
13046 | MKINSTALLDIRS= | |
13047 | if test -n "$ac_aux_dir"; then | |
13048 | case "$ac_aux_dir" in | |
13049 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
13050 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
13051 | esac | |
13052 | fi | |
13053 | if test -z "$MKINSTALLDIRS"; then | |
13054 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
13055 | fi | |
13056 | ||
13057 | ||
13058 | ||
13059 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
13060 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
13061 | # Check whether --enable-nls or --disable-nls was given. | |
13062 | if test "${enable_nls+set}" = set; then | |
13063 | enableval="$enable_nls" | |
13064 | USE_NLS=$enableval | |
13065 | else | |
13066 | USE_NLS=yes | |
13067 | fi; | |
13068 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
13069 | echo "${ECHO_T}$USE_NLS" >&6 | |
13070 | ||
13071 | ||
13072 | ||
13073 | ||
13074 | ||
13075 | ||
13076 | # Prepare PATH_SEPARATOR. | |
13077 | # The user is always right. | |
13078 | if test "${PATH_SEPARATOR+set}" != set; then | |
13079 | echo "#! /bin/sh" >conf$$.sh | |
13080 | echo "exit 0" >>conf$$.sh | |
13081 | chmod +x conf$$.sh | |
13082 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13083 | PATH_SEPARATOR=';' | |
13b2be9c | 13084 | else |
d7040cdb | 13085 | PATH_SEPARATOR=: |
13b2be9c | 13086 | fi |
d7040cdb | 13087 | rm -f conf$$.sh |
252b5132 | 13088 | fi |
13b2be9c | 13089 | |
d7040cdb SE |
13090 | # Find out how to test for executable files. Don't use a zero-byte file, |
13091 | # as systems may use methods other than mode bits to determine executability. | |
13092 | cat >conf$$.file <<_ASEOF | |
13093 | #! /bin/sh | |
13094 | exit 0 | |
13095 | _ASEOF | |
13096 | chmod +x conf$$.file | |
13097 | if test -x conf$$.file >/dev/null 2>&1; then | |
13098 | ac_executable_p="test -x" | |
13099 | else | |
13100 | ac_executable_p="test -f" | |
13b2be9c | 13101 | fi |
d7040cdb | 13102 | rm -f conf$$.file |
13b2be9c | 13103 | |
d7040cdb SE |
13104 | # Extract the first word of "msgfmt", so it can be a program name with args. |
13105 | set dummy msgfmt; ac_word=$2 | |
13106 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13107 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13108 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
13109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 13110 | else |
d7040cdb SE |
13111 | case "$MSGFMT" in |
13112 | [\\/]* | ?:[\\/]*) | |
13113 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13114 | ;; | |
13115 | *) | |
13116 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13117 | for ac_dir in $PATH; do | |
13118 | IFS="$ac_save_IFS" | |
13119 | test -z "$ac_dir" && ac_dir=. | |
13120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13121 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13122 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
13123 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13124 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
13125 | break 2 | |
13126 | fi | |
13127 | fi | |
13128 | done | |
13129 | done | |
13130 | IFS="$ac_save_IFS" | |
13131 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
13132 | ;; | |
13133 | esac | |
252b5132 | 13134 | fi |
d7040cdb SE |
13135 | MSGFMT="$ac_cv_path_MSGFMT" |
13136 | if test "$MSGFMT" != ":"; then | |
13137 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
13138 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 13139 | else |
d7040cdb SE |
13140 | echo "$as_me:$LINENO: result: no" >&5 |
13141 | echo "${ECHO_T}no" >&6 | |
252b5132 | 13142 | fi |
252b5132 | 13143 | |
d7040cdb SE |
13144 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
13145 | set dummy gmsgfmt; ac_word=$2 | |
13146 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13147 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13148 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
13149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13b2be9c | 13150 | else |
d7040cdb SE |
13151 | case $GMSGFMT in |
13152 | [\\/]* | ?:[\\/]*) | |
13153 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
13154 | ;; | |
13155 | *) | |
13156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13157 | for as_dir in $PATH | |
13158 | do | |
13159 | IFS=$as_save_IFS | |
13160 | test -z "$as_dir" && as_dir=. | |
13161 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13162 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13163 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
13164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13165 | break 2 | |
13166 | fi | |
13167 | done | |
13168 | done | |
252b5132 | 13169 | |
d7040cdb SE |
13170 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
13171 | ;; | |
13172 | esac | |
13173 | fi | |
13174 | GMSGFMT=$ac_cv_path_GMSGFMT | |
252b5132 | 13175 | |
d7040cdb SE |
13176 | if test -n "$GMSGFMT"; then |
13177 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
13178 | echo "${ECHO_T}$GMSGFMT" >&6 | |
ac48eca1 | 13179 | else |
d7040cdb SE |
13180 | echo "$as_me:$LINENO: result: no" >&5 |
13181 | echo "${ECHO_T}no" >&6 | |
6840198f | 13182 | fi |
6840198f | 13183 | |
13b2be9c | 13184 | |
20e95c23 | 13185 | |
d7040cdb SE |
13186 | # Prepare PATH_SEPARATOR. |
13187 | # The user is always right. | |
13188 | if test "${PATH_SEPARATOR+set}" != set; then | |
13189 | echo "#! /bin/sh" >conf$$.sh | |
13190 | echo "exit 0" >>conf$$.sh | |
13191 | chmod +x conf$$.sh | |
13192 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13193 | PATH_SEPARATOR=';' | |
13194 | else | |
13195 | PATH_SEPARATOR=: | |
13196 | fi | |
13197 | rm -f conf$$.sh | |
13198 | fi | |
20e95c23 | 13199 | |
d7040cdb SE |
13200 | # Find out how to test for executable files. Don't use a zero-byte file, |
13201 | # as systems may use methods other than mode bits to determine executability. | |
13202 | cat >conf$$.file <<_ASEOF | |
13203 | #! /bin/sh | |
13204 | exit 0 | |
13205 | _ASEOF | |
13206 | chmod +x conf$$.file | |
13207 | if test -x conf$$.file >/dev/null 2>&1; then | |
13208 | ac_executable_p="test -x" | |
13b2be9c | 13209 | else |
d7040cdb | 13210 | ac_executable_p="test -f" |
13b2be9c | 13211 | fi |
d7040cdb | 13212 | rm -f conf$$.file |
20e95c23 | 13213 | |
d7040cdb SE |
13214 | # Extract the first word of "xgettext", so it can be a program name with args. |
13215 | set dummy xgettext; ac_word=$2 | |
13216 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13217 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13218 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
13219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 13220 | else |
d7040cdb SE |
13221 | case "$XGETTEXT" in |
13222 | [\\/]* | ?:[\\/]*) | |
13223 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
13224 | ;; | |
13225 | *) | |
13226 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13227 | for ac_dir in $PATH; do | |
13228 | IFS="$ac_save_IFS" | |
13229 | test -z "$ac_dir" && ac_dir=. | |
13230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13231 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13232 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13233 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13234 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
13235 | break 2 | |
13236 | fi | |
13237 | fi | |
13238 | done | |
13239 | done | |
13240 | IFS="$ac_save_IFS" | |
13241 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
13242 | ;; | |
13243 | esac | |
13b2be9c | 13244 | fi |
d7040cdb SE |
13245 | XGETTEXT="$ac_cv_path_XGETTEXT" |
13246 | if test "$XGETTEXT" != ":"; then | |
13247 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
13248 | echo "${ECHO_T}$XGETTEXT" >&6 | |
13249 | else | |
13250 | echo "$as_me:$LINENO: result: no" >&5 | |
13251 | echo "${ECHO_T}no" >&6 | |
13b2be9c | 13252 | fi |
13b2be9c | 13253 | |
d7040cdb | 13254 | rm -f messages.po |
20e95c23 | 13255 | |
13b2be9c | 13256 | |
d7040cdb SE |
13257 | # Prepare PATH_SEPARATOR. |
13258 | # The user is always right. | |
13259 | if test "${PATH_SEPARATOR+set}" != set; then | |
13260 | echo "#! /bin/sh" >conf$$.sh | |
13261 | echo "exit 0" >>conf$$.sh | |
13262 | chmod +x conf$$.sh | |
13263 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13264 | PATH_SEPARATOR=';' | |
13265 | else | |
13266 | PATH_SEPARATOR=: | |
13267 | fi | |
13268 | rm -f conf$$.sh | |
252b5132 | 13269 | fi |
20e95c23 | 13270 | |
d7040cdb SE |
13271 | # Find out how to test for executable files. Don't use a zero-byte file, |
13272 | # as systems may use methods other than mode bits to determine executability. | |
13273 | cat >conf$$.file <<_ASEOF | |
13274 | #! /bin/sh | |
13275 | exit 0 | |
13276 | _ASEOF | |
13277 | chmod +x conf$$.file | |
13278 | if test -x conf$$.file >/dev/null 2>&1; then | |
13279 | ac_executable_p="test -x" | |
252b5132 | 13280 | else |
d7040cdb SE |
13281 | ac_executable_p="test -f" |
13282 | fi | |
13283 | rm -f conf$$.file | |
20e95c23 | 13284 | |
d7040cdb SE |
13285 | # Extract the first word of "msgmerge", so it can be a program name with args. |
13286 | set dummy msgmerge; ac_word=$2 | |
13287 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13289 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
13290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20e95c23 | 13291 | else |
d7040cdb SE |
13292 | case "$MSGMERGE" in |
13293 | [\\/]* | ?:[\\/]*) | |
13294 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
13295 | ;; | |
13296 | *) | |
13297 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13298 | for ac_dir in $PATH; do | |
13299 | IFS="$ac_save_IFS" | |
13300 | test -z "$ac_dir" && ac_dir=. | |
13301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13302 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13303 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
13304 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
13305 | break 2 | |
13306 | fi | |
13307 | fi | |
13308 | done | |
13309 | done | |
13310 | IFS="$ac_save_IFS" | |
13311 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
13312 | ;; | |
13313 | esac | |
20e95c23 | 13314 | fi |
d7040cdb SE |
13315 | MSGMERGE="$ac_cv_path_MSGMERGE" |
13316 | if test "$MSGMERGE" != ":"; then | |
13317 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
13318 | echo "${ECHO_T}$MSGMERGE" >&6 | |
13319 | else | |
13320 | echo "$as_me:$LINENO: result: no" >&5 | |
13321 | echo "${ECHO_T}no" >&6 | |
20e95c23 | 13322 | fi |
252b5132 | 13323 | |
252b5132 | 13324 | |
d7040cdb SE |
13325 | if test "$GMSGFMT" != ":"; then |
13326 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
13327 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13328 | : ; | |
13329 | else | |
13330 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
13331 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
13332 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
13333 | GMSGFMT=":" | |
13334 | fi | |
13335 | fi | |
13b2be9c | 13336 | |
d7040cdb SE |
13337 | if test "$XGETTEXT" != ":"; then |
13338 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13339 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13340 | : ; | |
13341 | else | |
13342 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
13343 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
13344 | XGETTEXT=":" | |
13345 | fi | |
13346 | rm -f messages.po | |
13347 | fi | |
252b5132 | 13348 | |
d7040cdb | 13349 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 13350 | |
13b2be9c | 13351 | |
252b5132 | 13352 | |
d7040cdb SE |
13353 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
13354 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
13355 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
13356 | if test "${enable_maintainer_mode+set}" = set; then | |
13357 | enableval="$enable_maintainer_mode" | |
13358 | USE_MAINTAINER_MODE=$enableval | |
c8615825 | 13359 | else |
d7040cdb SE |
13360 | USE_MAINTAINER_MODE=no |
13361 | fi; | |
13362 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
13363 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
13b2be9c | 13364 | |
d7040cdb SE |
13365 | |
13366 | if test $USE_MAINTAINER_MODE = yes; then | |
13367 | MAINTAINER_MODE_TRUE= | |
13368 | MAINTAINER_MODE_FALSE='#' | |
13369 | else | |
13370 | MAINTAINER_MODE_TRUE='#' | |
13371 | MAINTAINER_MODE_FALSE= | |
20e95c23 | 13372 | fi |
9b2b7d69 | 13373 | |
d7040cdb SE |
13374 | MAINT=$MAINTAINER_MODE_TRUE |
13375 | ||
13376 | ||
13377 | ||
13378 | ||
13379 | if false; then | |
13380 | GENINSRC_NEVER_TRUE= | |
13381 | GENINSRC_NEVER_FALSE='#' | |
13382 | else | |
13383 | GENINSRC_NEVER_TRUE='#' | |
13384 | GENINSRC_NEVER_FALSE= | |
20e95c23 | 13385 | fi |
9b2b7d69 MM |
13386 | |
13387 | ||
13388 | ||
13389 | ||
13390 | ||
13b2be9c DJ |
13391 | |
13392 | ||
13393 | ||
13394 | ||
13395 | ||
13396 | ||
13397 | ||
40fb9820 L |
13398 | |
13399 | for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h | |
d6d788bd | 13400 | do |
13b2be9c DJ |
13401 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13403 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13404 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13405 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13407 | fi | |
13408 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13409 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13410 | else | |
13411 | # Is the header compilable? | |
13412 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13413 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13414 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
13415 | /* confdefs.h. */ |
13416 | _ACEOF | |
13417 | cat confdefs.h >>conftest.$ac_ext | |
13418 | cat >>conftest.$ac_ext <<_ACEOF | |
13419 | /* end confdefs.h. */ | |
13420 | $ac_includes_default | |
13421 | #include <$ac_header> | |
13422 | _ACEOF | |
13423 | rm -f conftest.$ac_objext | |
13424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 13425 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 13426 | ac_status=$? |
ab509236 L |
13427 | grep -v '^ *+' conftest.er1 >conftest.err |
13428 | rm -f conftest.er1 | |
13429 | cat conftest.err >&5 | |
13b2be9c DJ |
13430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13431 | (exit $ac_status); } && | |
1ad12f97 NC |
13432 | { ac_try='test -z "$ac_c_werror_flag" |
13433 | || test ! -s conftest.err' | |
ab509236 L |
13434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13435 | (eval $ac_try) 2>&5 | |
13436 | ac_status=$? | |
13437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13438 | (exit $ac_status); }; } && | |
13439 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
13440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13441 | (eval $ac_try) 2>&5 | |
13442 | ac_status=$? | |
13443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13444 | (exit $ac_status); }; }; then | |
13445 | ac_header_compiler=yes | |
13446 | else | |
13447 | echo "$as_me: failed program was:" >&5 | |
13448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13449 | ||
13450 | ac_header_compiler=no | |
13451 | fi | |
ab509236 | 13452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
13453 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13454 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13455 | ||
13456 | # Is the header present? | |
13457 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13458 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13459 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
13460 | /* confdefs.h. */ |
13461 | _ACEOF | |
13462 | cat confdefs.h >>conftest.$ac_ext | |
13463 | cat >>conftest.$ac_ext <<_ACEOF | |
13464 | /* end confdefs.h. */ | |
13465 | #include <$ac_header> | |
13466 | _ACEOF | |
13467 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13468 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13469 | ac_status=$? | |
13470 | grep -v '^ *+' conftest.er1 >conftest.err | |
13471 | rm -f conftest.er1 | |
13472 | cat conftest.err >&5 | |
13473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13474 | (exit $ac_status); } >/dev/null; then | |
13475 | if test -s conftest.err; then | |
13476 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ab509236 | 13477 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
13b2be9c DJ |
13478 | else |
13479 | ac_cpp_err= | |
13480 | fi | |
9b2b7d69 | 13481 | else |
13b2be9c DJ |
13482 | ac_cpp_err=yes |
13483 | fi | |
13484 | if test -z "$ac_cpp_err"; then | |
13485 | ac_header_preproc=yes | |
13486 | else | |
13487 | echo "$as_me: failed program was:" >&5 | |
13488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13489 | ||
13490 | ac_header_preproc=no | |
13491 | fi | |
13492 | rm -f conftest.err conftest.$ac_ext | |
13493 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13494 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13495 | ||
13496 | # So? What about this header? | |
ab509236 L |
13497 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13498 | yes:no: ) | |
13b2be9c DJ |
13499 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13500 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ab509236 L |
13501 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13502 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13503 | ac_header_preproc=yes | |
13b2be9c | 13504 | ;; |
ab509236 | 13505 | no:yes:* ) |
13b2be9c DJ |
13506 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13507 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ab509236 L |
13508 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13509 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13510 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13511 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13512 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13513 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13b2be9c DJ |
13514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13515 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ab509236 L |
13516 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13517 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13b2be9c DJ |
13518 | ( |
13519 | cat <<\_ASBOX | |
ab509236 L |
13520 | ## ------------------------------------------ ## |
13521 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13522 | ## ------------------------------------------ ## | |
13b2be9c DJ |
13523 | _ASBOX |
13524 | ) | | |
13525 | sed "s/^/$as_me: WARNING: /" >&2 | |
13526 | ;; | |
13527 | esac | |
13528 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13532 | else | |
ab509236 | 13533 | eval "$as_ac_Header=\$ac_header_preproc" |
252b5132 | 13534 | fi |
13b2be9c DJ |
13535 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13536 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13537 | ||
252b5132 | 13538 | fi |
13b2be9c DJ |
13539 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13540 | cat >>confdefs.h <<_ACEOF | |
13541 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13542 | _ACEOF | |
13543 | ||
252b5132 | 13544 | fi |
13b2be9c | 13545 | |
252b5132 RH |
13546 | done |
13547 | ||
d6d788bd | 13548 | |
252b5132 RH |
13549 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse |
13550 | # people who are not cross-compiling but are compiling cross-assemblers. | |
13b2be9c DJ |
13551 | echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5 |
13552 | echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6 | |
252b5132 RH |
13553 | if test "${host}" = "${target}"; then |
13554 | cross_gas=no | |
13555 | else | |
13556 | cross_gas=yes | |
13b2be9c DJ |
13557 | |
13558 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 13559 | #define CROSS_COMPILE 1 |
13b2be9c | 13560 | _ACEOF |
252b5132 RH |
13561 | |
13562 | fi | |
13b2be9c DJ |
13563 | echo "$as_me:$LINENO: result: $cross_gas" >&5 |
13564 | echo "${ECHO_T}$cross_gas" >&6 | |
252b5132 RH |
13565 | |
13566 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
13567 | # for constant arguments. Useless! | |
13b2be9c DJ |
13568 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
13569 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
13570 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
13571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13572 | else | |
13573 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
13574 | /* confdefs.h. */ |
13575 | _ACEOF | |
13576 | cat confdefs.h >>conftest.$ac_ext | |
13577 | cat >>conftest.$ac_ext <<_ACEOF | |
13578 | /* end confdefs.h. */ | |
252b5132 | 13579 | #include <alloca.h> |
13b2be9c DJ |
13580 | int |
13581 | main () | |
13582 | { | |
13583 | char *p = (char *) alloca (2 * sizeof (int)); | |
13584 | ; | |
13585 | return 0; | |
13586 | } | |
13587 | _ACEOF | |
13588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13590 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13591 | ac_status=$? |
ab509236 L |
13592 | grep -v '^ *+' conftest.er1 >conftest.err |
13593 | rm -f conftest.er1 | |
13594 | cat conftest.err >&5 | |
13b2be9c DJ |
13595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13596 | (exit $ac_status); } && | |
1ad12f97 NC |
13597 | { ac_try='test -z "$ac_c_werror_flag" |
13598 | || test ! -s conftest.err' | |
ab509236 L |
13599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13600 | (eval $ac_try) 2>&5 | |
13601 | ac_status=$? | |
13602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13603 | (exit $ac_status); }; } && | |
13604 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13606 | (eval $ac_try) 2>&5 | |
13607 | ac_status=$? | |
13608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13609 | (exit $ac_status); }; }; then | |
13610 | ac_cv_working_alloca_h=yes | |
13611 | else | |
13612 | echo "$as_me: failed program was:" >&5 | |
13613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13614 | ||
13615 | ac_cv_working_alloca_h=no | |
13616 | fi | |
ab509236 L |
13617 | rm -f conftest.err conftest.$ac_objext \ |
13618 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13619 | fi |
13620 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
13621 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
13622 | if test $ac_cv_working_alloca_h = yes; then | |
13623 | ||
13624 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 13625 | #define HAVE_ALLOCA_H 1 |
13b2be9c | 13626 | _ACEOF |
252b5132 RH |
13627 | |
13628 | fi | |
13629 | ||
13b2be9c DJ |
13630 | echo "$as_me:$LINENO: checking for alloca" >&5 |
13631 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
13632 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
13633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 13634 | else |
13b2be9c | 13635 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13636 | /* confdefs.h. */ |
13637 | _ACEOF | |
13638 | cat confdefs.h >>conftest.$ac_ext | |
13639 | cat >>conftest.$ac_ext <<_ACEOF | |
13640 | /* end confdefs.h. */ | |
252b5132 RH |
13641 | #ifdef __GNUC__ |
13642 | # define alloca __builtin_alloca | |
13643 | #else | |
13644 | # ifdef _MSC_VER | |
13645 | # include <malloc.h> | |
13646 | # define alloca _alloca | |
13647 | # else | |
13648 | # if HAVE_ALLOCA_H | |
13649 | # include <alloca.h> | |
13650 | # else | |
13651 | # ifdef _AIX | |
13652 | #pragma alloca | |
13653 | # else | |
13654 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
13655 | char *alloca (); | |
13656 | # endif | |
13657 | # endif | |
13658 | # endif | |
13659 | # endif | |
13660 | #endif | |
13661 | ||
13b2be9c DJ |
13662 | int |
13663 | main () | |
13664 | { | |
13665 | char *p = (char *) alloca (1); | |
13666 | ; | |
13667 | return 0; | |
13668 | } | |
13669 | _ACEOF | |
13670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13672 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13673 | ac_status=$? |
ab509236 L |
13674 | grep -v '^ *+' conftest.er1 >conftest.err |
13675 | rm -f conftest.er1 | |
13676 | cat conftest.err >&5 | |
13b2be9c DJ |
13677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13678 | (exit $ac_status); } && | |
1ad12f97 NC |
13679 | { ac_try='test -z "$ac_c_werror_flag" |
13680 | || test ! -s conftest.err' | |
ab509236 L |
13681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13682 | (eval $ac_try) 2>&5 | |
13683 | ac_status=$? | |
13684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13685 | (exit $ac_status); }; } && | |
13686 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13688 | (eval $ac_try) 2>&5 | |
13689 | ac_status=$? | |
13690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13691 | (exit $ac_status); }; }; then | |
252b5132 RH |
13692 | ac_cv_func_alloca_works=yes |
13693 | else | |
13b2be9c DJ |
13694 | echo "$as_me: failed program was:" >&5 |
13695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13696 | ||
13697 | ac_cv_func_alloca_works=no | |
252b5132 | 13698 | fi |
ab509236 L |
13699 | rm -f conftest.err conftest.$ac_objext \ |
13700 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13701 | fi |
13b2be9c DJ |
13702 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
13703 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 13704 | |
252b5132 | 13705 | if test $ac_cv_func_alloca_works = yes; then |
9b2b7d69 | 13706 | |
13b2be9c DJ |
13707 | cat >>confdefs.h <<\_ACEOF |
13708 | #define HAVE_ALLOCA 1 | |
13709 | _ACEOF | |
9b2b7d69 | 13710 | |
13b2be9c | 13711 | else |
c8615825 | 13712 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
13b2be9c DJ |
13713 | # that cause trouble. Some versions do not even contain alloca or |
13714 | # contain a buggy version. If you still want to use their alloca, | |
13715 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
13716 | ||
13717 | ALLOCA=alloca.$ac_objext | |
13718 | ||
13719 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 13720 | #define C_ALLOCA 1 |
13b2be9c | 13721 | _ACEOF |
252b5132 | 13722 | |
d6d788bd | 13723 | |
13b2be9c DJ |
13724 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
13725 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
13726 | if test "${ac_cv_os_cray+set}" = set; then | |
13727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 13728 | else |
13b2be9c | 13729 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13730 | /* confdefs.h. */ |
13731 | _ACEOF | |
13732 | cat confdefs.h >>conftest.$ac_ext | |
13733 | cat >>conftest.$ac_ext <<_ACEOF | |
13734 | /* end confdefs.h. */ | |
252b5132 RH |
13735 | #if defined(CRAY) && ! defined(CRAY2) |
13736 | webecray | |
13737 | #else | |
13738 | wenotbecray | |
13739 | #endif | |
13740 | ||
13b2be9c | 13741 | _ACEOF |
252b5132 | 13742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13b2be9c | 13743 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
13744 | ac_cv_os_cray=yes |
13745 | else | |
252b5132 RH |
13746 | ac_cv_os_cray=no |
13747 | fi | |
13748 | rm -f conftest* | |
13749 | ||
13750 | fi | |
13b2be9c DJ |
13751 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
13752 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 13753 | if test $ac_cv_os_cray = yes; then |
13b2be9c DJ |
13754 | for ac_func in _getb67 GETB67 getb67; do |
13755 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13756 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13757 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13758 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13760 | else | |
13761 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
13762 | /* confdefs.h. */ |
13763 | _ACEOF | |
13764 | cat confdefs.h >>conftest.$ac_ext | |
13765 | cat >>conftest.$ac_ext <<_ACEOF | |
13766 | /* end confdefs.h. */ | |
ab509236 L |
13767 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13768 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13769 | #define $ac_func innocuous_$ac_func | |
13770 | ||
252b5132 | 13771 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
13772 | which can conflict with char $ac_func (); below. |
13773 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13774 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 13775 | |
13b2be9c DJ |
13776 | #ifdef __STDC__ |
13777 | # include <limits.h> | |
13778 | #else | |
13779 | # include <assert.h> | |
13780 | #endif | |
ab509236 L |
13781 | |
13782 | #undef $ac_func | |
13783 | ||
252b5132 | 13784 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
13785 | #ifdef __cplusplus |
13786 | extern "C" | |
13787 | { | |
13788 | #endif | |
252b5132 | 13789 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
13790 | builtin and then its argument prototype would still apply. */ |
13791 | char $ac_func (); | |
252b5132 RH |
13792 | /* The GNU C library defines this for functions which it implements |
13793 | to always fail with ENOSYS. Some functions are actually named | |
13794 | something starting with __ and the normal name is an alias. */ | |
13795 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13796 | choke me | |
13797 | #else | |
13b2be9c DJ |
13798 | char (*f) () = $ac_func; |
13799 | #endif | |
13800 | #ifdef __cplusplus | |
13801 | } | |
252b5132 RH |
13802 | #endif |
13803 | ||
13b2be9c DJ |
13804 | int |
13805 | main () | |
13806 | { | |
13807 | return f != $ac_func; | |
13808 | ; | |
13809 | return 0; | |
13810 | } | |
13811 | _ACEOF | |
13812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 13814 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 13815 | ac_status=$? |
ab509236 L |
13816 | grep -v '^ *+' conftest.er1 >conftest.err |
13817 | rm -f conftest.er1 | |
13818 | cat conftest.err >&5 | |
13b2be9c DJ |
13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13820 | (exit $ac_status); } && | |
1ad12f97 NC |
13821 | { ac_try='test -z "$ac_c_werror_flag" |
13822 | || test ! -s conftest.err' | |
ab509236 L |
13823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13824 | (eval $ac_try) 2>&5 | |
13825 | ac_status=$? | |
13826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13827 | (exit $ac_status); }; } && | |
13828 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
13829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13830 | (eval $ac_try) 2>&5 | |
13831 | ac_status=$? | |
13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13833 | (exit $ac_status); }; }; then | |
13834 | eval "$as_ac_var=yes" | |
13835 | else | |
13836 | echo "$as_me: failed program was:" >&5 | |
13837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13838 | ||
13839 | eval "$as_ac_var=no" | |
13840 | fi | |
ab509236 L |
13841 | rm -f conftest.err conftest.$ac_objext \ |
13842 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13843 | fi |
13844 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13845 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13846 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13847 | ||
13848 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 13849 | #define CRAY_STACKSEG_END $ac_func |
13b2be9c | 13850 | _ACEOF |
252b5132 | 13851 | |
13b2be9c | 13852 | break |
252b5132 RH |
13853 | fi |
13854 | ||
13b2be9c | 13855 | done |
252b5132 RH |
13856 | fi |
13857 | ||
13b2be9c DJ |
13858 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
13859 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
13860 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
13861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
13862 | else |
13863 | if test "$cross_compiling" = yes; then | |
13864 | ac_cv_c_stack_direction=0 | |
13865 | else | |
13b2be9c | 13866 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13867 | /* confdefs.h. */ |
13868 | _ACEOF | |
13869 | cat confdefs.h >>conftest.$ac_ext | |
13870 | cat >>conftest.$ac_ext <<_ACEOF | |
13871 | /* end confdefs.h. */ | |
13872 | int | |
252b5132 RH |
13873 | find_stack_direction () |
13874 | { | |
13875 | static char *addr = 0; | |
13876 | auto char dummy; | |
13877 | if (addr == 0) | |
13878 | { | |
13879 | addr = &dummy; | |
13880 | return find_stack_direction (); | |
13881 | } | |
13882 | else | |
13883 | return (&dummy > addr) ? 1 : -1; | |
13884 | } | |
13b2be9c DJ |
13885 | |
13886 | int | |
252b5132 RH |
13887 | main () |
13888 | { | |
13b2be9c | 13889 | exit (find_stack_direction () < 0); |
252b5132 | 13890 | } |
13b2be9c DJ |
13891 | _ACEOF |
13892 | rm -f conftest$ac_exeext | |
13893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13894 | (eval $ac_link) 2>&5 | |
13895 | ac_status=$? | |
13896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13899 | (eval $ac_try) 2>&5 | |
13900 | ac_status=$? | |
13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13902 | (exit $ac_status); }; }; then | |
252b5132 RH |
13903 | ac_cv_c_stack_direction=1 |
13904 | else | |
13b2be9c DJ |
13905 | echo "$as_me: program exited with status $ac_status" >&5 |
13906 | echo "$as_me: failed program was:" >&5 | |
13907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13908 | ||
13909 | ( exit $ac_status ) | |
13910 | ac_cv_c_stack_direction=-1 | |
252b5132 | 13911 | fi |
ab509236 | 13912 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 13913 | fi |
252b5132 | 13914 | fi |
13b2be9c DJ |
13915 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
13916 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 13917 | |
13b2be9c | 13918 | cat >>confdefs.h <<_ACEOF |
252b5132 | 13919 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
13b2be9c DJ |
13920 | _ACEOF |
13921 | ||
252b5132 RH |
13922 | |
13923 | fi | |
13924 | ||
13b2be9c DJ |
13925 | echo "$as_me:$LINENO: checking for inline" >&5 |
13926 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13927 | if test "${ac_cv_c_inline+set}" = set; then | |
13928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
13929 | else |
13930 | ac_cv_c_inline=no | |
13931 | for ac_kw in inline __inline__ __inline; do | |
13b2be9c | 13932 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
13933 | /* confdefs.h. */ |
13934 | _ACEOF | |
13935 | cat confdefs.h >>conftest.$ac_ext | |
13936 | cat >>conftest.$ac_ext <<_ACEOF | |
13937 | /* end confdefs.h. */ | |
13938 | #ifndef __cplusplus | |
13939 | typedef int foo_t; | |
13940 | static $ac_kw foo_t static_foo () {return 0; } | |
13941 | $ac_kw foo_t foo () {return 0; } | |
13942 | #endif | |
252b5132 | 13943 | |
13b2be9c DJ |
13944 | _ACEOF |
13945 | rm -f conftest.$ac_objext | |
13946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ab509236 | 13947 | (eval $ac_compile) 2>conftest.er1 |
13b2be9c | 13948 | ac_status=$? |
ab509236 L |
13949 | grep -v '^ *+' conftest.er1 >conftest.err |
13950 | rm -f conftest.er1 | |
13951 | cat conftest.err >&5 | |
13b2be9c DJ |
13952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13953 | (exit $ac_status); } && | |
1ad12f97 NC |
13954 | { ac_try='test -z "$ac_c_werror_flag" |
13955 | || test ! -s conftest.err' | |
ab509236 L |
13956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13957 | (eval $ac_try) 2>&5 | |
13958 | ac_status=$? | |
13959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13960 | (exit $ac_status); }; } && | |
13961 | { ac_try='test -s conftest.$ac_objext' | |
13b2be9c DJ |
13962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13963 | (eval $ac_try) 2>&5 | |
13964 | ac_status=$? | |
13965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13966 | (exit $ac_status); }; }; then | |
252b5132 RH |
13967 | ac_cv_c_inline=$ac_kw; break |
13968 | else | |
13b2be9c DJ |
13969 | echo "$as_me: failed program was:" >&5 |
13970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13971 | ||
252b5132 | 13972 | fi |
ab509236 | 13973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
13974 | done |
13975 | ||
13976 | fi | |
13b2be9c DJ |
13977 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13978 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ab509236 L |
13979 | |
13980 | ||
13b2be9c | 13981 | case $ac_cv_c_inline in |
252b5132 | 13982 | inline | yes) ;; |
ab509236 L |
13983 | *) |
13984 | case $ac_cv_c_inline in | |
13985 | no) ac_val=;; | |
13986 | *) ac_val=$ac_cv_c_inline;; | |
13987 | esac | |
13988 | cat >>confdefs.h <<_ACEOF | |
13989 | #ifndef __cplusplus | |
13990 | #define inline $ac_val | |
13991 | #endif | |
13b2be9c | 13992 | _ACEOF |
ab509236 | 13993 | ;; |
252b5132 RH |
13994 | esac |
13995 | ||
6840198f | 13996 | |
d6d788bd | 13997 | # VMS doesn't have unlink. |
13b2be9c DJ |
13998 | |
13999 | ||
252b5132 RH |
14000 | for ac_func in unlink remove |
14001 | do | |
13b2be9c DJ |
14002 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14003 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14004 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14005 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14007 | else | |
14008 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14009 | /* confdefs.h. */ |
14010 | _ACEOF | |
14011 | cat confdefs.h >>conftest.$ac_ext | |
14012 | cat >>conftest.$ac_ext <<_ACEOF | |
14013 | /* end confdefs.h. */ | |
ab509236 L |
14014 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14015 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14016 | #define $ac_func innocuous_$ac_func | |
14017 | ||
252b5132 | 14018 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
14019 | which can conflict with char $ac_func (); below. |
14020 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14021 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 14022 | |
13b2be9c DJ |
14023 | #ifdef __STDC__ |
14024 | # include <limits.h> | |
14025 | #else | |
14026 | # include <assert.h> | |
14027 | #endif | |
ab509236 L |
14028 | |
14029 | #undef $ac_func | |
14030 | ||
252b5132 | 14031 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
14032 | #ifdef __cplusplus |
14033 | extern "C" | |
14034 | { | |
14035 | #endif | |
252b5132 | 14036 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
14037 | builtin and then its argument prototype would still apply. */ |
14038 | char $ac_func (); | |
252b5132 RH |
14039 | /* The GNU C library defines this for functions which it implements |
14040 | to always fail with ENOSYS. Some functions are actually named | |
14041 | something starting with __ and the normal name is an alias. */ | |
14042 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14043 | choke me | |
14044 | #else | |
13b2be9c DJ |
14045 | char (*f) () = $ac_func; |
14046 | #endif | |
14047 | #ifdef __cplusplus | |
14048 | } | |
252b5132 RH |
14049 | #endif |
14050 | ||
13b2be9c DJ |
14051 | int |
14052 | main () | |
14053 | { | |
14054 | return f != $ac_func; | |
14055 | ; | |
14056 | return 0; | |
14057 | } | |
14058 | _ACEOF | |
14059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14061 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14062 | ac_status=$? |
ab509236 L |
14063 | grep -v '^ *+' conftest.er1 >conftest.err |
14064 | rm -f conftest.er1 | |
14065 | cat conftest.err >&5 | |
13b2be9c DJ |
14066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14067 | (exit $ac_status); } && | |
1ad12f97 NC |
14068 | { ac_try='test -z "$ac_c_werror_flag" |
14069 | || test ! -s conftest.err' | |
ab509236 L |
14070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14071 | (eval $ac_try) 2>&5 | |
14072 | ac_status=$? | |
14073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14074 | (exit $ac_status); }; } && | |
14075 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14077 | (eval $ac_try) 2>&5 | |
14078 | ac_status=$? | |
14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14080 | (exit $ac_status); }; }; then | |
14081 | eval "$as_ac_var=yes" | |
14082 | else | |
14083 | echo "$as_me: failed program was:" >&5 | |
14084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14085 | ||
14086 | eval "$as_ac_var=no" | |
14087 | fi | |
ab509236 L |
14088 | rm -f conftest.err conftest.$ac_objext \ |
14089 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
14090 | fi |
14091 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14092 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14093 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14094 | cat >>confdefs.h <<_ACEOF | |
14095 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14096 | _ACEOF | |
252b5132 | 14097 | break |
252b5132 RH |
14098 | fi |
14099 | done | |
14100 | ||
6840198f | 14101 | |
d6d788bd | 14102 | # Some systems don't have sbrk(). |
13b2be9c | 14103 | |
252b5132 RH |
14104 | for ac_func in sbrk |
14105 | do | |
13b2be9c DJ |
14106 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14107 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14108 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14109 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14111 | else | |
14112 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14113 | /* confdefs.h. */ |
14114 | _ACEOF | |
14115 | cat confdefs.h >>conftest.$ac_ext | |
14116 | cat >>conftest.$ac_ext <<_ACEOF | |
14117 | /* end confdefs.h. */ | |
ab509236 L |
14118 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14119 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14120 | #define $ac_func innocuous_$ac_func | |
14121 | ||
252b5132 | 14122 | /* System header to define __stub macros and hopefully few prototypes, |
13b2be9c DJ |
14123 | which can conflict with char $ac_func (); below. |
14124 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14125 | <limits.h> exists even on freestanding compilers. */ | |
ab509236 | 14126 | |
13b2be9c DJ |
14127 | #ifdef __STDC__ |
14128 | # include <limits.h> | |
14129 | #else | |
14130 | # include <assert.h> | |
14131 | #endif | |
ab509236 L |
14132 | |
14133 | #undef $ac_func | |
14134 | ||
252b5132 | 14135 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
14136 | #ifdef __cplusplus |
14137 | extern "C" | |
14138 | { | |
14139 | #endif | |
252b5132 | 14140 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
14141 | builtin and then its argument prototype would still apply. */ |
14142 | char $ac_func (); | |
252b5132 RH |
14143 | /* The GNU C library defines this for functions which it implements |
14144 | to always fail with ENOSYS. Some functions are actually named | |
14145 | something starting with __ and the normal name is an alias. */ | |
14146 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14147 | choke me | |
14148 | #else | |
13b2be9c DJ |
14149 | char (*f) () = $ac_func; |
14150 | #endif | |
14151 | #ifdef __cplusplus | |
14152 | } | |
252b5132 RH |
14153 | #endif |
14154 | ||
13b2be9c DJ |
14155 | int |
14156 | main () | |
14157 | { | |
14158 | return f != $ac_func; | |
14159 | ; | |
14160 | return 0; | |
14161 | } | |
14162 | _ACEOF | |
14163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14165 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14166 | ac_status=$? |
ab509236 L |
14167 | grep -v '^ *+' conftest.er1 >conftest.err |
14168 | rm -f conftest.er1 | |
14169 | cat conftest.err >&5 | |
13b2be9c DJ |
14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14171 | (exit $ac_status); } && | |
1ad12f97 NC |
14172 | { ac_try='test -z "$ac_c_werror_flag" |
14173 | || test ! -s conftest.err' | |
ab509236 L |
14174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14175 | (eval $ac_try) 2>&5 | |
14176 | ac_status=$? | |
14177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14178 | (exit $ac_status); }; } && | |
14179 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14181 | (eval $ac_try) 2>&5 | |
14182 | ac_status=$? | |
14183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14184 | (exit $ac_status); }; }; then | |
14185 | eval "$as_ac_var=yes" | |
14186 | else | |
14187 | echo "$as_me: failed program was:" >&5 | |
14188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14189 | ||
14190 | eval "$as_ac_var=no" | |
14191 | fi | |
ab509236 L |
14192 | rm -f conftest.err conftest.$ac_objext \ |
14193 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
14194 | fi |
14195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14196 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14197 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14198 | cat >>confdefs.h <<_ACEOF | |
14199 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14200 | _ACEOF | |
252b5132 | 14201 | |
252b5132 RH |
14202 | fi |
14203 | done | |
14204 | ||
d6d788bd | 14205 | |
39bec121 TW |
14206 | # do we need the math library? |
14207 | case "${need_libm}" in | |
13b2be9c | 14208 | yes) |
39bec121 | 14209 | LIBM= |
f9c19112 | 14210 | case $host in |
d70c5fc7 | 14211 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
d7040cdb | 14212 | # These system don't have libm, or don't need it |
39bec121 TW |
14213 | ;; |
14214 | *-ncr-sysv4.3*) | |
13b2be9c DJ |
14215 | echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5 |
14216 | echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6 | |
14217 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then | |
14218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39bec121 | 14219 | else |
13b2be9c | 14220 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 14221 | LIBS="-lmw $LIBS" |
13b2be9c | 14222 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
14223 | /* confdefs.h. */ |
14224 | _ACEOF | |
14225 | cat confdefs.h >>conftest.$ac_ext | |
14226 | cat >>conftest.$ac_ext <<_ACEOF | |
14227 | /* end confdefs.h. */ | |
14228 | ||
39bec121 | 14229 | /* Override any gcc2 internal prototype to avoid an error. */ |
13b2be9c DJ |
14230 | #ifdef __cplusplus |
14231 | extern "C" | |
14232 | #endif | |
39bec121 | 14233 | /* We use char because int might match the return type of a gcc2 |
13b2be9c DJ |
14234 | builtin and then its argument prototype would still apply. */ |
14235 | char _mwvalidcheckl (); | |
14236 | int | |
14237 | main () | |
14238 | { | |
14239 | _mwvalidcheckl (); | |
14240 | ; | |
14241 | return 0; | |
14242 | } | |
14243 | _ACEOF | |
14244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14246 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14247 | ac_status=$? |
ab509236 L |
14248 | grep -v '^ *+' conftest.er1 >conftest.err |
14249 | rm -f conftest.er1 | |
14250 | cat conftest.err >&5 | |
13b2be9c DJ |
14251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14252 | (exit $ac_status); } && | |
1ad12f97 NC |
14253 | { ac_try='test -z "$ac_c_werror_flag" |
14254 | || test ! -s conftest.err' | |
ab509236 L |
14255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14256 | (eval $ac_try) 2>&5 | |
14257 | ac_status=$? | |
14258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14259 | (exit $ac_status); }; } && | |
14260 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14262 | (eval $ac_try) 2>&5 | |
14263 | ac_status=$? | |
14264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14265 | (exit $ac_status); }; }; then | |
14266 | ac_cv_lib_mw__mwvalidcheckl=yes | |
14267 | else | |
14268 | echo "$as_me: failed program was:" >&5 | |
14269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14270 | ||
14271 | ac_cv_lib_mw__mwvalidcheckl=no | |
14272 | fi | |
ab509236 L |
14273 | rm -f conftest.err conftest.$ac_objext \ |
14274 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
14275 | LIBS=$ac_check_lib_save_LIBS |
14276 | fi | |
14277 | echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 | |
14278 | echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6 | |
14279 | if test $ac_cv_lib_mw__mwvalidcheckl = yes; then | |
39bec121 | 14280 | LIBM="-lmw" |
39bec121 TW |
14281 | fi |
14282 | ||
d7040cdb SE |
14283 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
14284 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
14285 | if test "${ac_cv_lib_m_cos+set}" = set; then | |
13b2be9c | 14286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39bec121 | 14287 | else |
13b2be9c | 14288 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 14289 | LIBS="-lm $LIBS" |
13b2be9c | 14290 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
14291 | /* confdefs.h. */ |
14292 | _ACEOF | |
14293 | cat confdefs.h >>conftest.$ac_ext | |
14294 | cat >>conftest.$ac_ext <<_ACEOF | |
14295 | /* end confdefs.h. */ | |
39bec121 | 14296 | |
d7040cdb SE |
14297 | /* Override any gcc2 internal prototype to avoid an error. */ |
14298 | #ifdef __cplusplus | |
14299 | extern "C" | |
14300 | #endif | |
14301 | /* We use char because int might match the return type of a gcc2 | |
14302 | builtin and then its argument prototype would still apply. */ | |
14303 | char cos (); | |
13b2be9c DJ |
14304 | int |
14305 | main () | |
14306 | { | |
d7040cdb | 14307 | cos (); |
13b2be9c DJ |
14308 | ; |
14309 | return 0; | |
14310 | } | |
14311 | _ACEOF | |
14312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14314 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14315 | ac_status=$? |
ab509236 L |
14316 | grep -v '^ *+' conftest.er1 >conftest.err |
14317 | rm -f conftest.er1 | |
14318 | cat conftest.err >&5 | |
13b2be9c DJ |
14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14320 | (exit $ac_status); } && | |
1ad12f97 NC |
14321 | { ac_try='test -z "$ac_c_werror_flag" |
14322 | || test ! -s conftest.err' | |
ab509236 L |
14323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14324 | (eval $ac_try) 2>&5 | |
14325 | ac_status=$? | |
14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14327 | (exit $ac_status); }; } && | |
14328 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14330 | (eval $ac_try) 2>&5 | |
14331 | ac_status=$? | |
14332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14333 | (exit $ac_status); }; }; then | |
d7040cdb | 14334 | ac_cv_lib_m_cos=yes |
13b2be9c DJ |
14335 | else |
14336 | echo "$as_me: failed program was:" >&5 | |
14337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14338 | ||
d7040cdb | 14339 | ac_cv_lib_m_cos=no |
13b2be9c | 14340 | fi |
ab509236 L |
14341 | rm -f conftest.err conftest.$ac_objext \ |
14342 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
14343 | LIBS=$ac_check_lib_save_LIBS |
14344 | fi | |
d7040cdb SE |
14345 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
14346 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
14347 | if test $ac_cv_lib_m_cos = yes; then | |
39bec121 | 14348 | LIBM="$LIBM -lm" |
39bec121 TW |
14349 | fi |
14350 | ||
14351 | ;; | |
14352 | *) | |
d7040cdb SE |
14353 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
14354 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
14355 | if test "${ac_cv_lib_m_cos+set}" = set; then | |
13b2be9c | 14356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39bec121 | 14357 | else |
13b2be9c | 14358 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 14359 | LIBS="-lm $LIBS" |
13b2be9c | 14360 | cat >conftest.$ac_ext <<_ACEOF |
13b2be9c DJ |
14361 | /* confdefs.h. */ |
14362 | _ACEOF | |
14363 | cat confdefs.h >>conftest.$ac_ext | |
14364 | cat >>conftest.$ac_ext <<_ACEOF | |
14365 | /* end confdefs.h. */ | |
39bec121 | 14366 | |
d7040cdb SE |
14367 | /* Override any gcc2 internal prototype to avoid an error. */ |
14368 | #ifdef __cplusplus | |
14369 | extern "C" | |
14370 | #endif | |
14371 | /* We use char because int might match the return type of a gcc2 | |
14372 | builtin and then its argument prototype would still apply. */ | |
14373 | char cos (); | |
13b2be9c DJ |
14374 | int |
14375 | main () | |
14376 | { | |
d7040cdb | 14377 | cos (); |
13b2be9c DJ |
14378 | ; |
14379 | return 0; | |
14380 | } | |
14381 | _ACEOF | |
14382 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14384 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14385 | ac_status=$? |
ab509236 L |
14386 | grep -v '^ *+' conftest.er1 >conftest.err |
14387 | rm -f conftest.er1 | |
14388 | cat conftest.err >&5 | |
13b2be9c DJ |
14389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14390 | (exit $ac_status); } && | |
1ad12f97 NC |
14391 | { ac_try='test -z "$ac_c_werror_flag" |
14392 | || test ! -s conftest.err' | |
ab509236 L |
14393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14394 | (eval $ac_try) 2>&5 | |
14395 | ac_status=$? | |
14396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14397 | (exit $ac_status); }; } && | |
14398 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14400 | (eval $ac_try) 2>&5 | |
14401 | ac_status=$? | |
14402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14403 | (exit $ac_status); }; }; then | |
d7040cdb | 14404 | ac_cv_lib_m_cos=yes |
13b2be9c DJ |
14405 | else |
14406 | echo "$as_me: failed program was:" >&5 | |
14407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14408 | ||
d7040cdb | 14409 | ac_cv_lib_m_cos=no |
13b2be9c | 14410 | fi |
ab509236 L |
14411 | rm -f conftest.err conftest.$ac_objext \ |
14412 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
14413 | LIBS=$ac_check_lib_save_LIBS |
14414 | fi | |
d7040cdb SE |
14415 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
14416 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
14417 | if test $ac_cv_lib_m_cos = yes; then | |
39bec121 | 14418 | LIBM="-lm" |
39bec121 TW |
14419 | fi |
14420 | ||
14421 | ;; | |
14422 | esac | |
14423 | ||
13b2be9c | 14424 | |
d7040cdb | 14425 | |
39bec121 TW |
14426 | ;; |
14427 | esac | |
14428 | ||
252b5132 RH |
14429 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
14430 | # enough, but on some of those systems, the assert macro relies on requoting | |
14431 | # working properly! | |
13b2be9c DJ |
14432 | echo "$as_me:$LINENO: checking for working assert macro" >&5 |
14433 | echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6 | |
14434 | if test "${gas_cv_assert_ok+set}" = set; then | |
14435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14436 | else | |
14437 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14438 | /* confdefs.h. */ |
14439 | _ACEOF | |
14440 | cat confdefs.h >>conftest.$ac_ext | |
14441 | cat >>conftest.$ac_ext <<_ACEOF | |
14442 | /* end confdefs.h. */ | |
252b5132 RH |
14443 | #include <assert.h> |
14444 | #include <stdio.h> | |
13b2be9c DJ |
14445 | int |
14446 | main () | |
14447 | { | |
252b5132 RH |
14448 | |
14449 | /* check for requoting problems */ | |
14450 | static int a, b, c, d; | |
14451 | static char *s; | |
14452 | assert (!strcmp(s, "foo bar baz quux")); | |
14453 | /* check for newline handling */ | |
14454 | assert (a == b | |
14455 | || c == d); | |
14456 | ||
13b2be9c DJ |
14457 | ; |
14458 | return 0; | |
14459 | } | |
14460 | _ACEOF | |
14461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14463 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14464 | ac_status=$? |
ab509236 L |
14465 | grep -v '^ *+' conftest.er1 >conftest.err |
14466 | rm -f conftest.er1 | |
14467 | cat conftest.err >&5 | |
13b2be9c DJ |
14468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14469 | (exit $ac_status); } && | |
1ad12f97 NC |
14470 | { ac_try='test -z "$ac_c_werror_flag" |
14471 | || test ! -s conftest.err' | |
ab509236 L |
14472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14473 | (eval $ac_try) 2>&5 | |
14474 | ac_status=$? | |
14475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14476 | (exit $ac_status); }; } && | |
14477 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14479 | (eval $ac_try) 2>&5 | |
14480 | ac_status=$? | |
14481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14482 | (exit $ac_status); }; }; then | |
252b5132 RH |
14483 | gas_cv_assert_ok=yes |
14484 | else | |
13b2be9c DJ |
14485 | echo "$as_me: failed program was:" >&5 |
14486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14487 | ||
14488 | gas_cv_assert_ok=no | |
252b5132 | 14489 | fi |
ab509236 L |
14490 | rm -f conftest.err conftest.$ac_objext \ |
14491 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 14492 | fi |
13b2be9c DJ |
14493 | echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5 |
14494 | echo "${ECHO_T}$gas_cv_assert_ok" >&6 | |
14495 | test $gas_cv_assert_ok = yes || | |
14496 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 14497 | #define BROKEN_ASSERT 1 |
13b2be9c | 14498 | _ACEOF |
252b5132 | 14499 | |
d6d788bd L |
14500 | |
14501 | ||
252b5132 RH |
14502 | # On some systems, the system header files may not declare malloc, realloc, |
14503 | # and free. There are places where gas needs these functions to have been | |
14504 | # declared -- such as when taking their addresses. | |
14505 | gas_test_headers=" | |
14506 | #ifdef HAVE_MEMORY_H | |
14507 | #include <memory.h> | |
14508 | #endif | |
14509 | #ifdef HAVE_STRING_H | |
14510 | #include <string.h> | |
14511 | #else | |
14512 | #ifdef HAVE_STRINGS_H | |
14513 | #include <strings.h> | |
14514 | #endif | |
14515 | #endif | |
14516 | #ifdef HAVE_STDLIB_H | |
14517 | #include <stdlib.h> | |
14518 | #endif | |
14519 | #ifdef HAVE_UNISTD_H | |
14520 | #include <unistd.h> | |
14521 | #endif | |
14522 | " | |
14523 | ||
e8a38df5 AL |
14524 | # Does errno.h declare errno, or do we have to add a separate declaration |
14525 | # for it? | |
14526 | ||
14527 | echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5 | |
14528 | echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6 | |
14529 | if test "${gas_cv_decl_needed_errno+set}" = set; then | |
14530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14531 | else | |
14532 | cat >conftest.$ac_ext <<_ACEOF | |
14533 | /* confdefs.h. */ | |
14534 | _ACEOF | |
14535 | cat confdefs.h >>conftest.$ac_ext | |
14536 | cat >>conftest.$ac_ext <<_ACEOF | |
14537 | /* end confdefs.h. */ | |
14538 | ||
14539 | #ifdef HAVE_ERRNO_H | |
14540 | #include <errno.h> | |
14541 | #endif | |
14542 | ||
14543 | int | |
14544 | main () | |
14545 | { | |
14546 | ||
14547 | typedef int f; | |
14548 | f x; | |
14549 | x = (f) errno; | |
14550 | ||
14551 | ; | |
14552 | return 0; | |
14553 | } | |
14554 | _ACEOF | |
14555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14557 | (eval $ac_link) 2>conftest.er1 | |
14558 | ac_status=$? | |
14559 | grep -v '^ *+' conftest.er1 >conftest.err | |
14560 | rm -f conftest.er1 | |
14561 | cat conftest.err >&5 | |
14562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14563 | (exit $ac_status); } && | |
14564 | { ac_try='test -z "$ac_c_werror_flag" | |
14565 | || test ! -s conftest.err' | |
14566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14567 | (eval $ac_try) 2>&5 | |
14568 | ac_status=$? | |
14569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14570 | (exit $ac_status); }; } && | |
14571 | { ac_try='test -s conftest$ac_exeext' | |
14572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14573 | (eval $ac_try) 2>&5 | |
14574 | ac_status=$? | |
14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14576 | (exit $ac_status); }; }; then | |
14577 | gas_cv_decl_needed_errno=no | |
14578 | else | |
14579 | echo "$as_me: failed program was:" >&5 | |
14580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14581 | ||
14582 | gas_cv_decl_needed_errno=yes | |
14583 | fi | |
14584 | rm -f conftest.err conftest.$ac_objext \ | |
14585 | conftest$ac_exeext conftest.$ac_ext | |
14586 | fi | |
14587 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5 | |
14588 | echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6 | |
14589 | if test $gas_cv_decl_needed_errno = yes; then | |
14590 | ||
14591 | cat >>confdefs.h <<\_ACEOF | |
14592 | #define NEED_DECLARATION_ERRNO 1 | |
14593 | _ACEOF | |
14594 | ||
14595 | fi | |
14596 | ||
14597 | ||
56f36663 NC |
14598 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
14599 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
14600 | if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then | |
14601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14602 | else | |
14603 | cat >conftest.$ac_ext <<_ACEOF | |
14604 | /* confdefs.h. */ | |
14605 | _ACEOF | |
14606 | cat confdefs.h >>conftest.$ac_ext | |
14607 | cat >>conftest.$ac_ext <<_ACEOF | |
14608 | /* end confdefs.h. */ | |
14609 | #include <unistd.h> | |
14610 | int | |
14611 | main () | |
14612 | { | |
14613 | extern int getopt (int, char *const*, const char *); | |
14614 | ; | |
14615 | return 0; | |
14616 | } | |
14617 | _ACEOF | |
14618 | rm -f conftest.$ac_objext | |
14619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14620 | (eval $ac_compile) 2>conftest.er1 | |
14621 | ac_status=$? | |
14622 | grep -v '^ *+' conftest.er1 >conftest.err | |
14623 | rm -f conftest.er1 | |
14624 | cat conftest.err >&5 | |
14625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14626 | (exit $ac_status); } && | |
14627 | { ac_try='test -z "$ac_c_werror_flag" | |
14628 | || test ! -s conftest.err' | |
14629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14630 | (eval $ac_try) 2>&5 | |
14631 | ac_status=$? | |
14632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14633 | (exit $ac_status); }; } && | |
14634 | { ac_try='test -s conftest.$ac_objext' | |
14635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14636 | (eval $ac_try) 2>&5 | |
14637 | ac_status=$? | |
14638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14639 | (exit $ac_status); }; }; then | |
14640 | gas_cv_decl_getopt_unistd_h=yes | |
14641 | else | |
14642 | echo "$as_me: failed program was:" >&5 | |
14643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14644 | ||
14645 | gas_cv_decl_getopt_unistd_h=no | |
14646 | fi | |
14647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14648 | fi | |
14649 | ||
14650 | echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5 | |
14651 | echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6 | |
14652 | if test $gas_cv_decl_getopt_unistd_h = yes; then | |
14653 | ||
14654 | cat >>confdefs.h <<\_ACEOF | |
14655 | #define HAVE_DECL_GETOPT 1 | |
14656 | _ACEOF | |
14657 | ||
14658 | fi | |
14659 | ||
e8a38df5 AL |
14660 | |
14661 | echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5 | |
14662 | echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6 | |
14663 | if test "${gas_cv_decl_needed_environ+set}" = set; then | |
13b2be9c DJ |
14664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14665 | else | |
14666 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14667 | /* confdefs.h. */ |
14668 | _ACEOF | |
14669 | cat confdefs.h >>conftest.$ac_ext | |
14670 | cat >>conftest.$ac_ext <<_ACEOF | |
14671 | /* end confdefs.h. */ | |
252b5132 | 14672 | $gas_test_headers |
13b2be9c DJ |
14673 | int |
14674 | main () | |
14675 | { | |
252b5132 | 14676 | |
e8a38df5 | 14677 | typedef char **f; |
252b5132 | 14678 | f x; |
e8a38df5 | 14679 | x = (f) environ; |
252b5132 | 14680 | |
13b2be9c DJ |
14681 | ; |
14682 | return 0; | |
14683 | } | |
14684 | _ACEOF | |
14685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14687 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14688 | ac_status=$? |
ab509236 L |
14689 | grep -v '^ *+' conftest.er1 >conftest.err |
14690 | rm -f conftest.er1 | |
14691 | cat conftest.err >&5 | |
13b2be9c DJ |
14692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14693 | (exit $ac_status); } && | |
1ad12f97 NC |
14694 | { ac_try='test -z "$ac_c_werror_flag" |
14695 | || test ! -s conftest.err' | |
ab509236 L |
14696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14697 | (eval $ac_try) 2>&5 | |
14698 | ac_status=$? | |
14699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14700 | (exit $ac_status); }; } && | |
14701 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14703 | (eval $ac_try) 2>&5 | |
14704 | ac_status=$? | |
14705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14706 | (exit $ac_status); }; }; then | |
e8a38df5 | 14707 | gas_cv_decl_needed_environ=no |
252b5132 | 14708 | else |
13b2be9c DJ |
14709 | echo "$as_me: failed program was:" >&5 |
14710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14711 | ||
e8a38df5 | 14712 | gas_cv_decl_needed_environ=yes |
252b5132 | 14713 | fi |
ab509236 L |
14714 | rm -f conftest.err conftest.$ac_objext \ |
14715 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 14716 | fi |
e8a38df5 AL |
14717 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5 |
14718 | echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6 | |
14719 | if test $gas_cv_decl_needed_environ = yes; then | |
13b2be9c DJ |
14720 | |
14721 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 14722 | #define NEED_DECLARATION_ENVIRON 1 |
13b2be9c DJ |
14723 | _ACEOF |
14724 | ||
14725 | fi | |
14726 | ||
14727 | ||
e8a38df5 AL |
14728 | echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5 |
14729 | echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6 | |
14730 | if test "${gas_cv_decl_needed_ffs+set}" = set; then | |
13b2be9c DJ |
14731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14732 | else | |
14733 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14734 | /* confdefs.h. */ |
14735 | _ACEOF | |
14736 | cat confdefs.h >>conftest.$ac_ext | |
14737 | cat >>conftest.$ac_ext <<_ACEOF | |
14738 | /* end confdefs.h. */ | |
14739 | $gas_test_headers | |
14740 | int | |
14741 | main () | |
14742 | { | |
14743 | ||
e8a38df5 | 14744 | typedef int (*f)(int); |
13b2be9c | 14745 | f x; |
e8a38df5 | 14746 | x = (f) ffs; |
13b2be9c DJ |
14747 | |
14748 | ; | |
14749 | return 0; | |
14750 | } | |
14751 | _ACEOF | |
14752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14754 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14755 | ac_status=$? |
ab509236 L |
14756 | grep -v '^ *+' conftest.er1 >conftest.err |
14757 | rm -f conftest.er1 | |
14758 | cat conftest.err >&5 | |
13b2be9c DJ |
14759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14760 | (exit $ac_status); } && | |
1ad12f97 NC |
14761 | { ac_try='test -z "$ac_c_werror_flag" |
14762 | || test ! -s conftest.err' | |
ab509236 L |
14763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14764 | (eval $ac_try) 2>&5 | |
14765 | ac_status=$? | |
14766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14767 | (exit $ac_status); }; } && | |
14768 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14770 | (eval $ac_try) 2>&5 | |
14771 | ac_status=$? | |
14772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14773 | (exit $ac_status); }; }; then | |
e8a38df5 | 14774 | gas_cv_decl_needed_ffs=no |
13b2be9c DJ |
14775 | else |
14776 | echo "$as_me: failed program was:" >&5 | |
14777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14778 | ||
e8a38df5 | 14779 | gas_cv_decl_needed_ffs=yes |
13b2be9c | 14780 | fi |
ab509236 L |
14781 | rm -f conftest.err conftest.$ac_objext \ |
14782 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14783 | fi |
e8a38df5 AL |
14784 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5 |
14785 | echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6 | |
14786 | if test $gas_cv_decl_needed_ffs = yes; then | |
13b2be9c DJ |
14787 | |
14788 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 14789 | #define NEED_DECLARATION_FFS 1 |
13b2be9c DJ |
14790 | _ACEOF |
14791 | ||
14792 | fi | |
14793 | ||
14794 | ||
14795 | echo "$as_me:$LINENO: checking whether declaration is required for free" >&5 | |
14796 | echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6 | |
14797 | if test "${gas_cv_decl_needed_free+set}" = set; then | |
14798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14799 | else | |
14800 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14801 | /* confdefs.h. */ |
14802 | _ACEOF | |
14803 | cat confdefs.h >>conftest.$ac_ext | |
14804 | cat >>conftest.$ac_ext <<_ACEOF | |
14805 | /* end confdefs.h. */ | |
14806 | $gas_test_headers | |
14807 | int | |
14808 | main () | |
14809 | { | |
14810 | ||
14811 | typedef void (*f)(); | |
14812 | f x; | |
14813 | x = (f) free; | |
14814 | ||
14815 | ; | |
14816 | return 0; | |
14817 | } | |
14818 | _ACEOF | |
14819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14821 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14822 | ac_status=$? |
ab509236 L |
14823 | grep -v '^ *+' conftest.er1 >conftest.err |
14824 | rm -f conftest.er1 | |
14825 | cat conftest.err >&5 | |
13b2be9c DJ |
14826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14827 | (exit $ac_status); } && | |
1ad12f97 NC |
14828 | { ac_try='test -z "$ac_c_werror_flag" |
14829 | || test ! -s conftest.err' | |
ab509236 L |
14830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14831 | (eval $ac_try) 2>&5 | |
14832 | ac_status=$? | |
14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14834 | (exit $ac_status); }; } && | |
14835 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14837 | (eval $ac_try) 2>&5 | |
14838 | ac_status=$? | |
14839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14840 | (exit $ac_status); }; }; then | |
14841 | gas_cv_decl_needed_free=no | |
14842 | else | |
14843 | echo "$as_me: failed program was:" >&5 | |
14844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14845 | ||
14846 | gas_cv_decl_needed_free=yes | |
14847 | fi | |
ab509236 L |
14848 | rm -f conftest.err conftest.$ac_objext \ |
14849 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
14850 | fi |
14851 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5 | |
14852 | echo "${ECHO_T}$gas_cv_decl_needed_free" >&6 | |
14853 | if test $gas_cv_decl_needed_free = yes; then | |
14854 | ||
14855 | cat >>confdefs.h <<\_ACEOF | |
14856 | #define NEED_DECLARATION_FREE 1 | |
14857 | _ACEOF | |
14858 | ||
14859 | fi | |
14860 | ||
14861 | ||
e8a38df5 AL |
14862 | echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5 |
14863 | echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6 | |
14864 | if test "${gas_cv_decl_needed_malloc+set}" = set; then | |
13b2be9c DJ |
14865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14866 | else | |
14867 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14868 | /* confdefs.h. */ |
14869 | _ACEOF | |
14870 | cat confdefs.h >>conftest.$ac_ext | |
14871 | cat >>conftest.$ac_ext <<_ACEOF | |
14872 | /* end confdefs.h. */ | |
14873 | $gas_test_headers | |
14874 | int | |
14875 | main () | |
14876 | { | |
14877 | ||
14878 | typedef char *(*f)(); | |
14879 | f x; | |
e8a38df5 | 14880 | x = (f) malloc; |
13b2be9c DJ |
14881 | |
14882 | ; | |
14883 | return 0; | |
14884 | } | |
14885 | _ACEOF | |
14886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14888 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14889 | ac_status=$? |
ab509236 L |
14890 | grep -v '^ *+' conftest.er1 >conftest.err |
14891 | rm -f conftest.er1 | |
14892 | cat conftest.err >&5 | |
13b2be9c DJ |
14893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14894 | (exit $ac_status); } && | |
1ad12f97 NC |
14895 | { ac_try='test -z "$ac_c_werror_flag" |
14896 | || test ! -s conftest.err' | |
ab509236 L |
14897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14898 | (eval $ac_try) 2>&5 | |
14899 | ac_status=$? | |
14900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14901 | (exit $ac_status); }; } && | |
14902 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14904 | (eval $ac_try) 2>&5 | |
14905 | ac_status=$? | |
14906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14907 | (exit $ac_status); }; }; then | |
e8a38df5 | 14908 | gas_cv_decl_needed_malloc=no |
13b2be9c DJ |
14909 | else |
14910 | echo "$as_me: failed program was:" >&5 | |
14911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14912 | ||
e8a38df5 | 14913 | gas_cv_decl_needed_malloc=yes |
13b2be9c | 14914 | fi |
ab509236 L |
14915 | rm -f conftest.err conftest.$ac_objext \ |
14916 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14917 | fi |
e8a38df5 AL |
14918 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5 |
14919 | echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6 | |
14920 | if test $gas_cv_decl_needed_malloc = yes; then | |
13b2be9c DJ |
14921 | |
14922 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 14923 | #define NEED_DECLARATION_MALLOC 1 |
13b2be9c DJ |
14924 | _ACEOF |
14925 | ||
14926 | fi | |
14927 | ||
14928 | ||
e8a38df5 AL |
14929 | echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5 |
14930 | echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6 | |
14931 | if test "${gas_cv_decl_needed_sbrk+set}" = set; then | |
13b2be9c DJ |
14932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14933 | else | |
14934 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
14935 | /* confdefs.h. */ |
14936 | _ACEOF | |
14937 | cat confdefs.h >>conftest.$ac_ext | |
14938 | cat >>conftest.$ac_ext <<_ACEOF | |
14939 | /* end confdefs.h. */ | |
14940 | $gas_test_headers | |
14941 | int | |
14942 | main () | |
14943 | { | |
14944 | ||
e8a38df5 | 14945 | typedef char *(*f)(); |
13b2be9c | 14946 | f x; |
e8a38df5 | 14947 | x = (f) sbrk; |
13b2be9c DJ |
14948 | |
14949 | ; | |
14950 | return 0; | |
14951 | } | |
14952 | _ACEOF | |
14953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 14955 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 14956 | ac_status=$? |
ab509236 L |
14957 | grep -v '^ *+' conftest.er1 >conftest.err |
14958 | rm -f conftest.er1 | |
14959 | cat conftest.err >&5 | |
13b2be9c DJ |
14960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14961 | (exit $ac_status); } && | |
1ad12f97 NC |
14962 | { ac_try='test -z "$ac_c_werror_flag" |
14963 | || test ! -s conftest.err' | |
ab509236 L |
14964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14965 | (eval $ac_try) 2>&5 | |
14966 | ac_status=$? | |
14967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14968 | (exit $ac_status); }; } && | |
14969 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
14970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14971 | (eval $ac_try) 2>&5 | |
14972 | ac_status=$? | |
14973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14974 | (exit $ac_status); }; }; then | |
e8a38df5 | 14975 | gas_cv_decl_needed_sbrk=no |
13b2be9c DJ |
14976 | else |
14977 | echo "$as_me: failed program was:" >&5 | |
14978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14979 | ||
e8a38df5 | 14980 | gas_cv_decl_needed_sbrk=yes |
13b2be9c | 14981 | fi |
ab509236 L |
14982 | rm -f conftest.err conftest.$ac_objext \ |
14983 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14984 | fi |
e8a38df5 AL |
14985 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5 |
14986 | echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6 | |
14987 | if test $gas_cv_decl_needed_sbrk = yes; then | |
13b2be9c DJ |
14988 | |
14989 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 14990 | #define NEED_DECLARATION_SBRK 1 |
13b2be9c DJ |
14991 | _ACEOF |
14992 | ||
14993 | fi | |
14994 | ||
14995 | ||
e8a38df5 AL |
14996 | echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5 |
14997 | echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6 | |
14998 | if test "${gas_cv_decl_needed_strstr+set}" = set; then | |
13b2be9c DJ |
14999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15000 | else | |
15001 | cat >conftest.$ac_ext <<_ACEOF | |
13b2be9c DJ |
15002 | /* confdefs.h. */ |
15003 | _ACEOF | |
15004 | cat confdefs.h >>conftest.$ac_ext | |
15005 | cat >>conftest.$ac_ext <<_ACEOF | |
15006 | /* end confdefs.h. */ | |
e8a38df5 | 15007 | $gas_test_headers |
13b2be9c DJ |
15008 | int |
15009 | main () | |
15010 | { | |
15011 | ||
e8a38df5 | 15012 | typedef char *(*f)(); |
13b2be9c | 15013 | f x; |
e8a38df5 | 15014 | x = (f) strstr; |
13b2be9c DJ |
15015 | |
15016 | ; | |
15017 | return 0; | |
15018 | } | |
15019 | _ACEOF | |
15020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ab509236 | 15022 | (eval $ac_link) 2>conftest.er1 |
13b2be9c | 15023 | ac_status=$? |
ab509236 L |
15024 | grep -v '^ *+' conftest.er1 >conftest.err |
15025 | rm -f conftest.er1 | |
15026 | cat conftest.err >&5 | |
13b2be9c DJ |
15027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15028 | (exit $ac_status); } && | |
1ad12f97 NC |
15029 | { ac_try='test -z "$ac_c_werror_flag" |
15030 | || test ! -s conftest.err' | |
ab509236 L |
15031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15032 | (eval $ac_try) 2>&5 | |
15033 | ac_status=$? | |
15034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15035 | (exit $ac_status); }; } && | |
15036 | { ac_try='test -s conftest$ac_exeext' | |
13b2be9c DJ |
15037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15038 | (eval $ac_try) 2>&5 | |
15039 | ac_status=$? | |
15040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15041 | (exit $ac_status); }; }; then | |
e8a38df5 | 15042 | gas_cv_decl_needed_strstr=no |
13b2be9c DJ |
15043 | else |
15044 | echo "$as_me: failed program was:" >&5 | |
15045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15046 | ||
e8a38df5 | 15047 | gas_cv_decl_needed_strstr=yes |
13b2be9c | 15048 | fi |
ab509236 L |
15049 | rm -f conftest.err conftest.$ac_objext \ |
15050 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 15051 | fi |
e8a38df5 AL |
15052 | echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5 |
15053 | echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6 | |
15054 | if test $gas_cv_decl_needed_strstr = yes; then | |
13b2be9c DJ |
15055 | |
15056 | cat >>confdefs.h <<\_ACEOF | |
e8a38df5 | 15057 | #define NEED_DECLARATION_STRSTR 1 |
13b2be9c DJ |
15058 | _ACEOF |
15059 | ||
15060 | fi | |
15061 | ||
15062 | ||
6d74f28b EB |
15063 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
15064 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
15065 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
15066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15067 | else | |
15068 | cat >conftest.$ac_ext <<_ACEOF | |
15069 | /* confdefs.h. */ | |
15070 | _ACEOF | |
15071 | cat confdefs.h >>conftest.$ac_ext | |
15072 | cat >>conftest.$ac_ext <<_ACEOF | |
15073 | /* end confdefs.h. */ | |
15074 | $ac_includes_default | |
15075 | int | |
15076 | main () | |
15077 | { | |
15078 | #ifndef vsnprintf | |
15079 | char *p = (char *) vsnprintf; | |
15080 | #endif | |
15081 | ||
15082 | ; | |
15083 | return 0; | |
15084 | } | |
15085 | _ACEOF | |
15086 | rm -f conftest.$ac_objext | |
15087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15088 | (eval $ac_compile) 2>conftest.er1 | |
15089 | ac_status=$? | |
15090 | grep -v '^ *+' conftest.er1 >conftest.err | |
15091 | rm -f conftest.er1 | |
15092 | cat conftest.err >&5 | |
15093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15094 | (exit $ac_status); } && | |
15095 | { ac_try='test -z "$ac_c_werror_flag" | |
15096 | || test ! -s conftest.err' | |
15097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15098 | (eval $ac_try) 2>&5 | |
15099 | ac_status=$? | |
15100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15101 | (exit $ac_status); }; } && | |
15102 | { ac_try='test -s conftest.$ac_objext' | |
15103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15104 | (eval $ac_try) 2>&5 | |
15105 | ac_status=$? | |
15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15107 | (exit $ac_status); }; }; then | |
15108 | ac_cv_have_decl_vsnprintf=yes | |
15109 | else | |
15110 | echo "$as_me: failed program was:" >&5 | |
15111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15112 | ||
15113 | ac_cv_have_decl_vsnprintf=no | |
15114 | fi | |
15115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15116 | fi | |
15117 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
15118 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
15119 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
15120 | ||
15121 | cat >>confdefs.h <<_ACEOF | |
15122 | #define HAVE_DECL_VSNPRINTF 1 | |
15123 | _ACEOF | |
15124 | ||
15125 | ||
15126 | else | |
15127 | cat >>confdefs.h <<_ACEOF | |
15128 | #define HAVE_DECL_VSNPRINTF 0 | |
15129 | _ACEOF | |
15130 | ||
15131 | ||
15132 | fi | |
15133 | ||
15134 | ||
15135 | ||
13b2be9c | 15136 | |
c973bc5c NC |
15137 | case "${host}" in |
15138 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | |
15139 | ||
15140 | cat >>confdefs.h <<\_ACEOF | |
15141 | #define USE_BINARY_FOPEN 1 | |
15142 | _ACEOF | |
15143 | ;; | |
15144 | esac | |
15145 | ||
15146 | ||
13b2be9c | 15147 | |
108a6f8e CD |
15148 | |
15149 | ||
15150 | ||
15151 | ||
31dd3154 | 15152 | |
13b2be9c DJ |
15153 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
15154 | ||
15155 | ac_config_commands="$ac_config_commands default" | |
15156 | ||
15157 | ||
15158 | cat >confcache <<\_ACEOF | |
15159 | # This file is a shell script that caches the results of configure | |
15160 | # tests run on this system so they can be shared between configure | |
15161 | # scripts and configure runs, see configure's option --config-cache. | |
15162 | # It is not useful on other systems. If it contains results you don't | |
15163 | # want to keep, you may remove or edit it. | |
15164 | # | |
15165 | # config.status only pays attention to the cache file if you give it | |
15166 | # the --recheck option to rerun configure. | |
15167 | # | |
15168 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15169 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15170 | # following values. | |
15171 | ||
15172 | _ACEOF | |
15173 | ||
15174 | # The following way of writing the cache mishandles newlines in values, | |
15175 | # but we know of no workaround that is simple, portable, and efficient. | |
15176 | # So, don't put newlines in cache variables' values. | |
15177 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15178 | # and sets the high bit in the cache file unless we assign to the vars. | |
15179 | { | |
15180 | (set) 2>&1 | | |
15181 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15182 | *ac_space=\ *) | |
15183 | # `set' does not quote correctly, so add quotes (double-quote | |
15184 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15185 | sed -n \ | |
ab509236 L |
15186 | "s/'/'\\\\''/g; |
15187 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13b2be9c DJ |
15188 | ;; |
15189 | *) | |
15190 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15191 | sed -n \ | |
ab509236 | 15192 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
13b2be9c DJ |
15193 | ;; |
15194 | esac; | |
15195 | } | | |
15196 | sed ' | |
15197 | t clear | |
15198 | : clear | |
15199 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15200 | t end | |
15201 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15202 | : end' >>confcache | |
15203 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
15204 | if test -w $cache_file; then | |
15205 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
15206 | cat confcache >$cache_file | |
15207 | else | |
15208 | echo "not updating unwritable cache $cache_file" | |
15209 | fi | |
15210 | fi | |
15211 | rm -f confcache | |
15212 | ||
15213 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15214 | # Let make expand exec_prefix. | |
15215 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15216 | ||
15217 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15218 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15219 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15220 | # (actually we leave an empty line to preserve line numbers). | |
15221 | if test "x$srcdir" = x.; then | |
ab509236 | 15222 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
13b2be9c DJ |
15223 | s/:*\$(srcdir):*/:/; |
15224 | s/:*\${srcdir}:*/:/; | |
15225 | s/:*@srcdir@:*/:/; | |
ab509236 | 15226 | s/^\([^=]*=[ ]*\):*/\1/; |
13b2be9c | 15227 | s/:*$//; |
ab509236 | 15228 | s/^[^=]*=[ ]*$//; |
13b2be9c DJ |
15229 | }' |
15230 | fi | |
15231 | ||
15232 | DEFS=-DHAVE_CONFIG_H | |
15233 | ||
15234 | ac_libobjs= | |
15235 | ac_ltlibobjs= | |
15236 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15237 | # 1. Remove the extension, and $U if already installed. | |
15238 | ac_i=`echo "$ac_i" | | |
ab509236 | 15239 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
13b2be9c DJ |
15240 | # 2. Add them. |
15241 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
15242 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
15243 | done | |
15244 | LIBOBJS=$ac_libobjs | |
15245 | ||
15246 | LTLIBOBJS=$ac_ltlibobjs | |
15247 | ||
15248 | ||
15249 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
15250 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
15251 | Usually this means the macro was only invoked conditionally." >&5 | |
15252 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
15253 | Usually this means the macro was only invoked conditionally." >&2;} | |
15254 | { (exit 1); exit 1; }; } | |
15255 | fi | |
15256 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
15257 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
15258 | Usually this means the macro was only invoked conditionally." >&5 | |
15259 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
15260 | Usually this means the macro was only invoked conditionally." >&2;} | |
15261 | { (exit 1); exit 1; }; } | |
15262 | fi | |
15263 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
15264 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
15265 | Usually this means the macro was only invoked conditionally." >&5 | |
15266 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
15267 | Usually this means the macro was only invoked conditionally." >&2;} | |
15268 | { (exit 1); exit 1; }; } | |
15269 | fi | |
d5fbea21 DJ |
15270 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
15271 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
15272 | Usually this means the macro was only invoked conditionally." >&5 | |
15273 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
15274 | Usually this means the macro was only invoked conditionally." >&2;} | |
15275 | { (exit 1); exit 1; }; } | |
15276 | fi | |
13b2be9c DJ |
15277 | |
15278 | : ${CONFIG_STATUS=./config.status} | |
15279 | ac_clean_files_save=$ac_clean_files | |
15280 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
15281 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
15282 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15283 | cat >$CONFIG_STATUS <<_ACEOF | |
15284 | #! $SHELL | |
15285 | # Generated by $as_me. | |
15286 | # Run this file to recreate the current configuration. | |
15287 | # Compiler output produced by configure, useful for debugging | |
15288 | # configure, is in config.log if it exists. | |
15289 | ||
15290 | debug=false | |
15291 | ac_cs_recheck=false | |
15292 | ac_cs_silent=false | |
15293 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15294 | _ACEOF | |
15295 | ||
15296 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15297 | ## --------------------- ## | |
15298 | ## M4sh Initialization. ## | |
15299 | ## --------------------- ## | |
15300 | ||
15301 | # Be Bourne compatible | |
15302 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15303 | emulate sh | |
15304 | NULLCMD=: | |
15305 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
15306 | # is contrary to our usage. Disable this feature. | |
15307 | alias -g '${1+"$@"}'='"$@"' | |
15308 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
15309 | set -o posix | |
15310 | fi | |
ab509236 | 15311 | DUALCASE=1; export DUALCASE # for MKS sh |
13b2be9c DJ |
15312 | |
15313 | # Support unset when possible. | |
ab509236 | 15314 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
13b2be9c DJ |
15315 | as_unset=unset |
15316 | else | |
15317 | as_unset=false | |
15318 | fi | |
15319 | ||
15320 | ||
15321 | # Work around bugs in pre-3.0 UWIN ksh. | |
15322 | $as_unset ENV MAIL MAILPATH | |
15323 | PS1='$ ' | |
15324 | PS2='> ' | |
15325 | PS4='+ ' | |
15326 | ||
15327 | # NLS nuisances. | |
15328 | for as_var in \ | |
15329 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
15330 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
15331 | LC_TELEPHONE LC_TIME | |
15332 | do | |
ab509236 | 15333 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
13b2be9c DJ |
15334 | eval $as_var=C; export $as_var |
15335 | else | |
15336 | $as_unset $as_var | |
15337 | fi | |
15338 | done | |
15339 | ||
15340 | # Required to use basename. | |
15341 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
15342 | as_expr=expr | |
15343 | else | |
15344 | as_expr=false | |
15345 | fi | |
15346 | ||
15347 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
15348 | as_basename=basename | |
15349 | else | |
15350 | as_basename=false | |
15351 | fi | |
15352 | ||
15353 | ||
15354 | # Name of the executable. | |
15355 | as_me=`$as_basename "$0" || | |
15356 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
15357 | X"$0" : 'X\(//\)$' \| \ | |
15358 | X"$0" : 'X\(/\)$' \| \ | |
15359 | . : '\(.\)' 2>/dev/null || | |
15360 | echo X/"$0" | | |
15361 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
15362 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
15363 | /^X\/\(\/\).*/{ s//\1/; q; } | |
15364 | s/.*/./; q'` | |
15365 | ||
15366 | ||
15367 | # PATH needs CR, and LINENO needs CR and PATH. | |
15368 | # Avoid depending upon Character Ranges. | |
15369 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15370 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15371 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15372 | as_cr_digits='0123456789' | |
15373 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15374 | ||
15375 | # The user is always right. | |
15376 | if test "${PATH_SEPARATOR+set}" != set; then | |
15377 | echo "#! /bin/sh" >conf$$.sh | |
15378 | echo "exit 0" >>conf$$.sh | |
15379 | chmod +x conf$$.sh | |
15380 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15381 | PATH_SEPARATOR=';' | |
15382 | else | |
15383 | PATH_SEPARATOR=: | |
15384 | fi | |
15385 | rm -f conf$$.sh | |
15386 | fi | |
15387 | ||
15388 | ||
15389 | as_lineno_1=$LINENO | |
15390 | as_lineno_2=$LINENO | |
15391 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
15392 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
15393 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
15394 | # Find who we are. Look in the path if we contain no path at all | |
15395 | # relative or not. | |
15396 | case $0 in | |
15397 | *[\\/]* ) as_myself=$0 ;; | |
15398 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15399 | for as_dir in $PATH | |
15400 | do | |
15401 | IFS=$as_save_IFS | |
15402 | test -z "$as_dir" && as_dir=. | |
15403 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15404 | done | |
252b5132 | 15405 | |
13b2be9c DJ |
15406 | ;; |
15407 | esac | |
15408 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15409 | # in which case we are not to be found in the path. | |
15410 | if test "x$as_myself" = x; then | |
15411 | as_myself=$0 | |
15412 | fi | |
15413 | if test ! -f "$as_myself"; then | |
15414 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
15415 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
15416 | { (exit 1); exit 1; }; } | |
15417 | fi | |
15418 | case $CONFIG_SHELL in | |
15419 | '') | |
15420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15421 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
15422 | do | |
15423 | IFS=$as_save_IFS | |
15424 | test -z "$as_dir" && as_dir=. | |
15425 | for as_base in sh bash ksh sh5; do | |
15426 | case $as_dir in | |
15427 | /*) | |
15428 | if ("$as_dir/$as_base" -c ' | |
15429 | as_lineno_1=$LINENO | |
15430 | as_lineno_2=$LINENO | |
15431 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
15432 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
15433 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
15434 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
15435 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
15436 | CONFIG_SHELL=$as_dir/$as_base | |
15437 | export CONFIG_SHELL | |
15438 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
15439 | fi;; | |
15440 | esac | |
15441 | done | |
15442 | done | |
15443 | ;; | |
15444 | esac | |
252b5132 | 15445 | |
13b2be9c DJ |
15446 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
15447 | # uniformly replaced by the line number. The first 'sed' inserts a | |
15448 | # line-number line before each line; the second 'sed' does the real | |
15449 | # work. The second script uses 'N' to pair each line-number line | |
15450 | # with the numbered line, and appends trailing '-' during | |
15451 | # substitution so that $LINENO is not a special case at line end. | |
15452 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
15453 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
15454 | sed '=' <$as_myself | | |
15455 | sed ' | |
15456 | N | |
15457 | s,$,-, | |
15458 | : loop | |
15459 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
15460 | t loop | |
15461 | s,-$,, | |
15462 | s,^['$as_cr_digits']*\n,, | |
15463 | ' >$as_me.lineno && | |
15464 | chmod +x $as_me.lineno || | |
15465 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
15466 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
15467 | { (exit 1); exit 1; }; } | |
15468 | ||
15469 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15470 | # (the dirname of $[0] is not the place where we might find the | |
15471 | # original and so on. Autoconf is especially sensible to this). | |
15472 | . ./$as_me.lineno | |
15473 | # Exit status is that of the last command. | |
15474 | exit | |
15475 | } | |
d6d788bd | 15476 | |
252b5132 | 15477 | |
13b2be9c DJ |
15478 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
15479 | *c*,-n*) ECHO_N= ECHO_C=' | |
15480 | ' ECHO_T=' ' ;; | |
15481 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
15482 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
15483 | esac | |
252b5132 | 15484 | |
13b2be9c DJ |
15485 | if expr a : '\(a\)' >/dev/null 2>&1; then |
15486 | as_expr=expr | |
252b5132 | 15487 | else |
13b2be9c | 15488 | as_expr=false |
252b5132 | 15489 | fi |
252b5132 | 15490 | |
13b2be9c DJ |
15491 | rm -f conf$$ conf$$.exe conf$$.file |
15492 | echo >conf$$.file | |
15493 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15494 | # We could just check for DJGPP; but this test a) works b) is more generic | |
15495 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
15496 | if test -f conf$$.exe; then | |
15497 | # Don't use ln at all; we don't have any links | |
15498 | as_ln_s='cp -p' | |
15499 | else | |
15500 | as_ln_s='ln -s' | |
15501 | fi | |
15502 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15503 | as_ln_s=ln | |
15504 | else | |
15505 | as_ln_s='cp -p' | |
252b5132 | 15506 | fi |
13b2be9c | 15507 | rm -f conf$$ conf$$.exe conf$$.file |
252b5132 | 15508 | |
13b2be9c DJ |
15509 | if mkdir -p . 2>/dev/null; then |
15510 | as_mkdir_p=: | |
252b5132 | 15511 | else |
ab509236 | 15512 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
15513 | as_mkdir_p=false |
15514 | fi | |
252b5132 | 15515 | |
13b2be9c | 15516 | as_executable_p="test -f" |
252b5132 | 15517 | |
13b2be9c | 15518 | # Sed expression to map a string onto a valid CPP name. |
ab509236 | 15519 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 15520 | |
13b2be9c | 15521 | # Sed expression to map a string onto a valid variable name. |
ab509236 | 15522 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 15523 | |
d6d788bd | 15524 | |
13b2be9c DJ |
15525 | # IFS |
15526 | # We need space, tab and new line, in precisely that order. | |
15527 | as_nl=' | |
15528 | ' | |
15529 | IFS=" $as_nl" | |
252b5132 | 15530 | |
13b2be9c DJ |
15531 | # CDPATH. |
15532 | $as_unset CDPATH | |
252b5132 | 15533 | |
13b2be9c | 15534 | exec 6>&1 |
252b5132 | 15535 | |
13b2be9c DJ |
15536 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
15537 | # report actual input values of CONFIG_FILES etc. instead of their | |
15538 | # values after options handling. Logging --version etc. is OK. | |
15539 | exec 5>>config.log | |
15540 | { | |
15541 | echo | |
15542 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15543 | ## Running $as_me. ## | |
15544 | _ASBOX | |
15545 | } >&5 | |
15546 | cat >&5 <<_CSEOF | |
252b5132 | 15547 | |
13b2be9c | 15548 | This file was extended by $as_me, which was |
ab509236 | 15549 | generated by GNU Autoconf 2.59. Invocation command line was |
d6d788bd | 15550 | |
13b2be9c DJ |
15551 | CONFIG_FILES = $CONFIG_FILES |
15552 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15553 | CONFIG_LINKS = $CONFIG_LINKS | |
15554 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15555 | $ $0 $@ | |
252b5132 | 15556 | |
13b2be9c DJ |
15557 | _CSEOF |
15558 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
15559 | echo >&5 | |
15560 | _ACEOF | |
252b5132 | 15561 | |
13b2be9c DJ |
15562 | # Files that config.status was made for. |
15563 | if test -n "$ac_config_files"; then | |
15564 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
252b5132 | 15565 | fi |
13b2be9c DJ |
15566 | |
15567 | if test -n "$ac_config_headers"; then | |
15568 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
252b5132 | 15569 | fi |
252b5132 | 15570 | |
13b2be9c DJ |
15571 | if test -n "$ac_config_links"; then |
15572 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 RH |
15573 | fi |
15574 | ||
13b2be9c DJ |
15575 | if test -n "$ac_config_commands"; then |
15576 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
15577 | fi | |
d6d788bd | 15578 | |
13b2be9c | 15579 | cat >>$CONFIG_STATUS <<\_ACEOF |
252b5132 | 15580 | |
13b2be9c DJ |
15581 | ac_cs_usage="\ |
15582 | \`$as_me' instantiates files from templates according to the | |
15583 | current configuration. | |
252b5132 | 15584 | |
13b2be9c | 15585 | Usage: $0 [OPTIONS] [FILE]... |
252b5132 | 15586 | |
13b2be9c DJ |
15587 | -h, --help print this help, then exit |
15588 | -V, --version print version number, then exit | |
15589 | -q, --quiet do not print progress messages | |
15590 | -d, --debug don't remove temporary files | |
15591 | --recheck update $as_me by reconfiguring in the same conditions | |
15592 | --file=FILE[:TEMPLATE] | |
ab509236 | 15593 | instantiate the configuration file FILE |
13b2be9c | 15594 | --header=FILE[:TEMPLATE] |
ab509236 | 15595 | instantiate the configuration header FILE |
252b5132 | 15596 | |
13b2be9c DJ |
15597 | Configuration files: |
15598 | $config_files | |
252b5132 | 15599 | |
13b2be9c DJ |
15600 | Configuration headers: |
15601 | $config_headers | |
252b5132 | 15602 | |
13b2be9c DJ |
15603 | Configuration commands: |
15604 | $config_commands | |
252b5132 | 15605 | |
13b2be9c DJ |
15606 | Report bugs to <bug-autoconf@gnu.org>." |
15607 | _ACEOF | |
d6d788bd | 15608 | |
13b2be9c DJ |
15609 | cat >>$CONFIG_STATUS <<_ACEOF |
15610 | ac_cs_version="\\ | |
15611 | config.status | |
ab509236 | 15612 | configured by $0, generated by GNU Autoconf 2.59, |
13b2be9c | 15613 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
d6d788bd | 15614 | |
ab509236 | 15615 | Copyright (C) 2003 Free Software Foundation, Inc. |
13b2be9c DJ |
15616 | This config.status script is free software; the Free Software Foundation |
15617 | gives unlimited permission to copy, distribute and modify it." | |
15618 | srcdir=$srcdir | |
15619 | INSTALL="$INSTALL" | |
15620 | _ACEOF | |
d6d788bd | 15621 | |
13b2be9c DJ |
15622 | cat >>$CONFIG_STATUS <<\_ACEOF |
15623 | # If no file are specified by the user, then we need to provide default | |
15624 | # value. By we need to know if files were specified by the user. | |
15625 | ac_need_defaults=: | |
15626 | while test $# != 0 | |
15627 | do | |
15628 | case $1 in | |
15629 | --*=*) | |
15630 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
15631 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
15632 | ac_shift=: | |
c8615825 | 15633 | ;; |
13b2be9c DJ |
15634 | -*) |
15635 | ac_option=$1 | |
15636 | ac_optarg=$2 | |
15637 | ac_shift=shift | |
c8615825 | 15638 | ;; |
13b2be9c DJ |
15639 | *) # This is not an option, so the user has probably given explicit |
15640 | # arguments. | |
15641 | ac_option=$1 | |
15642 | ac_need_defaults=false;; | |
15643 | esac | |
252b5132 | 15644 | |
13b2be9c DJ |
15645 | case $ac_option in |
15646 | # Handling of the options. | |
15647 | _ACEOF | |
15648 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15649 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
15650 | ac_cs_recheck=: ;; | |
15651 | --version | --vers* | -V ) | |
15652 | echo "$ac_cs_version"; exit 0 ;; | |
15653 | --he | --h) | |
15654 | # Conflict between --help and --header | |
15655 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
15656 | Try \`$0 --help' for more information." >&5 | |
15657 | echo "$as_me: error: ambiguous option: $1 | |
15658 | Try \`$0 --help' for more information." >&2;} | |
15659 | { (exit 1); exit 1; }; };; | |
15660 | --help | --hel | -h ) | |
15661 | echo "$ac_cs_usage"; exit 0 ;; | |
15662 | --debug | --d* | -d ) | |
15663 | debug=: ;; | |
15664 | --file | --fil | --fi | --f ) | |
15665 | $ac_shift | |
15666 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
15667 | ac_need_defaults=false;; | |
15668 | --header | --heade | --head | --hea ) | |
15669 | $ac_shift | |
15670 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
15671 | ac_need_defaults=false;; | |
15672 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
15673 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15674 | ac_cs_silent=: ;; | |
c8615825 | 15675 | |
13b2be9c DJ |
15676 | # This is an error. |
15677 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
15678 | Try \`$0 --help' for more information." >&5 | |
15679 | echo "$as_me: error: unrecognized option: $1 | |
15680 | Try \`$0 --help' for more information." >&2;} | |
15681 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 15682 | |
13b2be9c | 15683 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 15684 | |
13b2be9c DJ |
15685 | esac |
15686 | shift | |
15687 | done | |
252b5132 | 15688 | |
13b2be9c | 15689 | ac_configure_extra_args= |
d6d788bd | 15690 | |
13b2be9c DJ |
15691 | if $ac_cs_silent; then |
15692 | exec 6>/dev/null | |
15693 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15694 | fi | |
9b2b7d69 | 15695 | |
13b2be9c DJ |
15696 | _ACEOF |
15697 | cat >>$CONFIG_STATUS <<_ACEOF | |
15698 | if \$ac_cs_recheck; then | |
15699 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
15700 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
15701 | fi | |
15702 | ||
15703 | _ACEOF | |
15704 | ||
15705 | cat >>$CONFIG_STATUS <<_ACEOF | |
9b2b7d69 | 15706 | # |
13b2be9c | 15707 | # INIT-COMMANDS section. |
9b2b7d69 MM |
15708 | # |
15709 | ||
13b2be9c | 15710 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
15711 | |
15712 | ||
15713 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
15714 | # if CDPATH is set. | |
15715 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15716 | ||
15717 | sed_quote_subst='$sed_quote_subst' | |
15718 | double_quote_subst='$double_quote_subst' | |
15719 | delay_variable_subst='$delay_variable_subst' | |
15720 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
15721 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
15722 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
15723 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
15724 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
15725 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
15726 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
15727 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
15728 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
15729 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
15730 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
15731 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
15732 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
15733 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
15734 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
15735 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
15736 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
15737 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
15738 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
15739 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
15740 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
15741 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
15742 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
15743 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
15744 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
15745 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
15746 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15747 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 | 15748 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
15749 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
15750 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
15751 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
15752 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
15753 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
15754 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
15755 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15756 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15757 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15758 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
15759 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
15760 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
15761 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
15762 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
15763 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
15764 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 | 15765 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
15766 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
15767 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
15768 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
15769 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
15770 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15771 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
15772 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
15773 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
15774 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
15775 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 SE |
15776 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
15777 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
15778 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
15779 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
15780 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
d7040cdb SE |
15781 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
15782 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15783 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15784 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
15785 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
15786 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15787 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15788 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
15789 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15790 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15791 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15792 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15793 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15794 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15795 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
15796 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15797 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15798 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15799 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
15800 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
15801 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
15802 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
15803 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
15804 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
15805 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
15806 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
15807 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
15808 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
15809 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
15810 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15811 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
15812 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
15813 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15814 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15815 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
15816 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
15817 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
15818 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
15819 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
15820 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
15821 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
15822 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15823 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15824 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15825 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15826 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15827 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15828 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
15829 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
15830 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15831 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15832 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
15833 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
15834 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
15835 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
15836 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
15837 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
15838 | ||
15839 | LTCC='$LTCC' | |
15840 | LTCFLAGS='$LTCFLAGS' | |
15841 | compiler='$compiler_DEFAULT' | |
15842 | ||
15843 | # Quote evaled strings. | |
15844 | for var in SED \ | |
15845 | GREP \ | |
15846 | EGREP \ | |
15847 | FGREP \ | |
15848 | LD \ | |
15849 | NM \ | |
15850 | LN_S \ | |
15851 | lt_SP2NL \ | |
15852 | lt_NL2SP \ | |
15853 | reload_flag \ | |
718a6fd8 | 15854 | OBJDUMP \ |
d7040cdb SE |
15855 | deplibs_check_method \ |
15856 | file_magic_cmd \ | |
15857 | AR \ | |
15858 | AR_FLAGS \ | |
15859 | STRIP \ | |
15860 | RANLIB \ | |
15861 | CC \ | |
15862 | CFLAGS \ | |
15863 | compiler \ | |
15864 | lt_cv_sys_global_symbol_pipe \ | |
15865 | lt_cv_sys_global_symbol_to_cdecl \ | |
15866 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 15867 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
15868 | SHELL \ |
15869 | ECHO \ | |
15870 | lt_prog_compiler_no_builtin_flag \ | |
15871 | lt_prog_compiler_wl \ | |
15872 | lt_prog_compiler_pic \ | |
15873 | lt_prog_compiler_static \ | |
15874 | lt_cv_prog_compiler_c_o \ | |
15875 | need_locks \ | |
718a6fd8 SE |
15876 | DSYMUTIL \ |
15877 | NMEDIT \ | |
15878 | LIPO \ | |
15879 | OTOOL \ | |
15880 | OTOOL64 \ | |
d7040cdb SE |
15881 | shrext_cmds \ |
15882 | export_dynamic_flag_spec \ | |
15883 | whole_archive_flag_spec \ | |
15884 | compiler_needs_object \ | |
15885 | with_gnu_ld \ | |
15886 | allow_undefined_flag \ | |
15887 | no_undefined_flag \ | |
15888 | hardcode_libdir_flag_spec \ | |
15889 | hardcode_libdir_flag_spec_ld \ | |
15890 | hardcode_libdir_separator \ | |
15891 | fix_srcfile_path \ | |
15892 | exclude_expsyms \ | |
15893 | include_expsyms \ | |
15894 | file_list_spec \ | |
15895 | variables_saved_for_relink \ | |
15896 | libname_spec \ | |
15897 | library_names_spec \ | |
15898 | soname_spec \ | |
15899 | finish_eval \ | |
15900 | old_striplib \ | |
15901 | striplib; do | |
15902 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
15903 | *[\\\\\\\`\\"\\\$]*) | |
15904 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
15905 | ;; | |
15906 | *) | |
15907 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15908 | ;; | |
15909 | esac | |
15910 | done | |
15911 | ||
15912 | # Double-quote double-evaled strings. | |
15913 | for var in reload_cmds \ | |
15914 | old_postinstall_cmds \ | |
15915 | old_postuninstall_cmds \ | |
15916 | old_archive_cmds \ | |
15917 | extract_expsyms_cmds \ | |
15918 | old_archive_from_new_cmds \ | |
15919 | old_archive_from_expsyms_cmds \ | |
15920 | archive_cmds \ | |
15921 | archive_expsym_cmds \ | |
15922 | module_cmds \ | |
15923 | module_expsym_cmds \ | |
15924 | export_symbols_cmds \ | |
15925 | prelink_cmds \ | |
15926 | postinstall_cmds \ | |
15927 | postuninstall_cmds \ | |
15928 | finish_cmds \ | |
15929 | sys_lib_search_path_spec \ | |
15930 | sys_lib_dlsearch_path_spec; do | |
15931 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
15932 | *[\\\\\\\`\\"\\\$]*) | |
15933 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
15934 | ;; | |
15935 | *) | |
15936 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15937 | ;; | |
15938 | esac | |
15939 | done | |
15940 | ||
15941 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
15942 | case \$lt_ECHO in | |
15943 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
15944 | ;; | |
15945 | esac | |
15946 | ||
15947 | ac_aux_dir='$ac_aux_dir' | |
15948 | xsi_shell='$xsi_shell' | |
15949 | lt_shell_append='$lt_shell_append' | |
15950 | ||
15951 | # See if we are running on zsh, and set the options which allow our | |
15952 | # commands through without removal of \ escapes INIT. | |
15953 | if test -n "\${ZSH_VERSION+set}" ; then | |
15954 | setopt NO_GLOB_SUBST | |
15955 | fi | |
15956 | ||
15957 | ||
15958 | PACKAGE='$PACKAGE' | |
15959 | VERSION='$VERSION' | |
15960 | TIMESTAMP='$TIMESTAMP' | |
15961 | RM='$RM' | |
15962 | ofile='$ofile' | |
15963 | ||
15964 | ||
15965 | ||
20e95c23 DJ |
15966 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15967 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15968 | # from automake. | |
15969 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15970 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15971 | LINGUAS="${LINGUAS-%UNSET%}" | |
15972 | ||
13b2be9c DJ |
15973 | target_cpu_type=${target_cpu_type} |
15974 | cgen_cpu_prefix=${cgen_cpu_prefix} | |
15975 | obj_format=${obj_format} | |
15976 | te_file=${te_file} | |
15977 | ||
15978 | _ACEOF | |
15979 | ||
15980 | ||
15981 | ||
15982 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15983 | for ac_config_target in $ac_config_targets | |
9b2b7d69 | 15984 | do |
13b2be9c DJ |
15985 | case "$ac_config_target" in |
15986 | # Handling of arguments. | |
15987 | "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; | |
15988 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
15989 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15990 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
15991 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
15992 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
d7040cdb | 15993 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
20e95c23 | 15994 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
13b2be9c DJ |
15995 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
15996 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
15997 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
15998 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
15999 | { (exit 1); exit 1; }; };; | |
9b2b7d69 MM |
16000 | esac |
16001 | done | |
16002 | ||
13b2be9c DJ |
16003 | # If the user did not use the arguments to specify the items to instantiate, |
16004 | # then the envvar interface is used. Set only those that are not. | |
16005 | # We use the long form for the default assignment because of an extremely | |
16006 | # bizarre bug on SunOS 4.1.3. | |
16007 | if $ac_need_defaults; then | |
16008 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16009 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16010 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16011 | fi | |
16012 | ||
16013 | # Have a temporary directory for convenience. Make it in the build tree | |
16014 | # simply because there is no reason to put it here, and in addition, | |
16015 | # creating and moving files from /tmp can sometimes cause problems. | |
16016 | # Create a temporary directory, and hook for its removal unless debugging. | |
16017 | $debug || | |
16018 | { | |
16019 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
16020 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
16021 | } | |
9b2b7d69 | 16022 | |
13b2be9c | 16023 | # Create a (secure) tmp directory for tmp files. |
9b2b7d69 | 16024 | |
13b2be9c DJ |
16025 | { |
16026 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
16027 | test -n "$tmp" && test -d "$tmp" | |
16028 | } || | |
16029 | { | |
16030 | tmp=./confstat$$-$RANDOM | |
16031 | (umask 077 && mkdir $tmp) | |
16032 | } || | |
16033 | { | |
16034 | echo "$me: cannot create a temporary directory in ." >&2 | |
16035 | { (exit 1); exit 1; } | |
16036 | } | |
9b2b7d69 | 16037 | |
13b2be9c DJ |
16038 | _ACEOF |
16039 | ||
16040 | cat >>$CONFIG_STATUS <<_ACEOF | |
16041 | ||
16042 | # | |
16043 | # CONFIG_FILES section. | |
16044 | # | |
16045 | ||
16046 | # No need to generate the scripts if there are no CONFIG_FILES. | |
16047 | # This happens for instance when ./config.status config.h | |
16048 | if test -n "\$CONFIG_FILES"; then | |
16049 | # Protect against being on the right side of a sed subst in config.status. | |
16050 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
16051 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
16052 | s,@SHELL@,$SHELL,;t t | |
16053 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
16054 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
16055 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
16056 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
16057 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
16058 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
16059 | s,@exec_prefix@,$exec_prefix,;t t | |
16060 | s,@prefix@,$prefix,;t t | |
16061 | s,@program_transform_name@,$program_transform_name,;t t | |
16062 | s,@bindir@,$bindir,;t t | |
16063 | s,@sbindir@,$sbindir,;t t | |
16064 | s,@libexecdir@,$libexecdir,;t t | |
16065 | s,@datadir@,$datadir,;t t | |
16066 | s,@sysconfdir@,$sysconfdir,;t t | |
16067 | s,@sharedstatedir@,$sharedstatedir,;t t | |
16068 | s,@localstatedir@,$localstatedir,;t t | |
16069 | s,@libdir@,$libdir,;t t | |
16070 | s,@includedir@,$includedir,;t t | |
16071 | s,@oldincludedir@,$oldincludedir,;t t | |
16072 | s,@infodir@,$infodir,;t t | |
16073 | s,@mandir@,$mandir,;t t | |
16074 | s,@build_alias@,$build_alias,;t t | |
16075 | s,@host_alias@,$host_alias,;t t | |
16076 | s,@target_alias@,$target_alias,;t t | |
16077 | s,@DEFS@,$DEFS,;t t | |
16078 | s,@ECHO_C@,$ECHO_C,;t t | |
16079 | s,@ECHO_N@,$ECHO_N,;t t | |
16080 | s,@ECHO_T@,$ECHO_T,;t t | |
16081 | s,@LIBS@,$LIBS,;t t | |
16082 | s,@build@,$build,;t t | |
16083 | s,@build_cpu@,$build_cpu,;t t | |
16084 | s,@build_vendor@,$build_vendor,;t t | |
16085 | s,@build_os@,$build_os,;t t | |
16086 | s,@host@,$host,;t t | |
16087 | s,@host_cpu@,$host_cpu,;t t | |
16088 | s,@host_vendor@,$host_vendor,;t t | |
16089 | s,@host_os@,$host_os,;t t | |
16090 | s,@target@,$target,;t t | |
16091 | s,@target_cpu@,$target_cpu,;t t | |
16092 | s,@target_vendor@,$target_vendor,;t t | |
16093 | s,@target_os@,$target_os,;t t | |
16094 | s,@CC@,$CC,;t t | |
16095 | s,@CFLAGS@,$CFLAGS,;t t | |
16096 | s,@LDFLAGS@,$LDFLAGS,;t t | |
16097 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
16098 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
16099 | s,@EXEEXT@,$EXEEXT,;t t | |
16100 | s,@OBJEXT@,$OBJEXT,;t t | |
16101 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
16102 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
16103 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
16104 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
16105 | s,@PACKAGE@,$PACKAGE,;t t | |
16106 | s,@VERSION@,$VERSION,;t t | |
16107 | s,@ACLOCAL@,$ACLOCAL,;t t | |
16108 | s,@AUTOCONF@,$AUTOCONF,;t t | |
16109 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
16110 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
16111 | s,@MAKEINFO@,$MAKEINFO,;t t | |
13b2be9c DJ |
16112 | s,@install_sh@,$install_sh,;t t |
16113 | s,@STRIP@,$STRIP,;t t | |
16114 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
16115 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
ab509236 | 16116 | s,@mkdir_p@,$mkdir_p,;t t |
13b2be9c DJ |
16117 | s,@AWK@,$AWK,;t t |
16118 | s,@SET_MAKE@,$SET_MAKE,;t t | |
16119 | s,@am__leading_dot@,$am__leading_dot,;t t | |
8ea2b00f AM |
16120 | s,@AMTAR@,$AMTAR,;t t |
16121 | s,@am__tar@,$am__tar,;t t | |
16122 | s,@am__untar@,$am__untar,;t t | |
13b2be9c DJ |
16123 | s,@DEPDIR@,$DEPDIR,;t t |
16124 | s,@am__include@,$am__include,;t t | |
16125 | s,@am__quote@,$am__quote,;t t | |
16126 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
16127 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
16128 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
16129 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
16130 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
16131 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
7357c5b6 AM |
16132 | s,@CPP@,$CPP,;t t |
16133 | s,@EGREP@,$EGREP,;t t | |
d7040cdb SE |
16134 | s,@LIBTOOL@,$LIBTOOL,;t t |
16135 | s,@SED@,$SED,;t t | |
d7040cdb SE |
16136 | s,@FGREP@,$FGREP,;t t |
16137 | s,@GREP@,$GREP,;t t | |
16138 | s,@LD@,$LD,;t t | |
16139 | s,@DUMPBIN@,$DUMPBIN,;t t | |
16140 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
16141 | s,@NM@,$NM,;t t | |
13b2be9c | 16142 | s,@LN_S@,$LN_S,;t t |
718a6fd8 SE |
16143 | s,@OBJDUMP@,$OBJDUMP,;t t |
16144 | s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t | |
d7040cdb SE |
16145 | s,@AR@,$AR,;t t |
16146 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
13b2be9c DJ |
16147 | s,@RANLIB@,$RANLIB,;t t |
16148 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
d7040cdb | 16149 | s,@lt_ECHO@,$lt_ECHO,;t t |
718a6fd8 SE |
16150 | s,@DSYMUTIL@,$DSYMUTIL,;t t |
16151 | s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t | |
16152 | s,@NMEDIT@,$NMEDIT,;t t | |
16153 | s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t | |
16154 | s,@LIPO@,$LIPO,;t t | |
16155 | s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t | |
16156 | s,@OTOOL@,$OTOOL,;t t | |
16157 | s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t | |
16158 | s,@OTOOL64@,$OTOOL64,;t t | |
16159 | s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t | |
13b2be9c | 16160 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
9e9b66a9 | 16161 | s,@NO_WERROR@,$NO_WERROR,;t t |
13b2be9c DJ |
16162 | s,@GDBINIT@,$GDBINIT,;t t |
16163 | s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t | |
16164 | s,@extra_objects@,$extra_objects,;t t | |
16165 | s,@target_cpu_type@,$target_cpu_type,;t t | |
16166 | s,@obj_format@,$obj_format,;t t | |
16167 | s,@te_file@,$te_file,;t t | |
16168 | s,@install_tooldir@,$install_tooldir,;t t | |
16169 | s,@atof@,$atof,;t t | |
13b2be9c | 16170 | s,@OPCODES_LIB@,$OPCODES_LIB,;t t |
13b2be9c DJ |
16171 | s,@YACC@,$YACC,;t t |
16172 | s,@LEX@,$LEX,;t t | |
16173 | s,@LEXLIB@,$LEXLIB,;t t | |
16174 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
13b2be9c | 16175 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
16176 | s,@LIBINTL@,$LIBINTL,;t t |
16177 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
16178 | s,@INCINTL@,$INCINTL,;t t | |
13b2be9c | 16179 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
16180 | s,@GMSGFMT@,$GMSGFMT,;t t |
16181 | s,@POSUB@,$POSUB,;t t | |
13b2be9c | 16182 | s,@CATALOGS@,$CATALOGS,;t t |
13b2be9c | 16183 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
13b2be9c | 16184 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
16185 | s,@GENCAT@,$GENCAT,;t t |
16186 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
13b2be9c | 16187 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
16188 | s,@MSGFMT@,$MSGFMT,;t t |
16189 | s,@MSGMERGE@,$MSGMERGE,;t t | |
13b2be9c DJ |
16190 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
16191 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
16192 | s,@MAINT@,$MAINT,;t t | |
d5fbea21 DJ |
16193 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
16194 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
20e95c23 | 16195 | s,@ALLOCA@,$ALLOCA,;t t |
13b2be9c | 16196 | s,@LIBM@,$LIBM,;t t |
108a6f8e CD |
16197 | s,@datarootdir@,$datarootdir,;t t |
16198 | s,@docdir@,$docdir,;t t | |
16199 | s,@htmldir@,$htmldir,;t t | |
31dd3154 | 16200 | s,@pdfdir@,$pdfdir,;t t |
13b2be9c DJ |
16201 | s,@LIBOBJS@,$LIBOBJS,;t t |
16202 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
9b2b7d69 MM |
16203 | CEOF |
16204 | ||
13b2be9c DJ |
16205 | _ACEOF |
16206 | ||
16207 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16208 | # Split the substitutions into bite-sized pieces for seds with | |
16209 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
16210 | ac_max_sed_lines=48 | |
16211 | ac_sed_frag=1 # Number of current file. | |
16212 | ac_beg=1 # First line for current file. | |
16213 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
16214 | ac_more_lines=: | |
16215 | ac_sed_cmds= | |
16216 | while $ac_more_lines; do | |
16217 | if test $ac_beg -gt 1; then | |
16218 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
16219 | else | |
16220 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
16221 | fi | |
16222 | if test ! -s $tmp/subs.frag; then | |
16223 | ac_more_lines=false | |
9b2b7d69 | 16224 | else |
13b2be9c DJ |
16225 | # The purpose of the label and of the branching condition is to |
16226 | # speed up the sed processing (if there are no `@' at all, there | |
16227 | # is no need to browse any of the substitutions). | |
16228 | # These are the two extra sed commands mentioned above. | |
16229 | (echo ':t | |
16230 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
16231 | if test -z "$ac_sed_cmds"; then | |
ab509236 | 16232 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
13b2be9c | 16233 | else |
ab509236 | 16234 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
13b2be9c DJ |
16235 | fi |
16236 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
16237 | ac_beg=$ac_end | |
16238 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
9b2b7d69 | 16239 | fi |
13b2be9c DJ |
16240 | done |
16241 | if test -z "$ac_sed_cmds"; then | |
16242 | ac_sed_cmds=cat | |
252b5132 | 16243 | fi |
13b2be9c | 16244 | fi # test -n "$CONFIG_FILES" |
252b5132 | 16245 | |
13b2be9c DJ |
16246 | _ACEOF |
16247 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16248 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c8615825 | 16249 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
13b2be9c DJ |
16250 | case $ac_file in |
16251 | - | *:- | *:-:* ) # input from stdin | |
ab509236 L |
16252 | cat >$tmp/stdin |
16253 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
16254 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13b2be9c | 16255 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ab509236 | 16256 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
13b2be9c | 16257 | * ) ac_file_in=$ac_file.in ;; |
252b5132 | 16258 | esac |
9b2b7d69 | 16259 | |
13b2be9c DJ |
16260 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
16261 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
16262 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16263 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16264 | X"$ac_file" : 'X\(//\)$' \| \ | |
16265 | X"$ac_file" : 'X\(/\)' \| \ | |
16266 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16267 | echo X"$ac_file" | |
16268 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16269 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16270 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16271 | /^X\(\/\).*/{ s//\1/; q; } | |
16272 | s/.*/./; q'` | |
16273 | { if $as_mkdir_p; then | |
16274 | mkdir -p "$ac_dir" | |
c8615825 | 16275 | else |
13b2be9c DJ |
16276 | as_dir="$ac_dir" |
16277 | as_dirs= | |
16278 | while test ! -d "$as_dir"; do | |
16279 | as_dirs="$as_dir $as_dirs" | |
16280 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
16281 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16282 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16283 | X"$as_dir" : 'X\(//\)$' \| \ | |
16284 | X"$as_dir" : 'X\(/\)' \| \ | |
16285 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16286 | echo X"$as_dir" | |
16287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16288 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16289 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16290 | /^X\(\/\).*/{ s//\1/; q; } | |
16291 | s/.*/./; q'` | |
16292 | done | |
16293 | test ! -n "$as_dirs" || mkdir $as_dirs | |
16294 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
16295 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
16296 | { (exit 1); exit 1; }; }; } | |
16297 | ||
16298 | ac_builddir=. | |
16299 | ||
16300 | if test "$ac_dir" != .; then | |
16301 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
16302 | # A "../" for each directory in $ac_dir_suffix. | |
16303 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
16304 | else | |
16305 | ac_dir_suffix= ac_top_builddir= | |
16306 | fi | |
9b2b7d69 | 16307 | |
13b2be9c DJ |
16308 | case $srcdir in |
16309 | .) # No --srcdir option. We are building in place. | |
16310 | ac_srcdir=. | |
16311 | if test -z "$ac_top_builddir"; then | |
16312 | ac_top_srcdir=. | |
16313 | else | |
16314 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
16315 | fi ;; | |
16316 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
16317 | ac_srcdir=$srcdir$ac_dir_suffix; | |
16318 | ac_top_srcdir=$srcdir ;; | |
9b2b7d69 | 16319 | *) # Relative path. |
13b2be9c DJ |
16320 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
16321 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
16322 | esac | |
ab509236 L |
16323 | |
16324 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
16325 | # the directories may not exist. | |
16326 | case `pwd` in | |
16327 | .) ac_abs_builddir="$ac_dir";; | |
16328 | *) | |
16329 | case "$ac_dir" in | |
16330 | .) ac_abs_builddir=`pwd`;; | |
16331 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
16332 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
16333 | esac;; | |
16334 | esac | |
16335 | case $ac_abs_builddir in | |
16336 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
16337 | *) | |
16338 | case ${ac_top_builddir}. in | |
16339 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
16340 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
16341 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
16342 | esac;; | |
16343 | esac | |
16344 | case $ac_abs_builddir in | |
16345 | .) ac_abs_srcdir=$ac_srcdir;; | |
16346 | *) | |
16347 | case $ac_srcdir in | |
16348 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
16349 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
16350 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
16351 | esac;; | |
16352 | esac | |
16353 | case $ac_abs_builddir in | |
16354 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
16355 | *) | |
16356 | case $ac_top_srcdir in | |
16357 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
16358 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
16359 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
16360 | esac;; | |
16361 | esac | |
252b5132 | 16362 | |
9b2b7d69 | 16363 | |
13b2be9c DJ |
16364 | case $INSTALL in |
16365 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
16366 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c8615825 | 16367 | esac |
9b2b7d69 | 16368 | |
1ad12f97 NC |
16369 | if test x"$ac_file" != x-; then |
16370 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
16371 | echo "$as_me: creating $ac_file" >&6;} | |
16372 | rm -f "$ac_file" | |
16373 | fi | |
13b2be9c DJ |
16374 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16375 | # use $as_me), people would be surprised to read: | |
16376 | # /* config.h. Generated by config.status. */ | |
16377 | if test x"$ac_file" = x-; then | |
16378 | configure_input= | |
16379 | else | |
16380 | configure_input="$ac_file. " | |
16381 | fi | |
16382 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ab509236 | 16383 | sed 's,.*/,,'` by configure." |
13b2be9c DJ |
16384 | |
16385 | # First look for the input files in the build tree, otherwise in the | |
16386 | # src tree. | |
16387 | ac_file_inputs=`IFS=: | |
16388 | for f in $ac_file_in; do | |
16389 | case $f in | |
16390 | -) echo $tmp/stdin ;; | |
16391 | [\\/$]*) | |
ab509236 L |
16392 | # Absolute (can't be DOS-style, as IFS=:) |
16393 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
16394 | echo "$as_me: error: cannot find input file: $f" >&2;} |
16395 | { (exit 1); exit 1; }; } | |
ab509236 | 16396 | echo "$f";; |
13b2be9c | 16397 | *) # Relative |
ab509236 L |
16398 | if test -f "$f"; then |
16399 | # Build tree | |
16400 | echo "$f" | |
16401 | elif test -f "$srcdir/$f"; then | |
16402 | # Source tree | |
16403 | echo "$srcdir/$f" | |
16404 | else | |
16405 | # /dev/null tree | |
16406 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
16407 | echo "$as_me: error: cannot find input file: $f" >&2;} |
16408 | { (exit 1); exit 1; }; } | |
ab509236 | 16409 | fi;; |
13b2be9c DJ |
16410 | esac |
16411 | done` || { (exit 1); exit 1; } | |
16412 | _ACEOF | |
16413 | cat >>$CONFIG_STATUS <<_ACEOF | |
16414 | sed "$ac_vpsub | |
16415 | $extrasub | |
16416 | _ACEOF | |
16417 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16418 | :t | |
16419 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
16420 | s,@configure_input@,$configure_input,;t t | |
16421 | s,@srcdir@,$ac_srcdir,;t t | |
16422 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
16423 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
16424 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
16425 | s,@builddir@,$ac_builddir,;t t | |
16426 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
16427 | s,@top_builddir@,$ac_top_builddir,;t t | |
16428 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
16429 | s,@INSTALL@,$ac_INSTALL,;t t | |
16430 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
16431 | rm -f $tmp/stdin | |
16432 | if test x"$ac_file" != x-; then | |
16433 | mv $tmp/out $ac_file | |
16434 | else | |
16435 | cat $tmp/out | |
16436 | rm -f $tmp/out | |
16437 | fi | |
16438 | ||
16439 | done | |
16440 | _ACEOF | |
16441 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16442 | ||
16443 | # | |
16444 | # CONFIG_HEADER section. | |
16445 | # | |
252b5132 RH |
16446 | |
16447 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
16448 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
16449 | # | |
16450 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ab509236 L |
16451 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
16452 | ac_dB='[ ].*$,\1#\2' | |
13b2be9c DJ |
16453 | ac_dC=' ' |
16454 | ac_dD=',;t' | |
16455 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ab509236 | 16456 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
13b2be9c | 16457 | ac_uB='$,\1#\2define\3' |
252b5132 | 16458 | ac_uC=' ' |
13b2be9c DJ |
16459 | ac_uD=',;t' |
16460 | ||
16461 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 16462 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
13b2be9c DJ |
16463 | case $ac_file in |
16464 | - | *:- | *:-:* ) # input from stdin | |
ab509236 L |
16465 | cat >$tmp/stdin |
16466 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
16467 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13b2be9c | 16468 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ab509236 | 16469 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
13b2be9c | 16470 | * ) ac_file_in=$ac_file.in ;; |
252b5132 RH |
16471 | esac |
16472 | ||
13b2be9c DJ |
16473 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
16474 | echo "$as_me: creating $ac_file" >&6;} | |
16475 | ||
16476 | # First look for the input files in the build tree, otherwise in the | |
16477 | # src tree. | |
16478 | ac_file_inputs=`IFS=: | |
16479 | for f in $ac_file_in; do | |
16480 | case $f in | |
16481 | -) echo $tmp/stdin ;; | |
16482 | [\\/$]*) | |
ab509236 L |
16483 | # Absolute (can't be DOS-style, as IFS=:) |
16484 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
16485 | echo "$as_me: error: cannot find input file: $f" >&2;} |
16486 | { (exit 1); exit 1; }; } | |
ab509236 L |
16487 | # Do quote $f, to prevent DOS paths from being IFS'd. |
16488 | echo "$f";; | |
13b2be9c | 16489 | *) # Relative |
ab509236 L |
16490 | if test -f "$f"; then |
16491 | # Build tree | |
16492 | echo "$f" | |
16493 | elif test -f "$srcdir/$f"; then | |
16494 | # Source tree | |
16495 | echo "$srcdir/$f" | |
16496 | else | |
16497 | # /dev/null tree | |
16498 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13b2be9c DJ |
16499 | echo "$as_me: error: cannot find input file: $f" >&2;} |
16500 | { (exit 1); exit 1; }; } | |
ab509236 | 16501 | fi;; |
13b2be9c DJ |
16502 | esac |
16503 | done` || { (exit 1); exit 1; } | |
16504 | # Remove the trailing spaces. | |
ab509236 | 16505 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
13b2be9c DJ |
16506 | |
16507 | _ACEOF | |
16508 | ||
16509 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
16510 | # `conftest.undefs', that substitutes the proper values into | |
16511 | # config.h.in to produce config.h. The first handles `#define' | |
16512 | # templates, and the second `#undef' templates. | |
16513 | # And first: Protect against being on the right side of a sed subst in | |
16514 | # config.status. Protect against being in an unquoted here document | |
16515 | # in config.status. | |
16516 | rm -f conftest.defines conftest.undefs | |
16517 | # Using a here document instead of a string reduces the quoting nightmare. | |
16518 | # Putting comments in sed scripts is not portable. | |
16519 | # | |
16520 | # `end' is used to avoid that the second main sed command (meant for | |
16521 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
16522 | # See the Autoconf documentation for `clear'. | |
16523 | cat >confdef2sed.sed <<\_ACEOF | |
16524 | s/[\\&,]/\\&/g | |
16525 | s,[\\$`],\\&,g | |
16526 | t clear | |
16527 | : clear | |
ab509236 | 16528 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
13b2be9c | 16529 | t end |
ab509236 | 16530 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
13b2be9c DJ |
16531 | : end |
16532 | _ACEOF | |
16533 | # If some macros were called several times there might be several times | |
16534 | # the same #defines, which is useless. Nevertheless, we may not want to | |
16535 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
16536 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
16537 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
16538 | rm -f confdef2sed.sed | |
252b5132 RH |
16539 | |
16540 | # This sed command replaces #undef with comments. This is necessary, for | |
16541 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
16542 | # on some systems where configure will not decide to define it. | |
13b2be9c | 16543 | cat >>conftest.undefs <<\_ACEOF |
ab509236 | 16544 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
13b2be9c DJ |
16545 | _ACEOF |
16546 | ||
16547 | # Break up conftest.defines because some shells have a limit on the size | |
16548 | # of here documents, and old seds have small limits too (100 cmds). | |
16549 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ab509236 | 16550 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
13b2be9c DJ |
16551 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
16552 | echo ' :' >>$CONFIG_STATUS | |
16553 | rm -f conftest.tail | |
16554 | while grep . conftest.defines >/dev/null | |
16555 | do | |
16556 | # Write a limited-size here document to $tmp/defines.sed. | |
16557 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
16558 | # Speed up: don't consider the non `#define' lines. | |
ab509236 | 16559 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
13b2be9c DJ |
16560 | # Work around the forget-to-reset-the-flag bug. |
16561 | echo 't clr' >>$CONFIG_STATUS | |
16562 | echo ': clr' >>$CONFIG_STATUS | |
16563 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
16564 | echo 'CEOF | |
16565 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
16566 | rm -f $tmp/in | |
16567 | mv $tmp/out $tmp/in | |
16568 | ' >>$CONFIG_STATUS | |
16569 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
16570 | rm -f conftest.defines | |
16571 | mv conftest.tail conftest.defines | |
16572 | done | |
16573 | rm -f conftest.defines | |
16574 | echo ' fi # grep' >>$CONFIG_STATUS | |
16575 | echo >>$CONFIG_STATUS | |
252b5132 | 16576 | |
13b2be9c DJ |
16577 | # Break up conftest.undefs because some shells have a limit on the size |
16578 | # of here documents, and old seds have small limits too (100 cmds). | |
16579 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 16580 | rm -f conftest.tail |
13b2be9c | 16581 | while grep . conftest.undefs >/dev/null |
252b5132 | 16582 | do |
13b2be9c DJ |
16583 | # Write a limited-size here document to $tmp/undefs.sed. |
16584 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
16585 | # Speed up: don't consider the non `#undef' | |
ab509236 | 16586 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
13b2be9c DJ |
16587 | # Work around the forget-to-reset-the-flag bug. |
16588 | echo 't clr' >>$CONFIG_STATUS | |
16589 | echo ': clr' >>$CONFIG_STATUS | |
16590 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 16591 | echo 'CEOF |
13b2be9c DJ |
16592 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
16593 | rm -f $tmp/in | |
16594 | mv $tmp/out $tmp/in | |
16595 | ' >>$CONFIG_STATUS | |
16596 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
16597 | rm -f conftest.undefs | |
16598 | mv conftest.tail conftest.undefs | |
252b5132 | 16599 | done |
13b2be9c DJ |
16600 | rm -f conftest.undefs |
16601 | ||
16602 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16603 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16604 | # use $as_me), people would be surprised to read: | |
16605 | # /* config.h. Generated by config.status. */ | |
16606 | if test x"$ac_file" = x-; then | |
16607 | echo "/* Generated by configure. */" >$tmp/config.h | |
252b5132 | 16608 | else |
13b2be9c DJ |
16609 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
16610 | fi | |
16611 | cat $tmp/in >>$tmp/config.h | |
16612 | rm -f $tmp/in | |
16613 | if test x"$ac_file" != x-; then | |
16614 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
16615 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
16616 | echo "$as_me: $ac_file is unchanged" >&6;} | |
16617 | else | |
16618 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
16619 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16620 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16621 | X"$ac_file" : 'X\(//\)$' \| \ | |
16622 | X"$ac_file" : 'X\(/\)' \| \ | |
16623 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16624 | echo X"$ac_file" | |
16625 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16626 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16627 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16628 | /^X\(\/\).*/{ s//\1/; q; } | |
16629 | s/.*/./; q'` | |
16630 | { if $as_mkdir_p; then | |
16631 | mkdir -p "$ac_dir" | |
16632 | else | |
16633 | as_dir="$ac_dir" | |
16634 | as_dirs= | |
16635 | while test ! -d "$as_dir"; do | |
16636 | as_dirs="$as_dir $as_dirs" | |
16637 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
16638 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16639 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16640 | X"$as_dir" : 'X\(//\)$' \| \ | |
16641 | X"$as_dir" : 'X\(/\)' \| \ | |
16642 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16643 | echo X"$as_dir" | |
16644 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16645 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16646 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16647 | /^X\(\/\).*/{ s//\1/; q; } | |
16648 | s/.*/./; q'` | |
16649 | done | |
16650 | test ! -n "$as_dirs" || mkdir $as_dirs | |
16651 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
16652 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
16653 | { (exit 1); exit 1; }; }; } | |
16654 | ||
16655 | rm -f $ac_file | |
16656 | mv $tmp/config.h $ac_file | |
9b2b7d69 | 16657 | fi |
13b2be9c DJ |
16658 | else |
16659 | cat $tmp/config.h | |
16660 | rm -f $tmp/config.h | |
9b2b7d69 | 16661 | fi |
13b2be9c DJ |
16662 | # Compute $ac_file's index in $config_headers. |
16663 | _am_stamp_count=1 | |
16664 | for _am_header in $config_headers :; do | |
16665 | case $_am_header in | |
16666 | $ac_file | $ac_file:* ) | |
16667 | break ;; | |
16668 | * ) | |
16669 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
16670 | esac | |
16671 | done | |
16672 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
16673 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16674 | X$ac_file : 'X\(//\)[^/]' \| \ |
16675 | X$ac_file : 'X\(//\)$' \| \ | |
16676 | X$ac_file : 'X\(/\)' \| \ | |
16677 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16678 | echo X$ac_file | |
16679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16681 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16682 | /^X\(\/\).*/{ s//\1/; q; } | |
16683 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
16684 | done | |
16685 | _ACEOF | |
16686 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6840198f | 16687 | |
13b2be9c DJ |
16688 | # |
16689 | # CONFIG_COMMANDS section. | |
16690 | # | |
16691 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
16692 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
16693 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
16694 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
16695 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16696 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
16697 | X"$ac_dest" : 'X\(//\)$' \| \ | |
16698 | X"$ac_dest" : 'X\(/\)' \| \ | |
16699 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16700 | echo X"$ac_dest" | |
16701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16703 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16704 | /^X\(\/\).*/{ s//\1/; q; } | |
16705 | s/.*/./; q'` | |
ab509236 L |
16706 | { if $as_mkdir_p; then |
16707 | mkdir -p "$ac_dir" | |
16708 | else | |
16709 | as_dir="$ac_dir" | |
16710 | as_dirs= | |
16711 | while test ! -d "$as_dir"; do | |
16712 | as_dirs="$as_dir $as_dirs" | |
16713 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
16714 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16715 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16716 | X"$as_dir" : 'X\(//\)$' \| \ | |
16717 | X"$as_dir" : 'X\(/\)' \| \ | |
16718 | . : '\(.\)' 2>/dev/null || | |
16719 | echo X"$as_dir" | | |
16720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16723 | /^X\(\/\).*/{ s//\1/; q; } | |
16724 | s/.*/./; q'` | |
16725 | done | |
16726 | test ! -n "$as_dirs" || mkdir $as_dirs | |
16727 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
16728 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
16729 | { (exit 1); exit 1; }; }; } | |
16730 | ||
13b2be9c DJ |
16731 | ac_builddir=. |
16732 | ||
16733 | if test "$ac_dir" != .; then | |
16734 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
16735 | # A "../" for each directory in $ac_dir_suffix. | |
16736 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
16737 | else | |
16738 | ac_dir_suffix= ac_top_builddir= | |
16739 | fi | |
16740 | ||
16741 | case $srcdir in | |
16742 | .) # No --srcdir option. We are building in place. | |
16743 | ac_srcdir=. | |
16744 | if test -z "$ac_top_builddir"; then | |
16745 | ac_top_srcdir=. | |
16746 | else | |
16747 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
16748 | fi ;; | |
16749 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
16750 | ac_srcdir=$srcdir$ac_dir_suffix; | |
16751 | ac_top_srcdir=$srcdir ;; | |
16752 | *) # Relative path. | |
16753 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
16754 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
16755 | esac | |
ab509236 L |
16756 | |
16757 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
16758 | # the directories may not exist. | |
16759 | case `pwd` in | |
16760 | .) ac_abs_builddir="$ac_dir";; | |
16761 | *) | |
16762 | case "$ac_dir" in | |
16763 | .) ac_abs_builddir=`pwd`;; | |
16764 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
16765 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
16766 | esac;; | |
16767 | esac | |
16768 | case $ac_abs_builddir in | |
16769 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
16770 | *) | |
16771 | case ${ac_top_builddir}. in | |
16772 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
16773 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
16774 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
16775 | esac;; | |
16776 | esac | |
16777 | case $ac_abs_builddir in | |
16778 | .) ac_abs_srcdir=$ac_srcdir;; | |
16779 | *) | |
16780 | case $ac_srcdir in | |
16781 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
16782 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
16783 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
16784 | esac;; | |
16785 | esac | |
16786 | case $ac_abs_builddir in | |
16787 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
16788 | *) | |
16789 | case $ac_top_srcdir in | |
16790 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
16791 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
16792 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
16793 | esac;; | |
16794 | esac | |
13b2be9c DJ |
16795 | |
16796 | ||
16797 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
16798 | echo "$as_me: executing $ac_dest commands" >&6;} | |
16799 | case $ac_dest in | |
16800 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
16801 | # Strip MF so we end up with the name of the file. | |
16802 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
16803 | # Check whether this is an Automake generated Makefile or not. | |
16804 | # We used to match only the files named `Makefile.in', but | |
16805 | # some people rename them; so instead we look at the file content. | |
16806 | # Grep'ing the first line is not enough: some people post-process | |
16807 | # each Makefile.in and add a new line on top of each file to say so. | |
16808 | # So let's grep whole file. | |
16809 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
16810 | dirpart=`(dirname "$mf") 2>/dev/null || | |
16811 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16812 | X"$mf" : 'X\(//\)[^/]' \| \ |
16813 | X"$mf" : 'X\(//\)$' \| \ | |
16814 | X"$mf" : 'X\(/\)' \| \ | |
16815 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16816 | echo X"$mf" | |
16817 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16818 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16819 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16820 | /^X\(\/\).*/{ s//\1/; q; } | |
16821 | s/.*/./; q'` | |
16822 | else | |
16823 | continue | |
16824 | fi | |
8ea2b00f AM |
16825 | # Extract the definition of DEPDIR, am__include, and am__quote |
16826 | # from the Makefile without running `make'. | |
4b363073 | 16827 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13b2be9c | 16828 | test -z "$DEPDIR" && continue |
8ea2b00f AM |
16829 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
16830 | test -z "am__include" && continue | |
16831 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13b2be9c | 16832 | # When using ansi2knr, U may be empty or an underscore; expand it |
4b363073 | 16833 | U=`sed -n 's/^U = //p' < "$mf"` |
8ea2b00f AM |
16834 | # Find all dependency output files, they are included files with |
16835 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
16836 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
16837 | # expansion. | |
16838 | for file in `sed -n " | |
16839 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13b2be9c DJ |
16840 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
16841 | # Make sure the directory exists. | |
16842 | test -f "$dirpart/$file" && continue | |
16843 | fdir=`(dirname "$file") 2>/dev/null || | |
16844 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16845 | X"$file" : 'X\(//\)[^/]' \| \ |
16846 | X"$file" : 'X\(//\)$' \| \ | |
16847 | X"$file" : 'X\(/\)' \| \ | |
16848 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16849 | echo X"$file" | |
16850 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16851 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16852 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16853 | /^X\(\/\).*/{ s//\1/; q; } | |
16854 | s/.*/./; q'` | |
16855 | { if $as_mkdir_p; then | |
16856 | mkdir -p $dirpart/$fdir | |
16857 | else | |
16858 | as_dir=$dirpart/$fdir | |
16859 | as_dirs= | |
16860 | while test ! -d "$as_dir"; do | |
16861 | as_dirs="$as_dir $as_dirs" | |
16862 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
16863 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ab509236 L |
16864 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16865 | X"$as_dir" : 'X\(//\)$' \| \ | |
16866 | X"$as_dir" : 'X\(/\)' \| \ | |
16867 | . : '\(.\)' 2>/dev/null || | |
13b2be9c DJ |
16868 | echo X"$as_dir" | |
16869 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16870 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16871 | /^X\(\/\/\)$/{ s//\1/; q; } | |
16872 | /^X\(\/\).*/{ s//\1/; q; } | |
16873 | s/.*/./; q'` | |
16874 | done | |
16875 | test ! -n "$as_dirs" || mkdir $as_dirs | |
16876 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
16877 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
16878 | { (exit 1); exit 1; }; }; } | |
c8615825 | 16879 | |
13b2be9c DJ |
16880 | # echo "creating $dirpart/$file" |
16881 | echo '# dummy' > "$dirpart/$file" | |
16882 | done | |
16883 | done | |
d7040cdb SE |
16884 | ;; |
16885 | libtool ) | |
16886 | ||
16887 | # See if we are running on zsh, and set the options which allow our | |
16888 | # commands through without removal of \ escapes. | |
16889 | if test -n "${ZSH_VERSION+set}" ; then | |
16890 | setopt NO_GLOB_SUBST | |
16891 | fi | |
16892 | ||
16893 | cfgfile="${ofile}T" | |
16894 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
16895 | $RM "$cfgfile" | |
16896 | ||
16897 | cat <<_LT_EOF >> "$cfgfile" | |
16898 | #! $SHELL | |
16899 | ||
16900 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 16901 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
16902 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16903 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
16904 | # | |
718a6fd8 SE |
16905 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
16906 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
16907 | # Written by Gordon Matzigkeit, 1996 | |
d7040cdb | 16908 | # |
718a6fd8 | 16909 | # This file is part of GNU Libtool. |
d7040cdb | 16910 | # |
718a6fd8 SE |
16911 | # GNU Libtool is free software; you can redistribute it and/or |
16912 | # modify it under the terms of the GNU General Public License as | |
16913 | # published by the Free Software Foundation; either version 2 of | |
16914 | # the License, or (at your option) any later version. | |
d7040cdb | 16915 | # |
718a6fd8 SE |
16916 | # As a special exception to the GNU General Public License, |
16917 | # if you distribute this file as part of a program or library that | |
16918 | # is built using GNU Libtool, you may include this file under the | |
16919 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 16920 | # |
718a6fd8 SE |
16921 | # GNU Libtool is distributed in the hope that it will be useful, |
16922 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16923 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16924 | # GNU General Public License for more details. | |
d7040cdb | 16925 | # |
718a6fd8 SE |
16926 | # You should have received a copy of the GNU General Public License |
16927 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
16928 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
16929 | # obtained by writing to the Free Software Foundation, Inc., | |
16930 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
16931 | |
16932 | ||
16933 | # The names of the tagged configurations supported by this script. | |
16934 | available_tags="" | |
16935 | ||
16936 | # ### BEGIN LIBTOOL CONFIG | |
16937 | ||
16938 | # Which release of libtool.m4 was used? | |
16939 | macro_version=$macro_version | |
16940 | macro_revision=$macro_revision | |
16941 | ||
16942 | # Whether or not to build shared libraries. | |
16943 | build_libtool_libs=$enable_shared | |
16944 | ||
16945 | # Whether or not to build static libraries. | |
16946 | build_old_libs=$enable_static | |
16947 | ||
16948 | # What type of objects to build. | |
16949 | pic_mode=$pic_mode | |
16950 | ||
16951 | # Whether or not to optimize for fast installation. | |
16952 | fast_install=$enable_fast_install | |
16953 | ||
16954 | # The host system. | |
16955 | host_alias=$host_alias | |
16956 | host=$host | |
16957 | host_os=$host_os | |
16958 | ||
16959 | # The build system. | |
16960 | build_alias=$build_alias | |
16961 | build=$build | |
16962 | build_os=$build_os | |
16963 | ||
16964 | # A sed program that does not truncate output. | |
16965 | SED=$lt_SED | |
16966 | ||
16967 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
16968 | Xsed="\$SED -e 1s/^X//" | |
16969 | ||
16970 | # A grep program that handles long lines. | |
16971 | GREP=$lt_GREP | |
16972 | ||
16973 | # An ERE matcher. | |
16974 | EGREP=$lt_EGREP | |
16975 | ||
16976 | # A literal string matcher. | |
16977 | FGREP=$lt_FGREP | |
16978 | ||
16979 | # A BSD- or MS-compatible name lister. | |
16980 | NM=$lt_NM | |
16981 | ||
16982 | # Whether we need soft or hard links. | |
16983 | LN_S=$lt_LN_S | |
16984 | ||
16985 | # What is the maximum length of a command? | |
16986 | max_cmd_len=$max_cmd_len | |
16987 | ||
16988 | # Object file suffix (normally "o"). | |
16989 | objext=$ac_objext | |
16990 | ||
16991 | # Executable file suffix (normally ""). | |
16992 | exeext=$exeext | |
16993 | ||
16994 | # whether the shell understands "unset". | |
16995 | lt_unset=$lt_unset | |
16996 | ||
16997 | # turn spaces into newlines. | |
16998 | SP2NL=$lt_lt_SP2NL | |
16999 | ||
17000 | # turn newlines into spaces. | |
17001 | NL2SP=$lt_lt_NL2SP | |
17002 | ||
17003 | # How to create reloadable object files. | |
17004 | reload_flag=$lt_reload_flag | |
17005 | reload_cmds=$lt_reload_cmds | |
17006 | ||
718a6fd8 SE |
17007 | # An object symbol dumper. |
17008 | OBJDUMP=$lt_OBJDUMP | |
17009 | ||
d7040cdb SE |
17010 | # Method to check whether dependent libraries are shared objects. |
17011 | deplibs_check_method=$lt_deplibs_check_method | |
17012 | ||
17013 | # Command to use when deplibs_check_method == "file_magic". | |
17014 | file_magic_cmd=$lt_file_magic_cmd | |
17015 | ||
17016 | # The archiver. | |
17017 | AR=$lt_AR | |
17018 | AR_FLAGS=$lt_AR_FLAGS | |
17019 | ||
17020 | # A symbol stripping program. | |
17021 | STRIP=$lt_STRIP | |
17022 | ||
17023 | # Commands used to install an old-style archive. | |
17024 | RANLIB=$lt_RANLIB | |
17025 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17026 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17027 | ||
17028 | # A C compiler. | |
17029 | LTCC=$lt_CC | |
17030 | ||
17031 | # LTCC compiler flags. | |
17032 | LTCFLAGS=$lt_CFLAGS | |
17033 | ||
17034 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17035 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17036 | ||
17037 | # Transform the output of nm in a proper C declaration. | |
17038 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17039 | ||
17040 | # Transform the output of nm in a C name address pair. | |
17041 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17042 | ||
718a6fd8 SE |
17043 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
17044 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17045 | ||
d7040cdb SE |
17046 | # The name of the directory that contains temporary libtool files. |
17047 | objdir=$objdir | |
17048 | ||
17049 | # Shell to use when invoking shell scripts. | |
17050 | SHELL=$lt_SHELL | |
17051 | ||
17052 | # An echo program that does not interpret backslashes. | |
17053 | ECHO=$lt_ECHO | |
17054 | ||
17055 | # Used to examine libraries when file_magic_cmd begins with "file". | |
17056 | MAGIC_CMD=$MAGIC_CMD | |
17057 | ||
17058 | # Must we lock files when doing compilation? | |
17059 | need_locks=$lt_need_locks | |
17060 | ||
718a6fd8 SE |
17061 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
17062 | DSYMUTIL=$lt_DSYMUTIL | |
17063 | ||
17064 | # Tool to change global to local symbols on Mac OS X. | |
17065 | NMEDIT=$lt_NMEDIT | |
17066 | ||
17067 | # Tool to manipulate fat objects and archives on Mac OS X. | |
17068 | LIPO=$lt_LIPO | |
17069 | ||
17070 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
17071 | OTOOL=$lt_OTOOL | |
17072 | ||
17073 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
17074 | OTOOL64=$lt_OTOOL64 | |
17075 | ||
d7040cdb SE |
17076 | # Old archive suffix (normally "a"). |
17077 | libext=$libext | |
17078 | ||
17079 | # Shared library suffix (normally ".so"). | |
17080 | shrext_cmds=$lt_shrext_cmds | |
17081 | ||
17082 | # The commands to extract the exported symbol list from a shared archive. | |
17083 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
17084 | ||
17085 | # Variables whose values should be saved in libtool wrapper scripts and | |
17086 | # restored at link time. | |
17087 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
17088 | ||
17089 | # Do we need the "lib" prefix for modules? | |
17090 | need_lib_prefix=$need_lib_prefix | |
17091 | ||
17092 | # Do we need a version for libraries? | |
17093 | need_version=$need_version | |
17094 | ||
17095 | # Library versioning type. | |
17096 | version_type=$version_type | |
17097 | ||
17098 | # Shared library runtime path variable. | |
17099 | runpath_var=$runpath_var | |
17100 | ||
17101 | # Shared library path variable. | |
17102 | shlibpath_var=$shlibpath_var | |
17103 | ||
17104 | # Is shlibpath searched before the hard-coded library search path? | |
17105 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17106 | ||
17107 | # Format of library name prefix. | |
17108 | libname_spec=$lt_libname_spec | |
17109 | ||
17110 | # List of archive names. First name is the real one, the rest are links. | |
17111 | # The last name is the one that the linker finds with -lNAME | |
17112 | library_names_spec=$lt_library_names_spec | |
17113 | ||
17114 | # The coded name of the library, if different from the real name. | |
17115 | soname_spec=$lt_soname_spec | |
17116 | ||
17117 | # Command to use after installation of a shared archive. | |
17118 | postinstall_cmds=$lt_postinstall_cmds | |
17119 | ||
17120 | # Command to use after uninstallation of a shared archive. | |
17121 | postuninstall_cmds=$lt_postuninstall_cmds | |
17122 | ||
17123 | # Commands used to finish a libtool library installation in a directory. | |
17124 | finish_cmds=$lt_finish_cmds | |
17125 | ||
17126 | # As "finish_cmds", except a single script fragment to be evaled but | |
17127 | # not shown. | |
17128 | finish_eval=$lt_finish_eval | |
17129 | ||
17130 | # Whether we should hardcode library paths into libraries. | |
17131 | hardcode_into_libs=$hardcode_into_libs | |
17132 | ||
17133 | # Compile-time system search path for libraries. | |
17134 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
17135 | ||
17136 | # Run-time system search path for libraries. | |
17137 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
17138 | ||
17139 | # Whether dlopen is supported. | |
17140 | dlopen_support=$enable_dlopen | |
17141 | ||
17142 | # Whether dlopen of programs is supported. | |
17143 | dlopen_self=$enable_dlopen_self | |
17144 | ||
17145 | # Whether dlopen of statically linked programs is supported. | |
17146 | dlopen_self_static=$enable_dlopen_self_static | |
17147 | ||
17148 | # Commands to strip libraries. | |
17149 | old_striplib=$lt_old_striplib | |
17150 | striplib=$lt_striplib | |
17151 | ||
17152 | ||
17153 | # The linker used to build libraries. | |
17154 | LD=$lt_LD | |
17155 | ||
17156 | # Commands used to build an old-style archive. | |
17157 | old_archive_cmds=$lt_old_archive_cmds | |
17158 | ||
17159 | # A language specific compiler. | |
17160 | CC=$lt_compiler | |
17161 | ||
17162 | # Is the compiler the GNU compiler? | |
17163 | with_gcc=$GCC | |
17164 | ||
17165 | # Compiler flag to turn off builtin functions. | |
17166 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
17167 | ||
17168 | # How to pass a linker flag through the compiler. | |
17169 | wl=$lt_lt_prog_compiler_wl | |
17170 | ||
17171 | # Additional compiler flags for building library objects. | |
17172 | pic_flag=$lt_lt_prog_compiler_pic | |
17173 | ||
17174 | # Compiler flag to prevent dynamic linking. | |
17175 | link_static_flag=$lt_lt_prog_compiler_static | |
17176 | ||
17177 | # Does compiler simultaneously support -c and -o options? | |
17178 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
17179 | ||
17180 | # Whether or not to add -lc for building shared libraries. | |
17181 | build_libtool_need_lc=$archive_cmds_need_lc | |
17182 | ||
17183 | # Whether or not to disallow shared libs when runtime libs are static. | |
17184 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
17185 | ||
17186 | # Compiler flag to allow reflexive dlopens. | |
17187 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
17188 | ||
17189 | # Compiler flag to generate shared objects directly from archives. | |
17190 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
17191 | ||
17192 | # Whether the compiler copes with passing no objects directly. | |
17193 | compiler_needs_object=$lt_compiler_needs_object | |
17194 | ||
17195 | # Create an old-style archive from a shared archive. | |
17196 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
17197 | ||
17198 | # Create a temporary old-style archive to link instead of a shared archive. | |
17199 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
17200 | ||
17201 | # Commands used to build a shared archive. | |
17202 | archive_cmds=$lt_archive_cmds | |
17203 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
17204 | ||
17205 | # Commands used to build a loadable module if different from building | |
17206 | # a shared archive. | |
17207 | module_cmds=$lt_module_cmds | |
17208 | module_expsym_cmds=$lt_module_expsym_cmds | |
17209 | ||
17210 | # Whether we are building with GNU ld or not. | |
17211 | with_gnu_ld=$lt_with_gnu_ld | |
17212 | ||
17213 | # Flag that allows shared libraries with undefined symbols to be built. | |
17214 | allow_undefined_flag=$lt_allow_undefined_flag | |
17215 | ||
17216 | # Flag that enforces no undefined symbols. | |
17217 | no_undefined_flag=$lt_no_undefined_flag | |
17218 | ||
17219 | # Flag to hardcode \$libdir into a binary during linking. | |
17220 | # This must work even if \$libdir does not exist | |
17221 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
17222 | ||
17223 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
17224 | # during linking. This must work even if \$libdir does not exist. | |
17225 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
17226 | ||
17227 | # Whether we need a single "-rpath" flag with a separated argument. | |
17228 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
17229 | ||
17230 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17231 | # DIR into the resulting binary. | |
17232 | hardcode_direct=$hardcode_direct | |
17233 | ||
17234 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17235 | # DIR into the resulting binary and the resulting library dependency is | |
17236 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17237 | # library is relocated. | |
17238 | hardcode_direct_absolute=$hardcode_direct_absolute | |
17239 | ||
17240 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
17241 | # into the resulting binary. | |
17242 | hardcode_minus_L=$hardcode_minus_L | |
17243 | ||
17244 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
17245 | # into the resulting binary. | |
17246 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
17247 | ||
17248 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
17249 | # into the library and all subsequent libraries and executables linked | |
17250 | # against it. | |
17251 | hardcode_automatic=$hardcode_automatic | |
17252 | ||
17253 | # Set to yes if linker adds runtime paths of dependent libraries | |
17254 | # to runtime path list. | |
17255 | inherit_rpath=$inherit_rpath | |
17256 | ||
17257 | # Whether libtool must link a program against all its dependency libraries. | |
17258 | link_all_deplibs=$link_all_deplibs | |
17259 | ||
17260 | # Fix the shell variable \$srcfile for the compiler. | |
17261 | fix_srcfile_path=$lt_fix_srcfile_path | |
17262 | ||
17263 | # Set to "yes" if exported symbols are required. | |
17264 | always_export_symbols=$always_export_symbols | |
17265 | ||
17266 | # The commands to list exported symbols. | |
17267 | export_symbols_cmds=$lt_export_symbols_cmds | |
17268 | ||
17269 | # Symbols that should not be listed in the preloaded symbols. | |
17270 | exclude_expsyms=$lt_exclude_expsyms | |
17271 | ||
17272 | # Symbols that must always be exported. | |
17273 | include_expsyms=$lt_include_expsyms | |
17274 | ||
17275 | # Commands necessary for linking programs (against libraries) with templates. | |
17276 | prelink_cmds=$lt_prelink_cmds | |
17277 | ||
17278 | # Specify filename containing input files. | |
17279 | file_list_spec=$lt_file_list_spec | |
17280 | ||
17281 | # How to hardcode a shared library path into an executable. | |
17282 | hardcode_action=$hardcode_action | |
17283 | ||
17284 | # ### END LIBTOOL CONFIG | |
17285 | ||
17286 | _LT_EOF | |
17287 | ||
17288 | case $host_os in | |
17289 | aix3*) | |
17290 | cat <<\_LT_EOF >> "$cfgfile" | |
17291 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17292 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17293 | # vanish in a puff of smoke. | |
17294 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17295 | COLLECT_NAMES= | |
17296 | export COLLECT_NAMES | |
17297 | fi | |
17298 | _LT_EOF | |
17299 | ;; | |
17300 | esac | |
17301 | ||
17302 | ||
17303 | ltmain="$ac_aux_dir/ltmain.sh" | |
17304 | ||
17305 | ||
17306 | # We use sed instead of cat because bash on DJGPP gets confused if | |
17307 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17308 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17309 | # is reportedly fixed, but why not run on old versions too? | |
17310 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
17311 | || (rm -f "$cfgfile"; exit 1) | |
17312 | ||
17313 | case $xsi_shell in | |
17314 | yes) | |
17315 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 17316 | |
d7040cdb SE |
17317 | # func_dirname file append nondir_replacement |
17318 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17319 | # otherwise set result to NONDIR_REPLACEMENT. | |
17320 | func_dirname () | |
17321 | { | |
17322 | case ${1} in | |
17323 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17324 | * ) func_dirname_result="${3}" ;; | |
17325 | esac | |
17326 | } | |
17327 | ||
17328 | # func_basename file | |
17329 | func_basename () | |
17330 | { | |
17331 | func_basename_result="${1##*/}" | |
17332 | } | |
17333 | ||
718a6fd8 SE |
17334 | # func_dirname_and_basename file append nondir_replacement |
17335 | # perform func_basename and func_dirname in a single function | |
17336 | # call: | |
17337 | # dirname: Compute the dirname of FILE. If nonempty, | |
17338 | # add APPEND to the result, otherwise set result | |
17339 | # to NONDIR_REPLACEMENT. | |
17340 | # value returned in "$func_dirname_result" | |
17341 | # basename: Compute filename of FILE. | |
17342 | # value retuned in "$func_basename_result" | |
17343 | # Implementation must be kept synchronized with func_dirname | |
17344 | # and func_basename. For efficiency, we do not delegate to | |
17345 | # those functions but instead duplicate the functionality here. | |
17346 | func_dirname_and_basename () | |
17347 | { | |
17348 | case ${1} in | |
17349 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17350 | * ) func_dirname_result="${3}" ;; | |
17351 | esac | |
17352 | func_basename_result="${1##*/}" | |
17353 | } | |
17354 | ||
d7040cdb SE |
17355 | # func_stripname prefix suffix name |
17356 | # strip PREFIX and SUFFIX off of NAME. | |
17357 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17358 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17359 | # dot (in which case that matches only a dot). | |
17360 | func_stripname () | |
17361 | { | |
17362 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
17363 | # positional parameters, so assign one to ordinary parameter first. | |
17364 | func_stripname_result=${3} | |
17365 | func_stripname_result=${func_stripname_result#"${1}"} | |
17366 | func_stripname_result=${func_stripname_result%"${2}"} | |
17367 | } | |
17368 | ||
17369 | # func_opt_split | |
17370 | func_opt_split () | |
17371 | { | |
17372 | func_opt_split_opt=${1%%=*} | |
17373 | func_opt_split_arg=${1#*=} | |
17374 | } | |
17375 | ||
17376 | # func_lo2o object | |
17377 | func_lo2o () | |
17378 | { | |
17379 | case ${1} in | |
17380 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
17381 | *) func_lo2o_result=${1} ;; | |
17382 | esac | |
17383 | } | |
718a6fd8 SE |
17384 | |
17385 | # func_xform libobj-or-source | |
17386 | func_xform () | |
17387 | { | |
17388 | func_xform_result=${1%.*}.lo | |
17389 | } | |
17390 | ||
17391 | # func_arith arithmetic-term... | |
17392 | func_arith () | |
17393 | { | |
17394 | func_arith_result=$(( $* )) | |
17395 | } | |
17396 | ||
17397 | # func_len string | |
17398 | # STRING may not start with a hyphen. | |
17399 | func_len () | |
17400 | { | |
17401 | func_len_result=${#1} | |
17402 | } | |
17403 | ||
d7040cdb SE |
17404 | _LT_EOF |
17405 | ;; | |
17406 | *) # Bourne compatible functions. | |
17407 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 17408 | |
d7040cdb SE |
17409 | # func_dirname file append nondir_replacement |
17410 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17411 | # otherwise set result to NONDIR_REPLACEMENT. | |
17412 | func_dirname () | |
17413 | { | |
17414 | # Extract subdirectory from the argument. | |
17415 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
17416 | if test "X$func_dirname_result" = "X${1}"; then | |
17417 | func_dirname_result="${3}" | |
17418 | else | |
17419 | func_dirname_result="$func_dirname_result${2}" | |
17420 | fi | |
17421 | } | |
17422 | ||
17423 | # func_basename file | |
17424 | func_basename () | |
17425 | { | |
17426 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
17427 | } | |
17428 | ||
718a6fd8 | 17429 | |
d7040cdb SE |
17430 | # func_stripname prefix suffix name |
17431 | # strip PREFIX and SUFFIX off of NAME. | |
17432 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17433 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17434 | # dot (in which case that matches only a dot). | |
17435 | # func_strip_suffix prefix name | |
17436 | func_stripname () | |
17437 | { | |
17438 | case ${2} in | |
17439 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
17440 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
17441 | *) func_stripname_result=`$ECHO "X${3}" \ | |
17442 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
17443 | esac | |
17444 | } | |
17445 | ||
17446 | # sed scripts: | |
17447 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
17448 | my_sed_long_arg='1s/^-[^=]*=//' | |
17449 | ||
17450 | # func_opt_split | |
17451 | func_opt_split () | |
17452 | { | |
17453 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
17454 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
17455 | } | |
17456 | ||
17457 | # func_lo2o object | |
17458 | func_lo2o () | |
17459 | { | |
17460 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
17461 | } | |
718a6fd8 SE |
17462 | |
17463 | # func_xform libobj-or-source | |
17464 | func_xform () | |
17465 | { | |
17466 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
17467 | } | |
17468 | ||
17469 | # func_arith arithmetic-term... | |
17470 | func_arith () | |
17471 | { | |
17472 | func_arith_result=`expr "$@"` | |
17473 | } | |
17474 | ||
17475 | # func_len string | |
17476 | # STRING may not start with a hyphen. | |
17477 | func_len () | |
17478 | { | |
17479 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
17480 | } | |
17481 | ||
d7040cdb SE |
17482 | _LT_EOF |
17483 | esac | |
17484 | ||
17485 | case $lt_shell_append in | |
17486 | yes) | |
17487 | cat << \_LT_EOF >> "$cfgfile" | |
17488 | ||
17489 | # func_append var value | |
17490 | # Append VALUE to the end of shell variable VAR. | |
17491 | func_append () | |
17492 | { | |
17493 | eval "$1+=\$2" | |
17494 | } | |
17495 | _LT_EOF | |
17496 | ;; | |
17497 | *) | |
17498 | cat << \_LT_EOF >> "$cfgfile" | |
17499 | ||
17500 | # func_append var value | |
17501 | # Append VALUE to the end of shell variable VAR. | |
17502 | func_append () | |
17503 | { | |
17504 | eval "$1=\$$1\$2" | |
17505 | } | |
718a6fd8 | 17506 | |
d7040cdb SE |
17507 | _LT_EOF |
17508 | ;; | |
17509 | esac | |
17510 | ||
17511 | ||
17512 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
17513 | || (rm -f "$cfgfile"; exit 1) | |
17514 | ||
17515 | mv -f "$cfgfile" "$ofile" || | |
17516 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
17517 | chmod +x "$ofile" | |
17518 | ||
13b2be9c | 17519 | ;; |
20e95c23 DJ |
17520 | default-1 ) |
17521 | for ac_file in $CONFIG_FILES; do | |
17522 | # Support "outfile[:infile[:infile...]]" | |
17523 | case "$ac_file" in | |
17524 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17525 | esac | |
17526 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
17527 | case "$ac_file" in */Makefile.in) | |
17528 | # Adjust a relative srcdir. | |
17529 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
17530 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
17531 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
17532 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
17533 | # In autoconf-2.50 it is called $srcdir. | |
17534 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
17535 | case "$ac_given_srcdir" in | |
17536 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
17537 | /*) top_srcdir="$ac_given_srcdir" ;; | |
17538 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17539 | esac | |
17540 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
17541 | rm -f "$ac_dir/POTFILES" | |
17542 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
17543 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
17544 | POMAKEFILEDEPS="POTFILES.in" | |
17545 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
17546 | # on $ac_dir but don't depend on user-specified configuration | |
17547 | # parameters. | |
17548 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
17549 | # The LINGUAS file contains the set of available languages. | |
17550 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
17551 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
17552 | fi | |
17553 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
17554 | # Hide the ALL_LINGUAS assigment from automake. | |
17555 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
17556 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
17557 | else | |
17558 | # The set of available languages was given in configure.in. | |
17559 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
17560 | fi | |
17561 | case "$ac_given_srcdir" in | |
17562 | .) srcdirpre= ;; | |
17563 | *) srcdirpre='$(srcdir)/' ;; | |
17564 | esac | |
17565 | POFILES= | |
17566 | GMOFILES= | |
17567 | UPDATEPOFILES= | |
17568 | DUMMYPOFILES= | |
17569 | for lang in $ALL_LINGUAS; do | |
17570 | POFILES="$POFILES $srcdirpre$lang.po" | |
17571 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
17572 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
17573 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
17574 | done | |
17575 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
17576 | # environment variable. | |
17577 | INST_LINGUAS= | |
17578 | if test -n "$ALL_LINGUAS"; then | |
17579 | for presentlang in $ALL_LINGUAS; do | |
17580 | useit=no | |
17581 | if test "%UNSET%" != "$LINGUAS"; then | |
17582 | desiredlanguages="$LINGUAS" | |
17583 | else | |
17584 | desiredlanguages="$ALL_LINGUAS" | |
17585 | fi | |
17586 | for desiredlang in $desiredlanguages; do | |
17587 | # Use the presentlang catalog if desiredlang is | |
17588 | # a. equal to presentlang, or | |
17589 | # b. a variant of presentlang (because in this case, | |
17590 | # presentlang can be used as a fallback for messages | |
17591 | # which are not translated in the desiredlang catalog). | |
17592 | case "$desiredlang" in | |
17593 | "$presentlang"*) useit=yes;; | |
17594 | esac | |
17595 | done | |
17596 | if test $useit = yes; then | |
17597 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17598 | fi | |
17599 | done | |
17600 | fi | |
17601 | CATALOGS= | |
17602 | if test -n "$INST_LINGUAS"; then | |
17603 | for lang in $INST_LINGUAS; do | |
17604 | CATALOGS="$CATALOGS $lang.gmo" | |
17605 | done | |
17606 | fi | |
17607 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
17608 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
17609 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
17610 | if test -f "$f"; then | |
17611 | case "$f" in | |
17612 | *.orig | *.bak | *~) ;; | |
17613 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17614 | esac | |
17615 | fi | |
17616 | done | |
17617 | fi | |
17618 | ;; | |
17619 | esac | |
17620 | done ;; | |
13b2be9c | 17621 | default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h |
252b5132 RH |
17622 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h |
17623 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | |
17624 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | |
17625 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | |
17626 | if test "x$cgen_cpu_prefix" != x ; then | |
17627 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | |
20e95c23 | 17628 | fi ;; |
13b2be9c DJ |
17629 | esac |
17630 | done | |
17631 | _ACEOF | |
17632 | ||
17633 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17634 | ||
17635 | { (exit 0); exit 0; } | |
17636 | _ACEOF | |
252b5132 | 17637 | chmod +x $CONFIG_STATUS |
13b2be9c DJ |
17638 | ac_clean_files=$ac_clean_files_save |
17639 | ||
17640 | ||
17641 | # configure is writing to config.log, and then calls config.status. | |
17642 | # config.status does its own redirection, appending to config.log. | |
17643 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17644 | # by configure, so config.status won't be able to write to it; its | |
17645 | # output is simply discarded. So we exec the FD to /dev/null, | |
17646 | # effectively closing config.log, so it can be properly (re)opened and | |
17647 | # appended to by config.status. When coming back to configure, we | |
17648 | # need to make the FD available again. | |
17649 | if test "$no_create" != yes; then | |
17650 | ac_cs_success=: | |
17651 | ac_config_status_args= | |
17652 | test "$silent" = yes && | |
17653 | ac_config_status_args="$ac_config_status_args --quiet" | |
17654 | exec 5>/dev/null | |
17655 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17656 | exec 5>>config.log | |
17657 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17658 | # would make configure fail if this is the last instruction. | |
17659 | $ac_cs_success || { (exit 1); exit 1; } | |
17660 | fi | |
252b5132 | 17661 |