Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
0ab6f085 | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
0ab6f085 | 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. | |
6bf9431b BE |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
0ab6f085 | 12 | # Be Bourne compatible |
6bf9431b BE |
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+"$@"}'='"$@"' | |
0ab6f085 AM |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
6bf9431b | 21 | fi |
0ab6f085 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
6bf9431b BE |
23 | |
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
0ab6f085 | 33 | $as_unset ENV MAIL MAILPATH |
6bf9431b BE |
34 | PS1='$ ' |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
0ab6f085 | 47 | $as_unset $as_var |
6bf9431b BE |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
0ab6f085 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
6bf9431b BE |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
0ab6f085 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
6bf9431b BE |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
0ab6f085 | 66 | as_me=`$as_basename "$0" || |
6bf9431b BE |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 71 | echo X/"$0" | |
0ab6f085 AM |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
6bf9431b | 76 | |
6bf9431b | 77 | |
0ab6f085 AM |
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 | |
1b9750d6 | 85 | |
0ab6f085 AM |
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 | |
1b9750d6 NC |
97 | fi |
98 | ||
1b9750d6 | 99 | |
0ab6f085 AM |
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 | |
1b9750d6 | 116 | |
0ab6f085 AM |
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 | '') | |
6bf9431b BE |
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=. | |
0ab6f085 AM |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
6bf9431b | 137 | /*) |
0ab6f085 | 138 | if ("$as_dir/$as_base" -c ' |
6bf9431b BE |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
0ab6f085 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
6bf9431b | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
0ab6f085 AM |
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 | |
6bf9431b BE |
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 | |
0ab6f085 AM |
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. | |
6bf9431b | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
0ab6f085 AM |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
6bf9431b BE |
165 | sed ' |
166 | N | |
0ab6f085 AM |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
6bf9431b | 170 | t loop |
0ab6f085 AM |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
6bf9431b | 173 | ' >$as_me.lineno && |
0ab6f085 | 174 | chmod +x $as_me.lineno || |
6bf9431b BE |
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 | |
0ab6f085 AM |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
6bf9431b BE |
182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
0ab6f085 AM |
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= ;; | |
6bf9431b BE |
192 | esac |
193 | ||
0ab6f085 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
6bf9431b BE |
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 | |
0ab6f085 AM |
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 | |
6bf9431b | 207 | as_ln_s='cp -p' |
0ab6f085 AM |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
6bf9431b BE |
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 | |
0ab6f085 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
6bf9431b BE |
217 | |
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
0ab6f085 | 225 | as_executable_p="test -f" |
6bf9431b BE |
226 | |
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
0ab6f085 AM |
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 | ||
6bf9431b | 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 | ||
6bf9431b BE |
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 | |
0ab6f085 AM |
398 | exec 6>&1 |
399 | ||
6bf9431b BE |
400 | # |
401 | # Initializations. | |
402 | # | |
252b5132 | 403 | ac_default_prefix=/usr/local |
6bf9431b BE |
404 | ac_config_libobj_dir=. |
405 | cross_compiling=no | |
406 | subdirs= | |
407 | MFLAGS= | |
408 | MAKEFLAGS= | |
409 | SHELL=${CONFIG_SHELL-/bin/sh} | |
410 | ||
0ab6f085 AM |
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 | ||
6bf9431b BE |
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="gprof.c" | |
424 | # Factoring default headers for most tests. | |
425 | ac_includes_default="\ | |
426 | #include <stdio.h> | |
0ab6f085 | 427 | #if HAVE_SYS_TYPES_H |
6bf9431b BE |
428 | # include <sys/types.h> |
429 | #endif | |
0ab6f085 | 430 | #if HAVE_SYS_STAT_H |
6bf9431b BE |
431 | # include <sys/stat.h> |
432 | #endif | |
0ab6f085 | 433 | #if STDC_HEADERS |
6bf9431b BE |
434 | # include <stdlib.h> |
435 | # include <stddef.h> | |
436 | #else | |
0ab6f085 | 437 | # if HAVE_STDLIB_H |
6bf9431b BE |
438 | # include <stdlib.h> |
439 | # endif | |
440 | #endif | |
0ab6f085 AM |
441 | #if HAVE_STRING_H |
442 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
6bf9431b BE |
443 | # include <memory.h> |
444 | # endif | |
445 | # include <string.h> | |
446 | #endif | |
0ab6f085 | 447 | #if HAVE_STRINGS_H |
6bf9431b BE |
448 | # include <strings.h> |
449 | #endif | |
0ab6f085 | 450 | #if HAVE_INTTYPES_H |
6bf9431b | 451 | # include <inttypes.h> |
0ab6f085 AM |
452 | #else |
453 | # if HAVE_STDINT_H | |
454 | # include <stdint.h> | |
455 | # endif | |
6bf9431b | 456 | #endif |
0ab6f085 | 457 | #if HAVE_UNISTD_H |
6bf9431b BE |
458 | # include <unistd.h> |
459 | #endif" | |
460 | ||
7357c5b6 | 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 AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO 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 WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS' |
6bf9431b | 462 | ac_subst_files='' |
7a283e07 | 463 | ac_pwd=`pwd` |
252b5132 RH |
464 | |
465 | # Initialize some variables set by options. | |
6bf9431b BE |
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. | |
6bf9431b | 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 | |
6bf9431b BE |
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' | |
0ab6f085 | 493 | datadir='${prefix}/share' |
252b5132 RH |
494 | sysconfdir='${prefix}/etc' |
495 | sharedstatedir='${prefix}/com' | |
496 | localstatedir='${prefix}/var' | |
0ab6f085 | 497 | libdir='${exec_prefix}/lib' |
252b5132 RH |
498 | includedir='${prefix}/include' |
499 | oldincludedir='/usr/include' | |
0ab6f085 AM |
500 | infodir='${prefix}/info' |
501 | mandir='${prefix}/man' | |
252b5132 | 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 | |
0ab6f085 | 508 | eval "$ac_prev=\$ac_option" |
252b5132 RH |
509 | ac_prev= |
510 | continue | |
511 | fi | |
512 | ||
0ab6f085 | 513 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
514 | |
515 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
516 | ||
0ab6f085 | 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=*) | |
6bf9431b | 522 | bindir=$ac_optarg ;; |
252b5132 RH |
523 | |
524 | -build | --build | --buil | --bui | --bu) | |
6bf9431b | 525 | ac_prev=build_alias ;; |
252b5132 | 526 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
6bf9431b | 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=*) | |
6bf9431b BE |
534 | cache_file=$ac_optarg ;; |
535 | ||
536 | --config-cache | -C) | |
537 | cache_file=config.cache ;; | |
252b5132 | 538 | |
0ab6f085 | 539 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
252b5132 | 540 | ac_prev=datadir ;; |
0ab6f085 AM |
541 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
542 | | --da=*) | |
6bf9431b | 543 | datadir=$ac_optarg ;; |
252b5132 RH |
544 | |
545 | -disable-* | --disable-*) | |
6bf9431b | 546 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 547 | # Reject names that are not valid shell variable names. |
0ab6f085 | 548 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
6bf9431b BE |
549 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
550 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
551 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
552 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
553 | |
554 | -enable-* | --enable-*) | |
6bf9431b | 555 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 556 | # Reject names that are not valid shell variable names. |
0ab6f085 | 557 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
6bf9431b BE |
558 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
559 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
560 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
561 | case $ac_option in | |
562 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
563 | *) ac_optarg=yes ;; | |
564 | esac | |
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=*) | |
6bf9431b | 574 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
575 | |
576 | -gas | --gas | --ga | --g) | |
577 | # Obsolete; use --with-gas. | |
578 | with_gas=yes ;; | |
579 | ||
6bf9431b BE |
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) | |
6bf9431b | 588 | ac_prev=host_alias ;; |
252b5132 | 589 | -host=* | --host=* | --hos=* | --ho=*) |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 602 | infodir=$ac_optarg ;; |
252b5132 RH |
603 | |
604 | -libdir | --libdir | --libdi | --libd) | |
605 | ac_prev=libdir ;; | |
606 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
6bf9431b | 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=*) | |
6bf9431b | 614 | libexecdir=$ac_optarg ;; |
252b5132 RH |
615 | |
616 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
0ab6f085 AM |
617 | | --localstate | --localstat | --localsta | --localst \ |
618 | | --locals | --local | --loca | --loc | --lo) | |
252b5132 RH |
619 | ac_prev=localstatedir ;; |
620 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
0ab6f085 AM |
621 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
622 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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 \ | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 706 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
707 | |
708 | -site | --site | --sit) | |
709 | ac_prev=site ;; | |
710 | -site=* | --site=* | --sit=*) | |
6bf9431b | 711 | site=$ac_optarg ;; |
093872ec | 712 | |
252b5132 RH |
713 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
714 | ac_prev=srcdir ;; | |
715 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
6bf9431b | 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=*) | |
6bf9431b | 723 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
724 | |
725 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
6bf9431b | 726 | ac_prev=target_alias ;; |
252b5132 | 727 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
6bf9431b | 728 | target_alias=$ac_optarg ;; |
252b5132 RH |
729 | |
730 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
731 | verbose=yes ;; | |
732 | ||
6bf9431b BE |
733 | -version | --version | --versio | --versi | --vers | -V) |
734 | ac_init_version=: ;; | |
252b5132 RH |
735 | |
736 | -with-* | --with-*) | |
6bf9431b | 737 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 738 | # Reject names that are not valid shell variable names. |
0ab6f085 | 739 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
6bf9431b BE |
740 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
741 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
742 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
743 | case $ac_option in | |
744 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
745 | *) ac_optarg=yes ;; | |
746 | esac | |
747 | eval "with_$ac_package='$ac_optarg'" ;; | |
252b5132 RH |
748 | |
749 | -without-* | --without-*) | |
6bf9431b | 750 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 751 | # Reject names that are not valid shell variable names. |
0ab6f085 | 752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
6bf9431b BE |
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
754 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 774 | x_libraries=$ac_optarg ;; |
252b5132 | 775 | |
6bf9431b BE |
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 | ||
6bf9431b BE |
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; }; } | |
0ab6f085 AM |
787 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
788 | eval "$ac_envvar='$ac_optarg'" | |
6bf9431b BE |
789 | export $ac_envvar ;; |
790 | ||
252b5132 | 791 | *) |
6bf9431b BE |
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 | |
6bf9431b BE |
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; }; } | |
252b5132 RH |
806 | fi |
807 | ||
0ab6f085 AM |
808 | # Be sure to have absolute paths. |
809 | for ac_var in exec_prefix prefix | |
252b5132 | 810 | do |
0ab6f085 | 811 | eval ac_val=$`echo $ac_var` |
6bf9431b | 812 | case $ac_val in |
0ab6f085 AM |
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 | |
818 | ||
819 | # Be sure to have absolute paths. | |
820 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
821 | localstatedir libdir includedir oldincludedir infodir mandir | |
822 | do | |
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 | ||
6bf9431b BE |
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 | |
252b5132 | 848 | |
6bf9431b BE |
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 | |
0ab6f085 AM |
858 | # Try the directory containing this script, then its parent. |
859 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
6bf9431b BE |
860 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
861 | X"$0" : 'X\(//\)[^/]' \| \ | |
862 | X"$0" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
863 | X"$0" : 'X\(/\)' \| \ |
864 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 865 | echo X"$0" | |
0ab6f085 AM |
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 | 871 | srcdir=$ac_confdir |
0ab6f085 | 872 | if test ! -r $srcdir/$ac_unique_file; then |
252b5132 RH |
873 | srcdir=.. |
874 | fi | |
875 | else | |
876 | ac_srcdir_defaulted=no | |
877 | fi | |
0ab6f085 AM |
878 | if test ! -r $srcdir/$ac_unique_file; then |
879 | if test "$ac_srcdir_defaulted" = yes; then | |
880 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
881 | { (exit 1); exit 1; }; } | |
882 | else | |
883 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
6bf9431b | 884 | { (exit 1); exit 1; }; } |
0ab6f085 | 885 | fi |
252b5132 | 886 | fi |
0ab6f085 AM |
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 | |
6bf9431b | 889 | { (exit 1); exit 1; }; } |
0ab6f085 AM |
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 | |
252b5132 | 923 | |
6bf9431b BE |
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. | |
252b5132 | 932 | |
6bf9431b | 933 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 934 | |
6bf9431b BE |
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. | |
252b5132 | 937 | |
6bf9431b | 938 | Defaults for the options are specified in brackets. |
ac48eca1 | 939 | |
6bf9431b BE |
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 | ||
0ab6f085 AM |
951 | _ACEOF |
952 | ||
953 | cat <<_ACEOF | |
6bf9431b BE |
954 | Installation directories: |
955 | --prefix=PREFIX install architecture-independent files in PREFIX | |
956 | [$ac_default_prefix] | |
957 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
958 | [PREFIX] | |
ac48eca1 | 959 | |
6bf9431b BE |
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'. | |
ac48eca1 | 964 | |
6bf9431b | 965 | For better control, use the options below. |
ac48eca1 | 966 | |
6bf9431b BE |
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] | |
0ab6f085 | 971 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
6bf9431b BE |
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] | |
0ab6f085 AM |
978 | --infodir=DIR info documentation [PREFIX/info] |
979 | --mandir=DIR man documentation [PREFIX/man] | |
6bf9431b | 980 | _ACEOF |
ac48eca1 | 981 | |
6bf9431b | 982 | cat <<\_ACEOF |
252b5132 | 983 | |
6bf9431b BE |
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 | |
252b5132 | 988 | |
6bf9431b BE |
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 | |
252b5132 | 994 | fi |
252b5132 | 995 | |
6bf9431b | 996 | if test -n "$ac_init_help"; then |
252b5132 | 997 | |
6bf9431b | 998 | cat <<\_ACEOF |
252b5132 | 999 | |
6bf9431b BE |
1000 | Optional Features: |
1001 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1002 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
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 |
0ab6f085 AM |
1006 | --enable-shared[=PKGS] |
1007 | build shared libraries [default=yes] | |
1008 | --enable-static[=PKGS] | |
1009 | build static libraries [default=yes] | |
d7040cdb SE |
1010 | --enable-fast-install[=PKGS] |
1011 | optimize for fast installation [default=yes] | |
6bf9431b BE |
1012 | --disable-libtool-lock avoid locking (might break parallel builds) |
1013 | --disable-nls do not use Native Language Support | |
1014 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1015 | (and sometimes confusing) to the casual installer | |
241a6c40 AM |
1016 | --enable-werror treat compile warnings as errors |
1017 | --enable-build-warnings enable build-time compiler warnings | |
6bf9431b BE |
1018 | |
1019 | Optional Packages: | |
1020 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1021 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1022 | --with-pic try to use only PIC/non-PIC objects [default=use |
1023 | both] | |
1024 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
252b5132 | 1025 | |
6bf9431b BE |
1026 | Some influential environment variables: |
1027 | CC C compiler command | |
1028 | CFLAGS C compiler flags | |
1029 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1030 | nonstandard directory <lib dir> | |
0ab6f085 AM |
1031 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1032 | headers in a nonstandard directory <include dir> | |
6bf9431b | 1033 | CPP C preprocessor |
252b5132 | 1034 | |
6bf9431b BE |
1035 | Use these variables to override the choices made by `configure' or to help |
1036 | it to find libraries and programs with nonstandard names/locations. | |
1037 | ||
1038 | _ACEOF | |
252b5132 RH |
1039 | fi |
1040 | ||
6bf9431b BE |
1041 | if test "$ac_init_help" = "recursive"; then |
1042 | # If there are subdirs, report their specific --help. | |
0ab6f085 | 1043 | ac_popdir=`pwd` |
6bf9431b | 1044 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
0ab6f085 | 1045 | test -d $ac_dir || continue |
6bf9431b | 1046 | ac_builddir=. |
252b5132 | 1047 | |
0ab6f085 | 1048 | if test "$ac_dir" != .; then |
6bf9431b | 1049 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
0ab6f085 AM |
1050 | # A "../" for each directory in $ac_dir_suffix. |
1051 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1052 | else | |
1053 | ac_dir_suffix= ac_top_builddir= | |
1054 | fi | |
6bf9431b BE |
1055 | |
1056 | case $srcdir in | |
0ab6f085 | 1057 | .) # No --srcdir option. We are building in place. |
6bf9431b | 1058 | ac_srcdir=. |
0ab6f085 AM |
1059 | if test -z "$ac_top_builddir"; then |
1060 | ac_top_srcdir=. | |
1061 | else | |
1062 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1063 | fi ;; | |
1064 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6bf9431b | 1065 | ac_srcdir=$srcdir$ac_dir_suffix; |
0ab6f085 AM |
1066 | ac_top_srcdir=$srcdir ;; |
1067 | *) # Relative path. | |
1068 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1069 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1070 | esac | |
1071 | ||
1072 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1073 | # the directories may not exist. | |
1074 | case `pwd` in | |
1075 | .) ac_abs_builddir="$ac_dir";; | |
1076 | *) | |
1077 | case "$ac_dir" in | |
1078 | .) ac_abs_builddir=`pwd`;; | |
1079 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1080 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1081 | esac;; | |
1082 | esac | |
1083 | case $ac_abs_builddir in | |
1084 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1085 | *) | |
1086 | case ${ac_top_builddir}. in | |
1087 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1088 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1089 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1090 | esac;; | |
6bf9431b | 1091 | esac |
0ab6f085 AM |
1092 | case $ac_abs_builddir in |
1093 | .) ac_abs_srcdir=$ac_srcdir;; | |
1094 | *) | |
1095 | case $ac_srcdir in | |
1096 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1097 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1098 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1099 | esac;; | |
1100 | esac | |
1101 | case $ac_abs_builddir in | |
1102 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1103 | *) | |
1104 | case $ac_top_srcdir in | |
1105 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1106 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1107 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1108 | esac;; | |
1109 | esac | |
1110 | ||
1111 | cd $ac_dir | |
1112 | # Check for guested configure; otherwise get Cygnus style configure. | |
1113 | if test -f $ac_srcdir/configure.gnu; then | |
1114 | echo | |
1115 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1116 | elif test -f $ac_srcdir/configure; then | |
1117 | echo | |
1118 | $SHELL $ac_srcdir/configure --help=recursive | |
1119 | elif test -f $ac_srcdir/configure.ac || | |
1120 | test -f $ac_srcdir/configure.in; then | |
1121 | echo | |
1122 | $ac_configure --help | |
6bf9431b BE |
1123 | else |
1124 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
0ab6f085 AM |
1125 | fi |
1126 | cd $ac_popdir | |
6bf9431b BE |
1127 | done |
1128 | fi | |
252b5132 | 1129 | |
0ab6f085 | 1130 | test -n "$ac_init_help" && exit 0 |
6bf9431b BE |
1131 | if $ac_init_version; then |
1132 | cat <<\_ACEOF | |
252b5132 | 1133 | |
0ab6f085 | 1134 | Copyright (C) 2003 Free Software Foundation, Inc. |
6bf9431b BE |
1135 | This configure script is free software; the Free Software Foundation |
1136 | gives unlimited permission to copy, distribute and modify it. | |
1137 | _ACEOF | |
0ab6f085 | 1138 | exit 0 |
6bf9431b | 1139 | fi |
0ab6f085 AM |
1140 | exec 5>config.log |
1141 | cat >&5 <<_ACEOF | |
6bf9431b BE |
1142 | This file contains any messages produced by compilers while |
1143 | running configure, to aid debugging if configure makes a mistake. | |
66477e87 | 1144 | |
6bf9431b | 1145 | It was created by $as_me, which was |
0ab6f085 | 1146 | generated by GNU Autoconf 2.59. Invocation command line was |
5d64ca4e | 1147 | |
6bf9431b | 1148 | $ $0 $@ |
5d64ca4e | 1149 | |
6bf9431b BE |
1150 | _ACEOF |
1151 | { | |
1152 | cat <<_ASUNAME | |
1153 | ## --------- ## | |
1154 | ## Platform. ## | |
1155 | ## --------- ## | |
1156 | ||
1157 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1158 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1159 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1160 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1161 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1162 | ||
1163 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1164 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1165 | ||
1166 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1167 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1168 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
0ab6f085 | 1169 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
6bf9431b BE |
1170 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1171 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1172 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1173 | ||
1174 | _ASUNAME | |
1175 | ||
1176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1177 | for as_dir in $PATH | |
1178 | do | |
1179 | IFS=$as_save_IFS | |
1180 | test -z "$as_dir" && as_dir=. | |
1181 | echo "PATH: $as_dir" | |
1182 | done | |
5d64ca4e | 1183 | |
6bf9431b | 1184 | } >&5 |
093872ec | 1185 | |
6bf9431b | 1186 | cat >&5 <<_ACEOF |
252b5132 | 1187 | |
6bf9431b BE |
1188 | |
1189 | ## ----------- ## | |
1190 | ## Core tests. ## | |
1191 | ## ----------- ## | |
1192 | ||
1193 | _ACEOF | |
1194 | ||
1195 | ||
1196 | # Keep a trace of the command line. | |
1197 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1198 | # Strip out --silent because we don't want to record it for future runs. | |
1199 | # Also quote any args containing shell meta-characters. | |
1200 | # Make two passes to allow for proper duplicate-argument suppression. | |
1201 | ac_configure_args= | |
1202 | ac_configure_args0= | |
1203 | ac_configure_args1= | |
0ab6f085 | 1204 | ac_sep= |
6bf9431b BE |
1205 | ac_must_keep_next=false |
1206 | for ac_pass in 1 2 | |
1207 | do | |
1208 | for ac_arg | |
1209 | do | |
1210 | case $ac_arg in | |
1211 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1212 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1213 | | -silent | --silent | --silen | --sile | --sil) | |
1214 | continue ;; | |
0ab6f085 | 1215 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
6bf9431b BE |
1216 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1217 | esac | |
1218 | case $ac_pass in | |
1219 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1220 | 2) | |
1221 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1222 | if test $ac_must_keep_next = true; then | |
1223 | ac_must_keep_next=false # Got value, back to normal. | |
1224 | else | |
1225 | case $ac_arg in | |
1226 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1227 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1228 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1229 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1230 | case "$ac_configure_args0 " in | |
1231 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1232 | esac | |
1233 | ;; | |
1234 | -* ) ac_must_keep_next=true ;; | |
1235 | esac | |
1236 | fi | |
0ab6f085 AM |
1237 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1238 | # Get rid of the leading space. | |
1239 | ac_sep=" " | |
6bf9431b BE |
1240 | ;; |
1241 | esac | |
1242 | done | |
1243 | done | |
1244 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1245 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1246 | ||
1247 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1248 | # config.log. We remove comments because anyway the quotes in there | |
1249 | # would cause problems or look ugly. | |
0ab6f085 AM |
1250 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1251 | # such as our DU 5.0 friend, will then `close' the trap. | |
6bf9431b BE |
1252 | trap 'exit_status=$? |
1253 | # Save into config.log some information that might help in debugging. | |
1254 | { | |
1255 | echo | |
1256 | ||
1257 | cat <<\_ASBOX | |
1258 | ## ---------------- ## | |
1259 | ## Cache variables. ## | |
1260 | ## ---------------- ## | |
1261 | _ASBOX | |
1262 | echo | |
1263 | # The following way of writing the cache mishandles newlines in values, | |
0ab6f085 | 1264 | { |
6bf9431b | 1265 | (set) 2>&1 | |
0ab6f085 AM |
1266 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1267 | *ac_space=\ *) | |
6bf9431b | 1268 | sed -n \ |
0ab6f085 AM |
1269 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1270 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1271 | ;; | |
6bf9431b | 1272 | *) |
0ab6f085 AM |
1273 | sed -n \ |
1274 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6bf9431b | 1275 | ;; |
0ab6f085 AM |
1276 | esac; |
1277 | } | |
6bf9431b BE |
1278 | echo |
1279 | ||
1280 | cat <<\_ASBOX | |
1281 | ## ----------------- ## | |
1282 | ## Output variables. ## | |
1283 | ## ----------------- ## | |
1284 | _ASBOX | |
1285 | echo | |
1286 | for ac_var in $ac_subst_vars | |
1287 | do | |
0ab6f085 AM |
1288 | eval ac_val=$`echo $ac_var` |
1289 | echo "$ac_var='"'"'$ac_val'"'"'" | |
6bf9431b BE |
1290 | done | sort |
1291 | echo | |
1292 | ||
1293 | if test -n "$ac_subst_files"; then | |
1294 | cat <<\_ASBOX | |
0ab6f085 AM |
1295 | ## ------------- ## |
1296 | ## Output files. ## | |
1297 | ## ------------- ## | |
6bf9431b BE |
1298 | _ASBOX |
1299 | echo | |
1300 | for ac_var in $ac_subst_files | |
1301 | do | |
0ab6f085 AM |
1302 | eval ac_val=$`echo $ac_var` |
1303 | echo "$ac_var='"'"'$ac_val'"'"'" | |
6bf9431b BE |
1304 | done | sort |
1305 | echo | |
1306 | fi | |
1307 | ||
1308 | if test -s confdefs.h; then | |
1309 | cat <<\_ASBOX | |
1310 | ## ----------- ## | |
1311 | ## confdefs.h. ## | |
1312 | ## ----------- ## | |
1313 | _ASBOX | |
1314 | echo | |
0ab6f085 | 1315 | sed "/^$/d" confdefs.h | sort |
6bf9431b BE |
1316 | echo |
1317 | fi | |
1318 | test "$ac_signal" != 0 && | |
1319 | echo "$as_me: caught signal $ac_signal" | |
1320 | echo "$as_me: exit $exit_status" | |
1321 | } >&5 | |
0ab6f085 AM |
1322 | rm -f core *.core && |
1323 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
6bf9431b | 1324 | exit $exit_status |
0ab6f085 | 1325 | ' 0 |
6bf9431b BE |
1326 | for ac_signal in 1 2 13 15; do |
1327 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1328 | done | |
1329 | ac_signal=0 | |
1330 | ||
1331 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
0ab6f085 AM |
1332 | rm -rf conftest* confdefs.h |
1333 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1334 | echo >confdefs.h | |
6bf9431b BE |
1335 | |
1336 | # Predefined preprocessor variables. | |
1337 | ||
1338 | cat >>confdefs.h <<_ACEOF | |
1339 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1340 | _ACEOF | |
1341 | ||
1342 | ||
1343 | cat >>confdefs.h <<_ACEOF | |
1344 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1345 | _ACEOF | |
1346 | ||
1347 | ||
1348 | cat >>confdefs.h <<_ACEOF | |
1349 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1350 | _ACEOF | |
1351 | ||
1352 | ||
1353 | cat >>confdefs.h <<_ACEOF | |
1354 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1355 | _ACEOF | |
1356 | ||
1357 | ||
1358 | cat >>confdefs.h <<_ACEOF | |
1359 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1360 | _ACEOF | |
1361 | ||
1362 | ||
1363 | # Let the site file select an alternate cache file if it wants to. | |
1364 | # Prefer explicitly selected file to automatically selected ones. | |
0ab6f085 AM |
1365 | if test -z "$CONFIG_SITE"; then |
1366 | if test "x$prefix" != xNONE; then | |
1367 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1368 | else | |
1369 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1370 | fi | |
6bf9431b | 1371 | fi |
0ab6f085 | 1372 | for ac_site_file in $CONFIG_SITE; do |
6bf9431b BE |
1373 | if test -r "$ac_site_file"; then |
1374 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1375 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1376 | sed 's/^/| /' "$ac_site_file" >&5 | |
1377 | . "$ac_site_file" | |
1378 | fi | |
1379 | done | |
1380 | ||
1381 | if test -r "$cache_file"; then | |
1382 | # Some versions of bash will fail to source /dev/null (special | |
1383 | # files actually), so we avoid doing that. | |
1384 | if test -f "$cache_file"; then | |
1385 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1386 | echo "$as_me: loading cache $cache_file" >&6;} | |
1387 | case $cache_file in | |
0ab6f085 AM |
1388 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1389 | *) . ./$cache_file;; | |
6bf9431b BE |
1390 | esac |
1391 | fi | |
1392 | else | |
1393 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1394 | echo "$as_me: creating cache $cache_file" >&6;} | |
1395 | >$cache_file | |
1396 | fi | |
1397 | ||
1398 | # Check that the precious variables saved in the cache have kept the same | |
1399 | # value. | |
1400 | ac_cache_corrupted=false | |
0ab6f085 AM |
1401 | for ac_var in `(set) 2>&1 | |
1402 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
6bf9431b BE |
1403 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1404 | eval ac_new_set=\$ac_env_${ac_var}_set | |
0ab6f085 AM |
1405 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1406 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
6bf9431b BE |
1407 | case $ac_old_set,$ac_new_set in |
1408 | set,) | |
1409 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1410 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1411 | ac_cache_corrupted=: ;; | |
1412 | ,set) | |
1413 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1414 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1415 | ac_cache_corrupted=: ;; | |
1416 | ,);; | |
1417 | *) | |
1418 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
6194aaab L |
1419 | # differences in whitespace do not lead to failure. |
1420 | ac_old_val_w=`echo x $ac_old_val` | |
1421 | ac_new_val_w=`echo x $ac_new_val` | |
1422 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1423 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
6bf9431b | 1424 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
6194aaab L |
1425 | ac_cache_corrupted=: |
1426 | else | |
1427 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1428 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1429 | eval $ac_var=\$ac_old_val | |
1430 | fi | |
1431 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1432 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1433 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1434 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
6bf9431b BE |
1435 | fi;; |
1436 | esac | |
1437 | # Pass precious variables to config.status. | |
1438 | if test "$ac_new_set" = set; then | |
1439 | case $ac_new_val in | |
0ab6f085 AM |
1440 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1441 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6bf9431b BE |
1442 | *) ac_arg=$ac_var=$ac_new_val ;; |
1443 | esac | |
1444 | case " $ac_configure_args " in | |
1445 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1446 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1447 | esac | |
1448 | fi | |
1449 | done | |
1450 | if $ac_cache_corrupted; then | |
7a283e07 RW |
1451 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1452 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6bf9431b BE |
1453 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1454 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1455 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1456 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1457 | { (exit 1); exit 1; }; } | |
1458 | fi | |
1459 | ||
0ab6f085 AM |
1460 | ac_ext=c |
1461 | ac_cpp='$CPP $CPPFLAGS' | |
1462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1465 | ||
6bf9431b BE |
1466 | |
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
7a283e07 RW |
1482 | |
1483 | ||
1484 | ||
6bf9431b BE |
1485 | |
1486 | ||
1487 | ||
1488 | ||
1489 | ac_aux_dir= | |
0ab6f085 AM |
1490 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1491 | if test -f $ac_dir/install-sh; then | |
6bf9431b BE |
1492 | ac_aux_dir=$ac_dir |
1493 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1494 | break | |
0ab6f085 | 1495 | elif test -f $ac_dir/install.sh; then |
6bf9431b BE |
1496 | ac_aux_dir=$ac_dir |
1497 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1498 | break | |
0ab6f085 | 1499 | elif test -f $ac_dir/shtool; then |
6bf9431b BE |
1500 | ac_aux_dir=$ac_dir |
1501 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1502 | break | |
1503 | fi | |
1504 | done | |
1505 | if test -z "$ac_aux_dir"; then | |
0ab6f085 AM |
1506 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1507 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
6bf9431b BE |
1508 | { (exit 1); exit 1; }; } |
1509 | fi | |
0ab6f085 AM |
1510 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1511 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1512 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
6bf9431b BE |
1513 | |
1514 | # Make sure we can run config.sub. | |
0ab6f085 AM |
1515 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1516 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1517 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
6bf9431b BE |
1518 | { (exit 1); exit 1; }; } |
1519 | ||
0ab6f085 AM |
1520 | echo "$as_me:$LINENO: checking build system type" >&5 |
1521 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
6bf9431b BE |
1522 | if test "${ac_cv_build+set}" = set; then |
1523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1524 | else | |
0ab6f085 AM |
1525 | ac_cv_build_alias=$build_alias |
1526 | test -z "$ac_cv_build_alias" && | |
1527 | ac_cv_build_alias=`$ac_config_guess` | |
1528 | test -z "$ac_cv_build_alias" && | |
6bf9431b BE |
1529 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1530 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1531 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
1532 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1533 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1534 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
6bf9431b BE |
1535 | { (exit 1); exit 1; }; } |
1536 | ||
1537 | fi | |
0ab6f085 AM |
1538 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1539 | echo "${ECHO_T}$ac_cv_build" >&6 | |
6bf9431b | 1540 | build=$ac_cv_build |
0ab6f085 AM |
1541 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1542 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1543 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1544 | ||
1545 | ||
1546 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1547 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
6bf9431b BE |
1548 | if test "${ac_cv_host+set}" = set; then |
1549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1550 | else | |
0ab6f085 AM |
1551 | ac_cv_host_alias=$host_alias |
1552 | test -z "$ac_cv_host_alias" && | |
1553 | ac_cv_host_alias=$ac_cv_build_alias | |
1554 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1555 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1556 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
6bf9431b BE |
1557 | { (exit 1); exit 1; }; } |
1558 | ||
1559 | fi | |
0ab6f085 AM |
1560 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1561 | echo "${ECHO_T}$ac_cv_host" >&6 | |
6bf9431b | 1562 | host=$ac_cv_host |
0ab6f085 AM |
1563 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1564 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1565 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1566 | ||
1567 | ||
1568 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1569 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
6bf9431b BE |
1570 | if test "${ac_cv_target+set}" = set; then |
1571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1572 | else | |
0ab6f085 AM |
1573 | ac_cv_target_alias=$target_alias |
1574 | test "x$ac_cv_target_alias" = "x" && | |
1575 | ac_cv_target_alias=$ac_cv_host_alias | |
1576 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1577 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1578 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
6bf9431b BE |
1579 | { (exit 1); exit 1; }; } |
1580 | ||
1581 | fi | |
0ab6f085 AM |
1582 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1583 | echo "${ECHO_T}$ac_cv_target" >&6 | |
6bf9431b | 1584 | target=$ac_cv_target |
0ab6f085 AM |
1585 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1586 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1587 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
6bf9431b BE |
1588 | |
1589 | ||
1590 | # The aliases save the names the user supplied, while $host etc. | |
1591 | # will get canonicalized. | |
1592 | test -n "$target_alias" && | |
1593 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1594 | NONENONEs,x,x, && | |
1595 | program_prefix=${target_alias}- | |
1596 | ac_ext=c | |
1597 | ac_cpp='$CPP $CPPFLAGS' | |
1598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1601 | if test -n "$ac_tool_prefix"; then | |
1602 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1603 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
0ab6f085 AM |
1604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1606 | if test "${ac_cv_prog_CC+set}" = set; then |
1607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1608 | else | |
1609 | if test -n "$CC"; then | |
1610 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1611 | else | |
1612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1613 | for as_dir in $PATH | |
1614 | do | |
1615 | IFS=$as_save_IFS | |
1616 | test -z "$as_dir" && as_dir=. | |
1617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1619 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1621 | break 2 | |
1622 | fi | |
1623 | done | |
1624 | done | |
1625 | ||
1626 | fi | |
1627 | fi | |
1628 | CC=$ac_cv_prog_CC | |
1629 | if test -n "$CC"; then | |
0ab6f085 AM |
1630 | echo "$as_me:$LINENO: result: $CC" >&5 |
1631 | echo "${ECHO_T}$CC" >&6 | |
6bf9431b | 1632 | else |
0ab6f085 AM |
1633 | echo "$as_me:$LINENO: result: no" >&5 |
1634 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1635 | fi |
1636 | ||
1637 | fi | |
1638 | if test -z "$ac_cv_prog_CC"; then | |
1639 | ac_ct_CC=$CC | |
1640 | # Extract the first word of "gcc", so it can be a program name with args. | |
1641 | set dummy gcc; ac_word=$2 | |
0ab6f085 AM |
1642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1644 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1646 | else | |
1647 | if test -n "$ac_ct_CC"; then | |
1648 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1649 | else | |
1650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1651 | for as_dir in $PATH | |
1652 | do | |
1653 | IFS=$as_save_IFS | |
1654 | test -z "$as_dir" && as_dir=. | |
1655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1657 | ac_cv_prog_ac_ct_CC="gcc" |
1658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1659 | break 2 | |
1660 | fi | |
1661 | done | |
1662 | done | |
1663 | ||
1664 | fi | |
1665 | fi | |
1666 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1667 | if test -n "$ac_ct_CC"; then | |
0ab6f085 AM |
1668 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1669 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
6bf9431b | 1670 | else |
0ab6f085 AM |
1671 | echo "$as_me:$LINENO: result: no" >&5 |
1672 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1673 | fi |
1674 | ||
0ab6f085 | 1675 | CC=$ac_ct_CC |
6bf9431b BE |
1676 | else |
1677 | CC="$ac_cv_prog_CC" | |
1678 | fi | |
1679 | ||
1680 | if test -z "$CC"; then | |
0ab6f085 AM |
1681 | if test -n "$ac_tool_prefix"; then |
1682 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6bf9431b | 1683 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
0ab6f085 AM |
1684 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1685 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1686 | if test "${ac_cv_prog_CC+set}" = set; then |
1687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1688 | else | |
1689 | if test -n "$CC"; then | |
1690 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1691 | else | |
1692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1693 | for as_dir in $PATH | |
1694 | do | |
1695 | IFS=$as_save_IFS | |
1696 | test -z "$as_dir" && as_dir=. | |
1697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1698 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1699 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1700 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1701 | break 2 | |
1702 | fi | |
1703 | done | |
1704 | done | |
1705 | ||
1706 | fi | |
1707 | fi | |
1708 | CC=$ac_cv_prog_CC | |
1709 | if test -n "$CC"; then | |
0ab6f085 AM |
1710 | echo "$as_me:$LINENO: result: $CC" >&5 |
1711 | echo "${ECHO_T}$CC" >&6 | |
6bf9431b | 1712 | else |
0ab6f085 AM |
1713 | echo "$as_me:$LINENO: result: no" >&5 |
1714 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1715 | fi |
1716 | ||
0ab6f085 AM |
1717 | fi |
1718 | if test -z "$ac_cv_prog_CC"; then | |
1719 | ac_ct_CC=$CC | |
1720 | # Extract the first word of "cc", so it can be a program name with args. | |
1721 | set dummy cc; ac_word=$2 | |
1722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1724 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1726 | else | |
1727 | if test -n "$ac_ct_CC"; then | |
1728 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1729 | else | |
1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1731 | for as_dir in $PATH | |
1732 | do | |
1733 | IFS=$as_save_IFS | |
1734 | test -z "$as_dir" && as_dir=. | |
1735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1737 | ac_cv_prog_ac_ct_CC="cc" | |
1738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1739 | break 2 | |
1b9750d6 | 1740 | fi |
0ab6f085 AM |
1741 | done |
1742 | done | |
1743 | ||
1744 | fi | |
1745 | fi | |
1746 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1747 | if test -n "$ac_ct_CC"; then | |
1748 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1749 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1750 | else | |
1751 | echo "$as_me:$LINENO: result: no" >&5 | |
1752 | echo "${ECHO_T}no" >&6 | |
1753 | fi | |
1754 | ||
1755 | CC=$ac_ct_CC | |
1756 | else | |
1757 | CC="$ac_cv_prog_CC" | |
1758 | fi | |
1759 | ||
6bf9431b BE |
1760 | fi |
1761 | if test -z "$CC"; then | |
1762 | # Extract the first word of "cc", so it can be a program name with args. | |
1763 | set dummy cc; ac_word=$2 | |
0ab6f085 AM |
1764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1766 | if test "${ac_cv_prog_CC+set}" = set; then |
1767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1768 | else | |
1769 | if test -n "$CC"; then | |
1770 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1771 | else | |
1772 | ac_prog_rejected=no | |
1773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1774 | for as_dir in $PATH | |
1775 | do | |
1776 | IFS=$as_save_IFS | |
1777 | test -z "$as_dir" && as_dir=. | |
1778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1780 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1781 | ac_prog_rejected=yes | |
1782 | continue | |
1783 | fi | |
1784 | ac_cv_prog_CC="cc" | |
1785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1786 | break 2 | |
1787 | fi | |
1788 | done | |
1789 | done | |
1790 | ||
1791 | if test $ac_prog_rejected = yes; then | |
1792 | # We found a bogon in the path, so make sure we never use it. | |
1793 | set dummy $ac_cv_prog_CC | |
1794 | shift | |
1795 | if test $# != 0; then | |
1796 | # We chose a different compiler from the bogus one. | |
1797 | # However, it has the same basename, so the bogon will be chosen | |
1798 | # first if we set CC to just the basename; use the full file name. | |
1799 | shift | |
1800 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1801 | fi | |
1802 | fi | |
1803 | fi | |
1804 | fi | |
1805 | CC=$ac_cv_prog_CC | |
1806 | if test -n "$CC"; then | |
0ab6f085 AM |
1807 | echo "$as_me:$LINENO: result: $CC" >&5 |
1808 | echo "${ECHO_T}$CC" >&6 | |
6bf9431b | 1809 | else |
0ab6f085 AM |
1810 | echo "$as_me:$LINENO: result: no" >&5 |
1811 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1812 | fi |
1813 | ||
1814 | fi | |
1815 | if test -z "$CC"; then | |
1816 | if test -n "$ac_tool_prefix"; then | |
0ab6f085 | 1817 | for ac_prog in cl |
6bf9431b BE |
1818 | do |
1819 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1820 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
0ab6f085 AM |
1821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1823 | if test "${ac_cv_prog_CC+set}" = set; then |
1824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1825 | else | |
1826 | if test -n "$CC"; then | |
1827 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1828 | else | |
1829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1830 | for as_dir in $PATH | |
1831 | do | |
1832 | IFS=$as_save_IFS | |
1833 | test -z "$as_dir" && as_dir=. | |
1834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1835 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1836 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1838 | break 2 | |
1839 | fi | |
1840 | done | |
1841 | done | |
1842 | ||
1843 | fi | |
1844 | fi | |
1845 | CC=$ac_cv_prog_CC | |
1846 | if test -n "$CC"; then | |
0ab6f085 AM |
1847 | echo "$as_me:$LINENO: result: $CC" >&5 |
1848 | echo "${ECHO_T}$CC" >&6 | |
6bf9431b | 1849 | else |
0ab6f085 AM |
1850 | echo "$as_me:$LINENO: result: no" >&5 |
1851 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1852 | fi |
1853 | ||
1854 | test -n "$CC" && break | |
1855 | done | |
1856 | fi | |
1857 | if test -z "$CC"; then | |
1858 | ac_ct_CC=$CC | |
0ab6f085 | 1859 | for ac_prog in cl |
6bf9431b BE |
1860 | do |
1861 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1862 | set dummy $ac_prog; ac_word=$2 | |
0ab6f085 AM |
1863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1865 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1867 | else | |
1868 | if test -n "$ac_ct_CC"; then | |
1869 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1870 | else | |
1871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1872 | for as_dir in $PATH | |
1873 | do | |
1874 | IFS=$as_save_IFS | |
1875 | test -z "$as_dir" && as_dir=. | |
1876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1878 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1880 | break 2 | |
1881 | fi | |
1882 | done | |
1883 | done | |
1884 | ||
1885 | fi | |
1886 | fi | |
1887 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1888 | if test -n "$ac_ct_CC"; then | |
0ab6f085 AM |
1889 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1890 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
6bf9431b | 1891 | else |
0ab6f085 AM |
1892 | echo "$as_me:$LINENO: result: no" >&5 |
1893 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1894 | fi |
1895 | ||
1896 | test -n "$ac_ct_CC" && break | |
1897 | done | |
1898 | ||
0ab6f085 | 1899 | CC=$ac_ct_CC |
6bf9431b BE |
1900 | fi |
1901 | ||
1902 | fi | |
1903 | ||
1904 | ||
7a283e07 RW |
1905 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1906 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1907 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
6bf9431b BE |
1908 | See \`config.log' for more details." >&5 |
1909 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1910 | See \`config.log' for more details." >&2;} | |
7a283e07 | 1911 | { (exit 1); exit 1; }; }; } |
6bf9431b BE |
1912 | |
1913 | # Provide some information about the compiler. | |
0ab6f085 AM |
1914 | echo "$as_me:$LINENO:" \ |
1915 | "checking for C compiler version" >&5 | |
6bf9431b | 1916 | ac_compiler=`set X $ac_compile; echo $2` |
0ab6f085 AM |
1917 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1918 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
6bf9431b BE |
1919 | ac_status=$? |
1920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1921 | (exit $ac_status); } | |
0ab6f085 AM |
1922 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1923 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
6bf9431b BE |
1924 | ac_status=$? |
1925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1926 | (exit $ac_status); } | |
0ab6f085 AM |
1927 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1928 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
6bf9431b BE |
1929 | ac_status=$? |
1930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1931 | (exit $ac_status); } | |
1932 | ||
1933 | cat >conftest.$ac_ext <<_ACEOF | |
1934 | /* confdefs.h. */ | |
1935 | _ACEOF | |
1936 | cat confdefs.h >>conftest.$ac_ext | |
1937 | cat >>conftest.$ac_ext <<_ACEOF | |
1938 | /* end confdefs.h. */ | |
1939 | ||
1940 | int | |
1941 | main () | |
1942 | { | |
1943 | ||
1944 | ; | |
1945 | return 0; | |
1946 | } | |
1947 | _ACEOF | |
1948 | ac_clean_files_save=$ac_clean_files | |
1949 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1950 | # Try to create an executable without -o first, disregard a.out. | |
1951 | # It will help us diagnose broken compilers, and finding out an intuition | |
1952 | # of exeext. | |
0ab6f085 AM |
1953 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1954 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
6bf9431b | 1955 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
0ab6f085 AM |
1956 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1957 | (eval $ac_link_default) 2>&5 | |
6bf9431b BE |
1958 | ac_status=$? |
1959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1960 | (exit $ac_status); }; then | |
0ab6f085 AM |
1961 | # Find the output, starting from the most likely. This scheme is |
1962 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1963 | # resort. | |
1964 | ||
1965 | # Be careful to initialize this variable, since it used to be cached. | |
1966 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1967 | ac_cv_exeext= | |
1968 | # b.out is created by i960 compilers. | |
1969 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
6bf9431b BE |
1970 | do |
1971 | test -f "$ac_file" || continue | |
1972 | case $ac_file in | |
0ab6f085 AM |
1973 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1974 | ;; | |
1975 | conftest.$ac_ext ) | |
1976 | # This is the source file. | |
6bf9431b BE |
1977 | ;; |
1978 | [ab].out ) | |
1979 | # We found the default executable, but exeext='' is most | |
1980 | # certainly right. | |
1981 | break;; | |
1982 | *.* ) | |
0ab6f085 AM |
1983 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1984 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1985 | # but it would be cool to find out if it's true. Does anybody | |
1986 | # maintain Libtool? --akim. | |
1987 | export ac_cv_exeext | |
6bf9431b BE |
1988 | break;; |
1989 | * ) | |
1990 | break;; | |
1991 | esac | |
1992 | done | |
1993 | else | |
1994 | echo "$as_me: failed program was:" >&5 | |
1995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1996 | ||
7a283e07 RW |
1997 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1998 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6bf9431b BE |
1999 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2000 | See \`config.log' for more details." >&5 | |
2001 | echo "$as_me: error: C compiler cannot create executables | |
2002 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2003 | { (exit 77); exit 77; }; }; } |
6bf9431b BE |
2004 | fi |
2005 | ||
2006 | ac_exeext=$ac_cv_exeext | |
0ab6f085 AM |
2007 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2008 | echo "${ECHO_T}$ac_file" >&6 | |
6bf9431b | 2009 | |
0ab6f085 | 2010 | # Check the compiler produces executables we can run. If not, either |
6bf9431b | 2011 | # the compiler is broken, or we cross compile. |
0ab6f085 AM |
2012 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2013 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
6bf9431b BE |
2014 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2015 | # If not cross compiling, check that we can run a simple program. | |
2016 | if test "$cross_compiling" != yes; then | |
2017 | if { ac_try='./$ac_file' | |
0ab6f085 AM |
2018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2019 | (eval $ac_try) 2>&5 | |
6bf9431b BE |
2020 | ac_status=$? |
2021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2022 | (exit $ac_status); }; }; then | |
2023 | cross_compiling=no | |
2024 | else | |
2025 | if test "$cross_compiling" = maybe; then | |
2026 | cross_compiling=yes | |
2027 | else | |
7a283e07 RW |
2028 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2029 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2030 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
6bf9431b BE |
2031 | If you meant to cross compile, use \`--host'. |
2032 | See \`config.log' for more details." >&5 | |
2033 | echo "$as_me: error: cannot run C compiled programs. | |
2034 | If you meant to cross compile, use \`--host'. | |
2035 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2036 | { (exit 1); exit 1; }; }; } |
6bf9431b BE |
2037 | fi |
2038 | fi | |
2039 | fi | |
0ab6f085 AM |
2040 | echo "$as_me:$LINENO: result: yes" >&5 |
2041 | echo "${ECHO_T}yes" >&6 | |
6bf9431b BE |
2042 | |
2043 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2044 | ac_clean_files=$ac_clean_files_save | |
0ab6f085 | 2045 | # Check the compiler produces executables we can run. If not, either |
6bf9431b | 2046 | # the compiler is broken, or we cross compile. |
0ab6f085 AM |
2047 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2048 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2049 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2050 | echo "${ECHO_T}$cross_compiling" >&6 | |
2051 | ||
2052 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2053 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2055 | (eval $ac_link) 2>&5 | |
6bf9431b BE |
2056 | ac_status=$? |
2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2058 | (exit $ac_status); }; then | |
2059 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2060 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2061 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2062 | # `rm'. | |
2063 | for ac_file in conftest.exe conftest conftest.*; do | |
2064 | test -f "$ac_file" || continue | |
2065 | case $ac_file in | |
0ab6f085 | 2066 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
6bf9431b | 2067 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
0ab6f085 | 2068 | export ac_cv_exeext |
6bf9431b BE |
2069 | break;; |
2070 | * ) break;; | |
2071 | esac | |
2072 | done | |
2073 | else | |
7a283e07 RW |
2074 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2075 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2076 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
6bf9431b BE |
2077 | See \`config.log' for more details." >&5 |
2078 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2079 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2080 | { (exit 1); exit 1; }; }; } |
6bf9431b BE |
2081 | fi |
2082 | ||
2083 | rm -f conftest$ac_cv_exeext | |
0ab6f085 AM |
2084 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2085 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
6bf9431b BE |
2086 | |
2087 | rm -f conftest.$ac_ext | |
2088 | EXEEXT=$ac_cv_exeext | |
2089 | ac_exeext=$EXEEXT | |
0ab6f085 AM |
2090 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2091 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
6bf9431b BE |
2092 | if test "${ac_cv_objext+set}" = set; then |
2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2094 | else | |
2095 | cat >conftest.$ac_ext <<_ACEOF | |
2096 | /* confdefs.h. */ | |
2097 | _ACEOF | |
2098 | cat confdefs.h >>conftest.$ac_ext | |
2099 | cat >>conftest.$ac_ext <<_ACEOF | |
2100 | /* end confdefs.h. */ | |
2101 | ||
2102 | int | |
2103 | main () | |
2104 | { | |
2105 | ||
2106 | ; | |
2107 | return 0; | |
2108 | } | |
2109 | _ACEOF | |
2110 | rm -f conftest.o conftest.obj | |
0ab6f085 AM |
2111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2112 | (eval $ac_compile) 2>&5 | |
6bf9431b BE |
2113 | ac_status=$? |
2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2115 | (exit $ac_status); }; then | |
0ab6f085 | 2116 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
6bf9431b | 2117 | case $ac_file in |
0ab6f085 | 2118 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
6bf9431b BE |
2119 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2120 | break;; | |
2121 | esac | |
2122 | done | |
2123 | else | |
2124 | echo "$as_me: failed program was:" >&5 | |
2125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2126 | ||
7a283e07 RW |
2127 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2128 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6bf9431b BE |
2129 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2130 | See \`config.log' for more details." >&5 | |
2131 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2132 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2133 | { (exit 1); exit 1; }; }; } |
6bf9431b BE |
2134 | fi |
2135 | ||
2136 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2137 | fi | |
0ab6f085 AM |
2138 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2139 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
6bf9431b BE |
2140 | OBJEXT=$ac_cv_objext |
2141 | ac_objext=$OBJEXT | |
0ab6f085 AM |
2142 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2143 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
6bf9431b BE |
2144 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2146 | else | |
2147 | cat >conftest.$ac_ext <<_ACEOF | |
2148 | /* confdefs.h. */ | |
2149 | _ACEOF | |
2150 | cat confdefs.h >>conftest.$ac_ext | |
2151 | cat >>conftest.$ac_ext <<_ACEOF | |
2152 | /* end confdefs.h. */ | |
2153 | ||
2154 | int | |
2155 | main () | |
2156 | { | |
2157 | #ifndef __GNUC__ | |
2158 | choke me | |
2159 | #endif | |
2160 | ||
2161 | ; | |
2162 | return 0; | |
2163 | } | |
2164 | _ACEOF | |
2165 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
2166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2167 | (eval $ac_compile) 2>conftest.er1 | |
6bf9431b BE |
2168 | ac_status=$? |
2169 | grep -v '^ *+' conftest.er1 >conftest.err | |
2170 | rm -f conftest.er1 | |
2171 | cat conftest.err >&5 | |
2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2173 | (exit $ac_status); } && |
2174 | { ac_try='test -z "$ac_c_werror_flag" | |
2175 | || test ! -s conftest.err' | |
2176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2177 | (eval $ac_try) 2>&5 | |
2178 | ac_status=$? | |
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2180 | (exit $ac_status); }; } && | |
2181 | { ac_try='test -s conftest.$ac_objext' | |
2182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2183 | (eval $ac_try) 2>&5 | |
2184 | ac_status=$? | |
2185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2186 | (exit $ac_status); }; }; then | |
6bf9431b BE |
2187 | ac_compiler_gnu=yes |
2188 | else | |
2189 | echo "$as_me: failed program was:" >&5 | |
2190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2191 | ||
0ab6f085 | 2192 | ac_compiler_gnu=no |
6bf9431b | 2193 | fi |
0ab6f085 | 2194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bf9431b BE |
2195 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2196 | ||
2197 | fi | |
0ab6f085 AM |
2198 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2199 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
6bf9431b BE |
2200 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2201 | ac_test_CFLAGS=${CFLAGS+set} | |
2202 | ac_save_CFLAGS=$CFLAGS | |
0ab6f085 AM |
2203 | CFLAGS="-g" |
2204 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2205 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
6bf9431b BE |
2206 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2208 | else | |
0ab6f085 | 2209 | cat >conftest.$ac_ext <<_ACEOF |
6bf9431b BE |
2210 | /* confdefs.h. */ |
2211 | _ACEOF | |
2212 | cat confdefs.h >>conftest.$ac_ext | |
2213 | cat >>conftest.$ac_ext <<_ACEOF | |
2214 | /* end confdefs.h. */ | |
2215 | ||
2216 | int | |
2217 | main () | |
2218 | { | |
2219 | ||
2220 | ; | |
2221 | return 0; | |
2222 | } | |
2223 | _ACEOF | |
2224 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
2225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2226 | (eval $ac_compile) 2>conftest.er1 | |
6bf9431b BE |
2227 | ac_status=$? |
2228 | grep -v '^ *+' conftest.er1 >conftest.err | |
2229 | rm -f conftest.er1 | |
2230 | cat conftest.err >&5 | |
2231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2232 | (exit $ac_status); } && |
2233 | { ac_try='test -z "$ac_c_werror_flag" | |
2234 | || test ! -s conftest.err' | |
2235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2236 | (eval $ac_try) 2>&5 | |
6bf9431b BE |
2237 | ac_status=$? |
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2239 | (exit $ac_status); }; } && |
2240 | { ac_try='test -s conftest.$ac_objext' | |
2241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2242 | (eval $ac_try) 2>&5 | |
6bf9431b BE |
2243 | ac_status=$? |
2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 | 2245 | (exit $ac_status); }; }; then |
6bf9431b BE |
2246 | ac_cv_prog_cc_g=yes |
2247 | else | |
2248 | echo "$as_me: failed program was:" >&5 | |
2249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2250 | ||
0ab6f085 | 2251 | ac_cv_prog_cc_g=no |
6bf9431b | 2252 | fi |
0ab6f085 | 2253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bf9431b | 2254 | fi |
0ab6f085 AM |
2255 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2256 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
6bf9431b BE |
2257 | if test "$ac_test_CFLAGS" = set; then |
2258 | CFLAGS=$ac_save_CFLAGS | |
2259 | elif test $ac_cv_prog_cc_g = yes; then | |
2260 | if test "$GCC" = yes; then | |
2261 | CFLAGS="-g -O2" | |
2262 | else | |
2263 | CFLAGS="-g" | |
2264 | fi | |
2265 | else | |
2266 | if test "$GCC" = yes; then | |
2267 | CFLAGS="-O2" | |
2268 | else | |
2269 | CFLAGS= | |
2270 | fi | |
2271 | fi | |
0ab6f085 AM |
2272 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2273 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2274 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
6bf9431b BE |
2275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2276 | else | |
0ab6f085 | 2277 | ac_cv_prog_cc_stdc=no |
6bf9431b BE |
2278 | ac_save_CC=$CC |
2279 | cat >conftest.$ac_ext <<_ACEOF | |
2280 | /* confdefs.h. */ | |
2281 | _ACEOF | |
2282 | cat confdefs.h >>conftest.$ac_ext | |
2283 | cat >>conftest.$ac_ext <<_ACEOF | |
2284 | /* end confdefs.h. */ | |
2285 | #include <stdarg.h> | |
2286 | #include <stdio.h> | |
2287 | #include <sys/types.h> | |
2288 | #include <sys/stat.h> | |
2289 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2290 | struct buf { int x; }; | |
2291 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2292 | static char *e (p, i) | |
2293 | char **p; | |
2294 | int i; | |
2295 | { | |
2296 | return p[i]; | |
2297 | } | |
2298 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2299 | { | |
2300 | char *s; | |
2301 | va_list v; | |
2302 | va_start (v,p); | |
2303 | s = g (p, va_arg (v,int)); | |
2304 | va_end (v); | |
2305 | return s; | |
2306 | } | |
2307 | ||
2308 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2309 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2310 | These don't provoke an error unfortunately, instead are silently treated | |
0ab6f085 | 2311 | as 'x'. The following induces an error, until -std1 is added to get |
6bf9431b BE |
2312 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2313 | array size at least. It's necessary to write '\x00'==0 to get something | |
0ab6f085 | 2314 | that's true only with -std1. */ |
6bf9431b BE |
2315 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2316 | ||
2317 | int test (int i, double x); | |
2318 | struct s1 {int (*f) (int a);}; | |
2319 | struct s2 {int (*f) (double a);}; | |
2320 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2321 | int argc; | |
2322 | char **argv; | |
2323 | int | |
2324 | main () | |
2325 | { | |
2326 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2327 | ; | |
2328 | return 0; | |
2329 | } | |
2330 | _ACEOF | |
0ab6f085 AM |
2331 | # Don't try gcc -ansi; that turns off useful extensions and |
2332 | # breaks some systems' header files. | |
2333 | # AIX -qlanglvl=ansi | |
2334 | # Ultrix and OSF/1 -std1 | |
2335 | # HP-UX 10.20 and later -Ae | |
2336 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2337 | # SVR4 -Xc -D__EXTENSIONS__ | |
2338 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
6bf9431b BE |
2339 | do |
2340 | CC="$ac_save_CC $ac_arg" | |
2341 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
2342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2343 | (eval $ac_compile) 2>conftest.er1 | |
6bf9431b BE |
2344 | ac_status=$? |
2345 | grep -v '^ *+' conftest.er1 >conftest.err | |
2346 | rm -f conftest.er1 | |
2347 | cat conftest.err >&5 | |
2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2349 | (exit $ac_status); } && |
2350 | { ac_try='test -z "$ac_c_werror_flag" | |
2351 | || test ! -s conftest.err' | |
2352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2353 | (eval $ac_try) 2>&5 | |
2354 | ac_status=$? | |
2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2356 | (exit $ac_status); }; } && | |
2357 | { ac_try='test -s conftest.$ac_objext' | |
2358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2359 | (eval $ac_try) 2>&5 | |
2360 | ac_status=$? | |
2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2362 | (exit $ac_status); }; }; then | |
2363 | ac_cv_prog_cc_stdc=$ac_arg | |
2364 | break | |
6bf9431b BE |
2365 | else |
2366 | echo "$as_me: failed program was:" >&5 | |
2367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2368 | ||
2369 | fi | |
0ab6f085 | 2370 | rm -f conftest.err conftest.$ac_objext |
6bf9431b | 2371 | done |
0ab6f085 | 2372 | rm -f conftest.$ac_ext conftest.$ac_objext |
6bf9431b BE |
2373 | CC=$ac_save_CC |
2374 | ||
2375 | fi | |
0ab6f085 AM |
2376 | |
2377 | case "x$ac_cv_prog_cc_stdc" in | |
2378 | x|xno) | |
2379 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2380 | echo "${ECHO_T}none needed" >&6 ;; | |
6bf9431b | 2381 | *) |
0ab6f085 AM |
2382 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2383 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2384 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
6bf9431b BE |
2385 | esac |
2386 | ||
0ab6f085 AM |
2387 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2388 | # in C++ we need to declare it. In case someone uses the same compiler | |
2389 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2390 | # the declaration of exit, since it's the most demanding environment. | |
2391 | cat >conftest.$ac_ext <<_ACEOF | |
2392 | #ifndef __cplusplus | |
2393 | choke me | |
2394 | #endif | |
2395 | _ACEOF | |
2396 | rm -f conftest.$ac_objext | |
2397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2398 | (eval $ac_compile) 2>conftest.er1 | |
2399 | ac_status=$? | |
2400 | grep -v '^ *+' conftest.er1 >conftest.err | |
2401 | rm -f conftest.er1 | |
2402 | cat conftest.err >&5 | |
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2404 | (exit $ac_status); } && | |
2405 | { ac_try='test -z "$ac_c_werror_flag" | |
2406 | || test ! -s conftest.err' | |
2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2408 | (eval $ac_try) 2>&5 | |
2409 | ac_status=$? | |
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2411 | (exit $ac_status); }; } && | |
2412 | { ac_try='test -s conftest.$ac_objext' | |
2413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2414 | (eval $ac_try) 2>&5 | |
2415 | ac_status=$? | |
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2417 | (exit $ac_status); }; }; then | |
2418 | for ac_declaration in \ | |
2419 | '' \ | |
2420 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2421 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2422 | 'extern "C" void exit (int) throw ();' \ | |
2423 | 'extern "C" void exit (int);' \ | |
2424 | 'void exit (int);' | |
2425 | do | |
2426 | cat >conftest.$ac_ext <<_ACEOF | |
2427 | /* confdefs.h. */ | |
2428 | _ACEOF | |
2429 | cat confdefs.h >>conftest.$ac_ext | |
2430 | cat >>conftest.$ac_ext <<_ACEOF | |
2431 | /* end confdefs.h. */ | |
2432 | $ac_declaration | |
2433 | #include <stdlib.h> | |
2434 | int | |
2435 | main () | |
2436 | { | |
2437 | exit (42); | |
2438 | ; | |
2439 | return 0; | |
2440 | } | |
2441 | _ACEOF | |
2442 | rm -f conftest.$ac_objext | |
2443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2444 | (eval $ac_compile) 2>conftest.er1 | |
2445 | ac_status=$? | |
2446 | grep -v '^ *+' conftest.er1 >conftest.err | |
2447 | rm -f conftest.er1 | |
2448 | cat conftest.err >&5 | |
2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2450 | (exit $ac_status); } && | |
2451 | { ac_try='test -z "$ac_c_werror_flag" | |
2452 | || test ! -s conftest.err' | |
2453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2454 | (eval $ac_try) 2>&5 | |
2455 | ac_status=$? | |
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2457 | (exit $ac_status); }; } && | |
2458 | { ac_try='test -s conftest.$ac_objext' | |
2459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2460 | (eval $ac_try) 2>&5 | |
2461 | ac_status=$? | |
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2463 | (exit $ac_status); }; }; then | |
2464 | : | |
2465 | else | |
2466 | echo "$as_me: failed program was:" >&5 | |
2467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2468 | ||
2469 | continue | |
2470 | fi | |
2471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2472 | cat >conftest.$ac_ext <<_ACEOF | |
2473 | /* confdefs.h. */ | |
2474 | _ACEOF | |
2475 | cat confdefs.h >>conftest.$ac_ext | |
2476 | cat >>conftest.$ac_ext <<_ACEOF | |
2477 | /* end confdefs.h. */ | |
2478 | $ac_declaration | |
2479 | int | |
2480 | main () | |
2481 | { | |
2482 | exit (42); | |
2483 | ; | |
2484 | return 0; | |
2485 | } | |
2486 | _ACEOF | |
2487 | rm -f conftest.$ac_objext | |
2488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2489 | (eval $ac_compile) 2>conftest.er1 | |
2490 | ac_status=$? | |
2491 | grep -v '^ *+' conftest.er1 >conftest.err | |
2492 | rm -f conftest.er1 | |
2493 | cat conftest.err >&5 | |
2494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2495 | (exit $ac_status); } && | |
2496 | { ac_try='test -z "$ac_c_werror_flag" | |
2497 | || test ! -s conftest.err' | |
2498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2499 | (eval $ac_try) 2>&5 | |
2500 | ac_status=$? | |
2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2502 | (exit $ac_status); }; } && | |
2503 | { ac_try='test -s conftest.$ac_objext' | |
2504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2505 | (eval $ac_try) 2>&5 | |
2506 | ac_status=$? | |
2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2508 | (exit $ac_status); }; }; then | |
2509 | break | |
2510 | else | |
2511 | echo "$as_me: failed program was:" >&5 | |
2512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2513 | ||
2514 | fi | |
2515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2516 | done | |
2517 | rm -f conftest* | |
2518 | if test -n "$ac_declaration"; then | |
2519 | echo '#ifdef __cplusplus' >>confdefs.h | |
2520 | echo $ac_declaration >>confdefs.h | |
2521 | echo '#endif' >>confdefs.h | |
2522 | fi | |
2523 | ||
2524 | else | |
2525 | echo "$as_me: failed program was:" >&5 | |
2526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 2527 | |
0ab6f085 AM |
2528 | fi |
2529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bf9431b BE |
2530 | ac_ext=c |
2531 | ac_cpp='$CPP $CPPFLAGS' | |
2532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2535 | ||
2536 | ||
0ab6f085 AM |
2537 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2538 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
6bf9431b BE |
2539 | if test "${ac_cv_search_strerror+set}" = set; then |
2540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2541 | else | |
2542 | ac_func_search_save_LIBS=$LIBS | |
0ab6f085 | 2543 | ac_cv_search_strerror=no |
6bf9431b BE |
2544 | cat >conftest.$ac_ext <<_ACEOF |
2545 | /* confdefs.h. */ | |
2546 | _ACEOF | |
2547 | cat confdefs.h >>conftest.$ac_ext | |
2548 | cat >>conftest.$ac_ext <<_ACEOF | |
2549 | /* end confdefs.h. */ | |
2550 | ||
0ab6f085 | 2551 | /* Override any gcc2 internal prototype to avoid an error. */ |
6bf9431b BE |
2552 | #ifdef __cplusplus |
2553 | extern "C" | |
2554 | #endif | |
0ab6f085 AM |
2555 | /* We use char because int might match the return type of a gcc2 |
2556 | builtin and then its argument prototype would still apply. */ | |
6bf9431b BE |
2557 | char strerror (); |
2558 | int | |
2559 | main () | |
2560 | { | |
0ab6f085 | 2561 | strerror (); |
6bf9431b BE |
2562 | ; |
2563 | return 0; | |
2564 | } | |
2565 | _ACEOF | |
0ab6f085 AM |
2566 | rm -f conftest.$ac_objext conftest$ac_exeext |
2567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2568 | (eval $ac_link) 2>conftest.er1 | |
6bf9431b BE |
2569 | ac_status=$? |
2570 | grep -v '^ *+' conftest.er1 >conftest.err | |
2571 | rm -f conftest.er1 | |
2572 | cat conftest.err >&5 | |
2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2574 | (exit $ac_status); } && |
2575 | { ac_try='test -z "$ac_c_werror_flag" | |
2576 | || test ! -s conftest.err' | |
2577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2578 | (eval $ac_try) 2>&5 | |
2579 | ac_status=$? | |
2580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2581 | (exit $ac_status); }; } && | |
2582 | { ac_try='test -s conftest$ac_exeext' | |
2583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2584 | (eval $ac_try) 2>&5 | |
2585 | ac_status=$? | |
2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2587 | (exit $ac_status); }; }; then | |
2588 | ac_cv_search_strerror="none required" | |
6bf9431b BE |
2589 | else |
2590 | echo "$as_me: failed program was:" >&5 | |
2591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2592 | ||
1b9750d6 | 2593 | fi |
0ab6f085 AM |
2594 | rm -f conftest.err conftest.$ac_objext \ |
2595 | conftest$ac_exeext conftest.$ac_ext | |
2596 | if test "$ac_cv_search_strerror" = no; then | |
2597 | for ac_lib in cposix; do | |
2598 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2599 | cat >conftest.$ac_ext <<_ACEOF | |
2600 | /* confdefs.h. */ | |
2601 | _ACEOF | |
2602 | cat confdefs.h >>conftest.$ac_ext | |
2603 | cat >>conftest.$ac_ext <<_ACEOF | |
2604 | /* end confdefs.h. */ | |
6bf9431b | 2605 | |
0ab6f085 AM |
2606 | /* Override any gcc2 internal prototype to avoid an error. */ |
2607 | #ifdef __cplusplus | |
2608 | extern "C" | |
2609 | #endif | |
2610 | /* We use char because int might match the return type of a gcc2 | |
2611 | builtin and then its argument prototype would still apply. */ | |
2612 | char strerror (); | |
2613 | int | |
2614 | main () | |
2615 | { | |
2616 | strerror (); | |
2617 | ; | |
2618 | return 0; | |
2619 | } | |
2620 | _ACEOF | |
2621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2623 | (eval $ac_link) 2>conftest.er1 | |
2624 | ac_status=$? | |
2625 | grep -v '^ *+' conftest.er1 >conftest.err | |
2626 | rm -f conftest.er1 | |
2627 | cat conftest.err >&5 | |
2628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2629 | (exit $ac_status); } && | |
2630 | { ac_try='test -z "$ac_c_werror_flag" | |
2631 | || test ! -s conftest.err' | |
2632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2633 | (eval $ac_try) 2>&5 | |
2634 | ac_status=$? | |
2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2636 | (exit $ac_status); }; } && | |
2637 | { ac_try='test -s conftest$ac_exeext' | |
2638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2639 | (eval $ac_try) 2>&5 | |
2640 | ac_status=$? | |
2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2642 | (exit $ac_status); }; }; then | |
2643 | ac_cv_search_strerror="-l$ac_lib" | |
2644 | break | |
1b9750d6 | 2645 | else |
0ab6f085 AM |
2646 | echo "$as_me: failed program was:" >&5 |
2647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2648 | ||
2649 | fi | |
2650 | rm -f conftest.err conftest.$ac_objext \ | |
2651 | conftest$ac_exeext conftest.$ac_ext | |
2652 | done | |
6bf9431b BE |
2653 | fi |
2654 | LIBS=$ac_func_search_save_LIBS | |
2655 | fi | |
0ab6f085 AM |
2656 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2657 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2658 | if test "$ac_cv_search_strerror" != no; then | |
2659 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
6bf9431b BE |
2660 | |
2661 | fi | |
2662 | ||
2663 | ||
2664 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
df76639a | 2665 | am__api_version="1.9" |
6bf9431b BE |
2666 | # Find a good install program. We prefer a C program (faster), |
2667 | # so one script is as good as another. But avoid the broken or | |
2668 | # incompatible versions: | |
2669 | # SysV /etc/install, /usr/sbin/install | |
2670 | # SunOS /usr/etc/install | |
2671 | # IRIX /sbin/install | |
2672 | # AIX /bin/install | |
2673 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2674 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2675 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2676 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2677 | # OS/2's system install, which has a completely different semantic | |
2678 | # ./install, which can be erroneously created by make from ./install.sh. | |
58c85be7 | 2679 | # Reject install programs that cannot install multiple files. |
0ab6f085 AM |
2680 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2681 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
6bf9431b BE |
2682 | if test -z "$INSTALL"; then |
2683 | if test "${ac_cv_path_install+set}" = set; then | |
2684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2685 | else | |
2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2687 | for as_dir in $PATH | |
2688 | do | |
2689 | IFS=$as_save_IFS | |
2690 | test -z "$as_dir" && as_dir=. | |
2691 | # Account for people who put trailing slashes in PATH elements. | |
2692 | case $as_dir/ in | |
2693 | ./ | .// | /cC/* | \ | |
2694 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2695 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2696 | /usr/ucb/* ) ;; | |
2697 | *) | |
2698 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2699 | # Don't use installbsd from OSF since it installs stuff as root | |
2700 | # by default. | |
2701 | for ac_prog in ginstall scoinst install; do | |
2702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 2703 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6bf9431b BE |
2704 | if test $ac_prog = install && |
2705 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2706 | # AIX install. It has an incompatible calling convention. | |
2707 | : | |
2708 | elif test $ac_prog = install && | |
2709 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2710 | # program-specific install script used by HP pwplus--don't use. | |
2711 | : | |
252b5132 | 2712 | else |
58c85be7 RW |
2713 | rm -rf conftest.one conftest.two conftest.dir |
2714 | echo one > conftest.one | |
2715 | echo two > conftest.two | |
2716 | mkdir conftest.dir | |
2717 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2718 | test -s conftest.one && test -s conftest.two && | |
2719 | test -s conftest.dir/conftest.one && | |
2720 | test -s conftest.dir/conftest.two | |
2721 | then | |
2722 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2723 | break 3 | |
2724 | fi | |
252b5132 RH |
2725 | fi |
2726 | fi | |
2727 | done | |
6bf9431b BE |
2728 | done |
2729 | ;; | |
2730 | esac | |
2731 | done | |
2732 | ||
58c85be7 | 2733 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
2734 | |
2735 | fi | |
2736 | if test "${ac_cv_path_install+set}" = set; then | |
6bf9431b | 2737 | INSTALL=$ac_cv_path_install |
252b5132 | 2738 | else |
58c85be7 RW |
2739 | # As a last resort, use the slow shell script. Don't cache a |
2740 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2741 | # break other packages using the cache if that directory is |
58c85be7 | 2742 | # removed, or if the value is a relative name. |
6bf9431b | 2743 | INSTALL=$ac_install_sh |
252b5132 RH |
2744 | fi |
2745 | fi | |
0ab6f085 AM |
2746 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2747 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2748 | |
2749 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2750 | # It thinks the first close brace ends the variable substitution. | |
2751 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2752 | ||
6bf9431b | 2753 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2754 | |
2755 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2756 | ||
0ab6f085 AM |
2757 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2758 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2759 | # Just in case |
2760 | sleep 1 | |
6bf9431b | 2761 | echo timestamp > conftest.file |
252b5132 RH |
2762 | # Do `set' in a subshell so we don't clobber the current shell's |
2763 | # arguments. Must try -L first in case configure is actually a | |
2764 | # symlink; some systems play weird games with the mod time of symlinks | |
2765 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2766 | # directory). | |
2767 | if ( | |
6bf9431b | 2768 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2769 | if test "$*" = "X"; then |
2770 | # -L didn't work. | |
6bf9431b | 2771 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2772 | fi |
6bf9431b BE |
2773 | rm -f conftest.file |
2774 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2775 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2776 | |
2777 | # If neither matched, then we have a broken ls. This can happen | |
2778 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2779 | # broken ls alias from the environment. This has actually | |
2780 | # happened. Such a system could not be considered "sane". | |
6bf9431b BE |
2781 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2782 | alias in your environment" >&5 | |
2783 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2784 | alias in your environment" >&2;} | |
2785 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2786 | fi |
2787 | ||
6bf9431b | 2788 | test "$2" = conftest.file |
252b5132 RH |
2789 | ) |
2790 | then | |
2791 | # Ok. | |
2792 | : | |
2793 | else | |
6bf9431b BE |
2794 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2795 | Check your system clock" >&5 | |
2796 | echo "$as_me: error: newly created file is older than distributed files! | |
2797 | Check your system clock" >&2;} | |
2798 | { (exit 1); exit 1; }; } | |
252b5132 | 2799 | fi |
0ab6f085 AM |
2800 | echo "$as_me:$LINENO: result: yes" >&5 |
2801 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2802 | test "$program_prefix" != NONE && |
0ab6f085 | 2803 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2804 | # Use a double $ so make ignores it. |
2805 | test "$program_suffix" != NONE && | |
0ab6f085 | 2806 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
6bf9431b BE |
2807 | # Double any \ or $. echo might interpret backslashes. |
2808 | # By default was `s,x,x', remove it if useless. | |
2809 | cat <<\_ACEOF >conftest.sed | |
2810 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2811 | _ACEOF | |
2812 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
0ab6f085 | 2813 | rm conftest.sed |
6bf9431b BE |
2814 | |
2815 | # expand $ac_aux_dir to an absolute path | |
2816 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2817 | ||
2818 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2819 | # Use eval to expand $SHELL | |
2820 | if eval "$MISSING --run true"; then | |
2821 | am_missing_run="$MISSING --run " | |
2822 | else | |
2823 | am_missing_run= | |
2824 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2825 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2826 | fi | |
2827 | ||
2828 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
df76639a AM |
2829 | # We used to keeping the `.' as first argument, in order to |
2830 | # allow $(mkdir_p) to be used without argument. As in | |
6bf9431b | 2831 | # $(mkdir_p) $(somedir) |
df76639a AM |
2832 | # where $(somedir) is conditionally defined. However this is wrong |
2833 | # for two reasons: | |
2834 | # 1. if the package is installed by a user who cannot write `.' | |
2835 | # make install will fail, | |
2836 | # 2. the above comment should most certainly read | |
2837 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2838 | # so it does not work when $(somedir) is undefined and | |
2839 | # $(DESTDIR) is not. | |
2840 | # To support the latter case, we have to write | |
2841 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2842 | # so the `.' trick is pointless. | |
2843 | mkdir_p='mkdir -p --' | |
6bf9431b BE |
2844 | else |
2845 | # On NextStep and OpenStep, the `mkdir' command does not | |
2846 | # recognize any option. It will interpret all options as | |
2847 | # directories to create, and then abort because `.' already | |
2848 | # exists. | |
2849 | for d in ./-p ./--version; | |
2850 | do | |
2851 | test -d $d && rmdir $d | |
2852 | done | |
2853 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2854 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2855 | mkdir_p='$(mkinstalldirs)' | |
2856 | else | |
2857 | mkdir_p='$(install_sh) -d' | |
2858 | fi | |
2859 | fi | |
252b5132 | 2860 | |
6bf9431b BE |
2861 | for ac_prog in gawk mawk nawk awk |
2862 | do | |
2863 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2864 | set dummy $ac_prog; ac_word=$2 | |
0ab6f085 AM |
2865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
2867 | if test "${ac_cv_prog_AWK+set}" = set; then |
2868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2869 | else | |
2870 | if test -n "$AWK"; then | |
2871 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2872 | else | |
2873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2874 | for as_dir in $PATH | |
2875 | do | |
2876 | IFS=$as_save_IFS | |
2877 | test -z "$as_dir" && as_dir=. | |
2878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 2879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
2880 | ac_cv_prog_AWK="$ac_prog" |
2881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2882 | break 2 | |
2883 | fi | |
2884 | done | |
2885 | done | |
2886 | ||
2887 | fi | |
2888 | fi | |
2889 | AWK=$ac_cv_prog_AWK | |
2890 | if test -n "$AWK"; then | |
0ab6f085 AM |
2891 | echo "$as_me:$LINENO: result: $AWK" >&5 |
2892 | echo "${ECHO_T}$AWK" >&6 | |
6bf9431b | 2893 | else |
0ab6f085 AM |
2894 | echo "$as_me:$LINENO: result: no" >&5 |
2895 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
2896 | fi |
2897 | ||
2898 | test -n "$AWK" && break | |
2899 | done | |
252b5132 | 2900 | |
0ab6f085 AM |
2901 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2902 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2903 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2904 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
6bf9431b | 2905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 2906 | else |
6bf9431b | 2907 | cat >conftest.make <<\_ACEOF |
252b5132 | 2908 | all: |
0ab6f085 | 2909 | @echo 'ac_maketemp="$(MAKE)"' |
6bf9431b | 2910 | _ACEOF |
252b5132 | 2911 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
0ab6f085 AM |
2912 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
2913 | if test -n "$ac_maketemp"; then | |
2914 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2915 | else | |
2916 | eval ac_cv_prog_make_${ac_make}_set=no | |
2917 | fi | |
6bf9431b | 2918 | rm -f conftest.make |
252b5132 | 2919 | fi |
0ab6f085 AM |
2920 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
2921 | echo "$as_me:$LINENO: result: yes" >&5 | |
2922 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2923 | SET_MAKE= |
2924 | else | |
0ab6f085 AM |
2925 | echo "$as_me:$LINENO: result: no" >&5 |
2926 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2927 | SET_MAKE="MAKE=${MAKE-make}" |
2928 | fi | |
2929 | ||
6bf9431b BE |
2930 | rm -rf .tst 2>/dev/null |
2931 | mkdir .tst 2>/dev/null | |
2932 | if test -d .tst; then | |
2933 | am__leading_dot=. | |
2934 | else | |
2935 | am__leading_dot=_ | |
2936 | fi | |
2937 | rmdir .tst 2>/dev/null | |
2938 | ||
2939 | DEPDIR="${am__leading_dot}deps" | |
2940 | ||
0ab6f085 | 2941 | ac_config_commands="$ac_config_commands depfiles" |
6bf9431b BE |
2942 | |
2943 | ||
2944 | am_make=${MAKE-make} | |
2945 | cat > confinc << 'END' | |
2946 | am__doit: | |
2947 | @echo done | |
2948 | .PHONY: am__doit | |
2949 | END | |
2950 | # If we don't find an include directive, just comment out the code. | |
0ab6f085 AM |
2951 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2952 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
6bf9431b BE |
2953 | am__include="#" |
2954 | am__quote= | |
2955 | _am_result=none | |
2956 | # First try GNU make style include. | |
2957 | echo "include confinc" > confmf | |
2958 | # We grep out `Entering directory' and `Leaving directory' | |
2959 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2960 | # In particular we don't look at `^make:' because GNU make might | |
2961 | # be invoked under some other name (usually "gmake"), in which | |
2962 | # case it prints its new name instead of `make'. | |
2963 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2964 | am__include=include | |
2965 | am__quote= | |
2966 | _am_result=GNU | |
2967 | fi | |
2968 | # Now try BSD make style include. | |
2969 | if test "$am__include" = "#"; then | |
2970 | echo '.include "confinc"' > confmf | |
2971 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2972 | am__include=.include | |
2973 | am__quote="\"" | |
2974 | _am_result=BSD | |
2975 | fi | |
2976 | fi | |
2977 | ||
252b5132 | 2978 | |
0ab6f085 AM |
2979 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2980 | echo "${ECHO_T}$_am_result" >&6 | |
6bf9431b | 2981 | rm -f confinc confmf |
252b5132 | 2982 | |
0ab6f085 | 2983 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
6bf9431b | 2984 | if test "${enable_dependency_tracking+set}" = set; then |
0ab6f085 | 2985 | enableval="$enable_dependency_tracking" |
252b5132 | 2986 | |
0ab6f085 | 2987 | fi; |
6bf9431b BE |
2988 | if test "x$enable_dependency_tracking" != xno; then |
2989 | am_depcomp="$ac_aux_dir/depcomp" | |
2990 | AMDEPBACKSLASH='\' | |
252b5132 | 2991 | fi |
6bf9431b BE |
2992 | |
2993 | ||
2994 | if test "x$enable_dependency_tracking" != xno; then | |
2995 | AMDEP_TRUE= | |
2996 | AMDEP_FALSE='#' | |
2997 | else | |
2998 | AMDEP_TRUE='#' | |
2999 | AMDEP_FALSE= | |
3000 | fi | |
3001 | ||
3002 | ||
3003 | ||
3004 | # test to see if srcdir already configured | |
3005 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
3006 | test -f $srcdir/config.status; then | |
3007 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
3008 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
3009 | { (exit 1); exit 1; }; } | |
3010 | fi | |
3011 | ||
3012 | # test whether we have cygpath | |
3013 | if test -z "$CYGPATH_W"; then | |
3014 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3015 | CYGPATH_W='cygpath -w' | |
3016 | else | |
3017 | CYGPATH_W=echo | |
3018 | fi | |
3019 | fi | |
3020 | ||
3021 | ||
3022 | # Define the identity of the package. | |
3023 | PACKAGE=gprof | |
3024 | VERSION=${BFD_VERSION} | |
3025 | ||
3026 | ||
3027 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3028 | #define PACKAGE "$PACKAGE" |
6bf9431b BE |
3029 | _ACEOF |
3030 | ||
252b5132 | 3031 | |
6bf9431b | 3032 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3033 | #define VERSION "$VERSION" |
6bf9431b BE |
3034 | _ACEOF |
3035 | ||
3036 | # Some tools Automake needs. | |
3037 | ||
3038 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3039 | ||
3040 | ||
3041 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3042 | ||
3043 | ||
3044 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3045 | ||
3046 | ||
3047 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3048 | ||
3049 | ||
3050 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3051 | ||
6bf9431b | 3052 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
252b5132 | 3053 | |
6bf9431b BE |
3054 | # Installed binaries are usually stripped using `strip' when the user |
3055 | # run `make install-strip'. However `strip' might not be the right | |
3056 | # tool to use in cross-compilation environments, therefore Automake | |
3057 | # will honor the `STRIP' environment variable to overrule this program. | |
3058 | if test "$cross_compiling" != no; then | |
3059 | if test -n "$ac_tool_prefix"; then | |
3060 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3061 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
0ab6f085 AM |
3062 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
3064 | if test "${ac_cv_prog_STRIP+set}" = set; then |
3065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3066 | else | |
3067 | if test -n "$STRIP"; then | |
3068 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3069 | else | |
3070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3071 | for as_dir in $PATH | |
3072 | do | |
3073 | IFS=$as_save_IFS | |
3074 | test -z "$as_dir" && as_dir=. | |
3075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 3076 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
3077 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3078 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3079 | break 2 | |
3080 | fi | |
3081 | done | |
3082 | done | |
3083 | ||
3084 | fi | |
3085 | fi | |
3086 | STRIP=$ac_cv_prog_STRIP | |
3087 | if test -n "$STRIP"; then | |
0ab6f085 AM |
3088 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3089 | echo "${ECHO_T}$STRIP" >&6 | |
6bf9431b | 3090 | else |
0ab6f085 AM |
3091 | echo "$as_me:$LINENO: result: no" >&5 |
3092 | echo "${ECHO_T}no" >&6 | |
6bf9431b | 3093 | fi |
252b5132 | 3094 | |
6bf9431b BE |
3095 | fi |
3096 | if test -z "$ac_cv_prog_STRIP"; then | |
3097 | ac_ct_STRIP=$STRIP | |
3098 | # Extract the first word of "strip", so it can be a program name with args. | |
3099 | set dummy strip; ac_word=$2 | |
0ab6f085 AM |
3100 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
3102 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
3103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3104 | else | |
3105 | if test -n "$ac_ct_STRIP"; then | |
3106 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3107 | else | |
3108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3109 | for as_dir in $PATH | |
3110 | do | |
3111 | IFS=$as_save_IFS | |
3112 | test -z "$as_dir" && as_dir=. | |
3113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 3114 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
3115 | ac_cv_prog_ac_ct_STRIP="strip" |
3116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3117 | break 2 | |
3118 | fi | |
3119 | done | |
3120 | done | |
252b5132 | 3121 | |
0ab6f085 | 3122 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6bf9431b BE |
3123 | fi |
3124 | fi | |
3125 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3126 | if test -n "$ac_ct_STRIP"; then | |
0ab6f085 AM |
3127 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
3128 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 3129 | else |
0ab6f085 AM |
3130 | echo "$as_me:$LINENO: result: no" >&5 |
3131 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3132 | fi |
3133 | ||
0ab6f085 | 3134 | STRIP=$ac_ct_STRIP |
252b5132 | 3135 | else |
6bf9431b | 3136 | STRIP="$ac_cv_prog_STRIP" |
252b5132 RH |
3137 | fi |
3138 | ||
6bf9431b BE |
3139 | fi |
3140 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
3141 | ||
3142 | # We need awk for the "check" target. The system "awk" is bad on | |
3143 | # some platforms. | |
df76639a AM |
3144 | # Always define AMTAR for backward compatibility. |
3145 | ||
3146 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3147 | ||
3148 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3149 | ||
3150 | ||
6bf9431b BE |
3151 | |
3152 | ||
3153 | depcc="$CC" am_compiler_list= | |
3154 | ||
0ab6f085 AM |
3155 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3156 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
6bf9431b BE |
3157 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3159 | else | |
3160 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3161 | # We make a subdir and do the tests there. Otherwise we can end up | |
3162 | # making bogus files that we don't know about and never remove. For | |
3163 | # instance it was reported that on HP-UX the gcc test will end up | |
3164 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3165 | # in D'. | |
3166 | mkdir conftest.dir | |
3167 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3168 | # using a relative directory. | |
3169 | cp "$am_depcomp" conftest.dir | |
3170 | cd conftest.dir | |
3171 | # We will build objects and dependencies in a subdirectory because | |
3172 | # it helps to detect inapplicable dependency modes. For instance | |
3173 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3174 | # side effect of compilation, but ICC will put the dependencies in | |
3175 | # the current directory while Tru64 will put them in the object | |
3176 | # directory. | |
3177 | mkdir sub | |
3178 | ||
3179 | am_cv_CC_dependencies_compiler_type=none | |
3180 | if test "$am_compiler_list" = ""; then | |
3181 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3182 | fi | |
3183 | for depmode in $am_compiler_list; do | |
3184 | # Setup a source with many dependencies, because some compilers | |
3185 | # like to wrap large dependency lists on column 80 (with \), and | |
3186 | # we should not choose a depcomp mode which is confused by this. | |
3187 | # | |
3188 | # We need to recreate these files for each test, as the compiler may | |
3189 | # overwrite some of them when testing with obscure command lines. | |
3190 | # This happens at least with the AIX C compiler. | |
3191 | : > sub/conftest.c | |
3192 | for i in 1 2 3 4 5 6; do | |
3193 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3194 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3195 | # Solaris 8's {/usr,}/bin/sh. | |
3196 | touch sub/conftst$i.h | |
3197 | done | |
3198 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3199 | ||
3200 | case $depmode in | |
3201 | nosideeffect) | |
3202 | # after this tag, mechanisms are not by side-effect, so they'll | |
3203 | # only be used when explicitly requested | |
3204 | if test "x$enable_dependency_tracking" = xyes; then | |
3205 | continue | |
3206 | else | |
3207 | break | |
3208 | fi | |
3209 | ;; | |
3210 | none) break ;; | |
3211 | esac | |
3212 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3213 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3214 | # handle `-M -o', and we need to detect this. | |
3215 | if depmode=$depmode \ | |
3216 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3217 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3218 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3219 | >/dev/null 2>conftest.err && | |
3220 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3221 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3222 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3223 | # icc doesn't choke on unknown options, it will just issue warnings | |
3224 | # or remarks (even with -Werror). So we grep stderr for any message | |
3225 | # that says an option was ignored or not supported. | |
3226 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3227 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3228 | # The diagnosis changed in icc 8.0: | |
3229 | # icc: Command line remark: option '-MP' not supported | |
3230 | if (grep 'ignoring option' conftest.err || | |
3231 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3232 | am_cv_CC_dependencies_compiler_type=$depmode | |
3233 | break | |
3234 | fi | |
3235 | fi | |
3236 | done | |
3237 | ||
3238 | cd .. | |
3239 | rm -rf conftest.dir | |
252b5132 | 3240 | else |
6bf9431b | 3241 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3242 | fi |
3243 | ||
252b5132 | 3244 | fi |
0ab6f085 AM |
3245 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3246 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
6bf9431b BE |
3247 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3248 | ||
252b5132 | 3249 | |
6bf9431b BE |
3250 | |
3251 | if | |
3252 | test "x$enable_dependency_tracking" != xno \ | |
3253 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3254 | am__fastdepCC_TRUE= | |
3255 | am__fastdepCC_FALSE='#' | |
252b5132 | 3256 | else |
6bf9431b BE |
3257 | am__fastdepCC_TRUE='#' |
3258 | am__fastdepCC_FALSE= | |
252b5132 RH |
3259 | fi |
3260 | ||
3261 | ||
3262 | ||
6bf9431b | 3263 | |
ce2cded5 | 3264 | ac_config_headers="$ac_config_headers gconfig.h:gconfig.in" |
d7040cdb SE |
3265 | |
3266 | ||
ce2cded5 L |
3267 | ac_ext=c |
3268 | ac_cpp='$CPP $CPPFLAGS' | |
3269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3272 | if test -n "$ac_tool_prefix"; then | |
3273 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3274 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3275 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3277 | if test "${ac_cv_prog_CC+set}" = set; then | |
3278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1b9750d6 | 3279 | else |
ce2cded5 L |
3280 | if test -n "$CC"; then |
3281 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
0ab6f085 | 3282 | else |
ce2cded5 L |
3283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3284 | for as_dir in $PATH | |
3285 | do | |
3286 | IFS=$as_save_IFS | |
3287 | test -z "$as_dir" && as_dir=. | |
3288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3290 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3292 | break 2 | |
3293 | fi | |
3294 | done | |
3295 | done | |
0ab6f085 | 3296 | |
ce2cded5 L |
3297 | fi |
3298 | fi | |
3299 | CC=$ac_cv_prog_CC | |
3300 | if test -n "$CC"; then | |
3301 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3302 | echo "${ECHO_T}$CC" >&6 | |
0ab6f085 | 3303 | else |
ce2cded5 L |
3304 | echo "$as_me:$LINENO: result: no" >&5 |
3305 | echo "${ECHO_T}no" >&6 | |
3306 | fi | |
d7040cdb | 3307 | |
ce2cded5 L |
3308 | fi |
3309 | if test -z "$ac_cv_prog_CC"; then | |
3310 | ac_ct_CC=$CC | |
3311 | # Extract the first word of "gcc", so it can be a program name with args. | |
3312 | set dummy gcc; ac_word=$2 | |
3313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3315 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1b9750d6 NC |
3316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3317 | else | |
ce2cded5 L |
3318 | if test -n "$ac_ct_CC"; then |
3319 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3320 | else | |
d7040cdb | 3321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
0ab6f085 | 3322 | for as_dir in $PATH |
d7040cdb SE |
3323 | do |
3324 | IFS=$as_save_IFS | |
3325 | test -z "$as_dir" && as_dir=. | |
ce2cded5 L |
3326 | for ac_exec_ext in '' $ac_executable_extensions; do |
3327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3328 | ac_cv_prog_ac_ct_CC="gcc" | |
3329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3330 | break 2 | |
0ab6f085 | 3331 | fi |
ce2cded5 | 3332 | done |
0ab6f085 | 3333 | done |
d7040cdb | 3334 | |
ce2cded5 L |
3335 | fi |
3336 | fi | |
3337 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3338 | if test -n "$ac_ct_CC"; then | |
3339 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3340 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3341 | else | |
3342 | echo "$as_me:$LINENO: result: no" >&5 | |
3343 | echo "${ECHO_T}no" >&6 | |
1b9750d6 | 3344 | fi |
d7040cdb | 3345 | |
ce2cded5 L |
3346 | CC=$ac_ct_CC |
3347 | else | |
3348 | CC="$ac_cv_prog_CC" | |
3349 | fi | |
d7040cdb | 3350 | |
ce2cded5 L |
3351 | if test -z "$CC"; then |
3352 | if test -n "$ac_tool_prefix"; then | |
3353 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3354 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3355 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3357 | if test "${ac_cv_prog_CC+set}" = set; then | |
0ab6f085 | 3358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d7040cdb | 3359 | else |
ce2cded5 L |
3360 | if test -n "$CC"; then |
3361 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
0ab6f085 | 3362 | else |
ce2cded5 L |
3363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3364 | for as_dir in $PATH | |
3365 | do | |
3366 | IFS=$as_save_IFS | |
3367 | test -z "$as_dir" && as_dir=. | |
3368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3369 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3370 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3371 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3372 | break 2 | |
3373 | fi | |
3374 | done | |
3375 | done | |
d7040cdb | 3376 | |
252b5132 RH |
3377 | fi |
3378 | fi | |
ce2cded5 L |
3379 | CC=$ac_cv_prog_CC |
3380 | if test -n "$CC"; then | |
3381 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3382 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3383 | else |
0ab6f085 AM |
3384 | echo "$as_me:$LINENO: result: no" >&5 |
3385 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3386 | fi |
d7040cdb | 3387 | |
252b5132 | 3388 | fi |
ce2cded5 L |
3389 | if test -z "$ac_cv_prog_CC"; then |
3390 | ac_ct_CC=$CC | |
3391 | # Extract the first word of "cc", so it can be a program name with args. | |
3392 | set dummy cc; ac_word=$2 | |
0ab6f085 AM |
3393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3395 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
d7040cdb | 3396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3397 | else |
ce2cded5 L |
3398 | if test -n "$ac_ct_CC"; then |
3399 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3400 | else |
3401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3402 | for as_dir in $PATH | |
3403 | do | |
3404 | IFS=$as_save_IFS | |
3405 | test -z "$as_dir" && as_dir=. | |
3406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 3407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3408 | ac_cv_prog_ac_ct_CC="cc" |
d7040cdb SE |
3409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3410 | break 2 | |
3411 | fi | |
3412 | done | |
3413 | done | |
ac48eca1 | 3414 | |
d7040cdb SE |
3415 | fi |
3416 | fi | |
ce2cded5 L |
3417 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3418 | if test -n "$ac_ct_CC"; then | |
3419 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3420 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3421 | else | |
3422 | echo "$as_me:$LINENO: result: no" >&5 | |
3423 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 3424 | fi |
6be7c12c | 3425 | |
ce2cded5 L |
3426 | CC=$ac_ct_CC |
3427 | else | |
3428 | CC="$ac_cv_prog_CC" | |
3429 | fi | |
3430 | ||
3431 | fi | |
3432 | if test -z "$CC"; then | |
3433 | # Extract the first word of "cc", so it can be a program name with args. | |
3434 | set dummy cc; ac_word=$2 | |
3435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3437 | if test "${ac_cv_prog_CC+set}" = set; then | |
3438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3439 | else | |
3440 | if test -n "$CC"; then | |
3441 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3442 | else | |
3443 | ac_prog_rejected=no | |
3444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3445 | for as_dir in $PATH | |
3446 | do | |
3447 | IFS=$as_save_IFS | |
3448 | test -z "$as_dir" && as_dir=. | |
3449 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3450 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3451 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3452 | ac_prog_rejected=yes | |
3453 | continue | |
3454 | fi | |
3455 | ac_cv_prog_CC="cc" | |
3456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3457 | break 2 | |
3458 | fi | |
3459 | done | |
3460 | done | |
3461 | ||
3462 | if test $ac_prog_rejected = yes; then | |
3463 | # We found a bogon in the path, so make sure we never use it. | |
3464 | set dummy $ac_cv_prog_CC | |
3465 | shift | |
3466 | if test $# != 0; then | |
3467 | # We chose a different compiler from the bogus one. | |
3468 | # However, it has the same basename, so the bogon will be chosen | |
3469 | # first if we set CC to just the basename; use the full file name. | |
3470 | shift | |
3471 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3472 | fi | |
3473 | fi | |
3474 | fi | |
3475 | fi | |
3476 | CC=$ac_cv_prog_CC | |
3477 | if test -n "$CC"; then | |
3478 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3479 | echo "${ECHO_T}$CC" >&6 | |
3480 | else | |
3481 | echo "$as_me:$LINENO: result: no" >&5 | |
3482 | echo "${ECHO_T}no" >&6 | |
3483 | fi | |
3484 | ||
3485 | fi | |
3486 | if test -z "$CC"; then | |
3487 | if test -n "$ac_tool_prefix"; then | |
3488 | for ac_prog in cl | |
3489 | do | |
3490 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3491 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3494 | if test "${ac_cv_prog_CC+set}" = set; then | |
3495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3496 | else | |
3497 | if test -n "$CC"; then | |
3498 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3499 | else | |
3500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3501 | for as_dir in $PATH | |
3502 | do | |
3503 | IFS=$as_save_IFS | |
3504 | test -z "$as_dir" && as_dir=. | |
3505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3507 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3509 | break 2 | |
3510 | fi | |
3511 | done | |
3512 | done | |
3513 | ||
3514 | fi | |
3515 | fi | |
3516 | CC=$ac_cv_prog_CC | |
3517 | if test -n "$CC"; then | |
3518 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3519 | echo "${ECHO_T}$CC" >&6 | |
3520 | else | |
3521 | echo "$as_me:$LINENO: result: no" >&5 | |
3522 | echo "${ECHO_T}no" >&6 | |
3523 | fi | |
3524 | ||
3525 | test -n "$CC" && break | |
d7040cdb SE |
3526 | done |
3527 | fi | |
ce2cded5 L |
3528 | if test -z "$CC"; then |
3529 | ac_ct_CC=$CC | |
3530 | for ac_prog in cl | |
d7040cdb SE |
3531 | do |
3532 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3533 | set dummy $ac_prog; ac_word=$2 | |
0ab6f085 AM |
3534 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3536 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
d7040cdb SE |
3537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3538 | else | |
ce2cded5 L |
3539 | if test -n "$ac_ct_CC"; then |
3540 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3541 | else |
3542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3543 | for as_dir in $PATH | |
3544 | do | |
3545 | IFS=$as_save_IFS | |
3546 | test -z "$as_dir" && as_dir=. | |
3547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 3548 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3549 | ac_cv_prog_ac_ct_CC="$ac_prog" |
d7040cdb SE |
3550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3551 | break 2 | |
ac48eca1 | 3552 | fi |
d7040cdb SE |
3553 | done |
3554 | done | |
ac48eca1 | 3555 | |
d7040cdb SE |
3556 | fi |
3557 | fi | |
ce2cded5 L |
3558 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3559 | if test -n "$ac_ct_CC"; then | |
3560 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3561 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
d7040cdb | 3562 | else |
0ab6f085 AM |
3563 | echo "$as_me:$LINENO: result: no" >&5 |
3564 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 3565 | fi |
ac48eca1 | 3566 | |
ce2cded5 | 3567 | test -n "$ac_ct_CC" && break |
d7040cdb | 3568 | done |
ac48eca1 | 3569 | |
ce2cded5 | 3570 | CC=$ac_ct_CC |
d7040cdb | 3571 | fi |
ac48eca1 | 3572 | |
d7040cdb | 3573 | fi |
ac48eca1 | 3574 | |
ac48eca1 | 3575 | |
7a283e07 RW |
3576 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3577 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3578 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ce2cded5 L |
3579 | See \`config.log' for more details." >&5 |
3580 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3581 | See \`config.log' for more details." >&2;} | |
7a283e07 | 3582 | { (exit 1); exit 1; }; }; } |
6be7c12c | 3583 | |
ce2cded5 L |
3584 | # Provide some information about the compiler. |
3585 | echo "$as_me:$LINENO:" \ | |
3586 | "checking for C compiler version" >&5 | |
3587 | ac_compiler=`set X $ac_compile; echo $2` | |
3588 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3589 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3590 | ac_status=$? | |
3591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3592 | (exit $ac_status); } | |
3593 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3594 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3595 | ac_status=$? | |
3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3597 | (exit $ac_status); } | |
3598 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3599 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3600 | ac_status=$? | |
3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3602 | (exit $ac_status); } | |
ac48eca1 | 3603 | |
ce2cded5 L |
3604 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3605 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3606 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
d7040cdb SE |
3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3608 | else | |
ce2cded5 L |
3609 | cat >conftest.$ac_ext <<_ACEOF |
3610 | /* confdefs.h. */ | |
3611 | _ACEOF | |
3612 | cat confdefs.h >>conftest.$ac_ext | |
3613 | cat >>conftest.$ac_ext <<_ACEOF | |
3614 | /* end confdefs.h. */ | |
ac48eca1 | 3615 | |
ce2cded5 L |
3616 | int |
3617 | main () | |
3618 | { | |
3619 | #ifndef __GNUC__ | |
3620 | choke me | |
3621 | #endif | |
3622 | ||
3623 | ; | |
3624 | return 0; | |
3625 | } | |
3626 | _ACEOF | |
3627 | rm -f conftest.$ac_objext | |
3628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3629 | (eval $ac_compile) 2>conftest.er1 | |
3630 | ac_status=$? | |
3631 | grep -v '^ *+' conftest.er1 >conftest.err | |
3632 | rm -f conftest.er1 | |
3633 | cat conftest.err >&5 | |
3634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3635 | (exit $ac_status); } && | |
3636 | { ac_try='test -z "$ac_c_werror_flag" | |
3637 | || test ! -s conftest.err' | |
3638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3639 | (eval $ac_try) 2>&5 | |
3640 | ac_status=$? | |
3641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3642 | (exit $ac_status); }; } && | |
3643 | { ac_try='test -s conftest.$ac_objext' | |
3644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3645 | (eval $ac_try) 2>&5 | |
3646 | ac_status=$? | |
3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3648 | (exit $ac_status); }; }; then | |
3649 | ac_compiler_gnu=yes | |
d7040cdb | 3650 | else |
ce2cded5 L |
3651 | echo "$as_me: failed program was:" >&5 |
3652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3653 | ||
3654 | ac_compiler_gnu=no | |
d7040cdb | 3655 | fi |
ce2cded5 L |
3656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3657 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
ac48eca1 | 3658 | |
ce2cded5 L |
3659 | fi |
3660 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3661 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3662 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3663 | ac_test_CFLAGS=${CFLAGS+set} | |
3664 | ac_save_CFLAGS=$CFLAGS | |
3665 | CFLAGS="-g" | |
3666 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3667 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3668 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
108a6f8e CD |
3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3670 | else | |
ce2cded5 L |
3671 | cat >conftest.$ac_ext <<_ACEOF |
3672 | /* confdefs.h. */ | |
3673 | _ACEOF | |
3674 | cat confdefs.h >>conftest.$ac_ext | |
3675 | cat >>conftest.$ac_ext <<_ACEOF | |
3676 | /* end confdefs.h. */ | |
d7040cdb | 3677 | |
ce2cded5 L |
3678 | int |
3679 | main () | |
3680 | { | |
d7040cdb | 3681 | |
ce2cded5 L |
3682 | ; |
3683 | return 0; | |
3684 | } | |
3685 | _ACEOF | |
3686 | rm -f conftest.$ac_objext | |
3687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3688 | (eval $ac_compile) 2>conftest.er1 | |
3689 | ac_status=$? | |
3690 | grep -v '^ *+' conftest.er1 >conftest.err | |
3691 | rm -f conftest.er1 | |
3692 | cat conftest.err >&5 | |
3693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3694 | (exit $ac_status); } && | |
3695 | { ac_try='test -z "$ac_c_werror_flag" | |
3696 | || test ! -s conftest.err' | |
3697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3698 | (eval $ac_try) 2>&5 | |
3699 | ac_status=$? | |
3700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3701 | (exit $ac_status); }; } && | |
3702 | { ac_try='test -s conftest.$ac_objext' | |
3703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3704 | (eval $ac_try) 2>&5 | |
3705 | ac_status=$? | |
3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3707 | (exit $ac_status); }; }; then | |
3708 | ac_cv_prog_cc_g=yes | |
3709 | else | |
3710 | echo "$as_me: failed program was:" >&5 | |
3711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
108a6f8e | 3712 | |
ce2cded5 | 3713 | ac_cv_prog_cc_g=no |
108a6f8e | 3714 | fi |
ce2cded5 | 3715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
108a6f8e | 3716 | fi |
ce2cded5 L |
3717 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3718 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3719 | if test "$ac_test_CFLAGS" = set; then | |
3720 | CFLAGS=$ac_save_CFLAGS | |
3721 | elif test $ac_cv_prog_cc_g = yes; then | |
3722 | if test "$GCC" = yes; then | |
3723 | CFLAGS="-g -O2" | |
3724 | else | |
3725 | CFLAGS="-g" | |
3726 | fi | |
ac48eca1 | 3727 | else |
ce2cded5 L |
3728 | if test "$GCC" = yes; then |
3729 | CFLAGS="-O2" | |
3730 | else | |
3731 | CFLAGS= | |
3732 | fi | |
ac48eca1 | 3733 | fi |
ce2cded5 L |
3734 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3735 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3736 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
6bf9431b | 3737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3738 | else |
ce2cded5 L |
3739 | ac_cv_prog_cc_stdc=no |
3740 | ac_save_CC=$CC | |
3741 | cat >conftest.$ac_ext <<_ACEOF | |
3742 | /* confdefs.h. */ | |
3743 | _ACEOF | |
3744 | cat confdefs.h >>conftest.$ac_ext | |
3745 | cat >>conftest.$ac_ext <<_ACEOF | |
3746 | /* end confdefs.h. */ | |
3747 | #include <stdarg.h> | |
3748 | #include <stdio.h> | |
3749 | #include <sys/types.h> | |
3750 | #include <sys/stat.h> | |
3751 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3752 | struct buf { int x; }; | |
3753 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3754 | static char *e (p, i) | |
3755 | char **p; | |
3756 | int i; | |
3757 | { | |
3758 | return p[i]; | |
3759 | } | |
3760 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3761 | { | |
3762 | char *s; | |
3763 | va_list v; | |
3764 | va_start (v,p); | |
3765 | s = g (p, va_arg (v,int)); | |
3766 | va_end (v); | |
3767 | return s; | |
3768 | } | |
d7040cdb | 3769 | |
ce2cded5 L |
3770 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3771 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3772 | These don't provoke an error unfortunately, instead are silently treated | |
3773 | as 'x'. The following induces an error, until -std1 is added to get | |
3774 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3775 | array size at least. It's necessary to write '\x00'==0 to get something | |
3776 | that's true only with -std1. */ | |
3777 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
d7040cdb | 3778 | |
ce2cded5 L |
3779 | int test (int i, double x); |
3780 | struct s1 {int (*f) (int a);}; | |
3781 | struct s2 {int (*f) (double a);}; | |
3782 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3783 | int argc; | |
3784 | char **argv; | |
3785 | int | |
3786 | main () | |
3787 | { | |
3788 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3789 | ; | |
3790 | return 0; | |
3791 | } | |
3792 | _ACEOF | |
3793 | # Don't try gcc -ansi; that turns off useful extensions and | |
3794 | # breaks some systems' header files. | |
3795 | # AIX -qlanglvl=ansi | |
3796 | # Ultrix and OSF/1 -std1 | |
3797 | # HP-UX 10.20 and later -Ae | |
3798 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3799 | # SVR4 -Xc -D__EXTENSIONS__ | |
3800 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3801 | do | |
3802 | CC="$ac_save_CC $ac_arg" | |
3803 | rm -f conftest.$ac_objext | |
3804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3805 | (eval $ac_compile) 2>conftest.er1 | |
3806 | ac_status=$? | |
3807 | grep -v '^ *+' conftest.er1 >conftest.err | |
3808 | rm -f conftest.er1 | |
3809 | cat conftest.err >&5 | |
3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3811 | (exit $ac_status); } && | |
3812 | { ac_try='test -z "$ac_c_werror_flag" | |
3813 | || test ! -s conftest.err' | |
3814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3815 | (eval $ac_try) 2>&5 | |
3816 | ac_status=$? | |
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3818 | (exit $ac_status); }; } && | |
3819 | { ac_try='test -s conftest.$ac_objext' | |
3820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3821 | (eval $ac_try) 2>&5 | |
3822 | ac_status=$? | |
3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3824 | (exit $ac_status); }; }; then | |
3825 | ac_cv_prog_cc_stdc=$ac_arg | |
3826 | break | |
3827 | else | |
3828 | echo "$as_me: failed program was:" >&5 | |
3829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3830 | |
ce2cded5 L |
3831 | fi |
3832 | rm -f conftest.err conftest.$ac_objext | |
3833 | done | |
3834 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3835 | CC=$ac_save_CC | |
d7040cdb | 3836 | |
ce2cded5 | 3837 | fi |
d7040cdb | 3838 | |
ce2cded5 L |
3839 | case "x$ac_cv_prog_cc_stdc" in |
3840 | x|xno) | |
3841 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3842 | echo "${ECHO_T}none needed" >&6 ;; | |
3843 | *) | |
3844 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3845 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3846 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3847 | esac | |
d7040cdb | 3848 | |
ce2cded5 L |
3849 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3850 | # in C++ we need to declare it. In case someone uses the same compiler | |
3851 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3852 | # the declaration of exit, since it's the most demanding environment. | |
3853 | cat >conftest.$ac_ext <<_ACEOF | |
3854 | #ifndef __cplusplus | |
3855 | choke me | |
3856 | #endif | |
3857 | _ACEOF | |
3858 | rm -f conftest.$ac_objext | |
3859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3860 | (eval $ac_compile) 2>conftest.er1 | |
3861 | ac_status=$? | |
3862 | grep -v '^ *+' conftest.er1 >conftest.err | |
3863 | rm -f conftest.er1 | |
3864 | cat conftest.err >&5 | |
3865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3866 | (exit $ac_status); } && | |
3867 | { ac_try='test -z "$ac_c_werror_flag" | |
3868 | || test ! -s conftest.err' | |
3869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3870 | (eval $ac_try) 2>&5 | |
3871 | ac_status=$? | |
3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3873 | (exit $ac_status); }; } && | |
3874 | { ac_try='test -s conftest.$ac_objext' | |
3875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3876 | (eval $ac_try) 2>&5 | |
3877 | ac_status=$? | |
3878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3879 | (exit $ac_status); }; }; then | |
3880 | for ac_declaration in \ | |
3881 | '' \ | |
3882 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3883 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3884 | 'extern "C" void exit (int) throw ();' \ | |
3885 | 'extern "C" void exit (int);' \ | |
3886 | 'void exit (int);' | |
3887 | do | |
3888 | cat >conftest.$ac_ext <<_ACEOF | |
3889 | /* confdefs.h. */ | |
3890 | _ACEOF | |
3891 | cat confdefs.h >>conftest.$ac_ext | |
3892 | cat >>conftest.$ac_ext <<_ACEOF | |
3893 | /* end confdefs.h. */ | |
3894 | $ac_declaration | |
3895 | #include <stdlib.h> | |
3896 | int | |
3897 | main () | |
3898 | { | |
3899 | exit (42); | |
3900 | ; | |
3901 | return 0; | |
3902 | } | |
3903 | _ACEOF | |
3904 | rm -f conftest.$ac_objext | |
3905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3906 | (eval $ac_compile) 2>conftest.er1 | |
3907 | ac_status=$? | |
3908 | grep -v '^ *+' conftest.er1 >conftest.err | |
3909 | rm -f conftest.er1 | |
3910 | cat conftest.err >&5 | |
3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3912 | (exit $ac_status); } && | |
3913 | { ac_try='test -z "$ac_c_werror_flag" | |
3914 | || test ! -s conftest.err' | |
3915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3916 | (eval $ac_try) 2>&5 | |
3917 | ac_status=$? | |
3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3919 | (exit $ac_status); }; } && | |
3920 | { ac_try='test -s conftest.$ac_objext' | |
3921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3922 | (eval $ac_try) 2>&5 | |
3923 | ac_status=$? | |
3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3925 | (exit $ac_status); }; }; then | |
3926 | : | |
3927 | else | |
3928 | echo "$as_me: failed program was:" >&5 | |
3929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3930 | |
ce2cded5 L |
3931 | continue |
3932 | fi | |
3933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3934 | cat >conftest.$ac_ext <<_ACEOF | |
3935 | /* confdefs.h. */ | |
3936 | _ACEOF | |
3937 | cat confdefs.h >>conftest.$ac_ext | |
3938 | cat >>conftest.$ac_ext <<_ACEOF | |
3939 | /* end confdefs.h. */ | |
3940 | $ac_declaration | |
3941 | int | |
3942 | main () | |
3943 | { | |
3944 | exit (42); | |
3945 | ; | |
3946 | return 0; | |
3947 | } | |
3948 | _ACEOF | |
3949 | rm -f conftest.$ac_objext | |
3950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3951 | (eval $ac_compile) 2>conftest.er1 | |
3952 | ac_status=$? | |
3953 | grep -v '^ *+' conftest.er1 >conftest.err | |
3954 | rm -f conftest.er1 | |
3955 | cat conftest.err >&5 | |
3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3957 | (exit $ac_status); } && | |
3958 | { ac_try='test -z "$ac_c_werror_flag" | |
3959 | || test ! -s conftest.err' | |
3960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3961 | (eval $ac_try) 2>&5 | |
3962 | ac_status=$? | |
3963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3964 | (exit $ac_status); }; } && | |
3965 | { ac_try='test -s conftest.$ac_objext' | |
3966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3967 | (eval $ac_try) 2>&5 | |
3968 | ac_status=$? | |
3969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3970 | (exit $ac_status); }; }; then | |
3971 | break | |
3972 | else | |
3973 | echo "$as_me: failed program was:" >&5 | |
3974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3975 | |
ce2cded5 L |
3976 | fi |
3977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3978 | done | |
3979 | rm -f conftest* | |
3980 | if test -n "$ac_declaration"; then | |
3981 | echo '#ifdef __cplusplus' >>confdefs.h | |
3982 | echo $ac_declaration >>confdefs.h | |
3983 | echo '#endif' >>confdefs.h | |
3984 | fi | |
d7040cdb | 3985 | |
d7040cdb | 3986 | else |
ce2cded5 L |
3987 | echo "$as_me: failed program was:" >&5 |
3988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3989 | |
ce2cded5 L |
3990 | fi |
3991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3992 | ac_ext=c | |
3993 | ac_cpp='$CPP $CPPFLAGS' | |
3994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 3997 | |
d7040cdb | 3998 | |
ce2cded5 L |
3999 | cat >>confdefs.h <<\_ACEOF |
4000 | #define _GNU_SOURCE 1 | |
4001 | _ACEOF | |
d7040cdb | 4002 | |
d7040cdb | 4003 | |
7357c5b6 AM |
4004 | ac_ext=c |
4005 | ac_cpp='$CPP $CPPFLAGS' | |
4006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4009 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4010 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4011 | # On Suns, sometimes $CPP names a directory. | |
4012 | if test -n "$CPP" && test -d "$CPP"; then | |
4013 | CPP= | |
4014 | fi | |
4015 | if test -z "$CPP"; then | |
4016 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ce2cded5 L |
4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4018 | else | |
7357c5b6 AM |
4019 | # Double quotes because CPP needs to be expanded |
4020 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4021 | do | |
4022 | ac_preproc_ok=false | |
4023 | for ac_c_preproc_warn_flag in '' yes | |
ce2cded5 | 4024 | do |
7357c5b6 AM |
4025 | # Use a header file that comes with gcc, so configuring glibc |
4026 | # with a fresh cross-compiler works. | |
4027 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4028 | # <limits.h> exists even on freestanding compilers. | |
4029 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4030 | # not just through cpp. "Syntax error" is here to catch this case. | |
4031 | cat >conftest.$ac_ext <<_ACEOF | |
4032 | /* confdefs.h. */ | |
4033 | _ACEOF | |
4034 | cat confdefs.h >>conftest.$ac_ext | |
4035 | cat >>conftest.$ac_ext <<_ACEOF | |
4036 | /* end confdefs.h. */ | |
4037 | #ifdef __STDC__ | |
4038 | # include <limits.h> | |
4039 | #else | |
4040 | # include <assert.h> | |
4041 | #endif | |
4042 | Syntax error | |
4043 | _ACEOF | |
4044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4046 | ac_status=$? | |
4047 | grep -v '^ *+' conftest.er1 >conftest.err | |
4048 | rm -f conftest.er1 | |
4049 | cat conftest.err >&5 | |
4050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4051 | (exit $ac_status); } >/dev/null; then | |
4052 | if test -s conftest.err; then | |
4053 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
d7040cdb | 4055 | else |
7357c5b6 | 4056 | ac_cpp_err= |
d7040cdb | 4057 | fi |
ac48eca1 | 4058 | else |
7357c5b6 AM |
4059 | ac_cpp_err=yes |
4060 | fi | |
4061 | if test -z "$ac_cpp_err"; then | |
4062 | : | |
ac48eca1 | 4063 | else |
7357c5b6 AM |
4064 | echo "$as_me: failed program was:" >&5 |
4065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 4066 | |
7357c5b6 AM |
4067 | # Broken: fails on valid input. |
4068 | continue | |
4069 | fi | |
4070 | rm -f conftest.err conftest.$ac_ext | |
ce2cded5 | 4071 | |
7357c5b6 AM |
4072 | # OK, works on sane cases. Now check whether non-existent headers |
4073 | # can be detected and how. | |
4074 | cat >conftest.$ac_ext <<_ACEOF | |
4075 | /* confdefs.h. */ | |
4076 | _ACEOF | |
4077 | cat confdefs.h >>conftest.$ac_ext | |
4078 | cat >>conftest.$ac_ext <<_ACEOF | |
4079 | /* end confdefs.h. */ | |
4080 | #include <ac_nonexistent.h> | |
4081 | _ACEOF | |
4082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4084 | ac_status=$? | |
4085 | grep -v '^ *+' conftest.er1 >conftest.err | |
4086 | rm -f conftest.er1 | |
4087 | cat conftest.err >&5 | |
4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4089 | (exit $ac_status); } >/dev/null; then | |
4090 | if test -s conftest.err; then | |
4091 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4093 | else | |
4094 | ac_cpp_err= | |
6bf9431b | 4095 | fi |
7357c5b6 AM |
4096 | else |
4097 | ac_cpp_err=yes | |
6bf9431b | 4098 | fi |
7357c5b6 AM |
4099 | if test -z "$ac_cpp_err"; then |
4100 | # Broken: success on invalid input. | |
4101 | continue | |
4102 | else | |
4103 | echo "$as_me: failed program was:" >&5 | |
4104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 4105 | |
7357c5b6 AM |
4106 | # Passes both tests. |
4107 | ac_preproc_ok=: | |
4108 | break | |
4109 | fi | |
4110 | rm -f conftest.err conftest.$ac_ext | |
6bf9431b | 4111 | |
7357c5b6 AM |
4112 | done |
4113 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4114 | rm -f conftest.err conftest.$ac_ext | |
4115 | if $ac_preproc_ok; then | |
4116 | break | |
4117 | fi | |
6bf9431b | 4118 | |
7357c5b6 AM |
4119 | done |
4120 | ac_cv_prog_CPP=$CPP | |
252b5132 | 4121 | |
7357c5b6 AM |
4122 | fi |
4123 | CPP=$ac_cv_prog_CPP | |
4124 | else | |
4125 | ac_cv_prog_CPP=$CPP | |
4126 | fi | |
4127 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4128 | echo "${ECHO_T}$CPP" >&6 | |
4129 | ac_preproc_ok=false | |
4130 | for ac_c_preproc_warn_flag in '' yes | |
4131 | do | |
4132 | # Use a header file that comes with gcc, so configuring glibc | |
4133 | # with a fresh cross-compiler works. | |
4134 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4135 | # <limits.h> exists even on freestanding compilers. | |
4136 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4137 | # not just through cpp. "Syntax error" is here to catch this case. | |
4138 | cat >conftest.$ac_ext <<_ACEOF | |
4139 | /* confdefs.h. */ | |
4140 | _ACEOF | |
4141 | cat confdefs.h >>conftest.$ac_ext | |
4142 | cat >>conftest.$ac_ext <<_ACEOF | |
4143 | /* end confdefs.h. */ | |
4144 | #ifdef __STDC__ | |
4145 | # include <limits.h> | |
4146 | #else | |
4147 | # include <assert.h> | |
4148 | #endif | |
4149 | Syntax error | |
4150 | _ACEOF | |
4151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4153 | ac_status=$? | |
4154 | grep -v '^ *+' conftest.er1 >conftest.err | |
4155 | rm -f conftest.er1 | |
4156 | cat conftest.err >&5 | |
4157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4158 | (exit $ac_status); } >/dev/null; then | |
4159 | if test -s conftest.err; then | |
4160 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4161 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4162 | else | |
4163 | ac_cpp_err= | |
4164 | fi | |
4165 | else | |
4166 | ac_cpp_err=yes | |
4167 | fi | |
4168 | if test -z "$ac_cpp_err"; then | |
4169 | : | |
4170 | else | |
4171 | echo "$as_me: failed program was:" >&5 | |
4172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 4173 | |
7357c5b6 AM |
4174 | # Broken: fails on valid input. |
4175 | continue | |
4176 | fi | |
4177 | rm -f conftest.err conftest.$ac_ext | |
252b5132 | 4178 | |
7357c5b6 AM |
4179 | # OK, works on sane cases. Now check whether non-existent headers |
4180 | # can be detected and how. | |
4181 | cat >conftest.$ac_ext <<_ACEOF | |
4182 | /* confdefs.h. */ | |
4183 | _ACEOF | |
4184 | cat confdefs.h >>conftest.$ac_ext | |
4185 | cat >>conftest.$ac_ext <<_ACEOF | |
4186 | /* end confdefs.h. */ | |
4187 | #include <ac_nonexistent.h> | |
4188 | _ACEOF | |
4189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4191 | ac_status=$? | |
4192 | grep -v '^ *+' conftest.er1 >conftest.err | |
4193 | rm -f conftest.er1 | |
4194 | cat conftest.err >&5 | |
4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4196 | (exit $ac_status); } >/dev/null; then | |
4197 | if test -s conftest.err; then | |
4198 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4200 | else | |
4201 | ac_cpp_err= | |
4202 | fi | |
4203 | else | |
4204 | ac_cpp_err=yes | |
4205 | fi | |
4206 | if test -z "$ac_cpp_err"; then | |
4207 | # Broken: success on invalid input. | |
4208 | continue | |
4209 | else | |
4210 | echo "$as_me: failed program was:" >&5 | |
4211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 4212 | |
7357c5b6 AM |
4213 | # Passes both tests. |
4214 | ac_preproc_ok=: | |
4215 | break | |
4216 | fi | |
4217 | rm -f conftest.err conftest.$ac_ext | |
252b5132 | 4218 | |
7357c5b6 AM |
4219 | done |
4220 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4221 | rm -f conftest.err conftest.$ac_ext | |
4222 | if $ac_preproc_ok; then | |
4223 | : | |
4224 | else | |
4225 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
4226 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4227 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4228 | See \`config.log' for more details." >&5 | |
4229 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4230 | See \`config.log' for more details." >&2;} | |
4231 | { (exit 1); exit 1; }; }; } | |
4232 | fi | |
6bf9431b | 4233 | |
7357c5b6 AM |
4234 | ac_ext=c |
4235 | ac_cpp='$CPP $CPPFLAGS' | |
4236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
252b5132 | 4239 | |
252b5132 | 4240 | |
ce2cded5 L |
4241 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4242 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4243 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4245 | else | |
4246 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4247 | then ac_cv_prog_egrep='grep -E' | |
4248 | else ac_cv_prog_egrep='egrep' | |
4249 | fi | |
4250 | fi | |
4251 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4252 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4253 | EGREP=$ac_cv_prog_egrep | |
4254 | ||
6bf9431b | 4255 | |
7357c5b6 AM |
4256 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4257 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4258 | if test "${ac_cv_header_stdc+set}" = set; then | |
4259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4260 | else | |
4261 | cat >conftest.$ac_ext <<_ACEOF | |
4262 | /* confdefs.h. */ | |
4263 | _ACEOF | |
4264 | cat confdefs.h >>conftest.$ac_ext | |
4265 | cat >>conftest.$ac_ext <<_ACEOF | |
4266 | /* end confdefs.h. */ | |
4267 | #include <stdlib.h> | |
4268 | #include <stdarg.h> | |
4269 | #include <string.h> | |
4270 | #include <float.h> | |
4271 | ||
4272 | int | |
4273 | main () | |
4274 | { | |
4275 | ||
4276 | ; | |
4277 | return 0; | |
4278 | } | |
4279 | _ACEOF | |
4280 | rm -f conftest.$ac_objext | |
4281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4282 | (eval $ac_compile) 2>conftest.er1 | |
4283 | ac_status=$? | |
4284 | grep -v '^ *+' conftest.er1 >conftest.err | |
4285 | rm -f conftest.er1 | |
4286 | cat conftest.err >&5 | |
4287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4288 | (exit $ac_status); } && | |
4289 | { ac_try='test -z "$ac_c_werror_flag" | |
4290 | || test ! -s conftest.err' | |
4291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4292 | (eval $ac_try) 2>&5 | |
4293 | ac_status=$? | |
4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4295 | (exit $ac_status); }; } && | |
4296 | { ac_try='test -s conftest.$ac_objext' | |
4297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4298 | (eval $ac_try) 2>&5 | |
4299 | ac_status=$? | |
4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4301 | (exit $ac_status); }; }; then | |
4302 | ac_cv_header_stdc=yes | |
4303 | else | |
4304 | echo "$as_me: failed program was:" >&5 | |
4305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4306 | ||
4307 | ac_cv_header_stdc=no | |
4308 | fi | |
4309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4310 | ||
4311 | if test $ac_cv_header_stdc = yes; then | |
4312 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4313 | cat >conftest.$ac_ext <<_ACEOF | |
4314 | /* confdefs.h. */ | |
4315 | _ACEOF | |
4316 | cat confdefs.h >>conftest.$ac_ext | |
4317 | cat >>conftest.$ac_ext <<_ACEOF | |
4318 | /* end confdefs.h. */ | |
4319 | #include <string.h> | |
4320 | ||
4321 | _ACEOF | |
4322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4323 | $EGREP "memchr" >/dev/null 2>&1; then | |
4324 | : | |
4325 | else | |
4326 | ac_cv_header_stdc=no | |
4327 | fi | |
4328 | rm -f conftest* | |
4329 | ||
4330 | fi | |
4331 | ||
4332 | if test $ac_cv_header_stdc = yes; then | |
4333 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4334 | cat >conftest.$ac_ext <<_ACEOF | |
4335 | /* confdefs.h. */ | |
4336 | _ACEOF | |
4337 | cat confdefs.h >>conftest.$ac_ext | |
4338 | cat >>conftest.$ac_ext <<_ACEOF | |
4339 | /* end confdefs.h. */ | |
4340 | #include <stdlib.h> | |
4341 | ||
4342 | _ACEOF | |
4343 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4344 | $EGREP "free" >/dev/null 2>&1; then | |
4345 | : | |
4346 | else | |
4347 | ac_cv_header_stdc=no | |
4348 | fi | |
4349 | rm -f conftest* | |
4350 | ||
4351 | fi | |
4352 | ||
4353 | if test $ac_cv_header_stdc = yes; then | |
4354 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4355 | if test "$cross_compiling" = yes; then | |
4356 | : | |
ce2cded5 | 4357 | else |
7357c5b6 AM |
4358 | cat >conftest.$ac_ext <<_ACEOF |
4359 | /* confdefs.h. */ | |
4360 | _ACEOF | |
4361 | cat confdefs.h >>conftest.$ac_ext | |
4362 | cat >>conftest.$ac_ext <<_ACEOF | |
4363 | /* end confdefs.h. */ | |
4364 | #include <ctype.h> | |
4365 | #if ((' ' & 0x0FF) == 0x020) | |
4366 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4367 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4368 | #else | |
4369 | # define ISLOWER(c) \ | |
4370 | (('a' <= (c) && (c) <= 'i') \ | |
4371 | || ('j' <= (c) && (c) <= 'r') \ | |
4372 | || ('s' <= (c) && (c) <= 'z')) | |
4373 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4374 | #endif | |
6bf9431b | 4375 | |
7357c5b6 AM |
4376 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4377 | int | |
4378 | main () | |
4379 | { | |
4380 | int i; | |
4381 | for (i = 0; i < 256; i++) | |
4382 | if (XOR (islower (i), ISLOWER (i)) | |
4383 | || toupper (i) != TOUPPER (i)) | |
4384 | exit(2); | |
4385 | exit (0); | |
4386 | } | |
4387 | _ACEOF | |
4388 | rm -f conftest$ac_exeext | |
4389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4390 | (eval $ac_link) 2>&5 | |
4391 | ac_status=$? | |
4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4395 | (eval $ac_try) 2>&5 | |
4396 | ac_status=$? | |
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4398 | (exit $ac_status); }; }; then | |
4399 | : | |
4400 | else | |
4401 | echo "$as_me: program exited with status $ac_status" >&5 | |
4402 | echo "$as_me: failed program was:" >&5 | |
4403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 4404 | |
7357c5b6 AM |
4405 | ( exit $ac_status ) |
4406 | ac_cv_header_stdc=no | |
4407 | fi | |
4408 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4409 | fi | |
4410 | fi | |
4411 | fi | |
4412 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4413 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4414 | if test $ac_cv_header_stdc = yes; then | |
6bf9431b | 4415 | |
7357c5b6 AM |
4416 | cat >>confdefs.h <<\_ACEOF |
4417 | #define STDC_HEADERS 1 | |
4418 | _ACEOF | |
d7040cdb | 4419 | |
7357c5b6 | 4420 | fi |
d7040cdb | 4421 | |
7357c5b6 | 4422 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d7040cdb SE |
4423 | |
4424 | ||
4425 | ||
4426 | ||
4427 | ||
4428 | ||
4429 | ||
4430 | ||
4431 | ||
7357c5b6 AM |
4432 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4433 | inttypes.h stdint.h unistd.h | |
4434 | do | |
4435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4436 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4438 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4440 | else | |
4441 | cat >conftest.$ac_ext <<_ACEOF | |
4442 | /* confdefs.h. */ | |
4443 | _ACEOF | |
4444 | cat confdefs.h >>conftest.$ac_ext | |
4445 | cat >>conftest.$ac_ext <<_ACEOF | |
4446 | /* end confdefs.h. */ | |
4447 | $ac_includes_default | |
d7040cdb | 4448 | |
7357c5b6 AM |
4449 | #include <$ac_header> |
4450 | _ACEOF | |
4451 | rm -f conftest.$ac_objext | |
4452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4453 | (eval $ac_compile) 2>conftest.er1 | |
4454 | ac_status=$? | |
4455 | grep -v '^ *+' conftest.er1 >conftest.err | |
4456 | rm -f conftest.er1 | |
4457 | cat conftest.err >&5 | |
4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4459 | (exit $ac_status); } && | |
4460 | { ac_try='test -z "$ac_c_werror_flag" | |
4461 | || test ! -s conftest.err' | |
4462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4463 | (eval $ac_try) 2>&5 | |
4464 | ac_status=$? | |
4465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4466 | (exit $ac_status); }; } && | |
4467 | { ac_try='test -s conftest.$ac_objext' | |
4468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4469 | (eval $ac_try) 2>&5 | |
4470 | ac_status=$? | |
4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4472 | (exit $ac_status); }; }; then | |
4473 | eval "$as_ac_Header=yes" | |
4474 | else | |
4475 | echo "$as_me: failed program was:" >&5 | |
4476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4477 | |
7357c5b6 AM |
4478 | eval "$as_ac_Header=no" |
4479 | fi | |
4480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4481 | fi | |
4482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4484 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4485 | cat >>confdefs.h <<_ACEOF | |
4486 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4487 | _ACEOF | |
d7040cdb | 4488 | |
7357c5b6 | 4489 | fi |
d7040cdb | 4490 | |
7357c5b6 | 4491 | done |
d7040cdb SE |
4492 | |
4493 | ||
4494 | ||
7357c5b6 AM |
4495 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4496 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4497 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4498 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4500 | fi | |
4501 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4502 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
ce2cded5 | 4503 | else |
7357c5b6 AM |
4504 | # Is the header compilable? |
4505 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4506 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
4507 | cat >conftest.$ac_ext <<_ACEOF | |
4508 | /* confdefs.h. */ | |
4509 | _ACEOF | |
4510 | cat confdefs.h >>conftest.$ac_ext | |
4511 | cat >>conftest.$ac_ext <<_ACEOF | |
4512 | /* end confdefs.h. */ | |
4513 | $ac_includes_default | |
4514 | #include <minix/config.h> | |
4515 | _ACEOF | |
4516 | rm -f conftest.$ac_objext | |
4517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4518 | (eval $ac_compile) 2>conftest.er1 | |
4519 | ac_status=$? | |
4520 | grep -v '^ *+' conftest.er1 >conftest.err | |
4521 | rm -f conftest.er1 | |
4522 | cat conftest.err >&5 | |
4523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4524 | (exit $ac_status); } && | |
4525 | { ac_try='test -z "$ac_c_werror_flag" | |
4526 | || test ! -s conftest.err' | |
4527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4528 | (eval $ac_try) 2>&5 | |
4529 | ac_status=$? | |
4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4531 | (exit $ac_status); }; } && | |
4532 | { ac_try='test -s conftest.$ac_objext' | |
4533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4534 | (eval $ac_try) 2>&5 | |
4535 | ac_status=$? | |
4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4537 | (exit $ac_status); }; }; then | |
4538 | ac_header_compiler=yes | |
ce2cded5 | 4539 | else |
7357c5b6 AM |
4540 | echo "$as_me: failed program was:" >&5 |
4541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4542 | ||
4543 | ac_header_compiler=no | |
ce2cded5 | 4544 | fi |
7357c5b6 AM |
4545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4546 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4547 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4548 | ||
4549 | # Is the header present? | |
4550 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4551 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
4552 | cat >conftest.$ac_ext <<_ACEOF | |
4553 | /* confdefs.h. */ | |
4554 | _ACEOF | |
4555 | cat confdefs.h >>conftest.$ac_ext | |
4556 | cat >>conftest.$ac_ext <<_ACEOF | |
4557 | /* end confdefs.h. */ | |
4558 | #include <minix/config.h> | |
4559 | _ACEOF | |
4560 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4561 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4562 | ac_status=$? | |
4563 | grep -v '^ *+' conftest.er1 >conftest.err | |
4564 | rm -f conftest.er1 | |
4565 | cat conftest.err >&5 | |
4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4567 | (exit $ac_status); } >/dev/null; then | |
4568 | if test -s conftest.err; then | |
4569 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4570 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4571 | else | |
4572 | ac_cpp_err= | |
4573 | fi | |
ce2cded5 | 4574 | else |
7357c5b6 | 4575 | ac_cpp_err=yes |
ce2cded5 | 4576 | fi |
7357c5b6 AM |
4577 | if test -z "$ac_cpp_err"; then |
4578 | ac_header_preproc=yes | |
ce2cded5 | 4579 | else |
7357c5b6 AM |
4580 | echo "$as_me: failed program was:" >&5 |
4581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4582 | ||
4583 | ac_header_preproc=no | |
ce2cded5 | 4584 | fi |
7357c5b6 AM |
4585 | rm -f conftest.err conftest.$ac_ext |
4586 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4587 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4588 | ||
4589 | # So? What about this header? | |
4590 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4591 | yes:no: ) | |
4592 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4593 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4594 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4595 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4596 | ac_header_preproc=yes | |
4597 | ;; | |
4598 | no:yes:* ) | |
4599 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4600 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4601 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4602 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4603 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4604 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4605 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4606 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4607 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4608 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4609 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4610 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4611 | ( | |
4612 | cat <<\_ASBOX | |
4613 | ## ------------------------------------------ ## | |
4614 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4615 | ## ------------------------------------------ ## | |
4616 | _ASBOX | |
4617 | ) | | |
4618 | sed "s/^/$as_me: WARNING: /" >&2 | |
4619 | ;; | |
4620 | esac | |
4621 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4622 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4623 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
ce2cded5 L |
4624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4625 | else | |
7357c5b6 | 4626 | ac_cv_header_minix_config_h=$ac_header_preproc |
ce2cded5 | 4627 | fi |
7357c5b6 AM |
4628 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4629 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
d7040cdb | 4630 | |
7357c5b6 AM |
4631 | fi |
4632 | if test $ac_cv_header_minix_config_h = yes; then | |
4633 | MINIX=yes | |
4634 | else | |
4635 | MINIX= | |
4636 | fi | |
d7040cdb SE |
4637 | |
4638 | ||
7357c5b6 | 4639 | if test "$MINIX" = yes; then |
d7040cdb | 4640 | |
7357c5b6 AM |
4641 | cat >>confdefs.h <<\_ACEOF |
4642 | #define _POSIX_SOURCE 1 | |
4643 | _ACEOF | |
d7040cdb | 4644 | |
d7040cdb | 4645 | |
7357c5b6 AM |
4646 | cat >>confdefs.h <<\_ACEOF |
4647 | #define _POSIX_1_SOURCE 2 | |
4648 | _ACEOF | |
d7040cdb | 4649 | |
d7040cdb | 4650 | |
7357c5b6 AM |
4651 | cat >>confdefs.h <<\_ACEOF |
4652 | #define _MINIX 1 | |
4653 | _ACEOF | |
d7040cdb | 4654 | |
ce2cded5 | 4655 | fi |
d7040cdb | 4656 | |
d7040cdb | 4657 | |
7357c5b6 AM |
4658 | |
4659 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4660 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 | |
4661 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
ce2cded5 L |
4662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4663 | else | |
7357c5b6 AM |
4664 | cat >conftest.$ac_ext <<_ACEOF |
4665 | /* confdefs.h. */ | |
4666 | _ACEOF | |
4667 | cat confdefs.h >>conftest.$ac_ext | |
4668 | cat >>conftest.$ac_ext <<_ACEOF | |
4669 | /* end confdefs.h. */ | |
d7040cdb | 4670 | |
7357c5b6 AM |
4671 | # define __EXTENSIONS__ 1 |
4672 | $ac_includes_default | |
4673 | int | |
4674 | main () | |
4675 | { | |
d7040cdb | 4676 | |
7357c5b6 AM |
4677 | ; |
4678 | return 0; | |
4679 | } | |
4680 | _ACEOF | |
4681 | rm -f conftest.$ac_objext | |
4682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4683 | (eval $ac_compile) 2>conftest.er1 | |
4684 | ac_status=$? | |
4685 | grep -v '^ *+' conftest.er1 >conftest.err | |
4686 | rm -f conftest.er1 | |
4687 | cat conftest.err >&5 | |
4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4689 | (exit $ac_status); } && | |
4690 | { ac_try='test -z "$ac_c_werror_flag" | |
4691 | || test ! -s conftest.err' | |
4692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4693 | (eval $ac_try) 2>&5 | |
4694 | ac_status=$? | |
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4696 | (exit $ac_status); }; } && | |
4697 | { ac_try='test -s conftest.$ac_objext' | |
4698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4699 | (eval $ac_try) 2>&5 | |
4700 | ac_status=$? | |
4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4702 | (exit $ac_status); }; }; then | |
4703 | ac_cv_safe_to_define___extensions__=yes | |
4704 | else | |
4705 | echo "$as_me: failed program was:" >&5 | |
4706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4707 | |
7357c5b6 | 4708 | ac_cv_safe_to_define___extensions__=no |
ce2cded5 | 4709 | fi |
7357c5b6 | 4710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 4711 | fi |
7357c5b6 AM |
4712 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 |
4713 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 | |
4714 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4715 | cat >>confdefs.h <<\_ACEOF | |
4716 | #define __EXTENSIONS__ 1 | |
4717 | _ACEOF | |
d7040cdb | 4718 | |
7357c5b6 AM |
4719 | cat >>confdefs.h <<\_ACEOF |
4720 | #define _ALL_SOURCE 1 | |
4721 | _ACEOF | |
d7040cdb | 4722 | |
7357c5b6 AM |
4723 | cat >>confdefs.h <<\_ACEOF |
4724 | #define _GNU_SOURCE 1 | |
4725 | _ACEOF | |
d7040cdb | 4726 | |
7357c5b6 AM |
4727 | cat >>confdefs.h <<\_ACEOF |
4728 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4729 | _ACEOF | |
d7040cdb | 4730 | |
7357c5b6 AM |
4731 | cat >>confdefs.h <<\_ACEOF |
4732 | #define _TANDEM_SOURCE 1 | |
4733 | _ACEOF | |
d7040cdb | 4734 | |
d7040cdb | 4735 | |
d053aef8 JK |
4736 | # Check whether --enable-largefile or --disable-largefile was given. |
4737 | if test "${enable_largefile+set}" = set; then | |
4738 | enableval="$enable_largefile" | |
4739 | ||
4740 | fi; | |
4741 | if test "$enable_largefile" != no; then | |
4742 | ||
4743 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
4744 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
4745 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4747 | else | |
4748 | ac_cv_sys_largefile_CC=no | |
4749 | if test "$GCC" != yes; then | |
4750 | ac_save_CC=$CC | |
4751 | while :; do | |
4752 | # IRIX 6.2 and later do not support large files by default, | |
4753 | # so use the C compiler's -n32 option if that helps. | |
4754 | cat >conftest.$ac_ext <<_ACEOF | |
4755 | /* confdefs.h. */ | |
4756 | _ACEOF | |
4757 | cat confdefs.h >>conftest.$ac_ext | |
4758 | cat >>conftest.$ac_ext <<_ACEOF | |
4759 | /* end confdefs.h. */ | |
4760 | #include <sys/types.h> | |
4761 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4762 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4763 | since some C++ compilers masquerading as C compilers | |
4764 | incorrectly reject 9223372036854775807. */ | |
4765 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4766 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4767 | && LARGE_OFF_T % 2147483647 == 1) | |
4768 | ? 1 : -1]; | |
4769 | int | |
4770 | main () | |
4771 | { | |
4772 | ||
4773 | ; | |
4774 | return 0; | |
4775 | } | |
4776 | _ACEOF | |
4777 | rm -f conftest.$ac_objext | |
4778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4779 | (eval $ac_compile) 2>conftest.er1 | |
4780 | ac_status=$? | |
4781 | grep -v '^ *+' conftest.er1 >conftest.err | |
4782 | rm -f conftest.er1 | |
4783 | cat conftest.err >&5 | |
4784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4785 | (exit $ac_status); } && | |
4786 | { ac_try='test -z "$ac_c_werror_flag" | |
4787 | || test ! -s conftest.err' | |
4788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4789 | (eval $ac_try) 2>&5 | |
4790 | ac_status=$? | |
4791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4792 | (exit $ac_status); }; } && | |
4793 | { ac_try='test -s conftest.$ac_objext' | |
4794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4795 | (eval $ac_try) 2>&5 | |
4796 | ac_status=$? | |
4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4798 | (exit $ac_status); }; }; then | |
4799 | break | |
4800 | else | |
4801 | echo "$as_me: failed program was:" >&5 | |
4802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4803 | ||
4804 | fi | |
4805 | rm -f conftest.err conftest.$ac_objext | |
4806 | CC="$CC -n32" | |
4807 | rm -f conftest.$ac_objext | |
4808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4809 | (eval $ac_compile) 2>conftest.er1 | |
4810 | ac_status=$? | |
4811 | grep -v '^ *+' conftest.er1 >conftest.err | |
4812 | rm -f conftest.er1 | |
4813 | cat conftest.err >&5 | |
4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4815 | (exit $ac_status); } && | |
4816 | { ac_try='test -z "$ac_c_werror_flag" | |
4817 | || test ! -s conftest.err' | |
4818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4819 | (eval $ac_try) 2>&5 | |
4820 | ac_status=$? | |
4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4822 | (exit $ac_status); }; } && | |
4823 | { ac_try='test -s conftest.$ac_objext' | |
4824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4825 | (eval $ac_try) 2>&5 | |
4826 | ac_status=$? | |
4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4828 | (exit $ac_status); }; }; then | |
4829 | ac_cv_sys_largefile_CC=' -n32'; break | |
4830 | else | |
4831 | echo "$as_me: failed program was:" >&5 | |
4832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4833 | ||
4834 | fi | |
4835 | rm -f conftest.err conftest.$ac_objext | |
4836 | break | |
4837 | done | |
4838 | CC=$ac_save_CC | |
4839 | rm -f conftest.$ac_ext | |
4840 | fi | |
4841 | fi | |
4842 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
4843 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
4844 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4845 | CC=$CC$ac_cv_sys_largefile_CC | |
4846 | fi | |
4847 | ||
4848 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4849 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
4850 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4852 | else | |
4853 | while :; do | |
4854 | ac_cv_sys_file_offset_bits=no | |
4855 | cat >conftest.$ac_ext <<_ACEOF | |
4856 | /* confdefs.h. */ | |
4857 | _ACEOF | |
4858 | cat confdefs.h >>conftest.$ac_ext | |
4859 | cat >>conftest.$ac_ext <<_ACEOF | |
4860 | /* end confdefs.h. */ | |
4861 | #include <sys/types.h> | |
4862 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4863 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4864 | since some C++ compilers masquerading as C compilers | |
4865 | incorrectly reject 9223372036854775807. */ | |
4866 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4867 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4868 | && LARGE_OFF_T % 2147483647 == 1) | |
4869 | ? 1 : -1]; | |
4870 | int | |
4871 | main () | |
4872 | { | |
4873 | ||
4874 | ; | |
4875 | return 0; | |
4876 | } | |
4877 | _ACEOF | |
4878 | rm -f conftest.$ac_objext | |
4879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4880 | (eval $ac_compile) 2>conftest.er1 | |
4881 | ac_status=$? | |
4882 | grep -v '^ *+' conftest.er1 >conftest.err | |
4883 | rm -f conftest.er1 | |
4884 | cat conftest.err >&5 | |
4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4886 | (exit $ac_status); } && | |
4887 | { ac_try='test -z "$ac_c_werror_flag" | |
4888 | || test ! -s conftest.err' | |
4889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4890 | (eval $ac_try) 2>&5 | |
4891 | ac_status=$? | |
4892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4893 | (exit $ac_status); }; } && | |
4894 | { ac_try='test -s conftest.$ac_objext' | |
4895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4896 | (eval $ac_try) 2>&5 | |
4897 | ac_status=$? | |
4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4899 | (exit $ac_status); }; }; then | |
4900 | break | |
4901 | else | |
4902 | echo "$as_me: failed program was:" >&5 | |
4903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4904 | ||
4905 | fi | |
4906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4907 | cat >conftest.$ac_ext <<_ACEOF | |
4908 | /* confdefs.h. */ | |
4909 | _ACEOF | |
4910 | cat confdefs.h >>conftest.$ac_ext | |
4911 | cat >>conftest.$ac_ext <<_ACEOF | |
4912 | /* end confdefs.h. */ | |
4913 | #define _FILE_OFFSET_BITS 64 | |
4914 | #include <sys/types.h> | |
4915 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4916 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4917 | since some C++ compilers masquerading as C compilers | |
4918 | incorrectly reject 9223372036854775807. */ | |
4919 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4920 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4921 | && LARGE_OFF_T % 2147483647 == 1) | |
4922 | ? 1 : -1]; | |
4923 | int | |
4924 | main () | |
4925 | { | |
4926 | ||
4927 | ; | |
4928 | return 0; | |
4929 | } | |
4930 | _ACEOF | |
4931 | rm -f conftest.$ac_objext | |
4932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4933 | (eval $ac_compile) 2>conftest.er1 | |
4934 | ac_status=$? | |
4935 | grep -v '^ *+' conftest.er1 >conftest.err | |
4936 | rm -f conftest.er1 | |
4937 | cat conftest.err >&5 | |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4939 | (exit $ac_status); } && | |
4940 | { ac_try='test -z "$ac_c_werror_flag" | |
4941 | || test ! -s conftest.err' | |
4942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4943 | (eval $ac_try) 2>&5 | |
4944 | ac_status=$? | |
4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4946 | (exit $ac_status); }; } && | |
4947 | { ac_try='test -s conftest.$ac_objext' | |
4948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4949 | (eval $ac_try) 2>&5 | |
4950 | ac_status=$? | |
4951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4952 | (exit $ac_status); }; }; then | |
4953 | ac_cv_sys_file_offset_bits=64; break | |
4954 | else | |
4955 | echo "$as_me: failed program was:" >&5 | |
4956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4957 | ||
4958 | fi | |
4959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4960 | break | |
4961 | done | |
4962 | fi | |
4963 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
4964 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
4965 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
4966 | ||
4967 | cat >>confdefs.h <<_ACEOF | |
4968 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4969 | _ACEOF | |
4970 | ||
4971 | fi | |
4972 | rm -f conftest* | |
4973 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4974 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
4975 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4977 | else | |
4978 | while :; do | |
4979 | ac_cv_sys_large_files=no | |
4980 | cat >conftest.$ac_ext <<_ACEOF | |
4981 | /* confdefs.h. */ | |
4982 | _ACEOF | |
4983 | cat confdefs.h >>conftest.$ac_ext | |
4984 | cat >>conftest.$ac_ext <<_ACEOF | |
4985 | /* end confdefs.h. */ | |
4986 | #include <sys/types.h> | |
4987 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4988 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4989 | since some C++ compilers masquerading as C compilers | |
4990 | incorrectly reject 9223372036854775807. */ | |
4991 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4992 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4993 | && LARGE_OFF_T % 2147483647 == 1) | |
4994 | ? 1 : -1]; | |
4995 | int | |
4996 | main () | |
4997 | { | |
4998 | ||
4999 | ; | |
5000 | return 0; | |
5001 | } | |
5002 | _ACEOF | |
5003 | rm -f conftest.$ac_objext | |
5004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5005 | (eval $ac_compile) 2>conftest.er1 | |
5006 | ac_status=$? | |
5007 | grep -v '^ *+' conftest.er1 >conftest.err | |
5008 | rm -f conftest.er1 | |
5009 | cat conftest.err >&5 | |
5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5011 | (exit $ac_status); } && | |
5012 | { ac_try='test -z "$ac_c_werror_flag" | |
5013 | || test ! -s conftest.err' | |
5014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5015 | (eval $ac_try) 2>&5 | |
5016 | ac_status=$? | |
5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5018 | (exit $ac_status); }; } && | |
5019 | { ac_try='test -s conftest.$ac_objext' | |
5020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5021 | (eval $ac_try) 2>&5 | |
5022 | ac_status=$? | |
5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5024 | (exit $ac_status); }; }; then | |
5025 | break | |
5026 | else | |
5027 | echo "$as_me: failed program was:" >&5 | |
5028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5029 | ||
5030 | fi | |
5031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5032 | cat >conftest.$ac_ext <<_ACEOF | |
5033 | /* confdefs.h. */ | |
5034 | _ACEOF | |
5035 | cat confdefs.h >>conftest.$ac_ext | |
5036 | cat >>conftest.$ac_ext <<_ACEOF | |
5037 | /* end confdefs.h. */ | |
5038 | #define _LARGE_FILES 1 | |
5039 | #include <sys/types.h> | |
5040 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5041 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5042 | since some C++ compilers masquerading as C compilers | |
5043 | incorrectly reject 9223372036854775807. */ | |
5044 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5045 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5046 | && LARGE_OFF_T % 2147483647 == 1) | |
5047 | ? 1 : -1]; | |
5048 | int | |
5049 | main () | |
5050 | { | |
5051 | ||
5052 | ; | |
5053 | return 0; | |
5054 | } | |
5055 | _ACEOF | |
5056 | rm -f conftest.$ac_objext | |
5057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5058 | (eval $ac_compile) 2>conftest.er1 | |
5059 | ac_status=$? | |
5060 | grep -v '^ *+' conftest.er1 >conftest.err | |
5061 | rm -f conftest.er1 | |
5062 | cat conftest.err >&5 | |
5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5064 | (exit $ac_status); } && | |
5065 | { ac_try='test -z "$ac_c_werror_flag" | |
5066 | || test ! -s conftest.err' | |
5067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5068 | (eval $ac_try) 2>&5 | |
5069 | ac_status=$? | |
5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5071 | (exit $ac_status); }; } && | |
5072 | { ac_try='test -s conftest.$ac_objext' | |
5073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5074 | (eval $ac_try) 2>&5 | |
5075 | ac_status=$? | |
5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5077 | (exit $ac_status); }; }; then | |
5078 | ac_cv_sys_large_files=1; break | |
5079 | else | |
5080 | echo "$as_me: failed program was:" >&5 | |
5081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5082 | ||
5083 | fi | |
5084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5085 | break | |
5086 | done | |
5087 | fi | |
5088 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
5089 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
5090 | if test "$ac_cv_sys_large_files" != no; then | |
5091 | ||
5092 | cat >>confdefs.h <<_ACEOF | |
5093 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5094 | _ACEOF | |
5095 | ||
5096 | fi | |
5097 | rm -f conftest* | |
5098 | fi | |
5099 | ||
7357c5b6 AM |
5100 | # Find a good install program. We prefer a C program (faster), |
5101 | # so one script is as good as another. But avoid the broken or | |
5102 | # incompatible versions: | |
5103 | # SysV /etc/install, /usr/sbin/install | |
5104 | # SunOS /usr/etc/install | |
5105 | # IRIX /sbin/install | |
5106 | # AIX /bin/install | |
5107 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5108 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5109 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5110 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5111 | # OS/2's system install, which has a completely different semantic | |
5112 | # ./install, which can be erroneously created by make from ./install.sh. | |
5113 | # Reject install programs that cannot install multiple files. | |
5114 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5115 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
5116 | if test -z "$INSTALL"; then | |
5117 | if test "${ac_cv_path_install+set}" = set; then | |
ce2cded5 L |
5118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5119 | else | |
7357c5b6 AM |
5120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5121 | for as_dir in $PATH | |
5122 | do | |
5123 | IFS=$as_save_IFS | |
5124 | test -z "$as_dir" && as_dir=. | |
5125 | # Account for people who put trailing slashes in PATH elements. | |
5126 | case $as_dir/ in | |
5127 | ./ | .// | /cC/* | \ | |
5128 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5129 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5130 | /usr/ucb/* ) ;; | |
5131 | *) | |
5132 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5133 | # Don't use installbsd from OSF since it installs stuff as root | |
5134 | # by default. | |
5135 | for ac_prog in ginstall scoinst install; do | |
5136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5137 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
5138 | if test $ac_prog = install && | |
5139 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5140 | # AIX install. It has an incompatible calling convention. | |
5141 | : | |
5142 | elif test $ac_prog = install && | |
5143 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5144 | # program-specific install script used by HP pwplus--don't use. | |
5145 | : | |
5146 | else | |
5147 | rm -rf conftest.one conftest.two conftest.dir | |
5148 | echo one > conftest.one | |
5149 | echo two > conftest.two | |
5150 | mkdir conftest.dir | |
5151 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5152 | test -s conftest.one && test -s conftest.two && | |
5153 | test -s conftest.dir/conftest.one && | |
5154 | test -s conftest.dir/conftest.two | |
5155 | then | |
5156 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5157 | break 3 | |
5158 | fi | |
5159 | fi | |
5160 | fi | |
5161 | done | |
5162 | done | |
ce2cded5 | 5163 | ;; |
7357c5b6 AM |
5164 | esac |
5165 | done | |
ce2cded5 | 5166 | |
7357c5b6 | 5167 | rm -rf conftest.one conftest.two conftest.dir |
ce2cded5 | 5168 | |
7357c5b6 AM |
5169 | fi |
5170 | if test "${ac_cv_path_install+set}" = set; then | |
5171 | INSTALL=$ac_cv_path_install | |
5172 | else | |
5173 | # As a last resort, use the slow shell script. Don't cache a | |
5174 | # value for INSTALL within a source directory, because that will | |
5175 | # break other packages using the cache if that directory is | |
5176 | # removed, or if the value is a relative name. | |
5177 | INSTALL=$ac_install_sh | |
5178 | fi | |
5179 | fi | |
5180 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
5181 | echo "${ECHO_T}$INSTALL" >&6 | |
ce2cded5 | 5182 | |
7357c5b6 AM |
5183 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
5184 | # It thinks the first close brace ends the variable substitution. | |
5185 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6bf9431b | 5186 | |
7357c5b6 | 5187 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
d7040cdb | 5188 | |
7357c5b6 | 5189 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
d7040cdb | 5190 | |
ce2cded5 | 5191 | |
d7040cdb SE |
5192 | |
5193 | ||
7357c5b6 AM |
5194 | macro_version='2.1a' |
5195 | macro_revision='1.2435' | |
d7040cdb SE |
5196 | |
5197 | ||
5198 | ||
5199 | ||
5200 | ||
5201 | ||
5202 | ||
5203 | ||
5204 | ||
5205 | ||
5206 | ||
5207 | ||
7357c5b6 | 5208 | ltmain="$ac_aux_dir/ltmain.sh" |
d7040cdb | 5209 | |
7357c5b6 | 5210 | # Set options |
d7040cdb | 5211 | |
7357c5b6 | 5212 | enable_dlopen=no |
d7040cdb | 5213 | |
d7040cdb | 5214 | |
7357c5b6 | 5215 | enable_win32_dll=no |
d7040cdb | 5216 | |
d7040cdb | 5217 | |
7357c5b6 AM |
5218 | # Check whether --enable-shared or --disable-shared was given. |
5219 | if test "${enable_shared+set}" = set; then | |
5220 | enableval="$enable_shared" | |
5221 | p=${PACKAGE-default} | |
5222 | case $enableval in | |
5223 | yes) enable_shared=yes ;; | |
5224 | no) enable_shared=no ;; | |
5225 | *) | |
5226 | enable_shared=no | |
5227 | # Look at the argument we got. We use all the common list separators. | |
5228 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5229 | for pkg in $enableval; do | |
5230 | IFS="$lt_save_ifs" | |
5231 | if test "X$pkg" = "X$p"; then | |
5232 | enable_shared=yes | |
5233 | fi | |
5234 | done | |
5235 | IFS="$lt_save_ifs" | |
5236 | ;; | |
5237 | esac | |
5238 | else | |
5239 | enable_shared=yes | |
5240 | fi; | |
d7040cdb | 5241 | |
ce2cded5 L |
5242 | |
5243 | ||
5244 | ||
5245 | ||
5246 | ||
d7040cdb | 5247 | |
6bf9431b | 5248 | |
7357c5b6 AM |
5249 | # Check whether --enable-static or --disable-static was given. |
5250 | if test "${enable_static+set}" = set; then | |
5251 | enableval="$enable_static" | |
5252 | p=${PACKAGE-default} | |
5253 | case $enableval in | |
5254 | yes) enable_static=yes ;; | |
5255 | no) enable_static=no ;; | |
5256 | *) | |
5257 | enable_static=no | |
5258 | # Look at the argument we got. We use all the common list separators. | |
5259 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5260 | for pkg in $enableval; do | |
5261 | IFS="$lt_save_ifs" | |
5262 | if test "X$pkg" = "X$p"; then | |
5263 | enable_static=yes | |
5264 | fi | |
5265 | done | |
5266 | IFS="$lt_save_ifs" | |
5267 | ;; | |
5268 | esac | |
5269 | else | |
5270 | enable_static=yes | |
5271 | fi; | |
5272 | ||
252b5132 | 5273 | |
ce2cded5 L |
5274 | |
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
7357c5b6 AM |
5281 | # Check whether --with-pic or --without-pic was given. |
5282 | if test "${with_pic+set}" = set; then | |
5283 | withval="$with_pic" | |
5284 | pic_mode="$withval" | |
6bf9431b | 5285 | else |
7357c5b6 AM |
5286 | pic_mode=default |
5287 | fi; | |
6bf9431b | 5288 | |
7357c5b6 | 5289 | test -z "$pic_mode" && pic_mode=default |
6bf9431b | 5290 | |
ce2cded5 | 5291 | |
d7040cdb | 5292 | |
d7040cdb | 5293 | |
d7040cdb | 5294 | |
d7040cdb | 5295 | |
7357c5b6 AM |
5296 | |
5297 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
5298 | if test "${enable_fast_install+set}" = set; then | |
5299 | enableval="$enable_fast_install" | |
5300 | p=${PACKAGE-default} | |
5301 | case $enableval in | |
5302 | yes) enable_fast_install=yes ;; | |
5303 | no) enable_fast_install=no ;; | |
5304 | *) | |
5305 | enable_fast_install=no | |
5306 | # Look at the argument we got. We use all the common list separators. | |
5307 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5308 | for pkg in $enableval; do | |
5309 | IFS="$lt_save_ifs" | |
5310 | if test "X$pkg" = "X$p"; then | |
5311 | enable_fast_install=yes | |
5312 | fi | |
5313 | done | |
5314 | IFS="$lt_save_ifs" | |
ce2cded5 L |
5315 | ;; |
5316 | esac | |
7357c5b6 AM |
5317 | else |
5318 | enable_fast_install=yes | |
5319 | fi; | |
6bf9431b | 5320 | |
6bf9431b | 5321 | |
6bf9431b | 5322 | |
6bf9431b | 5323 | |
d7040cdb | 5324 | |
d7040cdb | 5325 | |
6bf9431b | 5326 | |
d7040cdb | 5327 | |
7357c5b6 AM |
5328 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
5329 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
5330 | if test "${lt_cv_path_SED+set}" = set; then | |
5331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5332 | else | |
5333 | # Loop through the user's path and test for sed and gsed. | |
5334 | # Then use that list of sed's as ones to test for truncation. | |
5335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5336 | for as_dir in $PATH | |
5337 | do | |
5338 | IFS=$as_save_IFS | |
5339 | test -z "$as_dir" && as_dir=. | |
5340 | for lt_ac_prog in sed gsed; do | |
5341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5342 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
5343 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
5344 | fi | |
5345 | done | |
5346 | done | |
5347 | done | |
5348 | IFS=$as_save_IFS | |
5349 | lt_ac_max=0 | |
5350 | lt_ac_count=0 | |
5351 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
5352 | # along with /bin/sed that truncates output. | |
5353 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
5354 | test ! -f $lt_ac_sed && continue | |
5355 | cat /dev/null > conftest.in | |
5356 | lt_ac_count=0 | |
5357 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
5358 | # Check for GNU sed and select it if it is found. | |
5359 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
5360 | lt_cv_path_SED=$lt_ac_sed | |
5361 | break | |
5362 | fi | |
5363 | while true; do | |
5364 | cat conftest.in conftest.in >conftest.tmp | |
5365 | mv conftest.tmp conftest.in | |
5366 | cp conftest.in conftest.nl | |
5367 | echo >>conftest.nl | |
5368 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
5369 | cmp -s conftest.out conftest.nl || break | |
5370 | # 10000 chars as input seems more than enough | |
5371 | test $lt_ac_count -gt 10 && break | |
5372 | lt_ac_count=`expr $lt_ac_count + 1` | |
5373 | if test $lt_ac_count -gt $lt_ac_max; then | |
5374 | lt_ac_max=$lt_ac_count | |
5375 | lt_cv_path_SED=$lt_ac_sed | |
5376 | fi | |
5377 | done | |
5378 | done | |
5379 | ||
5380 | fi | |
5381 | ||
5382 | SED=$lt_cv_path_SED | |
5383 | ||
5384 | echo "$as_me:$LINENO: result: $SED" >&5 | |
5385 | echo "${ECHO_T}$SED" >&6 | |
5386 | ||
5387 | test -z "$SED" && SED=sed | |
5388 | Xsed="$SED -e 1s/^X//" | |
5389 | ||
5390 | ||
5391 | ||
d7040cdb | 5392 | |
d7040cdb | 5393 | |
d7040cdb | 5394 | |
d7040cdb | 5395 | |
d7040cdb | 5396 | |
d7040cdb | 5397 | |
d7040cdb | 5398 | |
6bf9431b | 5399 | |
7357c5b6 AM |
5400 | echo "$as_me:$LINENO: checking for fgrep" >&5 |
5401 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
5402 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
5403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5404 | else | |
5405 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
5406 | then ac_cv_prog_fgrep='grep -F' | |
5407 | else ac_cv_prog_fgrep='fgrep' | |
5408 | fi | |
6bf9431b | 5409 | fi |
7357c5b6 AM |
5410 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 |
5411 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
5412 | FGREP=$ac_cv_prog_fgrep | |
d7040cdb | 5413 | |
6bf9431b | 5414 | |
7357c5b6 | 5415 | test -z "$GREP" && GREP=grep |
252b5132 | 5416 | |
6bf9431b | 5417 | |
252b5132 | 5418 | |
252b5132 | 5419 | |
252b5132 | 5420 | |
252b5132 | 5421 | |
252b5132 RH |
5422 | |
5423 | ||
6bf9431b | 5424 | |
d7040cdb | 5425 | |
6bf9431b | 5426 | |
6bf9431b | 5427 | |
7357c5b6 AM |
5428 | |
5429 | ||
5430 | ||
5431 | ||
5432 | ||
5433 | ||
5434 | ||
5435 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5436 | if test "${with_gnu_ld+set}" = set; then | |
5437 | withval="$with_gnu_ld" | |
5438 | test "$withval" = no || with_gnu_ld=yes | |
5439 | else | |
5440 | with_gnu_ld=no | |
5441 | fi; | |
5442 | ac_prog=ld | |
5443 | if test "$GCC" = yes; then | |
5444 | # Check if gcc -print-prog-name=ld gives a path. | |
5445 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
5446 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
5447 | case $host in | |
5448 | *-*-mingw*) | |
5449 | # gcc leaves a trailing carriage return which upsets mingw | |
5450 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5451 | *) | |
5452 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5453 | esac | |
5454 | case $ac_prog in | |
5455 | # Accept absolute paths. | |
5456 | [\\/]* | ?:[\\/]*) | |
5457 | re_direlt='/[^/][^/]*/\.\./' | |
5458 | # Canonicalize the pathname of ld | |
5459 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5460 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5461 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5462 | done | |
5463 | test -z "$LD" && LD="$ac_prog" | |
5464 | ;; | |
5465 | "") | |
5466 | # If it fails, then pretend we aren't using GCC. | |
5467 | ac_prog=ld | |
5468 | ;; | |
5469 | *) | |
5470 | # If it is relative, then search for the first ld in PATH. | |
5471 | with_gnu_ld=unknown | |
5472 | ;; | |
5473 | esac | |
5474 | elif test "$with_gnu_ld" = yes; then | |
5475 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5476 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5477 | else | |
5478 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5479 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
ce2cded5 | 5480 | fi |
7357c5b6 | 5481 | if test "${lt_cv_path_LD+set}" = set; then |
d7040cdb SE |
5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5483 | else | |
7357c5b6 AM |
5484 | if test -z "$LD"; then |
5485 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5486 | for ac_dir in $PATH; do | |
5487 | IFS="$lt_save_ifs" | |
5488 | test -z "$ac_dir" && ac_dir=. | |
5489 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5490 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5491 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5492 | # but apparently some variants of GNU ld only accept -v. | |
5493 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5494 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5495 | *GNU* | *'with BFD'*) | |
5496 | test "$with_gnu_ld" != no && break | |
5497 | ;; | |
5498 | *) | |
5499 | test "$with_gnu_ld" != yes && break | |
5500 | ;; | |
5501 | esac | |
5502 | fi | |
5503 | done | |
5504 | IFS="$lt_save_ifs" | |
6bf9431b | 5505 | else |
7357c5b6 | 5506 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
6bf9431b | 5507 | fi |
6bf9431b | 5508 | fi |
7357c5b6 AM |
5509 | |
5510 | LD="$lt_cv_path_LD" | |
5511 | if test -n "$LD"; then | |
5512 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5513 | echo "${ECHO_T}$LD" >&6 | |
ce2cded5 L |
5514 | else |
5515 | echo "$as_me:$LINENO: result: no" >&5 | |
5516 | echo "${ECHO_T}no" >&6 | |
6bf9431b | 5517 | fi |
7357c5b6 AM |
5518 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
5519 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5520 | { (exit 1); exit 1; }; } | |
5521 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5522 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5523 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
5524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ce2cded5 | 5525 | else |
7357c5b6 AM |
5526 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5527 | case `$LD -v 2>&1 </dev/null` in | |
5528 | *GNU* | *'with BFD'*) | |
5529 | lt_cv_prog_gnu_ld=yes | |
5530 | ;; | |
5531 | *) | |
5532 | lt_cv_prog_gnu_ld=no | |
5533 | ;; | |
5534 | esac | |
ce2cded5 | 5535 | fi |
7357c5b6 AM |
5536 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
5537 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
5538 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
20e95c23 DJ |
5539 | |
5540 | ||
5541 | ||
20e95c23 | 5542 | |
d7040cdb SE |
5543 | |
5544 | ||
5545 | ||
5546 | ||
5547 | ||
5548 | ||
7357c5b6 AM |
5549 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5550 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
5551 | if test "${lt_cv_path_NM+set}" = set; then | |
ce2cded5 L |
5552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5553 | else | |
7357c5b6 AM |
5554 | if test -n "$NM"; then |
5555 | # Let the user override the test. | |
5556 | lt_cv_path_NM="$NM" | |
ce2cded5 | 5557 | else |
7357c5b6 AM |
5558 | lt_nm_to_check="${ac_tool_prefix}nm" |
5559 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5560 | lt_nm_to_check="$lt_nm_to_check nm" | |
ce2cded5 | 5561 | fi |
7357c5b6 AM |
5562 | for lt_tmp_nm in $lt_nm_to_check; do |
5563 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5564 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5565 | IFS="$lt_save_ifs" | |
5566 | test -z "$ac_dir" && ac_dir=. | |
5567 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5568 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5569 | # Check to see if the nm accepts a BSD-compat flag. | |
5570 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5571 | # nm: unknown option "B" ignored | |
5572 | # Tru64's nm complains that /dev/null is an invalid object file | |
5573 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5574 | */dev/null* | *'Invalid file or object type'*) | |
5575 | lt_cv_path_NM="$tmp_nm -B" | |
5576 | break | |
5577 | ;; | |
5578 | *) | |
5579 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5580 | */dev/null*) | |
5581 | lt_cv_path_NM="$tmp_nm -p" | |
5582 | break | |
5583 | ;; | |
5584 | *) | |
5585 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5586 | continue # so that we can try to find one that supports BSD flags | |
5587 | ;; | |
5588 | esac | |
5589 | ;; | |
5590 | esac | |
5591 | fi | |
5592 | done | |
5593 | IFS="$lt_save_ifs" | |
5594 | done | |
5595 | : ${lt_cv_path_NM=no} | |
ce2cded5 L |
5596 | fi |
5597 | fi | |
7357c5b6 AM |
5598 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
5599 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
5600 | if test "$lt_cv_path_NM" != "no"; then | |
5601 | NM="$lt_cv_path_NM" | |
ce2cded5 | 5602 | else |
7357c5b6 AM |
5603 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5604 | if test -n "$ac_tool_prefix"; then | |
5605 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5606 | do | |
5607 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5608 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ce2cded5 L |
5609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7357c5b6 | 5611 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
ce2cded5 L |
5612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5613 | else | |
7357c5b6 AM |
5614 | if test -n "$DUMPBIN"; then |
5615 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
5616 | else |
5617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5618 | for as_dir in $PATH | |
5619 | do | |
5620 | IFS=$as_save_IFS | |
5621 | test -z "$as_dir" && as_dir=. | |
5622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7357c5b6 | 5624 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ce2cded5 L |
5625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5626 | break 2 | |
5627 | fi | |
5628 | done | |
5629 | done | |
d7040cdb | 5630 | |
ce2cded5 L |
5631 | fi |
5632 | fi | |
7357c5b6 AM |
5633 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5634 | if test -n "$DUMPBIN"; then | |
5635 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
5636 | echo "${ECHO_T}$DUMPBIN" >&6 | |
ce2cded5 L |
5637 | else |
5638 | echo "$as_me:$LINENO: result: no" >&5 | |
5639 | echo "${ECHO_T}no" >&6 | |
5640 | fi | |
d7040cdb | 5641 | |
7357c5b6 AM |
5642 | test -n "$DUMPBIN" && break |
5643 | done | |
ce2cded5 | 5644 | fi |
7357c5b6 AM |
5645 | if test -z "$DUMPBIN"; then |
5646 | ac_ct_DUMPBIN=$DUMPBIN | |
5647 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5648 | do | |
5649 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5650 | set dummy $ac_prog; ac_word=$2 | |
ce2cded5 L |
5651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7357c5b6 | 5653 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
ce2cded5 L |
5654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5655 | else | |
7357c5b6 AM |
5656 | if test -n "$ac_ct_DUMPBIN"; then |
5657 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
5658 | else |
5659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5660 | for as_dir in $PATH | |
5661 | do | |
5662 | IFS=$as_save_IFS | |
5663 | test -z "$as_dir" && as_dir=. | |
5664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7357c5b6 | 5666 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ce2cded5 L |
5667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5668 | break 2 | |
5669 | fi | |
5670 | done | |
5671 | done | |
d7040cdb | 5672 | |
ce2cded5 L |
5673 | fi |
5674 | fi | |
7357c5b6 AM |
5675 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5676 | if test -n "$ac_ct_DUMPBIN"; then | |
5677 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
5678 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
ce2cded5 L |
5679 | else |
5680 | echo "$as_me:$LINENO: result: no" >&5 | |
5681 | echo "${ECHO_T}no" >&6 | |
20e95c23 | 5682 | fi |
20e95c23 | 5683 | |
7357c5b6 | 5684 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 | 5685 | done |
7357c5b6 | 5686 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" |
ce2cded5 | 5687 | |
7357c5b6 | 5688 | DUMPBIN=$ac_ct_DUMPBIN |
d7040cdb | 5689 | fi |
7357c5b6 AM |
5690 | |
5691 | ||
5692 | if test "$DUMPBIN" != ":"; then | |
5693 | NM="$DUMPBIN" | |
5694 | fi | |
20e95c23 | 5695 | fi |
7357c5b6 AM |
5696 | test -z "$NM" && NM=nm |
5697 | ||
5698 | ||
5699 | ||
5700 | ||
5701 | ||
5702 | ||
5703 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
5704 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
5705 | if test "${lt_cv_nm_interface+set}" = set; then | |
5706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ce2cded5 | 5707 | else |
7357c5b6 AM |
5708 | lt_cv_nm_interface="BSD nm" |
5709 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5710 | (eval echo "\"\$as_me:5345: $ac_compile\"" >&5) | |
5711 | (eval "$ac_compile" 2>conftest.err) | |
5712 | cat conftest.err >&5 | |
5713 | (eval echo "\"\$as_me:5348: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5714 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5715 | cat conftest.err >&5 | |
5716 | (eval echo "\"\$as_me:5351: output\"" >&5) | |
5717 | cat conftest.out >&5 | |
5718 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5719 | lt_cv_nm_interface="MS dumpbin" | |
5720 | fi | |
5721 | rm -f conftest* | |
ce2cded5 | 5722 | fi |
7357c5b6 AM |
5723 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
5724 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
20e95c23 | 5725 | |
7357c5b6 AM |
5726 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
5727 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
5728 | LN_S=$as_ln_s | |
5729 | if test "$LN_S" = "ln -s"; then | |
5730 | echo "$as_me:$LINENO: result: yes" >&5 | |
5731 | echo "${ECHO_T}yes" >&6 | |
ce2cded5 | 5732 | else |
7357c5b6 AM |
5733 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
5734 | echo "${ECHO_T}no, using $LN_S" >&6 | |
ce2cded5 | 5735 | fi |
d7040cdb | 5736 | |
7357c5b6 AM |
5737 | # find the maximum length of command line arguments |
5738 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5739 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5740 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5742 | else | |
5743 | i=0 | |
5744 | teststring="ABCD" | |
d7040cdb | 5745 | |
7357c5b6 AM |
5746 | case $build_os in |
5747 | msdosdjgpp*) | |
5748 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5749 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5750 | # during glob expansion). Even if it were fixed, the result of this | |
5751 | # check would be larger than it should be. | |
5752 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5753 | ;; | |
d7040cdb | 5754 | |
7357c5b6 AM |
5755 | gnu*) |
5756 | # Under GNU Hurd, this test is not required because there is | |
5757 | # no limit to the length of command line arguments. | |
5758 | # Libtool will interpret -1 as no limit whatsoever | |
5759 | lt_cv_sys_max_cmd_len=-1; | |
5760 | ;; | |
d7040cdb | 5761 | |
7357c5b6 AM |
5762 | cygwin* | mingw*) |
5763 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5764 | # about 5 minutes as the teststring grows exponentially. | |
5765 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5766 | # you end up with a "frozen" computer, even though with patience | |
5767 | # the test eventually succeeds (with a max line length of 256k). | |
5768 | # Instead, let's just punt: use the minimum linelength reported by | |
5769 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5770 | lt_cv_sys_max_cmd_len=8192; | |
5771 | ;; | |
d7040cdb | 5772 | |
7357c5b6 AM |
5773 | amigaos*) |
5774 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5775 | # So we just punt and use a minimum line length of 8192. | |
5776 | lt_cv_sys_max_cmd_len=8192; | |
5777 | ;; | |
d7040cdb | 5778 | |
7357c5b6 AM |
5779 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5780 | # This has been around since 386BSD, at least. Likely further. | |
5781 | if test -x /sbin/sysctl; then | |
5782 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5783 | elif test -x /usr/sbin/sysctl; then | |
5784 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5785 | else | |
5786 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5787 | fi | |
5788 | # And add a safety zone | |
5789 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5790 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5791 | ;; | |
d7040cdb | 5792 | |
7357c5b6 AM |
5793 | interix*) |
5794 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5795 | lt_cv_sys_max_cmd_len=196608 | |
5796 | ;; | |
d7040cdb | 5797 | |
7357c5b6 AM |
5798 | osf*) |
5799 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5800 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5801 | # nice to cause kernel panics so lets avoid the loop below. | |
5802 | # First set a reasonable default. | |
5803 | lt_cv_sys_max_cmd_len=16384 | |
5804 | # | |
5805 | if test -x /sbin/sysconfig; then | |
5806 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5807 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5808 | esac | |
5809 | fi | |
5810 | ;; | |
5811 | sco3.2v5*) | |
5812 | lt_cv_sys_max_cmd_len=102400 | |
5813 | ;; | |
5814 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5815 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5816 | if test -n "$kargmax"; then | |
5817 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5818 | else | |
5819 | lt_cv_sys_max_cmd_len=32768 | |
5820 | fi | |
ce2cded5 L |
5821 | ;; |
5822 | *) | |
7357c5b6 AM |
5823 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` |
5824 | if test -n $lt_cv_sys_max_cmd_len; then | |
5825 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5826 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5827 | else | |
5828 | # Make teststring a little bigger before we do anything with it. | |
5829 | # a 1K string should be a reasonable start. | |
5830 | for i in 1 2 3 4 5 6 7 8 ; do | |
5831 | teststring=$teststring$teststring | |
5832 | done | |
5833 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5834 | # If test is not a shell built-in, we'll probably end up computing a | |
5835 | # maximum length that is only half of the actual maximum length, but | |
5836 | # we can't tell. | |
5837 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5838 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5839 | test $i != 17 # 1/2 MB should be enough | |
5840 | do | |
5841 | i=`expr $i + 1` | |
5842 | teststring=$teststring$teststring | |
5843 | done | |
5844 | # Only check the string length outside the loop. | |
5845 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5846 | teststring= | |
5847 | # Add a significant safety factor because C++ compilers can tack on | |
5848 | # massive amounts of additional arguments before passing them to the | |
5849 | # linker. It appears as though 1/2 is a usable value. | |
5850 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5851 | fi | |
ce2cded5 L |
5852 | ;; |
5853 | esac | |
d7040cdb | 5854 | |
7357c5b6 | 5855 | fi |
d7040cdb | 5856 | |
7357c5b6 AM |
5857 | if test -n $lt_cv_sys_max_cmd_len ; then |
5858 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5859 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5860 | else | |
5861 | echo "$as_me:$LINENO: result: none" >&5 | |
5862 | echo "${ECHO_T}none" >&6 | |
5863 | fi | |
5864 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
5865 | |
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ||
7357c5b6 AM |
5872 | : ${CP="cp -f"} |
5873 | : ${MV="mv -f"} | |
5874 | : ${RM="rm -f"} | |
d7040cdb | 5875 | |
7357c5b6 AM |
5876 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
5877 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
5878 | # Try some XSI features | |
5879 | xsi_shell=no | |
5880 | ( _lt_dummy="a/b/c" | |
5881 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5882 | = c,a/b,, ) >/dev/null 2>&1 \ | |
5883 | && xsi_shell=yes | |
5884 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
5885 | echo "${ECHO_T}$xsi_shell" >&6 | |
d7040cdb SE |
5886 | |
5887 | ||
7357c5b6 AM |
5888 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
5889 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
5890 | lt_shell_append=no | |
5891 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5892 | >/dev/null 2>&1 \ | |
5893 | && lt_shell_append=yes | |
5894 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
5895 | echo "${ECHO_T}$lt_shell_append" >&6 | |
d7040cdb | 5896 | |
d7040cdb | 5897 | |
7357c5b6 AM |
5898 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5899 | lt_unset=unset | |
5900 | else | |
5901 | lt_unset=false | |
5902 | fi | |
d7040cdb | 5903 | |
d7040cdb | 5904 | |
d7040cdb | 5905 | |
d7040cdb | 5906 | |
d7040cdb | 5907 | |
7357c5b6 AM |
5908 | # test EBCDIC or ASCII |
5909 | case `echo X|tr X '\101'` in | |
5910 | A) # ASCII based system | |
5911 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5912 | lt_SP2NL='tr \040 \012' | |
5913 | lt_NL2SP='tr \015\012 \040\040' | |
5914 | ;; | |
5915 | *) # EBCDIC based system | |
5916 | lt_SP2NL='tr \100 \n' | |
5917 | lt_NL2SP='tr \r\n \100\100' | |
5918 | ;; | |
5919 | esac | |
d7040cdb | 5920 | |
d7040cdb | 5921 | |
d7040cdb | 5922 | |
d7040cdb | 5923 | |
d7040cdb | 5924 | |
d7040cdb SE |
5925 | |
5926 | ||
5af11cab | 5927 | |
d7040cdb | 5928 | |
7357c5b6 AM |
5929 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
5930 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
5931 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5933 | else | |
5934 | lt_cv_ld_reload_flag='-r' | |
5935 | fi | |
5936 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
5937 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
5938 | reload_flag=$lt_cv_ld_reload_flag | |
5939 | case $reload_flag in | |
5940 | "" | " "*) ;; | |
5941 | *) reload_flag=" $reload_flag" ;; | |
5942 | esac | |
5943 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5944 | case $host_os in | |
5945 | darwin*) | |
5946 | if test "$GCC" = yes; then | |
5947 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5948 | else | |
5949 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5950 | fi | |
5951 | ;; | |
5952 | esac | |
20e95c23 | 5953 | |
6bf9431b | 5954 | |
20e95c23 DJ |
5955 | |
5956 | ||
20e95c23 | 5957 | |
20e95c23 | 5958 | |
ce2cded5 | 5959 | |
ce2cded5 | 5960 | |
ce2cded5 L |
5961 | |
5962 | ||
7357c5b6 AM |
5963 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
5964 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
5965 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
6bf9431b BE |
5966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5967 | else | |
7357c5b6 AM |
5968 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5969 | lt_cv_file_magic_test_file= | |
5970 | lt_cv_deplibs_check_method='unknown' | |
5971 | # Need to set the preceding variable on all platforms that support | |
5972 | # interlibrary dependencies. | |
5973 | # 'none' -- dependencies not supported. | |
5974 | # `unknown' -- same as none, but documents that we really don't know. | |
5975 | # 'pass_all' -- all dependencies passed with no checks. | |
5976 | # 'test_compile' -- check by making test program. | |
5977 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5978 | # which responds to the $file_magic_cmd with a given extended regex. | |
5979 | # If you have `file' or equivalent on your system and you're not sure | |
5980 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 5981 | |
ce2cded5 | 5982 | case $host_os in |
7357c5b6 AM |
5983 | aix[4-9]*) |
5984 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 5985 | ;; |
7357c5b6 AM |
5986 | |
5987 | beos*) | |
5988 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 5989 | ;; |
7357c5b6 AM |
5990 | |
5991 | bsdi[45]*) | |
5992 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5993 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5994 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 5995 | ;; |
7357c5b6 AM |
5996 | |
5997 | cygwin*) | |
5998 | # func_win32_libid is a shell function defined in ltmain.sh | |
5999 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6000 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 6001 | ;; |
7357c5b6 AM |
6002 | |
6003 | mingw* | pw32*) | |
6004 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6005 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6006 | # unless we find 'file', for example because we are cross-compiling. | |
6007 | if ( file / ) >/dev/null 2>&1; then | |
6008 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6009 | lt_cv_file_magic_cmd='func_win32_libid' | |
6010 | else | |
6011 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6012 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6013 | fi | |
ce2cded5 | 6014 | ;; |
7357c5b6 AM |
6015 | |
6016 | darwin* | rhapsody*) | |
6017 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6018 | ;; |
d7040cdb | 6019 | |
7357c5b6 AM |
6020 | freebsd* | dragonfly*) |
6021 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6022 | case $host_cpu in | |
6023 | i*86 ) | |
6024 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6025 | # Let's accept both of them until this is cleared up. | |
6026 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6027 | lt_cv_file_magic_cmd=/usr/bin/file | |
6028 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6029 | ;; | |
6030 | esac | |
6031 | else | |
6032 | lt_cv_deplibs_check_method=pass_all | |
6033 | fi | |
6034 | ;; | |
20e95c23 | 6035 | |
7357c5b6 AM |
6036 | gnu*) |
6037 | lt_cv_deplibs_check_method=pass_all | |
6038 | ;; | |
20e95c23 | 6039 | |
7357c5b6 AM |
6040 | hpux10.20* | hpux11*) |
6041 | lt_cv_file_magic_cmd=/usr/bin/file | |
6042 | case $host_cpu in | |
6043 | ia64*) | |
6044 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6045 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6046 | ;; | |
6047 | hppa*64*) | |
6048 | 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]' | |
6049 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6050 | ;; | |
6051 | *) | |
6052 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6053 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6054 | ;; | |
6055 | esac | |
6056 | ;; | |
5af11cab | 6057 | |
7357c5b6 AM |
6058 | interix[3-9]*) |
6059 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6060 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
d7040cdb | 6061 | ;; |
20e95c23 | 6062 | |
7357c5b6 AM |
6063 | irix5* | irix6* | nonstopux*) |
6064 | case $LD in | |
6065 | *-32|*"-32 ") libmagic=32-bit;; | |
6066 | *-n32|*"-n32 ") libmagic=N32;; | |
6067 | *-64|*"-64 ") libmagic=64-bit;; | |
6068 | *) libmagic=never-match;; | |
6069 | esac | |
6070 | lt_cv_deplibs_check_method=pass_all | |
6071 | ;; | |
d7040cdb | 6072 | |
7357c5b6 AM |
6073 | # This must be Linux ELF. |
6074 | linux* | k*bsd*-gnu) | |
6075 | lt_cv_deplibs_check_method=pass_all | |
6076 | ;; | |
d7040cdb | 6077 | |
7357c5b6 AM |
6078 | netbsd*) |
6079 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6080 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
ce2cded5 | 6081 | else |
7357c5b6 | 6082 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
ce2cded5 | 6083 | fi |
7357c5b6 | 6084 | ;; |
d7040cdb | 6085 | |
7357c5b6 AM |
6086 | newos6*) |
6087 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6088 | lt_cv_file_magic_cmd=/usr/bin/file | |
6089 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6090 | ;; | |
d7040cdb | 6091 | |
7357c5b6 AM |
6092 | *nto* | *qnx*) |
6093 | lt_cv_deplibs_check_method=pass_all | |
6094 | ;; | |
d7040cdb | 6095 | |
7357c5b6 AM |
6096 | openbsd*) |
6097 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6098 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6099 | else | |
6100 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6101 | fi | |
6102 | ;; | |
d7040cdb | 6103 | |
7357c5b6 AM |
6104 | osf3* | osf4* | osf5*) |
6105 | lt_cv_deplibs_check_method=pass_all | |
6106 | ;; | |
d7040cdb | 6107 | |
7357c5b6 AM |
6108 | rdos*) |
6109 | lt_cv_deplibs_check_method=pass_all | |
6110 | ;; | |
d7040cdb | 6111 | |
7357c5b6 AM |
6112 | solaris*) |
6113 | lt_cv_deplibs_check_method=pass_all | |
6114 | ;; | |
d7040cdb | 6115 | |
7357c5b6 AM |
6116 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6117 | lt_cv_deplibs_check_method=pass_all | |
6118 | ;; | |
d7040cdb | 6119 | |
7357c5b6 AM |
6120 | sysv4 | sysv4.3*) |
6121 | case $host_vendor in | |
6122 | motorola) | |
6123 | 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]' | |
6124 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6125 | ;; | |
6126 | ncr) | |
6127 | lt_cv_deplibs_check_method=pass_all | |
6128 | ;; | |
6129 | sequent) | |
6130 | lt_cv_file_magic_cmd='/bin/file' | |
6131 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6132 | ;; | |
6133 | sni) | |
6134 | lt_cv_file_magic_cmd='/bin/file' | |
6135 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6136 | lt_cv_file_magic_test_file=/lib/libc.so | |
6137 | ;; | |
6138 | siemens) | |
6139 | lt_cv_deplibs_check_method=pass_all | |
6140 | ;; | |
6141 | pc) | |
6142 | lt_cv_deplibs_check_method=pass_all | |
6143 | ;; | |
6144 | esac | |
6145 | ;; | |
d7040cdb | 6146 | |
7357c5b6 AM |
6147 | tpf*) |
6148 | lt_cv_deplibs_check_method=pass_all | |
6149 | ;; | |
6150 | esac | |
d7040cdb | 6151 | |
ce2cded5 | 6152 | fi |
7357c5b6 AM |
6153 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
6154 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
6155 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6156 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6157 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6158 | |
d7040cdb | 6159 | |
d7040cdb | 6160 | |
d7040cdb | 6161 | |
5af11cab | 6162 | |
20e95c23 | 6163 | |
20e95c23 | 6164 | |
20e95c23 | 6165 | |
20e95c23 DJ |
6166 | |
6167 | ||
6168 | ||
20e95c23 | 6169 | |
7357c5b6 AM |
6170 | if test -n "$ac_tool_prefix"; then |
6171 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6172 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6175 | if test "${ac_cv_prog_AR+set}" = set; then | |
6176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6177 | else | |
6178 | if test -n "$AR"; then | |
6179 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6180 | else | |
6181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6182 | for as_dir in $PATH | |
6183 | do | |
6184 | IFS=$as_save_IFS | |
6185 | test -z "$as_dir" && as_dir=. | |
6186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6187 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6188 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6190 | break 2 | |
ce2cded5 | 6191 | fi |
7357c5b6 AM |
6192 | done |
6193 | done | |
d5fbea21 | 6194 | |
7357c5b6 AM |
6195 | fi |
6196 | fi | |
6197 | AR=$ac_cv_prog_AR | |
6198 | if test -n "$AR"; then | |
6199 | echo "$as_me:$LINENO: result: $AR" >&5 | |
6200 | echo "${ECHO_T}$AR" >&6 | |
6201 | else | |
6202 | echo "$as_me:$LINENO: result: no" >&5 | |
6203 | echo "${ECHO_T}no" >&6 | |
6204 | fi | |
d5fbea21 | 6205 | |
7357c5b6 AM |
6206 | fi |
6207 | if test -z "$ac_cv_prog_AR"; then | |
6208 | ac_ct_AR=$AR | |
6209 | # Extract the first word of "ar", so it can be a program name with args. | |
6210 | set dummy ar; ac_word=$2 | |
6211 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6212 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6213 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
ce2cded5 L |
6214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6215 | else | |
7357c5b6 AM |
6216 | if test -n "$ac_ct_AR"; then |
6217 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6218 | else | |
6219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6220 | for as_dir in $PATH | |
6221 | do | |
6222 | IFS=$as_save_IFS | |
6223 | test -z "$as_dir" && as_dir=. | |
6224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6225 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6226 | ac_cv_prog_ac_ct_AR="ar" | |
6227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6228 | break 2 | |
6229 | fi | |
6230 | done | |
6231 | done | |
d7040cdb | 6232 | |
7357c5b6 AM |
6233 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6234 | fi | |
6235 | fi | |
6236 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6237 | if test -n "$ac_ct_AR"; then | |
6238 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6239 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
ce2cded5 | 6240 | else |
7357c5b6 AM |
6241 | echo "$as_me:$LINENO: result: no" >&5 |
6242 | echo "${ECHO_T}no" >&6 | |
ce2cded5 | 6243 | fi |
d7040cdb | 6244 | |
7357c5b6 AM |
6245 | AR=$ac_ct_AR |
6246 | else | |
6247 | AR="$ac_cv_prog_AR" | |
ce2cded5 | 6248 | fi |
d7040cdb | 6249 | |
7357c5b6 AM |
6250 | test -z "$AR" && AR=ar |
6251 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb | 6252 | |
7357c5b6 AM |
6253 | |
6254 | ||
6255 | ||
6256 | ||
6257 | ||
6258 | ||
6259 | ||
6260 | ||
6261 | ||
6262 | ||
6263 | if test -n "$ac_tool_prefix"; then | |
6264 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6265 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6268 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
ce2cded5 | 6269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 6270 | else |
7357c5b6 AM |
6271 | if test -n "$STRIP"; then |
6272 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6273 | else | |
6274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6275 | for as_dir in $PATH | |
ce2cded5 | 6276 | do |
7357c5b6 AM |
6277 | IFS=$as_save_IFS |
6278 | test -z "$as_dir" && as_dir=. | |
6279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6280 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6281 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6283 | break 2 | |
ce2cded5 | 6284 | fi |
7357c5b6 AM |
6285 | done |
6286 | done | |
6287 | ||
252b5132 | 6288 | fi |
7357c5b6 AM |
6289 | fi |
6290 | STRIP=$ac_cv_prog_STRIP | |
6291 | if test -n "$STRIP"; then | |
6292 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6293 | echo "${ECHO_T}$STRIP" >&6 | |
252b5132 | 6294 | else |
7357c5b6 AM |
6295 | echo "$as_me:$LINENO: result: no" >&5 |
6296 | echo "${ECHO_T}no" >&6 | |
252b5132 | 6297 | fi |
d7040cdb | 6298 | |
6bf9431b | 6299 | fi |
7357c5b6 AM |
6300 | if test -z "$ac_cv_prog_STRIP"; then |
6301 | ac_ct_STRIP=$STRIP | |
6302 | # Extract the first word of "strip", so it can be a program name with args. | |
6303 | set dummy strip; ac_word=$2 | |
6304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6306 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 6308 | else |
7357c5b6 AM |
6309 | if test -n "$ac_ct_STRIP"; then |
6310 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6311 | else | |
6312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6313 | for as_dir in $PATH | |
6314 | do | |
6315 | IFS=$as_save_IFS | |
6316 | test -z "$as_dir" && as_dir=. | |
6317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6318 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6319 | ac_cv_prog_ac_ct_STRIP="strip" | |
6320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6321 | break 2 | |
6322 | fi | |
6323 | done | |
6324 | done | |
6bf9431b | 6325 | |
7357c5b6 AM |
6326 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6327 | fi | |
6328 | fi | |
6329 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6330 | if test -n "$ac_ct_STRIP"; then | |
6331 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6332 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6333 | else | |
6334 | echo "$as_me:$LINENO: result: no" >&5 | |
6335 | echo "${ECHO_T}no" >&6 | |
6bf9431b | 6336 | fi |
6bf9431b | 6337 | |
7357c5b6 AM |
6338 | STRIP=$ac_ct_STRIP |
6339 | else | |
6340 | STRIP="$ac_cv_prog_STRIP" | |
ce2cded5 | 6341 | fi |
6bf9431b | 6342 | |
7357c5b6 AM |
6343 | test -z "$STRIP" && STRIP=: |
6344 | ||
6345 | ||
6346 | ||
6347 | ||
6348 | ||
6349 | ||
6350 | if test -n "$ac_tool_prefix"; then | |
6351 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6352 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6353 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6355 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6357 | else | |
6358 | if test -n "$RANLIB"; then | |
6359 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6360 | else | |
6361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6362 | for as_dir in $PATH | |
6363 | do | |
6364 | IFS=$as_save_IFS | |
6365 | test -z "$as_dir" && as_dir=. | |
6366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6367 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6368 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6370 | break 2 | |
6371 | fi | |
6372 | done | |
6373 | done | |
6bf9431b | 6374 | |
ce2cded5 | 6375 | fi |
7357c5b6 AM |
6376 | fi |
6377 | RANLIB=$ac_cv_prog_RANLIB | |
6378 | if test -n "$RANLIB"; then | |
6379 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6380 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 6381 | else |
7357c5b6 AM |
6382 | echo "$as_me:$LINENO: result: no" >&5 |
6383 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 6384 | fi |
7357c5b6 AM |
6385 | |
6386 | fi | |
6387 | if test -z "$ac_cv_prog_RANLIB"; then | |
6388 | ac_ct_RANLIB=$RANLIB | |
6389 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6390 | set dummy ranlib; ac_word=$2 | |
6391 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6393 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6395 | else | |
6396 | if test -n "$ac_ct_RANLIB"; then | |
6397 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6398 | else | |
6399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6400 | for as_dir in $PATH | |
ce2cded5 | 6401 | do |
7357c5b6 AM |
6402 | IFS=$as_save_IFS |
6403 | test -z "$as_dir" && as_dir=. | |
6404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6405 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6406 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6408 | break 2 | |
ce2cded5 | 6409 | fi |
7357c5b6 AM |
6410 | done |
6411 | done | |
6412 | ||
6413 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ce2cded5 | 6414 | fi |
7357c5b6 AM |
6415 | fi |
6416 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6417 | if test -n "$ac_ct_RANLIB"; then | |
6418 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6419 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ce2cded5 | 6420 | else |
7357c5b6 AM |
6421 | echo "$as_me:$LINENO: result: no" >&5 |
6422 | echo "${ECHO_T}no" >&6 | |
ce2cded5 | 6423 | fi |
d7040cdb | 6424 | |
7357c5b6 | 6425 | RANLIB=$ac_ct_RANLIB |
d7040cdb | 6426 | else |
7357c5b6 | 6427 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb SE |
6428 | fi |
6429 | ||
7357c5b6 AM |
6430 | test -z "$RANLIB" && RANLIB=: |
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | # Determine commands to create old-style static archives. | |
6438 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6439 | old_postinstall_cmds='chmod 644 $oldlib' | |
6440 | old_postuninstall_cmds= | |
6441 | ||
6442 | if test -n "$RANLIB"; then | |
6443 | case $host_os in | |
6444 | openbsd*) | |
6445 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6446 | ;; | |
6447 | *) | |
6448 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6449 | ;; | |
6450 | esac | |
6451 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 6452 | fi |
d7040cdb SE |
6453 | |
6454 | ||
6455 | ||
6456 | ||
6457 | ||
d7040cdb | 6458 | |
7357c5b6 AM |
6459 | |
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | ||
6465 | ||
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | # If no C compiler was specified, use CC. | |
6488 | LTCC=${LTCC-"$CC"} | |
6489 | ||
6490 | # If no C compiler flags were specified, use CFLAGS. | |
6491 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6492 | ||
6493 | # Allow CC to be a program name with arguments. | |
6494 | compiler=$CC | |
6495 | ||
6496 | ||
6497 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6498 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
6499 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
6500 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
6501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6502 | else | |
6503 | ||
6504 | # These are sane defaults that work on at least a few old systems. | |
6505 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6506 | ||
6507 | # Character class describing NM global symbol codes. | |
6508 | symcode='[BCDEGRST]' | |
6509 | ||
6510 | # Regexp to match symbols that can be accessed directly from C. | |
6511 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6512 | ||
6513 | # Define system-specific variables. | |
6514 | case $host_os in | |
6515 | aix*) | |
6516 | symcode='[BCDT]' | |
6517 | ;; | |
6518 | cygwin* | mingw* | pw32*) | |
6519 | symcode='[ABCDGISTW]' | |
6520 | ;; | |
6521 | hpux*) | |
6522 | if test "$host_cpu" = ia64; then | |
6523 | symcode='[ABCDEGRST]' | |
6524 | fi | |
6525 | ;; | |
6526 | irix* | nonstopux*) | |
6527 | symcode='[BCDEGRST]' | |
6528 | ;; | |
6529 | osf*) | |
6530 | symcode='[BCDEGQRST]' | |
6531 | ;; | |
6532 | solaris*) | |
6533 | symcode='[BDRT]' | |
6534 | ;; | |
6535 | sco3.2v5*) | |
6536 | symcode='[DT]' | |
6537 | ;; | |
6538 | sysv4.2uw2*) | |
6539 | symcode='[DT]' | |
6540 | ;; | |
6541 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6542 | symcode='[ABDT]' | |
6543 | ;; | |
6544 | sysv4) | |
6545 | symcode='[DFNSTU]' | |
6546 | ;; | |
6547 | esac | |
6548 | ||
6549 | # If we're using GNU nm, then use its standard symbol codes. | |
6550 | case `$NM -V 2>&1` in | |
6551 | *GNU* | *'with BFD'*) | |
6552 | symcode='[ABCDGIRSTW]' ;; | |
6553 | esac | |
6554 | ||
6555 | # Transform an extracted symbol line into a proper C declaration. | |
6556 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6557 | # so use this general approach. | |
6558 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6559 | ||
6560 | # Transform an extracted symbol line into symbol name and symbol address | |
6561 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6562 | ||
6563 | # Handle CRLF in mingw tool chain | |
6564 | opt_cr= | |
6565 | case $build_os in | |
6566 | mingw*) | |
6567 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6568 | ;; | |
6569 | esac | |
6570 | ||
6571 | # Try without a prefix underscore, then with it. | |
6572 | for ac_symprfx in "" "_"; do | |
6573 | ||
6574 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6575 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6576 | ||
6577 | # Write the raw and C identifiers. | |
6578 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6579 | # Fake it for dumpbin and say T for any non-static function | |
6580 | # and D for any global variable. | |
6581 | # Also find C++ and __fastcall symbols from MSVC++, | |
6582 | # which start with @ or ?. | |
6583 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6584 | " {last_section=section; section=\$ 3};"\ | |
6585 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6586 | " \$ 0!~/External *\|/{next};"\ | |
6587 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6588 | " {if(hide[section]) next};"\ | |
6589 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6590 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6591 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6592 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6593 | " ' prfx=^$ac_symprfx" | |
6594 | else | |
6595 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6596 | fi | |
6597 | ||
6598 | # Check to see that the pipe works correctly. | |
6599 | pipe_works=no | |
6600 | ||
6601 | rm -f conftest* | |
6602 | cat > conftest.$ac_ext <<_LT_EOF | |
6603 | #ifdef __cplusplus | |
6604 | extern "C" { | |
6605 | #endif | |
6606 | char nm_test_var; | |
6607 | void nm_test_func(void); | |
6608 | void nm_test_func(void){} | |
6609 | #ifdef __cplusplus | |
ce2cded5 | 6610 | } |
7357c5b6 AM |
6611 | #endif |
6612 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6613 | _LT_EOF | |
6614 | ||
6615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6616 | (eval $ac_compile) 2>&5 | |
ce2cded5 L |
6617 | ac_status=$? |
6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6619 | (exit $ac_status); }; then |
6620 | # Now try to grab the symbols. | |
6621 | nlist=conftest.nm | |
6622 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6623 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
ce2cded5 L |
6624 | ac_status=$? |
6625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6626 | (exit $ac_status); } && test -s "$nlist"; then |
6627 | # Try sorting and uniquifying the output. | |
6628 | if sort "$nlist" | uniq > "$nlist"T; then | |
6629 | mv -f "$nlist"T "$nlist" | |
6630 | else | |
6631 | rm -f "$nlist"T | |
6632 | fi | |
6bf9431b | 6633 | |
7357c5b6 AM |
6634 | # Make sure that we snagged all the symbols we need. |
6635 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6636 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6637 | cat <<_LT_EOF > conftest.$ac_ext | |
6638 | #ifdef __cplusplus | |
6639 | extern "C" { | |
6640 | #endif | |
d7040cdb | 6641 | |
7357c5b6 AM |
6642 | _LT_EOF |
6643 | # Now generate the symbol file. | |
6644 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d7040cdb | 6645 | |
7357c5b6 | 6646 | cat <<_LT_EOF >> conftest.$ac_ext |
ac48eca1 | 6647 | |
7357c5b6 AM |
6648 | /* The mapping between symbol names and symbols. */ |
6649 | const struct { | |
6650 | const char *name; | |
6651 | void *address; | |
6652 | } | |
6653 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6654 | { | |
6655 | { "@PROGRAM@", (void *) 0 }, | |
6656 | _LT_EOF | |
6657 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6658 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6659 | {0, (void *) 0} | |
6660 | }; | |
d7040cdb | 6661 | |
7357c5b6 AM |
6662 | /* This works around a problem in FreeBSD linker */ |
6663 | #ifdef FREEBSD_WORKAROUND | |
6664 | static const void *lt_preloaded_setup() { | |
6665 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6666 | } | |
ce2cded5 | 6667 | #endif |
d7040cdb | 6668 | |
7357c5b6 | 6669 | #ifdef __cplusplus |
ce2cded5 | 6670 | } |
7357c5b6 AM |
6671 | #endif |
6672 | _LT_EOF | |
6673 | # Now try linking the two files. | |
6674 | mv conftest.$ac_objext conftstm.$ac_objext | |
6675 | lt_save_LIBS="$LIBS" | |
6676 | lt_save_CFLAGS="$CFLAGS" | |
6677 | LIBS="conftstm.$ac_objext" | |
6678 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ce2cded5 L |
6680 | (eval $ac_link) 2>&5 |
6681 | ac_status=$? | |
6682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6683 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6684 | pipe_works=yes | |
6685 | fi | |
6686 | LIBS="$lt_save_LIBS" | |
6687 | CFLAGS="$lt_save_CFLAGS" | |
6688 | else | |
6689 | echo "cannot find nm_test_func in $nlist" >&5 | |
6690 | fi | |
6691 | else | |
6692 | echo "cannot find nm_test_var in $nlist" >&5 | |
6693 | fi | |
6694 | else | |
6695 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6696 | fi | |
6697 | else | |
6698 | echo "$progname: failed program was:" >&5 | |
6699 | cat conftest.$ac_ext >&5 | |
6700 | fi | |
6701 | rm -f conftest* conftst* | |
6702 | ||
6703 | # Do not use the global_symbol_pipe unless it works. | |
6704 | if test "$pipe_works" = yes; then | |
6705 | break | |
6706 | else | |
6707 | lt_cv_sys_global_symbol_pipe= | |
6708 | fi | |
6709 | done | |
d7040cdb | 6710 | |
ce2cded5 | 6711 | fi |
7357c5b6 AM |
6712 | |
6713 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6714 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 6715 | fi |
7357c5b6 AM |
6716 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6717 | echo "$as_me:$LINENO: result: failed" >&5 | |
6718 | echo "${ECHO_T}failed" >&6 | |
6719 | else | |
6720 | echo "$as_me:$LINENO: result: ok" >&5 | |
6721 | echo "${ECHO_T}ok" >&6 | |
ce2cded5 | 6722 | fi |
d7040cdb | 6723 | |
d7040cdb | 6724 | |
d7040cdb | 6725 | |
d7040cdb | 6726 | |
d7040cdb | 6727 | |
d7040cdb | 6728 | |
d7040cdb | 6729 | |
d7040cdb | 6730 | |
d7040cdb | 6731 | |
d7040cdb | 6732 | |
d7040cdb | 6733 | |
d7040cdb | 6734 | |
7357c5b6 AM |
6735 | |
6736 | ||
6737 | ||
6738 | ||
6739 | ||
6740 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6741 | if test "${enable_libtool_lock+set}" = set; then | |
6742 | enableval="$enable_libtool_lock" | |
6743 | ||
6744 | fi; | |
6745 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6746 | ||
6747 | # Some flags need to be propagated to the compiler or linker for good | |
6748 | # libtool support. | |
6749 | case $host in | |
6750 | ia64-*-hpux*) | |
6751 | # Find out which ABI we are using. | |
6752 | echo 'int i;' > conftest.$ac_ext | |
6753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6754 | (eval $ac_compile) 2>&5 | |
6755 | ac_status=$? | |
6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6757 | (exit $ac_status); }; then | |
6758 | case `/usr/bin/file conftest.$ac_objext` in | |
6759 | *ELF-32*) | |
6760 | HPUX_IA64_MODE="32" | |
6761 | ;; | |
6762 | *ELF-64*) | |
6763 | HPUX_IA64_MODE="64" | |
6764 | ;; | |
6765 | esac | |
6766 | fi | |
6767 | rm -rf conftest* | |
6768 | ;; | |
6769 | *-*-irix6*) | |
6770 | # Find out which ABI we are using. | |
6771 | echo '#line 6406 "configure"' > conftest.$ac_ext | |
6772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6773 | (eval $ac_compile) 2>&5 | |
6774 | ac_status=$? | |
6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6776 | (exit $ac_status); }; then | |
6777 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6778 | case `/usr/bin/file conftest.$ac_objext` in | |
6779 | *32-bit*) | |
6780 | LD="${LD-ld} -melf32bsmip" | |
6781 | ;; | |
6782 | *N32*) | |
6783 | LD="${LD-ld} -melf32bmipn32" | |
6784 | ;; | |
6785 | *64-bit*) | |
6786 | LD="${LD-ld} -melf64bmip" | |
6787 | ;; | |
6788 | esac | |
6789 | else | |
6790 | case `/usr/bin/file conftest.$ac_objext` in | |
6791 | *32-bit*) | |
6792 | LD="${LD-ld} -32" | |
6793 | ;; | |
6794 | *N32*) | |
6795 | LD="${LD-ld} -n32" | |
6796 | ;; | |
6797 | *64-bit*) | |
6798 | LD="${LD-ld} -64" | |
6799 | ;; | |
6800 | esac | |
6801 | fi | |
6802 | fi | |
6803 | rm -rf conftest* | |
6804 | ;; | |
6805 | ||
6806 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6807 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6808 | # Find out which ABI we are using. | |
6809 | echo 'int i;' > conftest.$ac_ext | |
6810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6811 | (eval $ac_compile) 2>&5 | |
6812 | ac_status=$? | |
6813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6814 | (exit $ac_status); }; then | |
6815 | case `/usr/bin/file conftest.o` in | |
6816 | *32-bit*) | |
6817 | case $host in | |
6818 | x86_64-*kfreebsd*-gnu) | |
6819 | LD="${LD-ld} -m elf_i386_fbsd" | |
6820 | ;; | |
6821 | x86_64-*linux*) | |
6822 | LD="${LD-ld} -m elf_i386" | |
6823 | ;; | |
6824 | ppc64-*linux*|powerpc64-*linux*) | |
6825 | LD="${LD-ld} -m elf32ppclinux" | |
6826 | ;; | |
6827 | s390x-*linux*) | |
6828 | LD="${LD-ld} -m elf_s390" | |
6829 | ;; | |
6830 | sparc64-*linux*) | |
6831 | LD="${LD-ld} -m elf32_sparc" | |
6832 | ;; | |
6833 | esac | |
6834 | ;; | |
6835 | *64-bit*) | |
6836 | case $host in | |
6837 | x86_64-*kfreebsd*-gnu) | |
6838 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6839 | ;; | |
6840 | x86_64-*linux*) | |
6841 | LD="${LD-ld} -m elf_x86_64" | |
6842 | ;; | |
6843 | ppc*-*linux*|powerpc*-*linux*) | |
6844 | LD="${LD-ld} -m elf64ppc" | |
6845 | ;; | |
6846 | s390*-*linux*|s390*-*tpf*) | |
6847 | LD="${LD-ld} -m elf64_s390" | |
6848 | ;; | |
6849 | sparc*-*linux*) | |
6850 | LD="${LD-ld} -m elf64_sparc" | |
6851 | ;; | |
6852 | esac | |
6853 | ;; | |
6854 | esac | |
6855 | fi | |
6856 | rm -rf conftest* | |
6857 | ;; | |
6858 | ||
6859 | *-*-sco3.2v5*) | |
6860 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6861 | SAVE_CFLAGS="$CFLAGS" | |
6862 | CFLAGS="$CFLAGS -belf" | |
6863 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6864 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
6865 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
ce2cded5 L |
6866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6867 | else | |
7357c5b6 AM |
6868 | ac_ext=c |
6869 | ac_cpp='$CPP $CPPFLAGS' | |
6870 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6871 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6872 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6873 | ||
6874 | cat >conftest.$ac_ext <<_ACEOF | |
6bf9431b BE |
6875 | /* confdefs.h. */ |
6876 | _ACEOF | |
6877 | cat confdefs.h >>conftest.$ac_ext | |
6878 | cat >>conftest.$ac_ext <<_ACEOF | |
6879 | /* end confdefs.h. */ | |
20e95c23 | 6880 | |
7357c5b6 AM |
6881 | int |
6882 | main () | |
6883 | { | |
6884 | ||
6885 | ; | |
6886 | return 0; | |
6887 | } | |
6bf9431b | 6888 | _ACEOF |
7357c5b6 AM |
6889 | rm -f conftest.$ac_objext conftest$ac_exeext |
6890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6891 | (eval $ac_link) 2>conftest.er1 | |
6bf9431b BE |
6892 | ac_status=$? |
6893 | grep -v '^ *+' conftest.er1 >conftest.err | |
6894 | rm -f conftest.er1 | |
6895 | cat conftest.err >&5 | |
6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
6897 | (exit $ac_status); } && |
6898 | { ac_try='test -z "$ac_c_werror_flag" | |
6899 | || test ! -s conftest.err' | |
6900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6901 | (eval $ac_try) 2>&5 | |
6902 | ac_status=$? | |
6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6904 | (exit $ac_status); }; } && | |
7357c5b6 | 6905 | { ac_try='test -s conftest$ac_exeext' |
0ab6f085 AM |
6906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6907 | (eval $ac_try) 2>&5 | |
6908 | ac_status=$? | |
6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6910 | (exit $ac_status); }; }; then | |
7357c5b6 | 6911 | lt_cv_cc_needs_belf=yes |
6bf9431b | 6912 | else |
d7040cdb SE |
6913 | echo "$as_me: failed program was:" >&5 |
6914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 6915 | |
7357c5b6 | 6916 | lt_cv_cc_needs_belf=no |
ce2cded5 | 6917 | fi |
7357c5b6 AM |
6918 | rm -f conftest.err conftest.$ac_objext \ |
6919 | conftest$ac_exeext conftest.$ac_ext | |
6920 | ac_ext=c | |
6921 | ac_cpp='$CPP $CPPFLAGS' | |
6922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 6925 | |
ce2cded5 | 6926 | fi |
7357c5b6 AM |
6927 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
6928 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
6929 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6930 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6931 | CFLAGS="$SAVE_CFLAGS" | |
6932 | fi | |
6933 | ;; | |
6934 | sparc*-*solaris*) | |
6935 | # Find out which ABI we are using. | |
6936 | echo 'int i;' > conftest.$ac_ext | |
6937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6938 | (eval $ac_compile) 2>&5 | |
6939 | ac_status=$? | |
6940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6941 | (exit $ac_status); }; then | |
6942 | case `/usr/bin/file conftest.o` in | |
6943 | *64-bit*) | |
6944 | case $lt_cv_prog_gnu_ld in | |
6945 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6946 | *) LD="${LD-ld} -64" ;; | |
6947 | esac | |
6948 | ;; | |
6949 | esac | |
6950 | fi | |
6951 | rm -rf conftest* | |
6952 | ;; | |
6953 | esac | |
d7040cdb | 6954 | |
7357c5b6 | 6955 | need_locks="$enable_libtool_lock" |
ce2cded5 L |
6956 | |
6957 | ||
6958 | for ac_header in dlfcn.h | |
6959 | do | |
6960 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6961 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6965 | else | |
6966 | cat >conftest.$ac_ext <<_ACEOF | |
6967 | /* confdefs.h. */ | |
20e95c23 | 6968 | _ACEOF |
ce2cded5 L |
6969 | cat confdefs.h >>conftest.$ac_ext |
6970 | cat >>conftest.$ac_ext <<_ACEOF | |
6971 | /* end confdefs.h. */ | |
6972 | $ac_includes_default | |
6973 | ||
6974 | #include <$ac_header> | |
6975 | _ACEOF | |
6976 | rm -f conftest.$ac_objext | |
6977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6978 | (eval $ac_compile) 2>conftest.er1 | |
d7040cdb SE |
6979 | ac_status=$? |
6980 | grep -v '^ *+' conftest.er1 >conftest.err | |
6981 | rm -f conftest.er1 | |
6982 | cat conftest.err >&5 | |
6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
6984 | (exit $ac_status); } && |
6985 | { ac_try='test -z "$ac_c_werror_flag" | |
6986 | || test ! -s conftest.err' | |
6987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6988 | (eval $ac_try) 2>&5 | |
6989 | ac_status=$? | |
6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6991 | (exit $ac_status); }; } && | |
ce2cded5 | 6992 | { ac_try='test -s conftest.$ac_objext' |
0ab6f085 AM |
6993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6994 | (eval $ac_try) 2>&5 | |
6995 | ac_status=$? | |
6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6997 | (exit $ac_status); }; }; then | |
ce2cded5 | 6998 | eval "$as_ac_Header=yes" |
20e95c23 | 6999 | else |
d7040cdb | 7000 | echo "$as_me: failed program was:" >&5 |
20e95c23 | 7001 | sed 's/^/| /' conftest.$ac_ext >&5 |
252b5132 | 7002 | |
ce2cded5 | 7003 | eval "$as_ac_Header=no" |
20e95c23 | 7004 | fi |
ce2cded5 L |
7005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7006 | fi | |
7007 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7008 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7009 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7010 | cat >>confdefs.h <<_ACEOF | |
7011 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7012 | _ACEOF | |
d7040cdb | 7013 | |
ce2cded5 | 7014 | fi |
252b5132 | 7015 | |
ce2cded5 | 7016 | done |
6bf9431b | 7017 | |
252b5132 | 7018 | |
6bf9431b | 7019 | |
ce2cded5 L |
7020 | # This can be used to rebuild libtool when needed |
7021 | LIBTOOL_DEPS="$ltmain" | |
6bf9431b | 7022 | |
ce2cded5 L |
7023 | # Always use our own libtool. |
7024 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
252b5132 | 7025 | |
6bf9431b | 7026 | |
252b5132 | 7027 | |
6bf9431b | 7028 | |
252b5132 | 7029 | |
252b5132 | 7030 | |
d7040cdb | 7031 | |
6bf9431b | 7032 | |
252b5132 | 7033 | |
d7040cdb | 7034 | |
d7040cdb | 7035 | |
d7040cdb | 7036 | |
d7040cdb | 7037 | |
d7040cdb | 7038 | |
d7040cdb | 7039 | |
d7040cdb | 7040 | |
d7040cdb | 7041 | |
d7040cdb | 7042 | |
d7040cdb | 7043 | |
d7040cdb | 7044 | |
d7040cdb SE |
7045 | |
7046 | ||
7047 | ||
7048 | ||
7049 | ||
ce2cded5 | 7050 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7051 | |
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | ||
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | ||
7064 | ||
ce2cded5 L |
7065 | if test -n "${ZSH_VERSION+set}" ; then |
7066 | setopt NO_GLOB_SUBST | |
7067 | fi | |
d7040cdb | 7068 | |
ce2cded5 L |
7069 | echo "$as_me:$LINENO: checking for objdir" >&5 |
7070 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
7071 | if test "${lt_cv_objdir+set}" = set; then | |
7072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7073 | else | |
7074 | rm -f .libs 2>/dev/null | |
7075 | mkdir .libs 2>/dev/null | |
7076 | if test -d .libs; then | |
7077 | lt_cv_objdir=.libs | |
7078 | else | |
7079 | # MS-DOS does not allow filenames that begin with a dot. | |
7080 | lt_cv_objdir=_libs | |
7081 | fi | |
7082 | rmdir .libs 2>/dev/null | |
7083 | fi | |
7084 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7085 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
7086 | objdir=$lt_cv_objdir | |
d7040cdb SE |
7087 | |
7088 | ||
7089 | ||
7090 | ||
7091 | ||
ce2cded5 L |
7092 | cat >>confdefs.h <<_ACEOF |
7093 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7094 | _ACEOF | |
d7040cdb SE |
7095 | |
7096 | ||
7097 | ||
7098 | ||
7099 | ||
7100 | ||
7101 | ||
7102 | ||
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | ||
7109 | ||
7110 | ||
7111 | ||
ce2cded5 L |
7112 | case $host_os in |
7113 | aix3*) | |
7114 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7115 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7116 | # vanish in a puff of smoke. | |
7117 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7118 | COLLECT_NAMES= | |
7119 | export COLLECT_NAMES | |
7120 | fi | |
7121 | ;; | |
7122 | esac | |
d7040cdb | 7123 | |
ce2cded5 L |
7124 | # Sed substitution that helps us do robust quoting. It backslashifies |
7125 | # metacharacters that are still active within double-quoted strings. | |
7126 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 7127 | |
ce2cded5 L |
7128 | # Same as above, but do not quote variable references. |
7129 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 7130 | |
ce2cded5 L |
7131 | # Sed substitution to delay expansion of an escaped shell variable in a |
7132 | # double_quote_subst'ed string. | |
7133 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 7134 | |
ce2cded5 L |
7135 | # Sed substitution to delay expansion of an escaped single quote. |
7136 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 7137 | |
ce2cded5 L |
7138 | # Sed substitution to avoid accidental globbing in evaled expressions |
7139 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 7140 | |
ce2cded5 L |
7141 | # Global variables: |
7142 | ofile=libtool | |
7143 | can_build_shared=yes | |
d7040cdb | 7144 | |
ce2cded5 L |
7145 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7146 | # which needs '.lib'). | |
7147 | libext=a | |
d7040cdb | 7148 | |
ce2cded5 | 7149 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7150 | |
ce2cded5 L |
7151 | old_CC="$CC" |
7152 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7153 | |
ce2cded5 L |
7154 | # Set sane defaults for various variables |
7155 | test -z "$CC" && CC=cc | |
7156 | test -z "$LTCC" && LTCC=$CC | |
7157 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7158 | test -z "$LD" && LD=ld | |
7159 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 7160 | |
ce2cded5 L |
7161 | for cc_temp in $compiler""; do |
7162 | case $cc_temp in | |
7163 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7164 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7165 | \-*) ;; | |
7166 | *) break;; | |
7167 | esac | |
7168 | done | |
7169 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d7040cdb SE |
7170 | |
7171 | ||
ce2cded5 L |
7172 | # Only perform the check for file, if the check method requires it |
7173 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7174 | case $deplibs_check_method in | |
7175 | file_magic*) | |
7176 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7177 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7178 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
7179 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7181 | else | |
7182 | case $MAGIC_CMD in | |
7183 | [\\/*] | ?:[\\/]*) | |
7184 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7185 | ;; | |
7186 | *) | |
7187 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7188 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7189 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7190 | for ac_dir in $ac_dummy; do | |
7191 | IFS="$lt_save_ifs" | |
7192 | test -z "$ac_dir" && ac_dir=. | |
7193 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7194 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7195 | if test -n "$file_magic_test_file"; then | |
7196 | case $deplibs_check_method in | |
7197 | "file_magic "*) | |
7198 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7199 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7200 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7201 | $EGREP "$file_magic_regex" > /dev/null; then | |
7202 | : | |
7203 | else | |
7204 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 7205 | |
ce2cded5 L |
7206 | *** Warning: the command libtool uses to detect shared libraries, |
7207 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7208 | *** The result is that libtool may fail to recognize shared libraries | |
7209 | *** as such. This will affect the creation of libtool libraries that | |
7210 | *** depend on shared libraries, but programs linked with such libtool | |
7211 | *** libraries will work regardless of this problem. Nevertheless, you | |
7212 | *** may want to report the problem to your system manager and/or to | |
7213 | *** bug-libtool@gnu.org | |
d7040cdb | 7214 | |
ce2cded5 L |
7215 | _LT_EOF |
7216 | fi ;; | |
7217 | esac | |
7218 | fi | |
7219 | break | |
7220 | fi | |
7221 | done | |
7222 | IFS="$lt_save_ifs" | |
7223 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7224 | ;; | |
7225 | esac | |
7226 | fi | |
d7040cdb | 7227 | |
ce2cded5 L |
7228 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7229 | if test -n "$MAGIC_CMD"; then | |
7230 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7231 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
7232 | else | |
7233 | echo "$as_me:$LINENO: result: no" >&5 | |
7234 | echo "${ECHO_T}no" >&6 | |
7235 | fi | |
d7040cdb SE |
7236 | |
7237 | ||
7238 | ||
7239 | ||
7240 | ||
ce2cded5 L |
7241 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7242 | if test -n "$ac_tool_prefix"; then | |
7243 | echo "$as_me:$LINENO: checking for file" >&5 | |
7244 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
7245 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7247 | else | |
7248 | case $MAGIC_CMD in | |
7249 | [\\/*] | ?:[\\/]*) | |
7250 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7251 | ;; | |
7252 | *) | |
7253 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7254 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7255 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7256 | for ac_dir in $ac_dummy; do | |
7257 | IFS="$lt_save_ifs" | |
7258 | test -z "$ac_dir" && ac_dir=. | |
7259 | if test -f $ac_dir/file; then | |
7260 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7261 | if test -n "$file_magic_test_file"; then | |
7262 | case $deplibs_check_method in | |
7263 | "file_magic "*) | |
7264 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7265 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7266 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7267 | $EGREP "$file_magic_regex" > /dev/null; then | |
7268 | : | |
7269 | else | |
7270 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 7271 | |
ce2cded5 L |
7272 | *** Warning: the command libtool uses to detect shared libraries, |
7273 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7274 | *** The result is that libtool may fail to recognize shared libraries | |
7275 | *** as such. This will affect the creation of libtool libraries that | |
7276 | *** depend on shared libraries, but programs linked with such libtool | |
7277 | *** libraries will work regardless of this problem. Nevertheless, you | |
7278 | *** may want to report the problem to your system manager and/or to | |
7279 | *** bug-libtool@gnu.org | |
d7040cdb | 7280 | |
ce2cded5 L |
7281 | _LT_EOF |
7282 | fi ;; | |
7283 | esac | |
7284 | fi | |
7285 | break | |
7286 | fi | |
7287 | done | |
7288 | IFS="$lt_save_ifs" | |
7289 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7290 | ;; | |
7291 | esac | |
7292 | fi | |
d7040cdb | 7293 | |
ce2cded5 L |
7294 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7295 | if test -n "$MAGIC_CMD"; then | |
7296 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7297 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
7298 | else | |
7299 | echo "$as_me:$LINENO: result: no" >&5 | |
7300 | echo "${ECHO_T}no" >&6 | |
7301 | fi | |
d7040cdb SE |
7302 | |
7303 | ||
ce2cded5 L |
7304 | else |
7305 | MAGIC_CMD=: | |
7306 | fi | |
7307 | fi | |
d7040cdb | 7308 | |
ce2cded5 L |
7309 | fi |
7310 | ;; | |
7311 | esac | |
d7040cdb | 7312 | |
ce2cded5 | 7313 | # Use C for the default configuration in the libtool script |
d7040cdb | 7314 | |
ce2cded5 L |
7315 | lt_save_CC="$CC" |
7316 | ac_ext=c | |
7317 | ac_cpp='$CPP $CPPFLAGS' | |
7318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
7321 | |
7322 | ||
ce2cded5 L |
7323 | # Source file extension for C test sources. |
7324 | ac_ext=c | |
d7040cdb | 7325 | |
ce2cded5 L |
7326 | # Object file extension for compiled C test sources. |
7327 | objext=o | |
7328 | objext=$objext | |
d7040cdb | 7329 | |
ce2cded5 L |
7330 | # Code to be used in simple compile tests |
7331 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 7332 | |
ce2cded5 L |
7333 | # Code to be used in simple link tests |
7334 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
7335 | |
7336 | ||
7337 | ||
7338 | ||
7339 | ||
7340 | ||
7341 | ||
ce2cded5 L |
7342 | # If no C compiler was specified, use CC. |
7343 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 7344 | |
ce2cded5 L |
7345 | # If no C compiler flags were specified, use CFLAGS. |
7346 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 7347 | |
ce2cded5 L |
7348 | # Allow CC to be a program name with arguments. |
7349 | compiler=$CC | |
d7040cdb | 7350 | |
ce2cded5 L |
7351 | # Save the default compiler, since it gets overwritten when the other |
7352 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7353 | compiler_DEFAULT=$CC | |
d7040cdb | 7354 | |
ce2cded5 L |
7355 | # save warnings/boilerplate of simple test code |
7356 | ac_outfile=conftest.$ac_objext | |
7357 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7358 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7359 | _lt_compiler_boilerplate=`cat conftest.err` | |
7360 | $RM conftest* | |
d7040cdb | 7361 | |
ce2cded5 L |
7362 | ac_outfile=conftest.$ac_objext |
7363 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7364 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7365 | _lt_linker_boilerplate=`cat conftest.err` | |
7366 | $RM conftest* | |
d7040cdb SE |
7367 | |
7368 | ||
ce2cded5 L |
7369 | ## CAVEAT EMPTOR: |
7370 | ## There is no encapsulation within the following macros, do not change | |
7371 | ## the running order or otherwise move them around unless you know exactly | |
7372 | ## what you are doing... | |
7373 | if test -n "$compiler"; then | |
d7040cdb | 7374 | |
ce2cded5 | 7375 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 7376 | |
ce2cded5 L |
7377 | if test "$GCC" = yes; then |
7378 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d7040cdb | 7379 | |
ce2cded5 L |
7380 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7381 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
7382 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7384 | else | |
7385 | lt_cv_prog_compiler_rtti_exceptions=no | |
7386 | ac_outfile=conftest.$ac_objext | |
7387 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7388 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7389 | # Insert the option either (1) after the last *FLAGS variable, or | |
7390 | # (2) before a word containing "conftest.", or (3) at the end. | |
7391 | # Note that $ac_compile itself does not contain backslashes and begins | |
7392 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7393 | # The option is referenced via a variable to avoid confusing sed. | |
7394 | lt_compile=`echo "$ac_compile" | $SED \ | |
7395 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7396 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7397 | -e 's:$: $lt_compiler_flag:'` | |
7357c5b6 | 7398 | (eval echo "\"\$as_me:7033: $lt_compile\"" >&5) |
ce2cded5 L |
7399 | (eval "$lt_compile" 2>conftest.err) |
7400 | ac_status=$? | |
7401 | cat conftest.err >&5 | |
7357c5b6 | 7402 | echo "$as_me:7037: \$? = $ac_status" >&5 |
ce2cded5 L |
7403 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7404 | # The compiler can only warn and ignore the option if not recognized | |
7405 | # So say no if there are warnings other than the usual output. | |
7406 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7407 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7408 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7409 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7410 | fi | |
7411 | fi | |
7412 | $RM conftest* | |
d7040cdb | 7413 | |
ce2cded5 L |
7414 | fi |
7415 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7416 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
d7040cdb | 7417 | |
ce2cded5 L |
7418 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7419 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7420 | else | |
7421 | : | |
7422 | fi | |
d7040cdb | 7423 | |
ce2cded5 | 7424 | fi |
d7040cdb SE |
7425 | |
7426 | ||
7427 | ||
7428 | ||
7429 | ||
7430 | ||
ce2cded5 L |
7431 | lt_prog_compiler_wl= |
7432 | lt_prog_compiler_pic= | |
7433 | lt_prog_compiler_static= | |
d7040cdb | 7434 | |
ce2cded5 L |
7435 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7436 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
d7040cdb | 7437 | |
ce2cded5 L |
7438 | if test "$GCC" = yes; then |
7439 | lt_prog_compiler_wl='-Wl,' | |
7440 | lt_prog_compiler_static='-static' | |
d7040cdb | 7441 | |
ce2cded5 L |
7442 | case $host_os in |
7443 | aix*) | |
7444 | # All AIX code is PIC. | |
7445 | if test "$host_cpu" = ia64; then | |
7446 | # AIX 5 now supports IA64 processor | |
7447 | lt_prog_compiler_static='-Bstatic' | |
7448 | fi | |
7449 | ;; | |
d7040cdb | 7450 | |
ce2cded5 L |
7451 | amigaos*) |
7452 | if test "$host_cpu" = m68k; then | |
7453 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7454 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7455 | # like `-m68040'. | |
7456 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7457 | fi | |
7458 | ;; | |
d7040cdb | 7459 | |
ce2cded5 L |
7460 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7461 | # PIC is the default for these OSes. | |
7462 | ;; | |
d7040cdb | 7463 | |
ce2cded5 L |
7464 | mingw* | cygwin* | pw32* | os2*) |
7465 | # This hack is so that the source file can tell whether it is being | |
7466 | # built for inclusion in a dll (and should export symbols for example). | |
7467 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7468 | # (--disable-auto-import) libraries | |
7469 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7470 | ;; | |
d7040cdb | 7471 | |
ce2cded5 L |
7472 | darwin* | rhapsody*) |
7473 | # PIC is the default on this platform | |
7474 | # Common symbols not allowed in MH_DYLIB files | |
7475 | lt_prog_compiler_pic='-fno-common' | |
7476 | ;; | |
d7040cdb | 7477 | |
ce2cded5 L |
7478 | hpux*) |
7479 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7480 | # not for PA HP-UX. | |
7481 | case $host_cpu in | |
7482 | hppa*64*|ia64*) | |
7483 | # +Z the default | |
7484 | ;; | |
7485 | *) | |
7486 | lt_prog_compiler_pic='-fPIC' | |
7487 | ;; | |
7488 | esac | |
7489 | ;; | |
d7040cdb | 7490 | |
ce2cded5 L |
7491 | interix[3-9]*) |
7492 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7493 | # Instead, we relocate shared libraries at runtime. | |
7494 | ;; | |
d7040cdb | 7495 | |
ce2cded5 L |
7496 | msdosdjgpp*) |
7497 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7498 | # on systems that don't support them. | |
7499 | lt_prog_compiler_can_build_shared=no | |
7500 | enable_shared=no | |
7501 | ;; | |
d7040cdb | 7502 | |
ce2cded5 L |
7503 | *nto* | *qnx*) |
7504 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7505 | # it will coredump. | |
7506 | lt_prog_compiler_pic='-fPIC -shared' | |
7507 | ;; | |
d7040cdb | 7508 | |
ce2cded5 L |
7509 | sysv4*MP*) |
7510 | if test -d /usr/nec; then | |
7511 | lt_prog_compiler_pic=-Kconform_pic | |
7512 | fi | |
7513 | ;; | |
d7040cdb | 7514 | |
ce2cded5 L |
7515 | *) |
7516 | lt_prog_compiler_pic='-fPIC' | |
7517 | ;; | |
7518 | esac | |
7519 | else | |
7520 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7521 | case $host_os in | |
7522 | aix*) | |
7523 | lt_prog_compiler_wl='-Wl,' | |
7524 | if test "$host_cpu" = ia64; then | |
7525 | # AIX 5 now supports IA64 processor | |
7526 | lt_prog_compiler_static='-Bstatic' | |
7527 | else | |
7528 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7529 | fi | |
7530 | ;; | |
7531 | darwin*) | |
7532 | # PIC is the default on this platform | |
7533 | # Common symbols not allowed in MH_DYLIB files | |
7534 | case $cc_basename in | |
7535 | xlc*) | |
7536 | lt_prog_compiler_pic='-qnocommon' | |
7537 | lt_prog_compiler_wl='-Wl,' | |
7538 | ;; | |
7539 | esac | |
7540 | ;; | |
d7040cdb | 7541 | |
ce2cded5 L |
7542 | mingw* | cygwin* | pw32* | os2*) |
7543 | # This hack is so that the source file can tell whether it is being | |
7544 | # built for inclusion in a dll (and should export symbols for example). | |
7545 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7546 | ;; | |
d7040cdb | 7547 | |
ce2cded5 L |
7548 | hpux9* | hpux10* | hpux11*) |
7549 | lt_prog_compiler_wl='-Wl,' | |
7550 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7551 | # not for PA HP-UX. | |
7552 | case $host_cpu in | |
7553 | hppa*64*|ia64*) | |
7554 | # +Z the default | |
7555 | ;; | |
7556 | *) | |
7557 | lt_prog_compiler_pic='+Z' | |
7558 | ;; | |
7559 | esac | |
7560 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7561 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7562 | ;; | |
d7040cdb | 7563 | |
ce2cded5 L |
7564 | irix5* | irix6* | nonstopux*) |
7565 | lt_prog_compiler_wl='-Wl,' | |
7566 | # PIC (with -KPIC) is the default. | |
7567 | lt_prog_compiler_static='-non_shared' | |
7568 | ;; | |
d7040cdb | 7569 | |
ce2cded5 L |
7570 | linux* | k*bsd*-gnu) |
7571 | case $cc_basename in | |
7572 | icc* | ecc*) | |
7573 | lt_prog_compiler_wl='-Wl,' | |
7574 | lt_prog_compiler_pic='-KPIC' | |
7575 | lt_prog_compiler_static='-static' | |
7576 | ;; | |
7577 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7578 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7579 | # which looks to be a dead project) | |
7580 | lt_prog_compiler_wl='-Wl,' | |
7581 | lt_prog_compiler_pic='-fpic' | |
7582 | lt_prog_compiler_static='-Bstatic' | |
7583 | ;; | |
7584 | ccc*) | |
7585 | lt_prog_compiler_wl='-Wl,' | |
7586 | # All Alpha code is PIC. | |
7587 | lt_prog_compiler_static='-non_shared' | |
7588 | ;; | |
7589 | *) | |
7590 | case `$CC -V 2>&1 | sed 5q` in | |
7591 | *Sun\ C*) | |
7592 | # Sun C 5.9 | |
7593 | lt_prog_compiler_pic='-KPIC' | |
7594 | lt_prog_compiler_static='-Bstatic' | |
7595 | lt_prog_compiler_wl='-Wl,' | |
7596 | ;; | |
7597 | *Sun\ F*) | |
7598 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7599 | lt_prog_compiler_pic='-KPIC' | |
7600 | lt_prog_compiler_static='-Bstatic' | |
7601 | lt_prog_compiler_wl='' | |
7602 | ;; | |
7603 | esac | |
7604 | ;; | |
7605 | esac | |
7606 | ;; | |
d7040cdb | 7607 | |
ce2cded5 L |
7608 | newsos6) |
7609 | lt_prog_compiler_pic='-KPIC' | |
7610 | lt_prog_compiler_static='-Bstatic' | |
7611 | ;; | |
d7040cdb | 7612 | |
ce2cded5 L |
7613 | *nto* | *qnx*) |
7614 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7615 | # it will coredump. | |
7616 | lt_prog_compiler_pic='-fPIC -shared' | |
7617 | ;; | |
d7040cdb | 7618 | |
ce2cded5 L |
7619 | osf3* | osf4* | osf5*) |
7620 | lt_prog_compiler_wl='-Wl,' | |
7621 | # All OSF/1 code is PIC. | |
7622 | lt_prog_compiler_static='-non_shared' | |
7623 | ;; | |
d7040cdb | 7624 | |
ce2cded5 L |
7625 | rdos*) |
7626 | lt_prog_compiler_static='-non_shared' | |
7627 | ;; | |
d7040cdb | 7628 | |
ce2cded5 L |
7629 | solaris*) |
7630 | lt_prog_compiler_pic='-KPIC' | |
7631 | lt_prog_compiler_static='-Bstatic' | |
7632 | case $cc_basename in | |
7633 | f77* | f90* | f95*) | |
7634 | lt_prog_compiler_wl='-Qoption ld ';; | |
7635 | *) | |
7636 | lt_prog_compiler_wl='-Wl,';; | |
7637 | esac | |
7638 | ;; | |
d7040cdb | 7639 | |
ce2cded5 L |
7640 | sunos4*) |
7641 | lt_prog_compiler_wl='-Qoption ld ' | |
7642 | lt_prog_compiler_pic='-PIC' | |
7643 | lt_prog_compiler_static='-Bstatic' | |
7644 | ;; | |
d7040cdb | 7645 | |
ce2cded5 L |
7646 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7647 | lt_prog_compiler_wl='-Wl,' | |
7648 | lt_prog_compiler_pic='-KPIC' | |
7649 | lt_prog_compiler_static='-Bstatic' | |
7650 | ;; | |
d7040cdb | 7651 | |
ce2cded5 L |
7652 | sysv4*MP*) |
7653 | if test -d /usr/nec ;then | |
7654 | lt_prog_compiler_pic='-Kconform_pic' | |
7655 | lt_prog_compiler_static='-Bstatic' | |
7656 | fi | |
7657 | ;; | |
d7040cdb | 7658 | |
ce2cded5 L |
7659 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7660 | lt_prog_compiler_wl='-Wl,' | |
7661 | lt_prog_compiler_pic='-KPIC' | |
7662 | lt_prog_compiler_static='-Bstatic' | |
7663 | ;; | |
d7040cdb | 7664 | |
ce2cded5 L |
7665 | unicos*) |
7666 | lt_prog_compiler_wl='-Wl,' | |
7667 | lt_prog_compiler_can_build_shared=no | |
7668 | ;; | |
d7040cdb | 7669 | |
ce2cded5 L |
7670 | uts4*) |
7671 | lt_prog_compiler_pic='-pic' | |
7672 | lt_prog_compiler_static='-Bstatic' | |
7673 | ;; | |
d7040cdb | 7674 | |
ce2cded5 L |
7675 | *) |
7676 | lt_prog_compiler_can_build_shared=no | |
7677 | ;; | |
7678 | esac | |
7679 | fi | |
d7040cdb | 7680 | |
ce2cded5 L |
7681 | case $host_os in |
7682 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7683 | *djgpp*) | |
7684 | lt_prog_compiler_pic= | |
7685 | ;; | |
7686 | *) | |
7687 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7688 | ;; | |
7689 | esac | |
7690 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7691 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
d7040cdb SE |
7692 | |
7693 | ||
7694 | ||
7695 | ||
7696 | ||
7697 | ||
ce2cded5 L |
7698 | # |
7699 | # Check to make sure the PIC flag actually works. | |
7700 | # | |
7701 | if test -n "$lt_prog_compiler_pic"; then | |
7702 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7703 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
7704 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7706 | else | |
7707 | lt_prog_compiler_pic_works=no | |
7708 | ac_outfile=conftest.$ac_objext | |
7709 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7710 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7711 | # Insert the option either (1) after the last *FLAGS variable, or | |
7712 | # (2) before a word containing "conftest.", or (3) at the end. | |
7713 | # Note that $ac_compile itself does not contain backslashes and begins | |
7714 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7715 | # The option is referenced via a variable to avoid confusing sed. | |
7716 | lt_compile=`echo "$ac_compile" | $SED \ | |
7717 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7718 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7719 | -e 's:$: $lt_compiler_flag:'` | |
7357c5b6 | 7720 | (eval echo "\"\$as_me:7355: $lt_compile\"" >&5) |
ce2cded5 L |
7721 | (eval "$lt_compile" 2>conftest.err) |
7722 | ac_status=$? | |
7723 | cat conftest.err >&5 | |
7357c5b6 | 7724 | echo "$as_me:7359: \$? = $ac_status" >&5 |
ce2cded5 L |
7725 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7726 | # The compiler can only warn and ignore the option if not recognized | |
7727 | # So say no if there are warnings other than the usual output. | |
7728 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7729 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7730 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7731 | lt_prog_compiler_pic_works=yes | |
7732 | fi | |
7733 | fi | |
7734 | $RM conftest* | |
d7040cdb | 7735 | |
ce2cded5 L |
7736 | fi |
7737 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7738 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
d7040cdb | 7739 | |
ce2cded5 L |
7740 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7741 | case $lt_prog_compiler_pic in | |
7742 | "" | " "*) ;; | |
7743 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7744 | esac | |
7745 | else | |
7746 | lt_prog_compiler_pic= | |
7747 | lt_prog_compiler_can_build_shared=no | |
7748 | fi | |
d7040cdb | 7749 | |
ce2cded5 | 7750 | fi |
d7040cdb SE |
7751 | |
7752 | ||
7753 | ||
7754 | ||
7755 | ||
7756 | ||
ce2cded5 L |
7757 | # |
7758 | # Check to make sure the static flag actually works. | |
7759 | # | |
7760 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7761 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7762 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
7763 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7765 | else | |
7766 | lt_prog_compiler_static_works=no | |
7767 | save_LDFLAGS="$LDFLAGS" | |
7768 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7769 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7770 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7771 | # The linker can only warn and ignore the option if not recognized | |
7772 | # So say no if there are warnings | |
7773 | if test -s conftest.err; then | |
7774 | # Append any errors to the config.log. | |
7775 | cat conftest.err 1>&5 | |
7776 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7777 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7778 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7779 | lt_prog_compiler_static_works=yes | |
7780 | fi | |
7781 | else | |
7782 | lt_prog_compiler_static_works=yes | |
7783 | fi | |
7784 | fi | |
7785 | $RM conftest* | |
7786 | LDFLAGS="$save_LDFLAGS" | |
d7040cdb | 7787 | |
ce2cded5 L |
7788 | fi |
7789 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7790 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
d7040cdb | 7791 | |
ce2cded5 L |
7792 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7793 | : | |
7794 | else | |
7795 | lt_prog_compiler_static= | |
7796 | fi | |
d7040cdb SE |
7797 | |
7798 | ||
7799 | ||
7800 | ||
7801 | ||
7802 | ||
7803 | ||
ce2cded5 L |
7804 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7805 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7806 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7808 | else | |
7809 | lt_cv_prog_compiler_c_o=no | |
7810 | $RM -r conftest 2>/dev/null | |
7811 | mkdir conftest | |
7812 | cd conftest | |
7813 | mkdir out | |
7814 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 7815 | |
ce2cded5 L |
7816 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7817 | # Insert the option either (1) after the last *FLAGS variable, or | |
7818 | # (2) before a word containing "conftest.", or (3) at the end. | |
7819 | # Note that $ac_compile itself does not contain backslashes and begins | |
7820 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7821 | lt_compile=`echo "$ac_compile" | $SED \ | |
7822 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7823 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7824 | -e 's:$: $lt_compiler_flag:'` | |
7357c5b6 | 7825 | (eval echo "\"\$as_me:7460: $lt_compile\"" >&5) |
ce2cded5 L |
7826 | (eval "$lt_compile" 2>out/conftest.err) |
7827 | ac_status=$? | |
7828 | cat out/conftest.err >&5 | |
7357c5b6 | 7829 | echo "$as_me:7464: \$? = $ac_status" >&5 |
ce2cded5 L |
7830 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7831 | then | |
7832 | # The compiler can only warn and ignore the option if not recognized | |
7833 | # So say no if there are warnings | |
7834 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7835 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7836 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7837 | lt_cv_prog_compiler_c_o=yes | |
7838 | fi | |
7839 | fi | |
7840 | chmod u+w . 2>&5 | |
7841 | $RM conftest* | |
7842 | # SGI C++ compiler will create directory out/ii_files/ for | |
7843 | # template instantiation | |
7844 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7845 | $RM out/* && rmdir out | |
7846 | cd .. | |
7847 | $RM -r conftest | |
7848 | $RM conftest* | |
7849 | ||
7850 | fi | |
7851 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7852 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7853 | ||
7854 | ||
7855 | ||
7856 | ||
7857 | ||
7858 | ||
7859 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7860 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7861 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 7863 | else |
ce2cded5 L |
7864 | lt_cv_prog_compiler_c_o=no |
7865 | $RM -r conftest 2>/dev/null | |
7866 | mkdir conftest | |
7867 | cd conftest | |
7868 | mkdir out | |
7869 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7870 | ||
7871 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7872 | # Insert the option either (1) after the last *FLAGS variable, or | |
7873 | # (2) before a word containing "conftest.", or (3) at the end. | |
7874 | # Note that $ac_compile itself does not contain backslashes and begins | |
7875 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7876 | lt_compile=`echo "$ac_compile" | $SED \ | |
7877 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7878 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7879 | -e 's:$: $lt_compiler_flag:'` | |
7357c5b6 | 7880 | (eval echo "\"\$as_me:7515: $lt_compile\"" >&5) |
ce2cded5 L |
7881 | (eval "$lt_compile" 2>out/conftest.err) |
7882 | ac_status=$? | |
7883 | cat out/conftest.err >&5 | |
7357c5b6 | 7884 | echo "$as_me:7519: \$? = $ac_status" >&5 |
ce2cded5 L |
7885 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7886 | then | |
7887 | # The compiler can only warn and ignore the option if not recognized | |
7888 | # So say no if there are warnings | |
7889 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7890 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7891 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7892 | lt_cv_prog_compiler_c_o=yes | |
7893 | fi | |
7894 | fi | |
7895 | chmod u+w . 2>&5 | |
7896 | $RM conftest* | |
7897 | # SGI C++ compiler will create directory out/ii_files/ for | |
7898 | # template instantiation | |
7899 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7900 | $RM out/* && rmdir out | |
7901 | cd .. | |
7902 | $RM -r conftest | |
7903 | $RM conftest* | |
7904 | ||
d7040cdb | 7905 | fi |
ce2cded5 L |
7906 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7907 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
d7040cdb | 7908 | |
d7040cdb | 7909 | |
d7040cdb | 7910 | |
d7040cdb | 7911 | |
ce2cded5 L |
7912 | hard_links="nottested" |
7913 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7914 | # do not overwrite the value of need_locks provided by the user | |
7915 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7916 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7917 | hard_links=yes | |
7918 | $RM conftest* | |
7919 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7920 | touch conftest.a | |
7921 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7922 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7923 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7924 | echo "${ECHO_T}$hard_links" >&6 | |
7925 | if test "$hard_links" = no; then | |
7926 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7927 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7928 | need_locks=warn | |
d7040cdb | 7929 | fi |
ce2cded5 L |
7930 | else |
7931 | need_locks=no | |
7932 | fi | |
d7040cdb | 7933 | |
d7040cdb | 7934 | |
d7040cdb | 7935 | |
d7040cdb | 7936 | |
d7040cdb | 7937 | |
d7040cdb | 7938 | |
ce2cded5 L |
7939 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7940 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
d7040cdb | 7941 | |
ce2cded5 L |
7942 | runpath_var= |
7943 | allow_undefined_flag= | |
7944 | always_export_symbols=no | |
7945 | archive_cmds= | |
7946 | archive_expsym_cmds= | |
7947 | compiler_needs_object=no | |
7948 | enable_shared_with_static_runtimes=no | |
7949 | export_dynamic_flag_spec= | |
7950 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7951 | hardcode_automatic=no | |
7952 | hardcode_direct=no | |
7953 | hardcode_direct_absolute=no | |
7954 | hardcode_libdir_flag_spec= | |
7955 | hardcode_libdir_flag_spec_ld= | |
7956 | hardcode_libdir_separator= | |
7957 | hardcode_minus_L=no | |
7958 | hardcode_shlibpath_var=unsupported | |
7959 | inherit_rpath=no | |
7960 | link_all_deplibs=unknown | |
7961 | module_cmds= | |
7962 | module_expsym_cmds= | |
7963 | old_archive_from_new_cmds= | |
7964 | old_archive_from_expsyms_cmds= | |
7965 | thread_safe_flag_spec= | |
7966 | whole_archive_flag_spec= | |
7967 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7968 | # included in the symbol list | |
7969 | include_expsyms= | |
7970 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7971 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7972 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7973 | # as well as any symbol that contains `d'. | |
7974 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7975 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7976 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7977 | # the symbol is explicitly referenced. Since portable code cannot | |
7978 | # rely on this symbol name, it's probably fine to never include it in | |
7979 | # preloaded symbol tables. | |
7980 | extract_expsyms_cmds= | |
d7040cdb | 7981 | |
d7040cdb | 7982 | case $host_os in |
ce2cded5 L |
7983 | cygwin* | mingw* | pw32*) |
7984 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7985 | # When not using gcc, we currently assume that we are using | |
7986 | # Microsoft Visual C++. | |
7987 | if test "$GCC" != yes; then | |
7988 | with_gnu_ld=no | |
7989 | fi | |
d7040cdb | 7990 | ;; |
ce2cded5 L |
7991 | interix*) |
7992 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7993 | with_gnu_ld=yes | |
d7040cdb | 7994 | ;; |
ce2cded5 L |
7995 | openbsd*) |
7996 | with_gnu_ld=no | |
d7040cdb SE |
7997 | ;; |
7998 | esac | |
d7040cdb | 7999 | |
ce2cded5 L |
8000 | ld_shlibs=yes |
8001 | if test "$with_gnu_ld" = yes; then | |
8002 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8003 | wlarc='${wl}' | |
d7040cdb | 8004 | |
ce2cded5 L |
8005 | # Set some defaults for GNU ld with shared library support. These |
8006 | # are reset later if shared libraries are not supported. Putting them | |
8007 | # here allows them to be overridden if necessary. | |
8008 | runpath_var=LD_RUN_PATH | |
8009 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8010 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8011 | # ancient GNU ld didn't support --whole-archive et. al. | |
8012 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8013 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
d7040cdb | 8014 | else |
ce2cded5 | 8015 | whole_archive_flag_spec= |
d7040cdb | 8016 | fi |
ce2cded5 L |
8017 | supports_anon_versioning=no |
8018 | case `$LD -v 2>&1` in | |
8019 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8020 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8021 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8022 | *\ 2.11.*) ;; # other 2.11 versions | |
8023 | *) supports_anon_versioning=yes ;; | |
8024 | esac | |
d7040cdb | 8025 | |
ce2cded5 L |
8026 | # See if GNU ld supports shared libraries. |
8027 | case $host_os in | |
50e7d84b | 8028 | aix[3-9]*) |
ce2cded5 L |
8029 | # On AIX/PPC, the GNU linker is very broken |
8030 | if test "$host_cpu" != ia64; then | |
8031 | ld_shlibs=no | |
8032 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8033 | |
ce2cded5 L |
8034 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8035 | *** to be unable to reliably create shared libraries on AIX. | |
8036 | *** Therefore, libtool is disabling shared libraries support. If you | |
8037 | *** really care for shared libraries, you may want to modify your PATH | |
8038 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 8039 | |
ce2cded5 L |
8040 | _LT_EOF |
8041 | fi | |
8042 | ;; | |
d7040cdb | 8043 | |
ce2cded5 L |
8044 | amigaos*) |
8045 | if test "$host_cpu" = m68k; then | |
8046 | 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)' | |
8047 | hardcode_libdir_flag_spec='-L$libdir' | |
8048 | hardcode_minus_L=yes | |
8049 | fi | |
d7040cdb | 8050 | |
ce2cded5 L |
8051 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
8052 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
8053 | # to version 4, is to share data among multiple programs linked | |
8054 | # with the same dynamic library. Since this doesn't match the | |
8055 | # behavior of shared libraries on other platforms, we can't use | |
8056 | # them. | |
8057 | ld_shlibs=no | |
8058 | ;; | |
d7040cdb | 8059 | |
ce2cded5 L |
8060 | beos*) |
8061 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8062 | allow_undefined_flag=unsupported | |
8063 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8064 | # support --undefined. This deserves some investigation. FIXME | |
8065 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8066 | else | |
8067 | ld_shlibs=no | |
8068 | fi | |
8069 | ;; | |
d7040cdb | 8070 | |
ce2cded5 L |
8071 | cygwin* | mingw* | pw32*) |
8072 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8073 | # as there is no search path for DLLs. | |
8074 | hardcode_libdir_flag_spec='-L$libdir' | |
8075 | allow_undefined_flag=unsupported | |
8076 | always_export_symbols=no | |
8077 | enable_shared_with_static_runtimes=yes | |
8078 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 8079 | |
ce2cded5 L |
8080 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8081 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8082 | # If the export-symbols file already is a .def file (1st line | |
8083 | # is EXPORTS), use it as is; otherwise, prepend... | |
8084 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8085 | cp $export_symbols $output_objdir/$soname.def; | |
8086 | else | |
8087 | echo EXPORTS > $output_objdir/$soname.def; | |
8088 | cat $export_symbols >> $output_objdir/$soname.def; | |
8089 | fi~ | |
8090 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8091 | else | |
8092 | ld_shlibs=no | |
8093 | fi | |
8094 | ;; | |
d7040cdb | 8095 | |
ce2cded5 L |
8096 | interix[3-9]*) |
8097 | hardcode_direct=no | |
8098 | hardcode_shlibpath_var=no | |
8099 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8100 | export_dynamic_flag_spec='${wl}-E' | |
8101 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8102 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8103 | # default) and relocated if they conflict, which is a slow very memory | |
8104 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8105 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8106 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8107 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8108 | 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' | |
8109 | ;; | |
d7040cdb | 8110 | |
ce2cded5 L |
8111 | gnu* | linux* | tpf* | k*bsd*-gnu) |
8112 | tmp_diet=no | |
8113 | if test "$host_os" = linux-dietlibc; then | |
8114 | case $cc_basename in | |
8115 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8116 | esac | |
8117 | fi | |
8118 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8119 | && test "$tmp_diet" = no | |
8120 | then | |
8121 | tmp_addflag= | |
8122 | case $cc_basename,$host_cpu in | |
8123 | pgcc*) # Portland Group C compiler | |
8124 | 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' | |
8125 | tmp_addflag=' $pic_flag' | |
8126 | ;; | |
8127 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8128 | 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' | |
8129 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8130 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8131 | tmp_addflag=' -i_dynamic' ;; | |
8132 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8133 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8134 | ifc* | ifort*) # Intel Fortran compiler | |
8135 | tmp_addflag=' -nofor_main' ;; | |
8136 | esac | |
8137 | case `$CC -V 2>&1 | sed 5q` in | |
8138 | *Sun\ C*) # Sun C 5.9 | |
8139 | 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' | |
8140 | compiler_needs_object=yes | |
8141 | tmp_sharedflag='-G' ;; | |
8142 | *Sun\ F*) # Sun Fortran 8.3 | |
8143 | tmp_sharedflag='-G' ;; | |
8144 | *) | |
8145 | tmp_sharedflag='-shared' ;; | |
8146 | esac | |
8147 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8148 | |
ce2cded5 L |
8149 | if test "x$supports_anon_versioning" = xyes; then |
8150 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8151 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8152 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8153 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8154 | fi | |
8155 | else | |
8156 | ld_shlibs=no | |
8157 | fi | |
8158 | ;; | |
d7040cdb | 8159 | |
ce2cded5 L |
8160 | netbsd*) |
8161 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8162 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8163 | wlarc= | |
8164 | else | |
8165 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8166 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8167 | fi | |
8168 | ;; | |
d7040cdb | 8169 | |
ce2cded5 L |
8170 | solaris*) |
8171 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8172 | ld_shlibs=no | |
8173 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8174 | |
ce2cded5 L |
8175 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8176 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8177 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8178 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8179 | *** your PATH or compiler configuration so that the native linker is | |
8180 | *** used, and then restart. | |
d7040cdb | 8181 | |
ce2cded5 L |
8182 | _LT_EOF |
8183 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8184 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8185 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8186 | else | |
8187 | ld_shlibs=no | |
8188 | fi | |
8189 | ;; | |
d7040cdb | 8190 | |
ce2cded5 L |
8191 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8192 | case `$LD -v 2>&1` in | |
8193 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8194 | ld_shlibs=no | |
8195 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8196 | |
ce2cded5 L |
8197 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8198 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8199 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8200 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8201 | *** your PATH or compiler configuration so that the native linker is | |
8202 | *** used, and then restart. | |
d7040cdb | 8203 | |
ce2cded5 L |
8204 | _LT_EOF |
8205 | ;; | |
8206 | *) | |
8207 | # For security reasons, it is highly recommended that you always | |
8208 | # use absolute paths for naming shared libraries, and exclude the | |
8209 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8210 | # requires that you compile everything twice, which is a pain. | |
8211 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8212 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8213 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8214 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8215 | else | |
8216 | ld_shlibs=no | |
8217 | fi | |
8218 | ;; | |
8219 | esac | |
d7040cdb | 8220 | ;; |
ce2cded5 L |
8221 | |
8222 | sunos4*) | |
8223 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8224 | wlarc= | |
8225 | hardcode_direct=yes | |
8226 | hardcode_shlibpath_var=no | |
d7040cdb | 8227 | ;; |
d7040cdb | 8228 | |
ce2cded5 L |
8229 | *) |
8230 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8231 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8232 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8233 | else | |
8234 | ld_shlibs=no | |
8235 | fi | |
8236 | ;; | |
8237 | esac | |
d7040cdb | 8238 | |
ce2cded5 L |
8239 | if test "$ld_shlibs" = no; then |
8240 | runpath_var= | |
8241 | hardcode_libdir_flag_spec= | |
8242 | export_dynamic_flag_spec= | |
8243 | whole_archive_flag_spec= | |
8244 | fi | |
d7040cdb | 8245 | else |
ce2cded5 | 8246 | # PORTME fill in a description of your system's linker (not GNU ld) |
d7040cdb | 8247 | case $host_os in |
ce2cded5 L |
8248 | aix3*) |
8249 | allow_undefined_flag=unsupported | |
8250 | always_export_symbols=yes | |
8251 | 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' | |
8252 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8253 | # are no directories specified by -L. | |
8254 | hardcode_minus_L=yes | |
8255 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8256 | # Neither direct hardcoding nor static linking is supported with a | |
8257 | # broken collect2. | |
8258 | hardcode_direct=unsupported | |
8259 | fi | |
8260 | ;; | |
d7040cdb | 8261 | |
50e7d84b | 8262 | aix[4-9]*) |
ce2cded5 L |
8263 | if test "$host_cpu" = ia64; then |
8264 | # On IA64, the linker does run time linking by default, so we don't | |
8265 | # have to do anything special. | |
8266 | aix_use_runtimelinking=no | |
8267 | exp_sym_flag='-Bexport' | |
8268 | no_entry_flag="" | |
8269 | else | |
8270 | # If we're using GNU nm, then we don't want the "-C" option. | |
8271 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8272 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8273 | 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' | |
8274 | else | |
8275 | 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' | |
8276 | fi | |
8277 | aix_use_runtimelinking=no | |
d7040cdb | 8278 | |
ce2cded5 L |
8279 | # Test if we are trying to use run time linking or normal |
8280 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8281 | # need to do runtime linking. | |
50e7d84b | 8282 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
8283 | for ld_flag in $LDFLAGS; do |
8284 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8285 | aix_use_runtimelinking=yes | |
8286 | break | |
8287 | fi | |
8288 | done | |
8289 | ;; | |
8290 | esac | |
d7040cdb | 8291 | |
ce2cded5 L |
8292 | exp_sym_flag='-bexport' |
8293 | no_entry_flag='-bnoentry' | |
8294 | fi | |
d7040cdb | 8295 | |
ce2cded5 L |
8296 | # When large executables or shared objects are built, AIX ld can |
8297 | # have problems creating the table of contents. If linking a library | |
8298 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8299 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8300 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 8301 | |
ce2cded5 L |
8302 | archive_cmds='' |
8303 | hardcode_direct=yes | |
8304 | hardcode_direct_absolute=yes | |
8305 | hardcode_libdir_separator=':' | |
8306 | link_all_deplibs=yes | |
8307 | file_list_spec='${wl}-f,' | |
d7040cdb | 8308 | |
ce2cded5 L |
8309 | if test "$GCC" = yes; then |
8310 | case $host_os in aix4.[012]|aix4.[012].*) | |
8311 | # We only want to do this on AIX 4.2 and lower, the check | |
8312 | # below for broken collect2 doesn't work under 4.3+ | |
8313 | collect2name=`${CC} -print-prog-name=collect2` | |
8314 | if test -f "$collect2name" && | |
8315 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8316 | then | |
8317 | # We have reworked collect2 | |
8318 | : | |
8319 | else | |
8320 | # We have old collect2 | |
8321 | hardcode_direct=unsupported | |
8322 | # It fails to find uninstalled libraries when the uninstalled | |
8323 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8324 | # to unsupported forces relinking | |
8325 | hardcode_minus_L=yes | |
8326 | hardcode_libdir_flag_spec='-L$libdir' | |
8327 | hardcode_libdir_separator= | |
8328 | fi | |
8329 | ;; | |
8330 | esac | |
8331 | shared_flag='-shared' | |
8332 | if test "$aix_use_runtimelinking" = yes; then | |
8333 | shared_flag="$shared_flag "'${wl}-G' | |
8334 | fi | |
8335 | else | |
8336 | # not using gcc | |
8337 | if test "$host_cpu" = ia64; then | |
8338 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8339 | # chokes on -Wl,-G. The following line is correct: | |
8340 | shared_flag='-G' | |
8341 | else | |
8342 | if test "$aix_use_runtimelinking" = yes; then | |
8343 | shared_flag='${wl}-G' | |
8344 | else | |
8345 | shared_flag='${wl}-bM:SRE' | |
8346 | fi | |
8347 | fi | |
8348 | fi | |
d7040cdb | 8349 | |
ce2cded5 L |
8350 | # It seems that -bexpall does not export symbols beginning with |
8351 | # underscore (_), so it is better to generate a list of symbols to export. | |
8352 | always_export_symbols=yes | |
8353 | if test "$aix_use_runtimelinking" = yes; then | |
8354 | # Warning - without using the other runtime loading flags (-brtl), | |
8355 | # -berok will link without error, but may produce a broken library. | |
8356 | allow_undefined_flag='-berok' | |
8357 | # Determine the default libpath from the value encoded in an | |
8358 | # empty executable. | |
8359 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
8360 | /* confdefs.h. */ |
8361 | _ACEOF | |
8362 | cat confdefs.h >>conftest.$ac_ext | |
8363 | cat >>conftest.$ac_ext <<_ACEOF | |
8364 | /* end confdefs.h. */ | |
8365 | ||
d7040cdb SE |
8366 | int |
8367 | main () | |
8368 | { | |
ce2cded5 | 8369 | |
d7040cdb SE |
8370 | ; |
8371 | return 0; | |
8372 | } | |
8373 | _ACEOF | |
8374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
8375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8376 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
8377 | ac_status=$? |
8378 | grep -v '^ *+' conftest.er1 >conftest.err | |
8379 | rm -f conftest.er1 | |
8380 | cat conftest.err >&5 | |
8381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
8382 | (exit $ac_status); } && |
8383 | { ac_try='test -z "$ac_c_werror_flag" | |
8384 | || test ! -s conftest.err' | |
8385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8386 | (eval $ac_try) 2>&5 | |
8387 | ac_status=$? | |
8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8389 | (exit $ac_status); }; } && | |
8390 | { ac_try='test -s conftest$ac_exeext' | |
8391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8392 | (eval $ac_try) 2>&5 | |
8393 | ac_status=$? | |
8394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8395 | (exit $ac_status); }; }; then | |
d7040cdb | 8396 | |
ce2cded5 L |
8397 | lt_aix_libpath_sed=' |
8398 | /Import File Strings/,/^$/ { | |
8399 | /^0/ { | |
8400 | s/^0 *\(.*\)$/\1/ | |
8401 | p | |
8402 | } | |
8403 | }' | |
8404 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8405 | # Check for a 64-bit object if we didn't find anything. | |
8406 | if test -z "$aix_libpath"; then | |
8407 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
d7040cdb | 8408 | fi |
d7040cdb SE |
8409 | else |
8410 | echo "$as_me: failed program was:" >&5 | |
8411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8412 | ||
d7040cdb | 8413 | fi |
0ab6f085 | 8414 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb | 8415 | conftest$ac_exeext conftest.$ac_ext |
ce2cded5 L |
8416 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8417 | ||
8418 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8419 | 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" | |
8420 | else | |
8421 | if test "$host_cpu" = ia64; then | |
8422 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8423 | allow_undefined_flag="-z nodefs" | |
8424 | 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" | |
8425 | else | |
8426 | # Determine the default libpath from the value encoded in an | |
8427 | # empty executable. | |
8428 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
8429 | /* confdefs.h. */ |
8430 | _ACEOF | |
8431 | cat confdefs.h >>conftest.$ac_ext | |
8432 | cat >>conftest.$ac_ext <<_ACEOF | |
8433 | /* end confdefs.h. */ | |
8434 | ||
d7040cdb SE |
8435 | int |
8436 | main () | |
8437 | { | |
ce2cded5 | 8438 | |
d7040cdb SE |
8439 | ; |
8440 | return 0; | |
8441 | } | |
8442 | _ACEOF | |
8443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
8444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8445 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
8446 | ac_status=$? |
8447 | grep -v '^ *+' conftest.er1 >conftest.err | |
8448 | rm -f conftest.er1 | |
1b9750d6 | 8449 | cat conftest.err >&5 |
d7040cdb | 8450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0ab6f085 AM |
8451 | (exit $ac_status); } && |
8452 | { ac_try='test -z "$ac_c_werror_flag" | |
8453 | || test ! -s conftest.err' | |
8454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8455 | (eval $ac_try) 2>&5 | |
8456 | ac_status=$? | |
8457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8458 | (exit $ac_status); }; } && | |
8459 | { ac_try='test -s conftest$ac_exeext' | |
8460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8461 | (eval $ac_try) 2>&5 | |
8462 | ac_status=$? | |
8463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8464 | (exit $ac_status); }; }; then | |
ce2cded5 L |
8465 | |
8466 | lt_aix_libpath_sed=' | |
8467 | /Import File Strings/,/^$/ { | |
8468 | /^0/ { | |
8469 | s/^0 *\(.*\)$/\1/ | |
8470 | p | |
8471 | } | |
8472 | }' | |
8473 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8474 | # Check for a 64-bit object if we didn't find anything. | |
8475 | if test -z "$aix_libpath"; then | |
8476 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8477 | fi | |
d7040cdb SE |
8478 | else |
8479 | echo "$as_me: failed program was:" >&5 | |
8480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8481 | ||
d7040cdb | 8482 | fi |
0ab6f085 | 8483 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb | 8484 | conftest$ac_exeext conftest.$ac_ext |
ce2cded5 | 8485 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 8486 | |
ce2cded5 L |
8487 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8488 | # Warning - without using the other run time loading flags, | |
8489 | # -berok will link without error, but may produce a broken library. | |
8490 | no_undefined_flag=' ${wl}-bernotok' | |
8491 | allow_undefined_flag=' ${wl}-berok' | |
8492 | # Exported symbols can be pulled into shared objects from archives | |
8493 | whole_archive_flag_spec='$convenience' | |
8494 | archive_cmds_need_lc=yes | |
8495 | # This is similar to how AIX traditionally builds its shared libraries. | |
8496 | 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' | |
8497 | fi | |
8498 | fi | |
8499 | ;; | |
d7040cdb | 8500 | |
ce2cded5 L |
8501 | amigaos*) |
8502 | if test "$host_cpu" = m68k; then | |
8503 | 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)' | |
8504 | hardcode_libdir_flag_spec='-L$libdir' | |
8505 | hardcode_minus_L=yes | |
8506 | fi | |
8507 | # see comment about different semantics on the GNU ld section | |
8508 | ld_shlibs=no | |
8509 | ;; | |
d7040cdb | 8510 | |
ce2cded5 L |
8511 | bsdi[45]*) |
8512 | export_dynamic_flag_spec=-rdynamic | |
8513 | ;; | |
d7040cdb | 8514 | |
ce2cded5 L |
8515 | cygwin* | mingw* | pw32*) |
8516 | # When not using gcc, we currently assume that we are using | |
8517 | # Microsoft Visual C++. | |
8518 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8519 | # no search path for DLLs. | |
8520 | hardcode_libdir_flag_spec=' ' | |
8521 | allow_undefined_flag=unsupported | |
8522 | # Tell ltmain to make .lib files, not .a files. | |
8523 | libext=lib | |
8524 | # Tell ltmain to make .dll files, not .so files. | |
8525 | shrext_cmds=".dll" | |
8526 | # FIXME: Setting linknames here is a bad hack. | |
8527 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8528 | # The linker will automatically build a .lib file if we build a DLL. | |
8529 | old_archive_from_new_cmds='true' | |
8530 | # FIXME: Should let the user specify the lib program. | |
8531 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8532 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8533 | enable_shared_with_static_runtimes=yes | |
8534 | ;; | |
d7040cdb | 8535 | |
ce2cded5 L |
8536 | darwin* | rhapsody*) |
8537 | case $host_os in | |
8538 | rhapsody* | darwin1.[012]) | |
8539 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
8540 | ;; | |
8541 | *) # Darwin 1.3 on | |
8542 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
8543 | 10.[012]) | |
8544 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8545 | ;; | |
8546 | 10.*) | |
8547 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
8548 | ;; | |
8549 | esac | |
8550 | ;; | |
8551 | esac | |
8552 | archive_cmds_need_lc=no | |
8553 | hardcode_direct=no | |
8554 | hardcode_automatic=yes | |
8555 | hardcode_shlibpath_var=unsupported | |
8556 | whole_archive_flag_spec='' | |
8557 | link_all_deplibs=yes | |
8558 | if test "$GCC" = yes ; then | |
8559 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
8560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8561 | else | |
8562 | lt_cv_apple_cc_single_mod=no | |
8563 | if test -z "${LT_MULTI_MODULE}"; then | |
8564 | # By default we will add the -single_module flag. You can override | |
8565 | # by either setting the environment variable LT_MULTI_MODULE | |
8566 | # non-empty at configure time, or by adding -multi-module to the | |
8567 | # link flags. | |
8568 | echo "int foo(void){return 1;}" > conftest.c | |
8569 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8570 | -dynamiclib ${wl}-single_module conftest.c | |
8571 | if test -f libconftest.dylib; then | |
8572 | lt_cv_apple_cc_single_mod=yes | |
8573 | rm libconftest.dylib | |
8574 | fi | |
8575 | rm conftest.$ac_ext | |
8576 | fi | |
8577 | fi | |
8578 | ||
8579 | output_verbose_link_cmd=echo | |
8580 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
8581 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8582 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8583 | else | |
8584 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8585 | 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8586 | fi | |
8587 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8588 | module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8589 | else | |
8590 | case $cc_basename in | |
8591 | xlc*) | |
8592 | output_verbose_link_cmd=echo | |
8593 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
8594 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8595 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8596 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8597 | module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8598 | ;; | |
8599 | *) | |
8600 | ld_shlibs=no | |
8601 | ;; | |
8602 | esac | |
8603 | fi | |
8604 | ;; | |
8605 | ||
8606 | dgux*) | |
8607 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8608 | hardcode_libdir_flag_spec='-L$libdir' | |
8609 | hardcode_shlibpath_var=no | |
8610 | ;; | |
8611 | ||
8612 | freebsd1*) | |
8613 | ld_shlibs=no | |
8614 | ;; | |
8615 | ||
8616 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8617 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8618 | # does not break anything, and helps significantly (at the cost of a little | |
8619 | # extra space). | |
8620 | freebsd2.2*) | |
8621 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8622 | hardcode_libdir_flag_spec='-R$libdir' | |
8623 | hardcode_direct=yes | |
8624 | hardcode_shlibpath_var=no | |
8625 | ;; | |
8626 | ||
8627 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8628 | freebsd2*) | |
8629 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8630 | hardcode_direct=yes | |
8631 | hardcode_minus_L=yes | |
8632 | hardcode_shlibpath_var=no | |
8633 | ;; | |
8634 | ||
8635 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8636 | freebsd* | dragonfly*) | |
8637 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8638 | hardcode_libdir_flag_spec='-R$libdir' | |
8639 | hardcode_direct=yes | |
8640 | hardcode_shlibpath_var=no | |
8641 | ;; | |
8642 | ||
8643 | hpux9*) | |
8644 | if test "$GCC" = yes; then | |
8645 | 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' | |
8646 | else | |
8647 | 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' | |
8648 | fi | |
8649 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8650 | hardcode_libdir_separator=: | |
8651 | hardcode_direct=yes | |
8652 | ||
8653 | # hardcode_minus_L: Not really in the search PATH, | |
8654 | # but as the default location of the library. | |
8655 | hardcode_minus_L=yes | |
8656 | export_dynamic_flag_spec='${wl}-E' | |
8657 | ;; | |
8658 | ||
8659 | hpux10*) | |
8660 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8661 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8662 | else | |
8663 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8664 | fi | |
8665 | if test "$with_gnu_ld" = no; then | |
8666 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8667 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8668 | hardcode_libdir_separator=: | |
8669 | hardcode_direct=yes | |
8670 | hardcode_direct_absolute=yes | |
8671 | export_dynamic_flag_spec='${wl}-E' | |
8672 | # hardcode_minus_L: Not really in the search PATH, | |
8673 | # but as the default location of the library. | |
8674 | hardcode_minus_L=yes | |
8675 | fi | |
8676 | ;; | |
8677 | ||
8678 | hpux11*) | |
8679 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8680 | case $host_cpu in | |
8681 | hppa*64*) | |
8682 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8683 | ;; | |
8684 | ia64*) | |
8685 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8686 | ;; | |
8687 | *) | |
8688 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8689 | ;; | |
8690 | esac | |
8691 | else | |
8692 | case $host_cpu in | |
8693 | hppa*64*) | |
8694 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8695 | ;; | |
8696 | ia64*) | |
8697 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8698 | ;; | |
8699 | *) | |
8700 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8701 | ;; | |
8702 | esac | |
8703 | fi | |
8704 | if test "$with_gnu_ld" = no; then | |
8705 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8706 | hardcode_libdir_separator=: | |
8707 | ||
8708 | case $host_cpu in | |
8709 | hppa*64*|ia64*) | |
8710 | hardcode_direct=no | |
8711 | hardcode_shlibpath_var=no | |
8712 | ;; | |
8713 | *) | |
8714 | hardcode_direct=yes | |
8715 | hardcode_direct_absolute=yes | |
8716 | export_dynamic_flag_spec='${wl}-E' | |
8717 | ||
8718 | # hardcode_minus_L: Not really in the search PATH, | |
8719 | # but as the default location of the library. | |
8720 | hardcode_minus_L=yes | |
8721 | ;; | |
8722 | esac | |
8723 | fi | |
8724 | ;; | |
8725 | ||
8726 | irix5* | irix6* | nonstopux*) | |
8727 | if test "$GCC" = yes; then | |
8728 | 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' | |
8729 | # Try to use the -exported_symbol ld option, if it does not | |
8730 | # work, assume that -exports_file does not work either and | |
8731 | # implicitly export all symbols. | |
8732 | save_LDFLAGS="$LDFLAGS" | |
8733 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8734 | cat >conftest.$ac_ext <<_ACEOF | |
8735 | int foo(void) {} | |
d7040cdb SE |
8736 | _ACEOF |
8737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
8738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8739 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
8740 | ac_status=$? |
8741 | grep -v '^ *+' conftest.er1 >conftest.err | |
8742 | rm -f conftest.er1 | |
8743 | cat conftest.err >&5 | |
8744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
8745 | (exit $ac_status); } && |
8746 | { ac_try='test -z "$ac_c_werror_flag" | |
8747 | || test ! -s conftest.err' | |
8748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8749 | (eval $ac_try) 2>&5 | |
8750 | ac_status=$? | |
8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8752 | (exit $ac_status); }; } && | |
8753 | { ac_try='test -s conftest$ac_exeext' | |
8754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8755 | (eval $ac_try) 2>&5 | |
8756 | ac_status=$? | |
8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8758 | (exit $ac_status); }; }; then | |
ce2cded5 L |
8759 | 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' |
8760 | ||
d7040cdb SE |
8761 | else |
8762 | echo "$as_me: failed program was:" >&5 | |
8763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8764 | ||
d7040cdb | 8765 | fi |
0ab6f085 | 8766 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb | 8767 | conftest$ac_exeext conftest.$ac_ext |
ce2cded5 L |
8768 | LDFLAGS="$save_LDFLAGS" |
8769 | else | |
8770 | 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' | |
8771 | 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' | |
8772 | fi | |
8773 | archive_cmds_need_lc='no' | |
8774 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8775 | hardcode_libdir_separator=: | |
8776 | inherit_rpath=yes | |
8777 | link_all_deplibs=yes | |
8778 | ;; | |
8779 | ||
8780 | netbsd*) | |
8781 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8782 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8783 | else | |
8784 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8785 | fi | |
8786 | hardcode_libdir_flag_spec='-R$libdir' | |
8787 | hardcode_direct=yes | |
8788 | hardcode_shlibpath_var=no | |
8789 | ;; | |
8790 | ||
8791 | newsos6) | |
8792 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8793 | hardcode_direct=yes | |
8794 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8795 | hardcode_libdir_separator=: | |
8796 | hardcode_shlibpath_var=no | |
8797 | ;; | |
8798 | ||
8799 | *nto* | *qnx*) | |
8800 | ;; | |
8801 | ||
8802 | openbsd*) | |
8803 | hardcode_direct=yes | |
8804 | hardcode_shlibpath_var=no | |
8805 | hardcode_direct_absolute=yes | |
8806 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8807 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8808 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8809 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8810 | export_dynamic_flag_spec='${wl}-E' | |
8811 | else | |
8812 | case $host_os in | |
8813 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8814 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8815 | hardcode_libdir_flag_spec='-R$libdir' | |
8816 | ;; | |
8817 | *) | |
8818 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8819 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8820 | ;; | |
8821 | esac | |
8822 | fi | |
8823 | ;; | |
8824 | ||
8825 | os2*) | |
8826 | hardcode_libdir_flag_spec='-L$libdir' | |
8827 | hardcode_minus_L=yes | |
8828 | allow_undefined_flag=unsupported | |
8829 | 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' | |
8830 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8831 | ;; | |
8832 | ||
8833 | osf3*) | |
8834 | if test "$GCC" = yes; then | |
8835 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8836 | 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' | |
8837 | else | |
8838 | allow_undefined_flag=' -expect_unresolved \*' | |
8839 | 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' | |
8840 | fi | |
8841 | archive_cmds_need_lc='no' | |
8842 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8843 | hardcode_libdir_separator=: | |
8844 | ;; | |
8845 | ||
8846 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8847 | if test "$GCC" = yes; then | |
8848 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8849 | 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' | |
8850 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8851 | else | |
8852 | allow_undefined_flag=' -expect_unresolved \*' | |
8853 | 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' | |
8854 | 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~ | |
8855 | $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' | |
8856 | ||
8857 | # Both c and cxx compiler support -rpath directly | |
8858 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8859 | fi | |
8860 | archive_cmds_need_lc='no' | |
8861 | hardcode_libdir_separator=: | |
8862 | ;; | |
8863 | ||
8864 | solaris*) | |
8865 | no_undefined_flag=' -z defs' | |
8866 | if test "$GCC" = yes; then | |
8867 | wlarc='${wl}' | |
8868 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8869 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8870 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8871 | else | |
8872 | case `$CC -V 2>&1` in | |
8873 | *"Compilers 5.0"*) | |
8874 | wlarc='' | |
8875 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8876 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8877 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8878 | ;; | |
8879 | *) | |
8880 | wlarc='${wl}' | |
8881 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8882 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8883 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8884 | ;; | |
8885 | esac | |
8886 | fi | |
8887 | hardcode_libdir_flag_spec='-R$libdir' | |
8888 | hardcode_shlibpath_var=no | |
8889 | case $host_os in | |
8890 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8891 | *) | |
8892 | # The compiler driver will combine and reorder linker options, | |
8893 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8894 | # but is careful enough not to reorder. | |
8895 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8896 | if test "$GCC" = yes; then | |
8897 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8898 | else | |
8899 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8900 | fi | |
8901 | ;; | |
8902 | esac | |
8903 | link_all_deplibs=yes | |
8904 | ;; | |
8905 | ||
8906 | sunos4*) | |
8907 | if test "x$host_vendor" = xsequent; then | |
8908 | # Use $CC to link under sequent, because it throws in some extra .o | |
8909 | # files that make .init and .fini sections work. | |
8910 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8911 | else | |
8912 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8913 | fi | |
8914 | hardcode_libdir_flag_spec='-L$libdir' | |
8915 | hardcode_direct=yes | |
8916 | hardcode_minus_L=yes | |
8917 | hardcode_shlibpath_var=no | |
8918 | ;; | |
8919 | ||
8920 | sysv4) | |
8921 | case $host_vendor in | |
8922 | sni) | |
8923 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8924 | hardcode_direct=yes # is this really true??? | |
8925 | ;; | |
8926 | siemens) | |
8927 | ## LD is ld it makes a PLAMLIB | |
8928 | ## CC just makes a GrossModule. | |
8929 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8930 | reload_cmds='$CC -r -o $output$reload_objs' | |
8931 | hardcode_direct=no | |
8932 | ;; | |
8933 | motorola) | |
8934 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8935 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8936 | ;; | |
8937 | esac | |
8938 | runpath_var='LD_RUN_PATH' | |
8939 | hardcode_shlibpath_var=no | |
8940 | ;; | |
8941 | ||
8942 | sysv4.3*) | |
8943 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8944 | hardcode_shlibpath_var=no | |
8945 | export_dynamic_flag_spec='-Bexport' | |
8946 | ;; | |
8947 | ||
8948 | sysv4*MP*) | |
8949 | if test -d /usr/nec; then | |
8950 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8951 | hardcode_shlibpath_var=no | |
8952 | runpath_var=LD_RUN_PATH | |
8953 | hardcode_runpath_var=yes | |
8954 | ld_shlibs=yes | |
8955 | fi | |
8956 | ;; | |
8957 | ||
8958 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8959 | no_undefined_flag='${wl}-z,text' | |
8960 | archive_cmds_need_lc=no | |
8961 | hardcode_shlibpath_var=no | |
8962 | runpath_var='LD_RUN_PATH' | |
8963 | ||
8964 | if test "$GCC" = yes; then | |
8965 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8966 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8967 | else | |
8968 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8969 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8970 | fi | |
8971 | ;; | |
8972 | ||
8973 | sysv5* | sco3.2v5* | sco5v6*) | |
8974 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8975 | # link with -lc, and that would cause any symbols used from libc to | |
8976 | # always be unresolved, which means just about no library would | |
8977 | # ever link correctly. If we're not using GNU ld we use -z text | |
8978 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8979 | # as -z defs. | |
8980 | no_undefined_flag='${wl}-z,text' | |
8981 | allow_undefined_flag='${wl}-z,nodefs' | |
8982 | archive_cmds_need_lc=no | |
8983 | hardcode_shlibpath_var=no | |
8984 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8985 | hardcode_libdir_separator=':' | |
8986 | link_all_deplibs=yes | |
8987 | export_dynamic_flag_spec='${wl}-Bexport' | |
8988 | runpath_var='LD_RUN_PATH' | |
8989 | ||
8990 | if test "$GCC" = yes; then | |
8991 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8992 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8993 | else | |
8994 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8995 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8996 | fi | |
8997 | ;; | |
8998 | ||
8999 | uts4*) | |
9000 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9001 | hardcode_libdir_flag_spec='-L$libdir' | |
9002 | hardcode_shlibpath_var=no | |
9003 | ;; | |
9004 | ||
9005 | *) | |
9006 | ld_shlibs=no | |
9007 | ;; | |
9008 | esac | |
9009 | ||
9010 | if test x$host_vendor = xsni; then | |
9011 | case $host in | |
9012 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9013 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9014 | ;; | |
9015 | esac | |
9016 | fi | |
9017 | fi | |
9018 | ||
9019 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
9020 | echo "${ECHO_T}$ld_shlibs" >&6 | |
9021 | test "$ld_shlibs" = no && can_build_shared=no | |
9022 | ||
9023 | with_gnu_ld=$with_gnu_ld | |
9024 | ||
9025 | ||
9026 | ||
9027 | ||
9028 | ||
9029 | ||
9030 | ||
9031 | ||
9032 | ||
9033 | ||
9034 | ||
9035 | ||
9036 | ||
9037 | ||
9038 | ||
9039 | # | |
9040 | # Do we need to explicitly link libc? | |
9041 | # | |
9042 | case "x$archive_cmds_need_lc" in | |
9043 | x|xyes) | |
9044 | # Assume -lc should be added | |
9045 | archive_cmds_need_lc=yes | |
9046 | ||
9047 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9048 | case $archive_cmds in | |
9049 | *'~'*) | |
9050 | # FIXME: we may have to deal with multi-command sequences. | |
9051 | ;; | |
9052 | '$CC '*) | |
9053 | # Test whether the compiler implicitly links with -lc since on some | |
9054 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9055 | # to ld, don't add -lc before -lgcc. | |
9056 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9057 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
9058 | $RM conftest* | |
9059 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9060 | ||
9061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9062 | (eval $ac_compile) 2>&5 | |
9063 | ac_status=$? | |
9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9065 | (exit $ac_status); } 2>conftest.err; then | |
9066 | soname=conftest | |
9067 | lib=conftest | |
9068 | libobjs=conftest.$ac_objext | |
9069 | deplibs= | |
9070 | wl=$lt_prog_compiler_wl | |
9071 | pic_flag=$lt_prog_compiler_pic | |
9072 | compiler_flags=-v | |
9073 | linker_flags=-v | |
9074 | verstring= | |
9075 | output_objdir=. | |
9076 | libname=conftest | |
9077 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9078 | allow_undefined_flag= | |
9079 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9080 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9081 | ac_status=$? | |
9082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9083 | (exit $ac_status); } | |
9084 | then | |
9085 | archive_cmds_need_lc=no | |
9086 | else | |
9087 | archive_cmds_need_lc=yes | |
9088 | fi | |
9089 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9090 | else | |
9091 | cat conftest.err 1>&5 | |
9092 | fi | |
9093 | $RM conftest* | |
9094 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9095 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
9096 | ;; | |
9097 | esac | |
9098 | fi | |
9099 | ;; | |
9100 | esac | |
9101 | ||
9102 | ||
9103 | ||
9104 | ||
9105 | ||
9106 | ||
9107 | ||
9108 | ||
9109 | ||
9110 | ||
9111 | ||
9112 | ||
9113 | ||
9114 | ||
9115 | ||
9116 | ||
9117 | ||
9118 | ||
9119 | ||
9120 | ||
9121 | ||
9122 | ||
9123 | ||
9124 | ||
9125 | ||
9126 | ||
9127 | ||
9128 | ||
9129 | ||
9130 | ||
9131 | ||
9132 | ||
9133 | ||
9134 | ||
9135 | ||
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | ||
9142 | ||
9143 | ||
9144 | ||
9145 | ||
9146 | ||
9147 | ||
9148 | ||
9149 | ||
9150 | ||
9151 | ||
9152 | ||
9153 | ||
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | ||
9162 | ||
9163 | ||
9164 | ||
9165 | ||
9166 | ||
9167 | ||
9168 | ||
9169 | ||
9170 | ||
9171 | ||
9172 | ||
9173 | ||
9174 | ||
9175 | ||
9176 | ||
9177 | ||
9178 | ||
9179 | ||
9180 | ||
9181 | ||
9182 | ||
9183 | ||
9184 | ||
9185 | ||
9186 | ||
9187 | ||
9188 | ||
9189 | ||
9190 | ||
9191 | ||
9192 | ||
9193 | ||
9194 | ||
9195 | ||
9196 | ||
9197 | ||
9198 | ||
9199 | ||
9200 | ||
9201 | ||
9202 | ||
9203 | ||
9204 | ||
9205 | ||
9206 | ||
9207 | ||
9208 | ||
9209 | ||
9210 | ||
9211 | ||
9212 | ||
9213 | ||
9214 | ||
9215 | ||
9216 | ||
9217 | ||
9218 | ||
9219 | ||
9220 | ||
9221 | ||
9222 | ||
9223 | ||
9224 | ||
9225 | ||
9226 | ||
9227 | ||
9228 | ||
9229 | ||
9230 | ||
9231 | ||
9232 | ||
9233 | ||
9234 | ||
9235 | ||
9236 | ||
9237 | ||
9238 | ||
9239 | ||
9240 | ||
9241 | ||
9242 | ||
9243 | ||
9244 | ||
9245 | ||
9246 | ||
9247 | ||
9248 | ||
9249 | ||
9250 | ||
9251 | ||
9252 | ||
9253 | ||
9254 | ||
9255 | ||
9256 | ||
9257 | ||
9258 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9259 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
9260 | withGCC=$GCC | |
9261 | if test "$withGCC" = yes; then | |
9262 | case $host_os in | |
9263 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9264 | *) lt_awk_arg="/^libraries:/" ;; | |
9265 | esac | |
9266 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9267 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9268 | # if the path contains ";" then we assume it to be the separator | |
9269 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9270 | # assumed that no part of a normal pathname contains ";" but that should | |
9271 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9272 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9273 | else | |
9274 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9275 | fi | |
9276 | # Ok, now we have the path, separated by spaces, we can step through it | |
9277 | # and add multilib dir if necessary. | |
9278 | lt_tmp_lt_search_path_spec= | |
9279 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9280 | for lt_sys_path in $lt_search_path_spec; do | |
9281 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9282 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9283 | else | |
9284 | test -d "$lt_sys_path" && \ | |
9285 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9286 | fi | |
9287 | done | |
9288 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9289 | BEGIN {RS=" "; FS="/|\n";} { | |
9290 | lt_foo=""; | |
9291 | lt_count=0; | |
9292 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9293 | if ($lt_i != "" && $lt_i != ".") { | |
9294 | if ($lt_i == "..") { | |
9295 | lt_count++; | |
9296 | } else { | |
9297 | if (lt_count == 0) { | |
9298 | lt_foo="/" $lt_i lt_foo; | |
9299 | } else { | |
9300 | lt_count--; | |
9301 | } | |
9302 | } | |
9303 | } | |
9304 | } | |
9305 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9306 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9307 | }'` | |
9308 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9309 | else | |
9310 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9311 | fi | |
9312 | library_names_spec= | |
9313 | libname_spec='lib$name' | |
9314 | soname_spec= | |
9315 | shrext_cmds=".so" | |
9316 | postinstall_cmds= | |
9317 | postuninstall_cmds= | |
9318 | finish_cmds= | |
9319 | finish_eval= | |
9320 | shlibpath_var= | |
9321 | shlibpath_overrides_runpath=unknown | |
9322 | version_type=none | |
9323 | dynamic_linker="$host_os ld.so" | |
9324 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9325 | need_lib_prefix=unknown | |
9326 | hardcode_into_libs=no | |
9327 | ||
9328 | # when you set need_version to no, make sure it does not cause -set_version | |
9329 | # flags to be left without arguments | |
9330 | need_version=unknown | |
9331 | ||
9332 | case $host_os in | |
9333 | aix3*) | |
9334 | version_type=linux | |
9335 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9336 | shlibpath_var=LIBPATH | |
9337 | ||
9338 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9339 | soname_spec='${libname}${release}${shared_ext}$major' | |
9340 | ;; | |
9341 | ||
50e7d84b | 9342 | aix[4-9]*) |
ce2cded5 L |
9343 | version_type=linux |
9344 | need_lib_prefix=no | |
9345 | need_version=no | |
9346 | hardcode_into_libs=yes | |
9347 | if test "$host_cpu" = ia64; then | |
9348 | # AIX 5 supports IA64 | |
9349 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9350 | shlibpath_var=LD_LIBRARY_PATH | |
9351 | else | |
9352 | # With GCC up to 2.95.x, collect2 would create an import file | |
9353 | # for dependence libraries. The import file would start with | |
9354 | # the line `#! .'. This would cause the generated library to | |
9355 | # depend on `.', always an invalid library. This was fixed in | |
9356 | # development snapshots of GCC prior to 3.0. | |
9357 | case $host_os in | |
9358 | aix4 | aix4.[01] | aix4.[01].*) | |
9359 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9360 | echo ' yes ' | |
9361 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9362 | : | |
9363 | else | |
9364 | can_build_shared=no | |
9365 | fi | |
9366 | ;; | |
9367 | esac | |
9368 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9369 | # soname into executable. Probably we can add versioning support to | |
9370 | # collect2, so additional links can be useful in future. | |
9371 | if test "$aix_use_runtimelinking" = yes; then | |
9372 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9373 | # instead of lib<name>.a to let people know that these are not | |
9374 | # typical AIX shared libraries. | |
9375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9376 | else | |
9377 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9378 | # and later when we are not doing run time linking. | |
9379 | library_names_spec='${libname}${release}.a $libname.a' | |
9380 | soname_spec='${libname}${release}${shared_ext}$major' | |
9381 | fi | |
9382 | shlibpath_var=LIBPATH | |
9383 | fi | |
9384 | ;; | |
9385 | ||
9386 | amigaos*) | |
9387 | if test "$host_cpu" = m68k; then | |
9388 | library_names_spec='$libname.ixlibrary $libname.a' | |
9389 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9390 | 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' | |
9391 | else | |
9392 | dynamic_linker=no | |
9393 | fi | |
9394 | ;; | |
9395 | ||
9396 | beos*) | |
9397 | library_names_spec='${libname}${shared_ext}' | |
9398 | dynamic_linker="$host_os ld.so" | |
9399 | shlibpath_var=LIBRARY_PATH | |
9400 | ;; | |
9401 | ||
9402 | bsdi[45]*) | |
9403 | version_type=linux | |
9404 | need_version=no | |
9405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9406 | soname_spec='${libname}${release}${shared_ext}$major' | |
9407 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9408 | shlibpath_var=LD_LIBRARY_PATH | |
9409 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9410 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9411 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9412 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9413 | # libtool to hard-code these into programs | |
9414 | ;; | |
9415 | ||
9416 | cygwin* | mingw* | pw32*) | |
9417 | version_type=windows | |
9418 | shrext_cmds=".dll" | |
9419 | need_version=no | |
9420 | need_lib_prefix=no | |
9421 | ||
9422 | case $withGCC,$host_os in | |
9423 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
9424 | library_names_spec='$libname.dll.a' | |
9425 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9426 | postinstall_cmds='base_file=`basename \${file}`~ | |
9427 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9428 | dldir=$destdir/`dirname \$dlpath`~ | |
9429 | test -d \$dldir || mkdir -p \$dldir~ | |
9430 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9431 | chmod a+x \$dldir/$dlname~ | |
9432 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9433 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9434 | fi' | |
9435 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9436 | dlpath=$dir/\$dldll~ | |
9437 | $RM \$dlpath' | |
9438 | shlibpath_overrides_runpath=yes | |
9439 | ||
9440 | case $host_os in | |
9441 | cygwin*) | |
9442 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9443 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9444 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9445 | ;; | |
9446 | mingw*) | |
9447 | # MinGW DLLs use traditional 'lib' prefix | |
9448 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9449 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9450 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9451 | # It is most probably a Windows format PATH printed by | |
9452 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9453 | # path with ; separators, and with drive letters. We can handle the | |
9454 | # drive letters (cygwin fileutils understands them), so leave them, | |
9455 | # especially as we might pass files found there to a mingw objdump, | |
9456 | # which wouldn't understand a cygwinified path. Ahh. | |
9457 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9458 | else | |
9459 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9460 | fi | |
9461 | ;; | |
9462 | pw32*) | |
9463 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9464 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9465 | ;; | |
9466 | esac | |
9467 | ;; | |
9468 | ||
9469 | *) | |
9470 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9471 | ;; | |
9472 | esac | |
9473 | dynamic_linker='Win32 ld.exe' | |
9474 | # FIXME: first we should search . and the directory the executable is in | |
9475 | shlibpath_var=PATH | |
9476 | ;; | |
9477 | ||
9478 | darwin* | rhapsody*) | |
9479 | dynamic_linker="$host_os dyld" | |
9480 | version_type=darwin | |
9481 | need_lib_prefix=no | |
9482 | need_version=no | |
9483 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9484 | soname_spec='${libname}${release}${major}$shared_ext' | |
9485 | shlibpath_overrides_runpath=yes | |
9486 | shlibpath_var=DYLD_LIBRARY_PATH | |
9487 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9488 | ||
9489 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9490 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9491 | ;; | |
9492 | ||
9493 | dgux*) | |
9494 | version_type=linux | |
9495 | need_lib_prefix=no | |
9496 | need_version=no | |
9497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9498 | soname_spec='${libname}${release}${shared_ext}$major' | |
9499 | shlibpath_var=LD_LIBRARY_PATH | |
9500 | ;; | |
9501 | ||
9502 | freebsd1*) | |
9503 | dynamic_linker=no | |
9504 | ;; | |
9505 | ||
9506 | freebsd* | dragonfly*) | |
9507 | # DragonFly does not have aout. When/if they implement a new | |
9508 | # versioning mechanism, adjust this. | |
9509 | if test -x /usr/bin/objformat; then | |
9510 | objformat=`/usr/bin/objformat` | |
9511 | else | |
9512 | case $host_os in | |
9513 | freebsd[123]*) objformat=aout ;; | |
9514 | *) objformat=elf ;; | |
9515 | esac | |
9516 | fi | |
9517 | version_type=freebsd-$objformat | |
9518 | case $version_type in | |
9519 | freebsd-elf*) | |
9520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9521 | need_version=no | |
9522 | need_lib_prefix=no | |
9523 | ;; | |
9524 | freebsd-*) | |
9525 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9526 | need_version=yes | |
9527 | ;; | |
9528 | esac | |
9529 | shlibpath_var=LD_LIBRARY_PATH | |
9530 | case $host_os in | |
9531 | freebsd2*) | |
9532 | shlibpath_overrides_runpath=yes | |
9533 | ;; | |
9534 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9535 | shlibpath_overrides_runpath=yes | |
9536 | hardcode_into_libs=yes | |
9537 | ;; | |
9538 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9539 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9540 | shlibpath_overrides_runpath=no | |
9541 | hardcode_into_libs=yes | |
9542 | ;; | |
9543 | *) # from 4.6 on, and DragonFly | |
9544 | shlibpath_overrides_runpath=yes | |
9545 | hardcode_into_libs=yes | |
9546 | ;; | |
9547 | esac | |
9548 | ;; | |
9549 | ||
9550 | gnu*) | |
9551 | version_type=linux | |
9552 | need_lib_prefix=no | |
9553 | need_version=no | |
9554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9555 | soname_spec='${libname}${release}${shared_ext}$major' | |
9556 | shlibpath_var=LD_LIBRARY_PATH | |
9557 | hardcode_into_libs=yes | |
9558 | ;; | |
9559 | ||
9560 | hpux9* | hpux10* | hpux11*) | |
9561 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9562 | # link against other versions. | |
9563 | version_type=sunos | |
9564 | need_lib_prefix=no | |
9565 | need_version=no | |
9566 | case $host_cpu in | |
9567 | ia64*) | |
9568 | shrext_cmds='.so' | |
9569 | hardcode_into_libs=yes | |
9570 | dynamic_linker="$host_os dld.so" | |
9571 | shlibpath_var=LD_LIBRARY_PATH | |
9572 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9574 | soname_spec='${libname}${release}${shared_ext}$major' | |
9575 | if test "X$HPUX_IA64_MODE" = X32; then | |
9576 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9577 | else | |
9578 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9579 | fi | |
9580 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9581 | ;; | |
9582 | hppa*64*) | |
9583 | shrext_cmds='.sl' | |
9584 | hardcode_into_libs=yes | |
9585 | dynamic_linker="$host_os dld.sl" | |
9586 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9587 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9589 | soname_spec='${libname}${release}${shared_ext}$major' | |
9590 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9591 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9592 | ;; | |
9593 | *) | |
9594 | shrext_cmds='.sl' | |
9595 | dynamic_linker="$host_os dld.sl" | |
9596 | shlibpath_var=SHLIB_PATH | |
9597 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9599 | soname_spec='${libname}${release}${shared_ext}$major' | |
9600 | ;; | |
9601 | esac | |
9602 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9603 | postinstall_cmds='chmod 555 $lib' | |
9604 | ;; | |
9605 | ||
9606 | interix[3-9]*) | |
9607 | version_type=linux | |
9608 | need_lib_prefix=no | |
9609 | need_version=no | |
9610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9611 | soname_spec='${libname}${release}${shared_ext}$major' | |
9612 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9613 | shlibpath_var=LD_LIBRARY_PATH | |
9614 | shlibpath_overrides_runpath=no | |
9615 | hardcode_into_libs=yes | |
9616 | ;; | |
d7040cdb | 9617 | |
ce2cded5 L |
9618 | irix5* | irix6* | nonstopux*) |
9619 | case $host_os in | |
9620 | nonstopux*) version_type=nonstopux ;; | |
9621 | *) | |
9622 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9623 | version_type=linux | |
9624 | else | |
9625 | version_type=irix | |
9626 | fi ;; | |
9627 | esac | |
9628 | need_lib_prefix=no | |
9629 | need_version=no | |
9630 | soname_spec='${libname}${release}${shared_ext}$major' | |
9631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9632 | case $host_os in | |
9633 | irix5* | nonstopux*) | |
9634 | libsuff= shlibsuff= | |
9635 | ;; | |
9636 | *) | |
9637 | case $LD in # libtool.m4 will add one of these switches to LD | |
9638 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9639 | libsuff= shlibsuff= libmagic=32-bit;; | |
9640 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9641 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9642 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9643 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9644 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9645 | esac | |
9646 | ;; | |
9647 | esac | |
9648 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9649 | shlibpath_overrides_runpath=no | |
9650 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9651 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9652 | hardcode_into_libs=yes | |
9653 | ;; | |
d7040cdb | 9654 | |
ce2cded5 L |
9655 | # No shared lib support for Linux oldld, aout, or coff. |
9656 | linux*oldld* | linux*aout* | linux*coff*) | |
9657 | dynamic_linker=no | |
9658 | ;; | |
9659 | ||
9660 | # This must be Linux ELF. | |
9661 | linux* | k*bsd*-gnu) | |
9662 | version_type=linux | |
9663 | need_lib_prefix=no | |
9664 | need_version=no | |
9665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9666 | soname_spec='${libname}${release}${shared_ext}$major' | |
9667 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9668 | shlibpath_var=LD_LIBRARY_PATH | |
9669 | shlibpath_overrides_runpath=no | |
9670 | # Some binutils ld are patched to set DT_RUNPATH | |
9671 | save_LDFLAGS=$LDFLAGS | |
9672 | save_libdir=$libdir | |
9673 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9674 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9675 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
9676 | /* confdefs.h. */ |
9677 | _ACEOF | |
9678 | cat confdefs.h >>conftest.$ac_ext | |
9679 | cat >>conftest.$ac_ext <<_ACEOF | |
9680 | /* end confdefs.h. */ | |
9681 | ||
d7040cdb SE |
9682 | int |
9683 | main () | |
9684 | { | |
ce2cded5 | 9685 | |
d7040cdb SE |
9686 | ; |
9687 | return 0; | |
9688 | } | |
9689 | _ACEOF | |
9690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
9691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9692 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
9693 | ac_status=$? |
9694 | grep -v '^ *+' conftest.er1 >conftest.err | |
9695 | rm -f conftest.er1 | |
9696 | cat conftest.err >&5 | |
9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
9698 | (exit $ac_status); } && |
9699 | { ac_try='test -z "$ac_c_werror_flag" | |
9700 | || test ! -s conftest.err' | |
9701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9702 | (eval $ac_try) 2>&5 | |
9703 | ac_status=$? | |
9704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9705 | (exit $ac_status); }; } && | |
9706 | { ac_try='test -s conftest$ac_exeext' | |
9707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9708 | (eval $ac_try) 2>&5 | |
9709 | ac_status=$? | |
9710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9711 | (exit $ac_status); }; }; then | |
ce2cded5 L |
9712 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then |
9713 | shlibpath_overrides_runpath=yes | |
d7040cdb | 9714 | fi |
d7040cdb | 9715 | |
d7040cdb SE |
9716 | else |
9717 | echo "$as_me: failed program was:" >&5 | |
9718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9719 | ||
d7040cdb | 9720 | fi |
0ab6f085 | 9721 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb | 9722 | conftest$ac_exeext conftest.$ac_ext |
ce2cded5 L |
9723 | LDFLAGS=$save_LDFLAGS |
9724 | libdir=$save_libdir | |
d7040cdb | 9725 | |
ce2cded5 L |
9726 | # This implies no fast_install, which is unacceptable. |
9727 | # Some rework will be needed to allow for fast_install | |
9728 | # before this can be enabled. | |
9729 | hardcode_into_libs=yes | |
d7040cdb | 9730 | |
ce2cded5 L |
9731 | # Append ld.so.conf contents to the search path |
9732 | if test -f /etc/ld.so.conf; then | |
9733 | 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
9734 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9735 | fi | |
d7040cdb | 9736 | |
ce2cded5 L |
9737 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9738 | # powerpc, because MkLinux only supported shared libraries with the | |
9739 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9740 | # most powerpc-linux boxes support dynamic linking these days and | |
9741 | # people can always --disable-shared, the test was removed, and we | |
9742 | # assume the GNU/Linux dynamic linker is in use. | |
9743 | dynamic_linker='GNU/Linux ld.so' | |
9744 | ;; | |
d7040cdb | 9745 | |
ce2cded5 L |
9746 | netbsd*) |
9747 | version_type=sunos | |
9748 | need_lib_prefix=no | |
9749 | need_version=no | |
9750 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9752 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9753 | dynamic_linker='NetBSD (a.out) ld.so' | |
9754 | else | |
9755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9756 | soname_spec='${libname}${release}${shared_ext}$major' | |
9757 | dynamic_linker='NetBSD ld.elf_so' | |
9758 | fi | |
9759 | shlibpath_var=LD_LIBRARY_PATH | |
9760 | shlibpath_overrides_runpath=yes | |
9761 | hardcode_into_libs=yes | |
9762 | ;; | |
d7040cdb | 9763 | |
ce2cded5 L |
9764 | newsos6) |
9765 | version_type=linux | |
9766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9767 | shlibpath_var=LD_LIBRARY_PATH | |
9768 | shlibpath_overrides_runpath=yes | |
9769 | ;; | |
d7040cdb | 9770 | |
ce2cded5 L |
9771 | *nto* | *qnx*) |
9772 | version_type=qnx | |
9773 | need_lib_prefix=no | |
9774 | need_version=no | |
9775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9776 | soname_spec='${libname}${release}${shared_ext}$major' | |
9777 | shlibpath_var=LD_LIBRARY_PATH | |
9778 | shlibpath_overrides_runpath=no | |
9779 | hardcode_into_libs=yes | |
9780 | dynamic_linker='ldqnx.so' | |
9781 | ;; | |
d7040cdb | 9782 | |
ce2cded5 L |
9783 | openbsd*) |
9784 | version_type=sunos | |
9785 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9786 | need_lib_prefix=no | |
9787 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9788 | case $host_os in | |
9789 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9790 | *) need_version=no ;; | |
d7040cdb | 9791 | esac |
ce2cded5 L |
9792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9793 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9794 | shlibpath_var=LD_LIBRARY_PATH | |
9795 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9796 | case $host_os in | |
9797 | openbsd2.[89] | openbsd2.[89].*) | |
9798 | shlibpath_overrides_runpath=no | |
9799 | ;; | |
9800 | *) | |
9801 | shlibpath_overrides_runpath=yes | |
9802 | ;; | |
9803 | esac | |
d7040cdb | 9804 | else |
ce2cded5 | 9805 | shlibpath_overrides_runpath=yes |
d7040cdb | 9806 | fi |
ce2cded5 | 9807 | ;; |
d7040cdb | 9808 | |
ce2cded5 L |
9809 | os2*) |
9810 | libname_spec='$name' | |
9811 | shrext_cmds=".dll" | |
9812 | need_lib_prefix=no | |
9813 | library_names_spec='$libname${shared_ext} $libname.a' | |
9814 | dynamic_linker='OS/2 ld.exe' | |
9815 | shlibpath_var=LIBPATH | |
9816 | ;; | |
d7040cdb | 9817 | |
ce2cded5 L |
9818 | osf3* | osf4* | osf5*) |
9819 | version_type=osf | |
9820 | need_lib_prefix=no | |
9821 | need_version=no | |
9822 | soname_spec='${libname}${release}${shared_ext}$major' | |
9823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9824 | shlibpath_var=LD_LIBRARY_PATH | |
9825 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9826 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9827 | ;; | |
d7040cdb | 9828 | |
ce2cded5 L |
9829 | rdos*) |
9830 | dynamic_linker=no | |
9831 | ;; | |
d7040cdb | 9832 | |
ce2cded5 L |
9833 | solaris*) |
9834 | version_type=linux | |
9835 | need_lib_prefix=no | |
9836 | need_version=no | |
9837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9838 | soname_spec='${libname}${release}${shared_ext}$major' | |
9839 | shlibpath_var=LD_LIBRARY_PATH | |
9840 | shlibpath_overrides_runpath=yes | |
9841 | hardcode_into_libs=yes | |
9842 | # ldd complains unless libraries are executable | |
9843 | postinstall_cmds='chmod +x $lib' | |
9844 | ;; | |
d7040cdb | 9845 | |
ce2cded5 L |
9846 | sunos4*) |
9847 | version_type=sunos | |
9848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9849 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9850 | shlibpath_var=LD_LIBRARY_PATH | |
9851 | shlibpath_overrides_runpath=yes | |
9852 | if test "$with_gnu_ld" = yes; then | |
9853 | need_lib_prefix=no | |
9854 | fi | |
9855 | need_version=yes | |
9856 | ;; | |
d7040cdb | 9857 | |
ce2cded5 L |
9858 | sysv4 | sysv4.3*) |
9859 | version_type=linux | |
9860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9861 | soname_spec='${libname}${release}${shared_ext}$major' | |
9862 | shlibpath_var=LD_LIBRARY_PATH | |
9863 | case $host_vendor in | |
9864 | sni) | |
9865 | shlibpath_overrides_runpath=no | |
9866 | need_lib_prefix=no | |
9867 | runpath_var=LD_RUN_PATH | |
9868 | ;; | |
9869 | siemens) | |
9870 | need_lib_prefix=no | |
9871 | ;; | |
9872 | motorola) | |
9873 | need_lib_prefix=no | |
9874 | need_version=no | |
9875 | shlibpath_overrides_runpath=no | |
9876 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9877 | ;; | |
9878 | esac | |
9879 | ;; | |
d7040cdb | 9880 | |
ce2cded5 L |
9881 | sysv4*MP*) |
9882 | if test -d /usr/nec ;then | |
9883 | version_type=linux | |
9884 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9885 | soname_spec='$libname${shared_ext}.$major' | |
9886 | shlibpath_var=LD_LIBRARY_PATH | |
9887 | fi | |
9888 | ;; | |
d7040cdb | 9889 | |
ce2cded5 L |
9890 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9891 | version_type=freebsd-elf | |
9892 | need_lib_prefix=no | |
9893 | need_version=no | |
9894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9895 | soname_spec='${libname}${release}${shared_ext}$major' | |
9896 | shlibpath_var=LD_LIBRARY_PATH | |
9897 | shlibpath_overrides_runpath=yes | |
9898 | hardcode_into_libs=yes | |
9899 | if test "$with_gnu_ld" = yes; then | |
9900 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9901 | else | |
9902 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9903 | case $host_os in | |
9904 | sco3.2v5*) | |
9905 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9906 | ;; | |
9907 | esac | |
9908 | fi | |
9909 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9910 | ;; | |
d7040cdb | 9911 | |
ce2cded5 L |
9912 | tpf*) |
9913 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9914 | version_type=linux | |
9915 | need_lib_prefix=no | |
9916 | need_version=no | |
9917 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9918 | shlibpath_var=LD_LIBRARY_PATH | |
9919 | shlibpath_overrides_runpath=no | |
9920 | hardcode_into_libs=yes | |
9921 | ;; | |
d7040cdb | 9922 | |
ce2cded5 L |
9923 | uts4*) |
9924 | version_type=linux | |
9925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9926 | soname_spec='${libname}${release}${shared_ext}$major' | |
9927 | shlibpath_var=LD_LIBRARY_PATH | |
9928 | ;; | |
d7040cdb | 9929 | |
ce2cded5 L |
9930 | *) |
9931 | dynamic_linker=no | |
9932 | ;; | |
9933 | esac | |
9934 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9935 | echo "${ECHO_T}$dynamic_linker" >&6 | |
9936 | test "$dynamic_linker" = no && can_build_shared=no | |
d7040cdb | 9937 | |
ce2cded5 L |
9938 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9939 | if test "$GCC" = yes; then | |
9940 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 9941 | fi |
d7040cdb SE |
9942 | |
9943 | ||
d7040cdb | 9944 | |
d7040cdb | 9945 | |
d7040cdb | 9946 | |
d7040cdb | 9947 | |
d7040cdb | 9948 | |
d7040cdb | 9949 | |
d7040cdb | 9950 | |
d7040cdb | 9951 | |
d7040cdb | 9952 | |
d7040cdb SE |
9953 | |
9954 | ||
d7040cdb | 9955 | |
d7040cdb | 9956 | |
d7040cdb | 9957 | |
d7040cdb SE |
9958 | |
9959 | ||
9960 | ||
9961 | ||
9962 | ||
9963 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
d7040cdb SE |
9975 | |
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ||
d7040cdb | 9987 | |
d7040cdb | 9988 | |
d7040cdb | 9989 | |
d7040cdb | 9990 | |
d7040cdb SE |
9991 | |
9992 | ||
9993 | ||
9994 | ||
d7040cdb | 9995 | |
d7040cdb SE |
9996 | |
9997 | ||
9998 | ||
9999 | ||
10000 | ||
10001 | ||
10002 | ||
10003 | ||
10004 | ||
10005 | ||
10006 | ||
10007 | ||
10008 | ||
d7040cdb SE |
10009 | |
10010 | ||
10011 | ||
10012 | ||
d7040cdb SE |
10013 | |
10014 | ||
10015 | ||
d7040cdb SE |
10016 | |
10017 | ||
d7040cdb | 10018 | |
d7040cdb | 10019 | |
d7040cdb | 10020 | |
ce2cded5 L |
10021 | |
10022 | ||
10023 | ||
10024 | ||
10025 | ||
10026 | ||
10027 | ||
10028 | ||
10029 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10030 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
10031 | hardcode_action= | |
10032 | if test -n "$hardcode_libdir_flag_spec" || | |
10033 | test -n "$runpath_var" || | |
10034 | test "X$hardcode_automatic" = "Xyes" ; then | |
10035 | ||
10036 | # We can hardcode non-existent directories. | |
10037 | if test "$hardcode_direct" != no && | |
10038 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10039 | # have to relink, otherwise we might link with an installed library | |
10040 | # when we should be linking with a yet-to-be-installed one | |
10041 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10042 | test "$hardcode_minus_L" != no; then | |
10043 | # Linking always hardcodes the temporary library directory. | |
10044 | hardcode_action=relink | |
10045 | else | |
10046 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10047 | hardcode_action=immediate | |
10048 | fi | |
d7040cdb | 10049 | else |
ce2cded5 L |
10050 | # We cannot hardcode anything, or else we can only hardcode existing |
10051 | # directories. | |
10052 | hardcode_action=unsupported | |
d7040cdb | 10053 | fi |
ce2cded5 L |
10054 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
10055 | echo "${ECHO_T}$hardcode_action" >&6 | |
d7040cdb | 10056 | |
ce2cded5 L |
10057 | if test "$hardcode_action" = relink || |
10058 | test "$inherit_rpath" = yes; then | |
10059 | # Fast installation is not supported | |
10060 | enable_fast_install=no | |
10061 | elif test "$shlibpath_overrides_runpath" = yes || | |
10062 | test "$enable_shared" = no; then | |
10063 | # Fast installation is not necessary | |
10064 | enable_fast_install=needless | |
d7040cdb SE |
10065 | fi |
10066 | ||
d7040cdb | 10067 | |
d7040cdb | 10068 | |
0ab6f085 | 10069 | |
0ab6f085 | 10070 | |
0ab6f085 | 10071 | |
ce2cded5 L |
10072 | if test "x$enable_dlopen" != xyes; then |
10073 | enable_dlopen=unknown | |
10074 | enable_dlopen_self=unknown | |
10075 | enable_dlopen_self_static=unknown | |
d7040cdb | 10076 | else |
ce2cded5 L |
10077 | lt_cv_dlopen=no |
10078 | lt_cv_dlopen_libs= | |
d7040cdb | 10079 | |
ce2cded5 L |
10080 | case $host_os in |
10081 | beos*) | |
10082 | lt_cv_dlopen="load_add_on" | |
10083 | lt_cv_dlopen_libs= | |
10084 | lt_cv_dlopen_self=yes | |
10085 | ;; | |
d7040cdb | 10086 | |
ce2cded5 L |
10087 | mingw* | pw32*) |
10088 | lt_cv_dlopen="LoadLibrary" | |
10089 | lt_cv_dlopen_libs= | |
10090 | ;; | |
10091 | ||
10092 | cygwin*) | |
10093 | lt_cv_dlopen="dlopen" | |
10094 | lt_cv_dlopen_libs= | |
10095 | ;; | |
10096 | ||
10097 | darwin*) | |
10098 | # if libdl is installed we need to link against it | |
10099 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10100 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10101 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
d7040cdb SE |
10102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10103 | else | |
ce2cded5 L |
10104 | ac_check_lib_save_LIBS=$LIBS |
10105 | LIBS="-ldl $LIBS" | |
10106 | cat >conftest.$ac_ext <<_ACEOF | |
10107 | /* confdefs.h. */ | |
10108 | _ACEOF | |
10109 | cat confdefs.h >>conftest.$ac_ext | |
10110 | cat >>conftest.$ac_ext <<_ACEOF | |
10111 | /* end confdefs.h. */ | |
10112 | ||
10113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10114 | #ifdef __cplusplus | |
10115 | extern "C" | |
10116 | #endif | |
10117 | /* We use char because int might match the return type of a gcc2 | |
10118 | builtin and then its argument prototype would still apply. */ | |
10119 | char dlopen (); | |
10120 | int | |
10121 | main () | |
10122 | { | |
10123 | dlopen (); | |
10124 | ; | |
10125 | return 0; | |
10126 | } | |
10127 | _ACEOF | |
10128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10130 | (eval $ac_link) 2>conftest.er1 | |
10131 | ac_status=$? | |
10132 | grep -v '^ *+' conftest.er1 >conftest.err | |
10133 | rm -f conftest.er1 | |
10134 | cat conftest.err >&5 | |
10135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10136 | (exit $ac_status); } && | |
10137 | { ac_try='test -z "$ac_c_werror_flag" | |
10138 | || test ! -s conftest.err' | |
10139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10140 | (eval $ac_try) 2>&5 | |
10141 | ac_status=$? | |
10142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10143 | (exit $ac_status); }; } && | |
10144 | { ac_try='test -s conftest$ac_exeext' | |
10145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10146 | (eval $ac_try) 2>&5 | |
10147 | ac_status=$? | |
10148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10149 | (exit $ac_status); }; }; then | |
10150 | ac_cv_lib_dl_dlopen=yes | |
10151 | else | |
10152 | echo "$as_me: failed program was:" >&5 | |
10153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10154 | |
ce2cded5 | 10155 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10156 | fi |
ce2cded5 L |
10157 | rm -f conftest.err conftest.$ac_objext \ |
10158 | conftest$ac_exeext conftest.$ac_ext | |
10159 | LIBS=$ac_check_lib_save_LIBS | |
d7040cdb | 10160 | fi |
ce2cded5 L |
10161 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10162 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10163 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10164 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
d7040cdb | 10165 | else |
d7040cdb | 10166 | |
ce2cded5 L |
10167 | lt_cv_dlopen="dyld" |
10168 | lt_cv_dlopen_libs= | |
10169 | lt_cv_dlopen_self=yes | |
10170 | ||
d7040cdb | 10171 | fi |
ce2cded5 L |
10172 | |
10173 | ;; | |
10174 | ||
10175 | *) | |
10176 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10177 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
10178 | if test "${ac_cv_func_shl_load+set}" = set; then | |
d7040cdb SE |
10179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10180 | else | |
ce2cded5 L |
10181 | cat >conftest.$ac_ext <<_ACEOF |
10182 | /* confdefs.h. */ | |
10183 | _ACEOF | |
10184 | cat confdefs.h >>conftest.$ac_ext | |
10185 | cat >>conftest.$ac_ext <<_ACEOF | |
10186 | /* end confdefs.h. */ | |
10187 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10188 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10189 | #define shl_load innocuous_shl_load | |
d7040cdb | 10190 | |
ce2cded5 L |
10191 | /* System header to define __stub macros and hopefully few prototypes, |
10192 | which can conflict with char shl_load (); below. | |
10193 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10194 | <limits.h> exists even on freestanding compilers. */ | |
d7040cdb | 10195 | |
ce2cded5 L |
10196 | #ifdef __STDC__ |
10197 | # include <limits.h> | |
10198 | #else | |
10199 | # include <assert.h> | |
10200 | #endif | |
d7040cdb | 10201 | |
ce2cded5 | 10202 | #undef shl_load |
d7040cdb | 10203 | |
ce2cded5 L |
10204 | /* Override any gcc2 internal prototype to avoid an error. */ |
10205 | #ifdef __cplusplus | |
10206 | extern "C" | |
10207 | { | |
10208 | #endif | |
10209 | /* We use char because int might match the return type of a gcc2 | |
10210 | builtin and then its argument prototype would still apply. */ | |
10211 | char shl_load (); | |
10212 | /* The GNU C library defines this for functions which it implements | |
10213 | to always fail with ENOSYS. Some functions are actually named | |
10214 | something starting with __ and the normal name is an alias. */ | |
10215 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
10216 | choke me | |
10217 | #else | |
10218 | char (*f) () = shl_load; | |
10219 | #endif | |
10220 | #ifdef __cplusplus | |
10221 | } | |
10222 | #endif | |
d7040cdb | 10223 | |
ce2cded5 L |
10224 | int |
10225 | main () | |
10226 | { | |
10227 | return f != shl_load; | |
10228 | ; | |
10229 | return 0; | |
10230 | } | |
10231 | _ACEOF | |
10232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10234 | (eval $ac_link) 2>conftest.er1 | |
10235 | ac_status=$? | |
10236 | grep -v '^ *+' conftest.er1 >conftest.err | |
10237 | rm -f conftest.er1 | |
10238 | cat conftest.err >&5 | |
10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10240 | (exit $ac_status); } && | |
10241 | { ac_try='test -z "$ac_c_werror_flag" | |
10242 | || test ! -s conftest.err' | |
10243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10244 | (eval $ac_try) 2>&5 | |
10245 | ac_status=$? | |
10246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10247 | (exit $ac_status); }; } && | |
10248 | { ac_try='test -s conftest$ac_exeext' | |
10249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10250 | (eval $ac_try) 2>&5 | |
10251 | ac_status=$? | |
10252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10253 | (exit $ac_status); }; }; then | |
10254 | ac_cv_func_shl_load=yes | |
10255 | else | |
10256 | echo "$as_me: failed program was:" >&5 | |
10257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10258 | |
ce2cded5 L |
10259 | ac_cv_func_shl_load=no |
10260 | fi | |
10261 | rm -f conftest.err conftest.$ac_objext \ | |
10262 | conftest$ac_exeext conftest.$ac_ext | |
10263 | fi | |
10264 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10265 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
10266 | if test $ac_cv_func_shl_load = yes; then | |
10267 | lt_cv_dlopen="shl_load" | |
10268 | else | |
10269 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10270 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
10271 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10273 | else | |
10274 | ac_check_lib_save_LIBS=$LIBS | |
10275 | LIBS="-ldld $LIBS" | |
10276 | cat >conftest.$ac_ext <<_ACEOF | |
10277 | /* confdefs.h. */ | |
10278 | _ACEOF | |
10279 | cat confdefs.h >>conftest.$ac_ext | |
10280 | cat >>conftest.$ac_ext <<_ACEOF | |
10281 | /* end confdefs.h. */ | |
d7040cdb | 10282 | |
ce2cded5 L |
10283 | /* Override any gcc2 internal prototype to avoid an error. */ |
10284 | #ifdef __cplusplus | |
10285 | extern "C" | |
10286 | #endif | |
10287 | /* We use char because int might match the return type of a gcc2 | |
10288 | builtin and then its argument prototype would still apply. */ | |
10289 | char shl_load (); | |
10290 | int | |
10291 | main () | |
10292 | { | |
10293 | shl_load (); | |
10294 | ; | |
10295 | return 0; | |
10296 | } | |
10297 | _ACEOF | |
10298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10300 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb | 10301 | ac_status=$? |
ce2cded5 L |
10302 | grep -v '^ *+' conftest.er1 >conftest.err |
10303 | rm -f conftest.er1 | |
10304 | cat conftest.err >&5 | |
d7040cdb | 10305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
10306 | (exit $ac_status); } && |
10307 | { ac_try='test -z "$ac_c_werror_flag" | |
10308 | || test ! -s conftest.err' | |
10309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10310 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
10311 | ac_status=$? |
10312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
10313 | (exit $ac_status); }; } && |
10314 | { ac_try='test -s conftest$ac_exeext' | |
10315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10316 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
10317 | ac_status=$? |
10318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
10319 | (exit $ac_status); }; }; then |
10320 | ac_cv_lib_dld_shl_load=yes | |
10321 | else | |
10322 | echo "$as_me: failed program was:" >&5 | |
10323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 10324 | |
ce2cded5 L |
10325 | ac_cv_lib_dld_shl_load=no |
10326 | fi | |
10327 | rm -f conftest.err conftest.$ac_objext \ | |
10328 | conftest$ac_exeext conftest.$ac_ext | |
10329 | LIBS=$ac_check_lib_save_LIBS | |
10330 | fi | |
10331 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10332 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
10333 | if test $ac_cv_lib_dld_shl_load = yes; then | |
10334 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
10335 | else | |
10336 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10337 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
10338 | if test "${ac_cv_func_dlopen+set}" = set; then | |
d7040cdb SE |
10339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10340 | else | |
10341 | cat >conftest.$ac_ext <<_ACEOF | |
10342 | /* confdefs.h. */ | |
10343 | _ACEOF | |
10344 | cat confdefs.h >>conftest.$ac_ext | |
10345 | cat >>conftest.$ac_ext <<_ACEOF | |
10346 | /* end confdefs.h. */ | |
ce2cded5 L |
10347 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
10348 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10349 | #define dlopen innocuous_dlopen | |
10350 | ||
10351 | /* System header to define __stub macros and hopefully few prototypes, | |
10352 | which can conflict with char dlopen (); below. | |
10353 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10354 | <limits.h> exists even on freestanding compilers. */ | |
10355 | ||
10356 | #ifdef __STDC__ | |
10357 | # include <limits.h> | |
10358 | #else | |
10359 | # include <assert.h> | |
10360 | #endif | |
d7040cdb | 10361 | |
ce2cded5 L |
10362 | #undef dlopen |
10363 | ||
10364 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10365 | #ifdef __cplusplus | |
10366 | extern "C" | |
d7040cdb | 10367 | { |
ce2cded5 L |
10368 | #endif |
10369 | /* We use char because int might match the return type of a gcc2 | |
10370 | builtin and then its argument prototype would still apply. */ | |
10371 | char dlopen (); | |
10372 | /* The GNU C library defines this for functions which it implements | |
10373 | to always fail with ENOSYS. Some functions are actually named | |
10374 | something starting with __ and the normal name is an alias. */ | |
10375 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10376 | choke me | |
10377 | #else | |
10378 | char (*f) () = dlopen; | |
10379 | #endif | |
10380 | #ifdef __cplusplus | |
10381 | } | |
d7040cdb SE |
10382 | #endif |
10383 | ||
ce2cded5 L |
10384 | int |
10385 | main () | |
10386 | { | |
10387 | return f != dlopen; | |
d7040cdb SE |
10388 | ; |
10389 | return 0; | |
10390 | } | |
10391 | _ACEOF | |
ce2cded5 L |
10392 | rm -f conftest.$ac_objext conftest$ac_exeext |
10393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10394 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
10395 | ac_status=$? |
10396 | grep -v '^ *+' conftest.er1 >conftest.err | |
10397 | rm -f conftest.er1 | |
10398 | cat conftest.err >&5 | |
10399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
10400 | (exit $ac_status); } && |
10401 | { ac_try='test -z "$ac_c_werror_flag" | |
10402 | || test ! -s conftest.err' | |
10403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10404 | (eval $ac_try) 2>&5 | |
10405 | ac_status=$? | |
10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10407 | (exit $ac_status); }; } && | |
ce2cded5 | 10408 | { ac_try='test -s conftest$ac_exeext' |
0ab6f085 AM |
10409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10410 | (eval $ac_try) 2>&5 | |
10411 | ac_status=$? | |
10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10413 | (exit $ac_status); }; }; then | |
ce2cded5 | 10414 | ac_cv_func_dlopen=yes |
d7040cdb SE |
10415 | else |
10416 | echo "$as_me: failed program was:" >&5 | |
10417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10418 | ||
ce2cded5 | 10419 | ac_cv_func_dlopen=no |
d7040cdb | 10420 | fi |
ce2cded5 L |
10421 | rm -f conftest.err conftest.$ac_objext \ |
10422 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 10423 | fi |
ce2cded5 L |
10424 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
10425 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
10426 | if test $ac_cv_func_dlopen = yes; then | |
10427 | lt_cv_dlopen="dlopen" | |
10428 | else | |
10429 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10430 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10431 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
d7040cdb SE |
10432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10433 | else | |
ce2cded5 L |
10434 | ac_check_lib_save_LIBS=$LIBS |
10435 | LIBS="-ldl $LIBS" | |
10436 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
10437 | /* confdefs.h. */ |
10438 | _ACEOF | |
10439 | cat confdefs.h >>conftest.$ac_ext | |
10440 | cat >>conftest.$ac_ext <<_ACEOF | |
10441 | /* end confdefs.h. */ | |
10442 | ||
ce2cded5 L |
10443 | /* Override any gcc2 internal prototype to avoid an error. */ |
10444 | #ifdef __cplusplus | |
10445 | extern "C" | |
10446 | #endif | |
10447 | /* We use char because int might match the return type of a gcc2 | |
10448 | builtin and then its argument prototype would still apply. */ | |
10449 | char dlopen (); | |
d7040cdb SE |
10450 | int |
10451 | main () | |
10452 | { | |
ce2cded5 | 10453 | dlopen (); |
d7040cdb SE |
10454 | ; |
10455 | return 0; | |
10456 | } | |
10457 | _ACEOF | |
ce2cded5 L |
10458 | rm -f conftest.$ac_objext conftest$ac_exeext |
10459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10460 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
10461 | ac_status=$? |
10462 | grep -v '^ *+' conftest.er1 >conftest.err | |
10463 | rm -f conftest.er1 | |
10464 | cat conftest.err >&5 | |
10465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
10466 | (exit $ac_status); } && |
10467 | { ac_try='test -z "$ac_c_werror_flag" | |
10468 | || test ! -s conftest.err' | |
10469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10470 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
10471 | ac_status=$? |
10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 | 10473 | (exit $ac_status); }; } && |
ce2cded5 | 10474 | { ac_try='test -s conftest$ac_exeext' |
0ab6f085 AM |
10475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10476 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
10477 | ac_status=$? |
10478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 | 10479 | (exit $ac_status); }; }; then |
ce2cded5 | 10480 | ac_cv_lib_dl_dlopen=yes |
d7040cdb SE |
10481 | else |
10482 | echo "$as_me: failed program was:" >&5 | |
10483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10484 | ||
ce2cded5 | 10485 | ac_cv_lib_dl_dlopen=no |
1b9750d6 | 10486 | fi |
ce2cded5 L |
10487 | rm -f conftest.err conftest.$ac_objext \ |
10488 | conftest$ac_exeext conftest.$ac_ext | |
10489 | LIBS=$ac_check_lib_save_LIBS | |
d7040cdb | 10490 | fi |
ce2cded5 L |
10491 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10492 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10493 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10494 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
d7040cdb | 10495 | else |
ce2cded5 L |
10496 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
10497 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
10498 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
d7040cdb SE |
10499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10500 | else | |
ce2cded5 L |
10501 | ac_check_lib_save_LIBS=$LIBS |
10502 | LIBS="-lsvld $LIBS" | |
d7040cdb SE |
10503 | cat >conftest.$ac_ext <<_ACEOF |
10504 | /* confdefs.h. */ | |
10505 | _ACEOF | |
10506 | cat confdefs.h >>conftest.$ac_ext | |
10507 | cat >>conftest.$ac_ext <<_ACEOF | |
10508 | /* end confdefs.h. */ | |
d7040cdb | 10509 | |
ce2cded5 L |
10510 | /* Override any gcc2 internal prototype to avoid an error. */ |
10511 | #ifdef __cplusplus | |
10512 | extern "C" | |
10513 | #endif | |
10514 | /* We use char because int might match the return type of a gcc2 | |
10515 | builtin and then its argument prototype would still apply. */ | |
10516 | char dlopen (); | |
d7040cdb SE |
10517 | int |
10518 | main () | |
10519 | { | |
ce2cded5 | 10520 | dlopen (); |
d7040cdb SE |
10521 | ; |
10522 | return 0; | |
10523 | } | |
10524 | _ACEOF | |
ce2cded5 L |
10525 | rm -f conftest.$ac_objext conftest$ac_exeext |
10526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10527 | (eval $ac_link) 2>conftest.er1 | |
0ab6f085 AM |
10528 | ac_status=$? |
10529 | grep -v '^ *+' conftest.er1 >conftest.err | |
10530 | rm -f conftest.er1 | |
10531 | cat conftest.err >&5 | |
10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10533 | (exit $ac_status); } && | |
10534 | { ac_try='test -z "$ac_c_werror_flag" | |
10535 | || test ! -s conftest.err' | |
10536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10537 | (eval $ac_try) 2>&5 | |
10538 | ac_status=$? | |
10539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10540 | (exit $ac_status); }; } && | |
ce2cded5 | 10541 | { ac_try='test -s conftest$ac_exeext' |
0ab6f085 AM |
10542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10543 | (eval $ac_try) 2>&5 | |
10544 | ac_status=$? | |
10545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10546 | (exit $ac_status); }; }; then | |
ce2cded5 | 10547 | ac_cv_lib_svld_dlopen=yes |
0ab6f085 AM |
10548 | else |
10549 | echo "$as_me: failed program was:" >&5 | |
10550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10551 | ||
ce2cded5 | 10552 | ac_cv_lib_svld_dlopen=no |
0ab6f085 | 10553 | fi |
ce2cded5 L |
10554 | rm -f conftest.err conftest.$ac_objext \ |
10555 | conftest$ac_exeext conftest.$ac_ext | |
10556 | LIBS=$ac_check_lib_save_LIBS | |
0ab6f085 | 10557 | fi |
ce2cded5 L |
10558 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
10559 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
10560 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10561 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10562 | else | |
10563 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10564 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
10565 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10567 | else | |
10568 | ac_check_lib_save_LIBS=$LIBS | |
10569 | LIBS="-ldld $LIBS" | |
10570 | cat >conftest.$ac_ext <<_ACEOF | |
0ab6f085 AM |
10571 | /* confdefs.h. */ |
10572 | _ACEOF | |
10573 | cat confdefs.h >>conftest.$ac_ext | |
10574 | cat >>conftest.$ac_ext <<_ACEOF | |
10575 | /* end confdefs.h. */ | |
ce2cded5 L |
10576 | |
10577 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10578 | #ifdef __cplusplus | |
10579 | extern "C" | |
10580 | #endif | |
10581 | /* We use char because int might match the return type of a gcc2 | |
10582 | builtin and then its argument prototype would still apply. */ | |
10583 | char dld_link (); | |
0ab6f085 AM |
10584 | int |
10585 | main () | |
10586 | { | |
ce2cded5 | 10587 | dld_link (); |
0ab6f085 AM |
10588 | ; |
10589 | return 0; | |
10590 | } | |
10591 | _ACEOF | |
ce2cded5 L |
10592 | rm -f conftest.$ac_objext conftest$ac_exeext |
10593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10594 | (eval $ac_link) 2>conftest.er1 | |
0ab6f085 AM |
10595 | ac_status=$? |
10596 | grep -v '^ *+' conftest.er1 >conftest.err | |
10597 | rm -f conftest.er1 | |
10598 | cat conftest.err >&5 | |
10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10600 | (exit $ac_status); } && | |
10601 | { ac_try='test -z "$ac_c_werror_flag" | |
10602 | || test ! -s conftest.err' | |
10603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10604 | (eval $ac_try) 2>&5 | |
10605 | ac_status=$? | |
10606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10607 | (exit $ac_status); }; } && | |
ce2cded5 | 10608 | { ac_try='test -s conftest$ac_exeext' |
0ab6f085 AM |
10609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10610 | (eval $ac_try) 2>&5 | |
10611 | ac_status=$? | |
10612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10613 | (exit $ac_status); }; }; then | |
ce2cded5 | 10614 | ac_cv_lib_dld_dld_link=yes |
0ab6f085 AM |
10615 | else |
10616 | echo "$as_me: failed program was:" >&5 | |
10617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10618 | ||
ce2cded5 | 10619 | ac_cv_lib_dld_dld_link=no |
0ab6f085 | 10620 | fi |
ce2cded5 L |
10621 | rm -f conftest.err conftest.$ac_objext \ |
10622 | conftest$ac_exeext conftest.$ac_ext | |
10623 | LIBS=$ac_check_lib_save_LIBS | |
10624 | fi | |
10625 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10626 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
10627 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10628 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10629 | fi | |
10630 | ||
10631 | ||
10632 | fi | |
10633 | ||
10634 | ||
10635 | fi | |
10636 | ||
10637 | ||
10638 | fi | |
10639 | ||
10640 | ||
10641 | fi | |
10642 | ||
10643 | ||
10644 | fi | |
10645 | ||
10646 | ;; | |
10647 | esac | |
10648 | ||
10649 | if test "x$lt_cv_dlopen" != xno; then | |
10650 | enable_dlopen=yes | |
10651 | else | |
10652 | enable_dlopen=no | |
10653 | fi | |
10654 | ||
10655 | case $lt_cv_dlopen in | |
10656 | dlopen) | |
10657 | save_CPPFLAGS="$CPPFLAGS" | |
10658 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10659 | ||
10660 | save_LDFLAGS="$LDFLAGS" | |
10661 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10662 | ||
10663 | save_LIBS="$LIBS" | |
10664 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10665 | ||
10666 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10667 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
10668 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10670 | else | |
10671 | if test "$cross_compiling" = yes; then : | |
10672 | lt_cv_dlopen_self=cross | |
10673 | else | |
10674 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10675 | lt_status=$lt_dlunknown | |
10676 | cat > conftest.$ac_ext <<_LT_EOF | |
7357c5b6 | 10677 | #line 10312 "configure" |
ce2cded5 L |
10678 | #include "confdefs.h" |
10679 | ||
10680 | #if HAVE_DLFCN_H | |
10681 | #include <dlfcn.h> | |
10682 | #endif | |
10683 | ||
10684 | #include <stdio.h> | |
10685 | ||
10686 | #ifdef RTLD_GLOBAL | |
10687 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10688 | #else | |
10689 | # ifdef DL_GLOBAL | |
10690 | # define LT_DLGLOBAL DL_GLOBAL | |
10691 | # else | |
10692 | # define LT_DLGLOBAL 0 | |
10693 | # endif | |
10694 | #endif | |
10695 | ||
10696 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10697 | find out it does not work in some platform. */ | |
10698 | #ifndef LT_DLLAZY_OR_NOW | |
10699 | # ifdef RTLD_LAZY | |
10700 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10701 | # else | |
10702 | # ifdef DL_LAZY | |
10703 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10704 | # else | |
10705 | # ifdef RTLD_NOW | |
10706 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10707 | # else | |
10708 | # ifdef DL_NOW | |
10709 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10710 | # else | |
10711 | # define LT_DLLAZY_OR_NOW 0 | |
10712 | # endif | |
10713 | # endif | |
10714 | # endif | |
10715 | # endif | |
10716 | #endif | |
10717 | ||
10718 | #ifdef __cplusplus | |
10719 | extern "C" void exit (int); | |
10720 | #endif | |
10721 | ||
10722 | void fnord() { int i=42;} | |
10723 | int main () | |
0ab6f085 | 10724 | { |
ce2cded5 L |
10725 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10726 | int status = $lt_dlunknown; | |
10727 | ||
10728 | if (self) | |
10729 | { | |
10730 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10731 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10732 | /* dlclose (self); */ | |
10733 | } | |
10734 | else | |
10735 | puts (dlerror ()); | |
10736 | ||
10737 | exit (status); | |
10738 | } | |
10739 | _LT_EOF | |
10740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10741 | (eval $ac_link) 2>&5 | |
10742 | ac_status=$? | |
10743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10744 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10745 | (./conftest; exit; ) >&5 2>/dev/null | |
10746 | lt_status=$? | |
10747 | case x$lt_status in | |
10748 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10749 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10750 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10751 | esac | |
10752 | else : | |
10753 | # compilation failed | |
10754 | lt_cv_dlopen_self=no | |
10755 | fi | |
10756 | fi | |
10757 | rm -fr conftest* | |
10758 | ||
10759 | ||
10760 | fi | |
10761 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10762 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
10763 | ||
10764 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10765 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10766 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10767 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
10768 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10770 | else | |
10771 | if test "$cross_compiling" = yes; then : | |
10772 | lt_cv_dlopen_self_static=cross | |
10773 | else | |
10774 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10775 | lt_status=$lt_dlunknown | |
10776 | cat > conftest.$ac_ext <<_LT_EOF | |
7357c5b6 | 10777 | #line 10412 "configure" |
ce2cded5 L |
10778 | #include "confdefs.h" |
10779 | ||
10780 | #if HAVE_DLFCN_H | |
10781 | #include <dlfcn.h> | |
10782 | #endif | |
10783 | ||
10784 | #include <stdio.h> | |
10785 | ||
10786 | #ifdef RTLD_GLOBAL | |
10787 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10788 | #else | |
10789 | # ifdef DL_GLOBAL | |
10790 | # define LT_DLGLOBAL DL_GLOBAL | |
10791 | # else | |
10792 | # define LT_DLGLOBAL 0 | |
10793 | # endif | |
10794 | #endif | |
10795 | ||
10796 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10797 | find out it does not work in some platform. */ | |
10798 | #ifndef LT_DLLAZY_OR_NOW | |
10799 | # ifdef RTLD_LAZY | |
10800 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10801 | # else | |
10802 | # ifdef DL_LAZY | |
10803 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10804 | # else | |
10805 | # ifdef RTLD_NOW | |
10806 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10807 | # else | |
10808 | # ifdef DL_NOW | |
10809 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10810 | # else | |
10811 | # define LT_DLLAZY_OR_NOW 0 | |
10812 | # endif | |
10813 | # endif | |
10814 | # endif | |
10815 | # endif | |
10816 | #endif | |
10817 | ||
10818 | #ifdef __cplusplus | |
10819 | extern "C" void exit (int); | |
10820 | #endif | |
10821 | ||
10822 | void fnord() { int i=42;} | |
10823 | int main () | |
10824 | { | |
10825 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10826 | int status = $lt_dlunknown; | |
10827 | ||
10828 | if (self) | |
10829 | { | |
10830 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10831 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10832 | /* dlclose (self); */ | |
10833 | } | |
10834 | else | |
10835 | puts (dlerror ()); | |
10836 | ||
10837 | exit (status); | |
0ab6f085 | 10838 | } |
ce2cded5 L |
10839 | _LT_EOF |
10840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10841 | (eval $ac_link) 2>&5 | |
0ab6f085 AM |
10842 | ac_status=$? |
10843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
10844 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10845 | (./conftest; exit; ) >&5 2>/dev/null | |
10846 | lt_status=$? | |
10847 | case x$lt_status in | |
10848 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10849 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10850 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10851 | esac | |
10852 | else : | |
10853 | # compilation failed | |
10854 | lt_cv_dlopen_self_static=no | |
10855 | fi | |
10856 | fi | |
10857 | rm -fr conftest* | |
10858 | ||
d7040cdb SE |
10859 | |
10860 | fi | |
ce2cded5 L |
10861 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10862 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
10863 | fi | |
10864 | ||
10865 | CPPFLAGS="$save_CPPFLAGS" | |
10866 | LDFLAGS="$save_LDFLAGS" | |
10867 | LIBS="$save_LIBS" | |
10868 | ;; | |
10869 | esac | |
10870 | ||
10871 | case $lt_cv_dlopen_self in | |
10872 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10873 | *) enable_dlopen_self=unknown ;; | |
10874 | esac | |
10875 | ||
10876 | case $lt_cv_dlopen_self_static in | |
10877 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10878 | *) enable_dlopen_self_static=unknown ;; | |
10879 | esac | |
d7040cdb SE |
10880 | fi |
10881 | ||
ce2cded5 L |
10882 | |
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
10891 | ||
10892 | ||
10893 | ||
10894 | ||
10895 | ||
10896 | ||
10897 | ||
10898 | striplib= | |
10899 | old_striplib= | |
10900 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10901 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10902 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10903 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10904 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10905 | echo "$as_me:$LINENO: result: yes" >&5 | |
10906 | echo "${ECHO_T}yes" >&6 | |
0ab6f085 | 10907 | else |
ce2cded5 L |
10908 | # FIXME - insert some real tests, host_os isn't really good enough |
10909 | case $host_os in | |
10910 | darwin*) | |
10911 | if test -n "$STRIP" ; then | |
10912 | striplib="$STRIP -x" | |
10913 | old_striplib="$STRIP -S" | |
10914 | echo "$as_me:$LINENO: result: yes" >&5 | |
10915 | echo "${ECHO_T}yes" >&6 | |
10916 | else | |
10917 | echo "$as_me:$LINENO: result: no" >&5 | |
10918 | echo "${ECHO_T}no" >&6 | |
10919 | fi | |
10920 | ;; | |
10921 | *) | |
10922 | echo "$as_me:$LINENO: result: no" >&5 | |
10923 | echo "${ECHO_T}no" >&6 | |
10924 | ;; | |
10925 | esac | |
10926 | fi | |
10927 | ||
10928 | ||
10929 | ||
10930 | ||
10931 | ||
10932 | ||
10933 | ||
10934 | ||
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | # Report which library types will actually be built | |
10940 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10941 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10942 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10943 | echo "${ECHO_T}$can_build_shared" >&6 | |
10944 | ||
10945 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10946 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10947 | test "$can_build_shared" = "no" && enable_shared=no | |
10948 | ||
10949 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10950 | # are all built from PIC. | |
10951 | case $host_os in | |
10952 | aix3*) | |
10953 | test "$enable_shared" = yes && enable_static=no | |
10954 | if test -n "$RANLIB"; then | |
10955 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10956 | postinstall_cmds='$RANLIB $lib' | |
10957 | fi | |
10958 | ;; | |
10959 | ||
50e7d84b | 10960 | aix[4-9]*) |
ce2cded5 L |
10961 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10962 | test "$enable_shared" = yes && enable_static=no | |
10963 | fi | |
10964 | ;; | |
10965 | esac | |
10966 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10967 | echo "${ECHO_T}$enable_shared" >&6 | |
10968 | ||
10969 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10970 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10971 | # Make sure either enable_shared or enable_static is yes. | |
10972 | test "$enable_shared" = yes || enable_static=yes | |
10973 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10974 | echo "${ECHO_T}$enable_static" >&6 | |
10975 | ||
10976 | ||
10977 | ||
d7040cdb | 10978 | |
0ab6f085 | 10979 | fi |
d7040cdb SE |
10980 | ac_ext=c |
10981 | ac_cpp='$CPP $CPPFLAGS' | |
10982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10985 | ||
ce2cded5 | 10986 | CC="$lt_save_CC" |
0ab6f085 | 10987 | |
0ab6f085 AM |
10988 | |
10989 | ||
d7040cdb SE |
10990 | |
10991 | ||
d7040cdb | 10992 | |
d7040cdb | 10993 | |
d7040cdb | 10994 | |
ce2cded5 L |
10995 | |
10996 | ||
10997 | ||
10998 | ||
10999 | ||
11000 | ac_config_commands="$ac_config_commands libtool" | |
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | # Only expand once: | |
11006 | ||
d7040cdb SE |
11007 | |
11008 | ||
11009 | ||
11010 | for ac_func in setmode | |
11011 | do | |
11012 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
0ab6f085 AM |
11013 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11014 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11015 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d7040cdb SE |
11016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11017 | else | |
11018 | cat >conftest.$ac_ext <<_ACEOF | |
11019 | /* confdefs.h. */ | |
11020 | _ACEOF | |
11021 | cat confdefs.h >>conftest.$ac_ext | |
11022 | cat >>conftest.$ac_ext <<_ACEOF | |
11023 | /* end confdefs.h. */ | |
11024 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11025 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11026 | #define $ac_func innocuous_$ac_func | |
11027 | ||
11028 | /* System header to define __stub macros and hopefully few prototypes, | |
11029 | which can conflict with char $ac_func (); below. | |
11030 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11031 | <limits.h> exists even on freestanding compilers. */ | |
11032 | ||
11033 | #ifdef __STDC__ | |
11034 | # include <limits.h> | |
11035 | #else | |
11036 | # include <assert.h> | |
11037 | #endif | |
11038 | ||
11039 | #undef $ac_func | |
11040 | ||
0ab6f085 | 11041 | /* Override any gcc2 internal prototype to avoid an error. */ |
d7040cdb SE |
11042 | #ifdef __cplusplus |
11043 | extern "C" | |
0ab6f085 | 11044 | { |
d7040cdb | 11045 | #endif |
0ab6f085 AM |
11046 | /* We use char because int might match the return type of a gcc2 |
11047 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
11048 | char $ac_func (); |
11049 | /* The GNU C library defines this for functions which it implements | |
11050 | to always fail with ENOSYS. Some functions are actually named | |
11051 | something starting with __ and the normal name is an alias. */ | |
0ab6f085 | 11052 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d7040cdb | 11053 | choke me |
0ab6f085 AM |
11054 | #else |
11055 | char (*f) () = $ac_func; | |
11056 | #endif | |
11057 | #ifdef __cplusplus | |
11058 | } | |
d7040cdb SE |
11059 | #endif |
11060 | ||
11061 | int | |
11062 | main () | |
11063 | { | |
0ab6f085 | 11064 | return f != $ac_func; |
d7040cdb SE |
11065 | ; |
11066 | return 0; | |
11067 | } | |
11068 | _ACEOF | |
11069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
11070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11071 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
11072 | ac_status=$? |
11073 | grep -v '^ *+' conftest.er1 >conftest.err | |
11074 | rm -f conftest.er1 | |
11075 | cat conftest.err >&5 | |
11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
11077 | (exit $ac_status); } && |
11078 | { ac_try='test -z "$ac_c_werror_flag" | |
11079 | || test ! -s conftest.err' | |
11080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11081 | (eval $ac_try) 2>&5 | |
11082 | ac_status=$? | |
11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11084 | (exit $ac_status); }; } && | |
11085 | { ac_try='test -s conftest$ac_exeext' | |
11086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11087 | (eval $ac_try) 2>&5 | |
11088 | ac_status=$? | |
11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11090 | (exit $ac_status); }; }; then | |
d7040cdb SE |
11091 | eval "$as_ac_var=yes" |
11092 | else | |
11093 | echo "$as_me: failed program was:" >&5 | |
11094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11095 | ||
0ab6f085 | 11096 | eval "$as_ac_var=no" |
d7040cdb | 11097 | fi |
0ab6f085 | 11098 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb SE |
11099 | conftest$ac_exeext conftest.$ac_ext |
11100 | fi | |
0ab6f085 AM |
11101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
11102 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d7040cdb SE |
11103 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11104 | cat >>confdefs.h <<_ACEOF | |
11105 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11106 | _ACEOF | |
11107 | ||
11108 | fi | |
11109 | done | |
11110 | ||
11111 | ||
789169e5 | 11112 | ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl" |
d7040cdb SE |
11113 | # If we haven't got the data from the intl directory, |
11114 | # assume NLS is disabled. | |
11115 | USE_NLS=no | |
11116 | LIBINTL= | |
11117 | LIBINTL_DEP= | |
11118 | INCINTL= | |
11119 | XGETTEXT= | |
11120 | GMSGFMT= | |
11121 | POSUB= | |
11122 | ||
11123 | if test -f ../intl/config.intl; then | |
11124 | . ../intl/config.intl | |
11125 | fi | |
0ab6f085 AM |
11126 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
11127 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
d7040cdb | 11128 | if test x"$USE_NLS" != xyes; then |
0ab6f085 AM |
11129 | echo "$as_me:$LINENO: result: no" >&5 |
11130 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 11131 | else |
0ab6f085 AM |
11132 | echo "$as_me:$LINENO: result: yes" >&5 |
11133 | echo "${ECHO_T}yes" >&6 | |
d7040cdb SE |
11134 | |
11135 | cat >>confdefs.h <<\_ACEOF | |
11136 | #define ENABLE_NLS 1 | |
11137 | _ACEOF | |
11138 | ||
11139 | ||
0ab6f085 AM |
11140 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
11141 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
d7040cdb SE |
11142 | # Look for .po and .gmo files in the source directory. |
11143 | CATALOGS= | |
11144 | XLINGUAS= | |
11145 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
11146 | # If there aren't any .gmo files the shell will give us the | |
11147 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
11148 | # weeded out. | |
11149 | case "$cat" in *\**) | |
11150 | continue;; | |
11151 | esac | |
11152 | # The quadruple backslash is collapsed to a double backslash | |
11153 | # by the backticks, then collapsed again by the double quotes, | |
11154 | # leaving us with one backslash in the sed expression (right | |
11155 | # before the dot that mustn't act as a wildcard). | |
11156 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
11157 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
11158 | # The user is allowed to set LINGUAS to a list of languages to | |
11159 | # install catalogs for. If it's empty that means "all of them." | |
11160 | if test "x$LINGUAS" = x; then | |
11161 | CATALOGS="$CATALOGS $cat" | |
11162 | XLINGUAS="$XLINGUAS $lang" | |
11163 | else | |
11164 | case "$LINGUAS" in *$lang*) | |
11165 | CATALOGS="$CATALOGS $cat" | |
11166 | XLINGUAS="$XLINGUAS $lang" | |
11167 | ;; | |
11168 | esac | |
11169 | fi | |
11170 | done | |
11171 | LINGUAS="$XLINGUAS" | |
0ab6f085 AM |
11172 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
11173 | echo "${ECHO_T}$LINGUAS" >&6 | |
d7040cdb SE |
11174 | |
11175 | ||
11176 | DATADIRNAME=share | |
11177 | ||
11178 | INSTOBJEXT=.mo | |
11179 | ||
11180 | GENCAT=gencat | |
11181 | ||
11182 | CATOBJEXT=.gmo | |
11183 | ||
11184 | fi | |
11185 | ||
11186 | MKINSTALLDIRS= | |
11187 | if test -n "$ac_aux_dir"; then | |
11188 | case "$ac_aux_dir" in | |
11189 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
11190 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
11191 | esac | |
11192 | fi | |
11193 | if test -z "$MKINSTALLDIRS"; then | |
11194 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
11195 | fi | |
11196 | ||
11197 | ||
11198 | ||
0ab6f085 AM |
11199 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
11200 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
11201 | # Check whether --enable-nls or --disable-nls was given. | |
d7040cdb | 11202 | if test "${enable_nls+set}" = set; then |
0ab6f085 AM |
11203 | enableval="$enable_nls" |
11204 | USE_NLS=$enableval | |
d7040cdb SE |
11205 | else |
11206 | USE_NLS=yes | |
0ab6f085 AM |
11207 | fi; |
11208 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
11209 | echo "${ECHO_T}$USE_NLS" >&6 | |
d7040cdb SE |
11210 | |
11211 | ||
11212 | ||
11213 | ||
11214 | ||
11215 | ||
11216 | # Prepare PATH_SEPARATOR. | |
11217 | # The user is always right. | |
11218 | if test "${PATH_SEPARATOR+set}" != set; then | |
11219 | echo "#! /bin/sh" >conf$$.sh | |
11220 | echo "exit 0" >>conf$$.sh | |
11221 | chmod +x conf$$.sh | |
11222 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11223 | PATH_SEPARATOR=';' | |
11224 | else | |
11225 | PATH_SEPARATOR=: | |
11226 | fi | |
11227 | rm -f conf$$.sh | |
11228 | fi | |
11229 | ||
11230 | # Find out how to test for executable files. Don't use a zero-byte file, | |
11231 | # as systems may use methods other than mode bits to determine executability. | |
11232 | cat >conf$$.file <<_ASEOF | |
11233 | #! /bin/sh | |
11234 | exit 0 | |
11235 | _ASEOF | |
11236 | chmod +x conf$$.file | |
11237 | if test -x conf$$.file >/dev/null 2>&1; then | |
11238 | ac_executable_p="test -x" | |
11239 | else | |
11240 | ac_executable_p="test -f" | |
11241 | fi | |
11242 | rm -f conf$$.file | |
11243 | ||
11244 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
11245 | set dummy msgfmt; ac_word=$2 | |
0ab6f085 AM |
11246 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb SE |
11248 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
11249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11250 | else | |
11251 | case "$MSGFMT" in | |
11252 | [\\/]* | ?:[\\/]*) | |
11253 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
11254 | ;; | |
11255 | *) | |
11256 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11257 | for ac_dir in $PATH; do | |
11258 | IFS="$ac_save_IFS" | |
11259 | test -z "$ac_dir" && ac_dir=. | |
11260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11261 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11262 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
11263 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11264 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
11265 | break 2 | |
11266 | fi | |
11267 | fi | |
11268 | done | |
11269 | done | |
11270 | IFS="$ac_save_IFS" | |
11271 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
11272 | ;; | |
11273 | esac | |
11274 | fi | |
11275 | MSGFMT="$ac_cv_path_MSGFMT" | |
11276 | if test "$MSGFMT" != ":"; then | |
0ab6f085 AM |
11277 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
11278 | echo "${ECHO_T}$MSGFMT" >&6 | |
d7040cdb | 11279 | else |
0ab6f085 AM |
11280 | echo "$as_me:$LINENO: result: no" >&5 |
11281 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
11282 | fi |
11283 | ||
11284 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
11285 | set dummy gmsgfmt; ac_word=$2 | |
0ab6f085 AM |
11286 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb SE |
11288 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
11289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11290 | else | |
11291 | case $GMSGFMT in | |
11292 | [\\/]* | ?:[\\/]*) | |
11293 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
11294 | ;; | |
11295 | *) | |
11296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11297 | for as_dir in $PATH | |
11298 | do | |
11299 | IFS=$as_save_IFS | |
11300 | test -z "$as_dir" && as_dir=. | |
11301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 11302 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb SE |
11303 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
11304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11305 | break 2 | |
11306 | fi | |
11307 | done | |
11308 | done | |
11309 | ||
11310 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
11311 | ;; | |
11312 | esac | |
11313 | fi | |
11314 | GMSGFMT=$ac_cv_path_GMSGFMT | |
0ab6f085 | 11315 | |
d7040cdb | 11316 | if test -n "$GMSGFMT"; then |
0ab6f085 AM |
11317 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
11318 | echo "${ECHO_T}$GMSGFMT" >&6 | |
d7040cdb | 11319 | else |
0ab6f085 AM |
11320 | echo "$as_me:$LINENO: result: no" >&5 |
11321 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
11322 | fi |
11323 | ||
11324 | ||
11325 | ||
11326 | # Prepare PATH_SEPARATOR. | |
11327 | # The user is always right. | |
11328 | if test "${PATH_SEPARATOR+set}" != set; then | |
11329 | echo "#! /bin/sh" >conf$$.sh | |
11330 | echo "exit 0" >>conf$$.sh | |
11331 | chmod +x conf$$.sh | |
11332 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11333 | PATH_SEPARATOR=';' | |
11334 | else | |
11335 | PATH_SEPARATOR=: | |
11336 | fi | |
11337 | rm -f conf$$.sh | |
11338 | fi | |
11339 | ||
11340 | # Find out how to test for executable files. Don't use a zero-byte file, | |
11341 | # as systems may use methods other than mode bits to determine executability. | |
11342 | cat >conf$$.file <<_ASEOF | |
11343 | #! /bin/sh | |
11344 | exit 0 | |
11345 | _ASEOF | |
11346 | chmod +x conf$$.file | |
11347 | if test -x conf$$.file >/dev/null 2>&1; then | |
11348 | ac_executable_p="test -x" | |
11349 | else | |
11350 | ac_executable_p="test -f" | |
11351 | fi | |
11352 | rm -f conf$$.file | |
11353 | ||
11354 | # Extract the first word of "xgettext", so it can be a program name with args. | |
11355 | set dummy xgettext; ac_word=$2 | |
0ab6f085 AM |
11356 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb SE |
11358 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
11359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11360 | else | |
11361 | case "$XGETTEXT" in | |
11362 | [\\/]* | ?:[\\/]*) | |
11363 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
11364 | ;; | |
11365 | *) | |
11366 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11367 | for ac_dir in $PATH; do | |
11368 | IFS="$ac_save_IFS" | |
11369 | test -z "$ac_dir" && ac_dir=. | |
11370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11371 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11372 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11373 | (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 | |
11374 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
11375 | break 2 | |
11376 | fi | |
11377 | fi | |
11378 | done | |
11379 | done | |
11380 | IFS="$ac_save_IFS" | |
11381 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
11382 | ;; | |
11383 | esac | |
11384 | fi | |
11385 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
11386 | if test "$XGETTEXT" != ":"; then | |
0ab6f085 AM |
11387 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
11388 | echo "${ECHO_T}$XGETTEXT" >&6 | |
d7040cdb | 11389 | else |
0ab6f085 AM |
11390 | echo "$as_me:$LINENO: result: no" >&5 |
11391 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
11392 | fi |
11393 | ||
11394 | rm -f messages.po | |
11395 | ||
11396 | ||
11397 | # Prepare PATH_SEPARATOR. | |
11398 | # The user is always right. | |
11399 | if test "${PATH_SEPARATOR+set}" != set; then | |
11400 | echo "#! /bin/sh" >conf$$.sh | |
11401 | echo "exit 0" >>conf$$.sh | |
11402 | chmod +x conf$$.sh | |
11403 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11404 | PATH_SEPARATOR=';' | |
11405 | else | |
11406 | PATH_SEPARATOR=: | |
11407 | fi | |
11408 | rm -f conf$$.sh | |
11409 | fi | |
11410 | ||
11411 | # Find out how to test for executable files. Don't use a zero-byte file, | |
11412 | # as systems may use methods other than mode bits to determine executability. | |
11413 | cat >conf$$.file <<_ASEOF | |
11414 | #! /bin/sh | |
11415 | exit 0 | |
11416 | _ASEOF | |
11417 | chmod +x conf$$.file | |
11418 | if test -x conf$$.file >/dev/null 2>&1; then | |
11419 | ac_executable_p="test -x" | |
11420 | else | |
11421 | ac_executable_p="test -f" | |
11422 | fi | |
11423 | rm -f conf$$.file | |
11424 | ||
11425 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
11426 | set dummy msgmerge; ac_word=$2 | |
0ab6f085 AM |
11427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb SE |
11429 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
11430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11431 | else | |
11432 | case "$MSGMERGE" in | |
11433 | [\\/]* | ?:[\\/]*) | |
11434 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
11435 | ;; | |
11436 | *) | |
11437 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11438 | for ac_dir in $PATH; do | |
11439 | IFS="$ac_save_IFS" | |
11440 | test -z "$ac_dir" && ac_dir=. | |
11441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11442 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11443 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
11444 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
11445 | break 2 | |
11446 | fi | |
11447 | fi | |
11448 | done | |
11449 | done | |
11450 | IFS="$ac_save_IFS" | |
11451 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
11452 | ;; | |
11453 | esac | |
11454 | fi | |
11455 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
11456 | if test "$MSGMERGE" != ":"; then | |
0ab6f085 AM |
11457 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
11458 | echo "${ECHO_T}$MSGMERGE" >&6 | |
d7040cdb | 11459 | else |
0ab6f085 AM |
11460 | echo "$as_me:$LINENO: result: no" >&5 |
11461 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
11462 | fi |
11463 | ||
11464 | ||
11465 | if test "$GMSGFMT" != ":"; then | |
11466 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
11467 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11468 | : ; | |
11469 | else | |
11470 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
0ab6f085 AM |
11471 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
11472 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
d7040cdb SE |
11473 | GMSGFMT=":" |
11474 | fi | |
11475 | fi | |
11476 | ||
11477 | if test "$XGETTEXT" != ":"; then | |
11478 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11479 | (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 | |
11480 | : ; | |
11481 | else | |
0ab6f085 AM |
11482 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
11483 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
d7040cdb SE |
11484 | XGETTEXT=":" |
11485 | fi | |
11486 | rm -f messages.po | |
11487 | fi | |
11488 | ||
0ab6f085 | 11489 | ac_config_commands="$ac_config_commands default-1" |
d7040cdb SE |
11490 | |
11491 | ||
11492 | ||
0ab6f085 AM |
11493 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
11494 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
11495 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
d7040cdb | 11496 | if test "${enable_maintainer_mode+set}" = set; then |
0ab6f085 AM |
11497 | enableval="$enable_maintainer_mode" |
11498 | USE_MAINTAINER_MODE=$enableval | |
252b5132 | 11499 | else |
d7040cdb | 11500 | USE_MAINTAINER_MODE=no |
0ab6f085 AM |
11501 | fi; |
11502 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
11503 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
6bf9431b | 11504 | |
d7040cdb SE |
11505 | |
11506 | if test $USE_MAINTAINER_MODE = yes; then | |
11507 | MAINTAINER_MODE_TRUE= | |
11508 | MAINTAINER_MODE_FALSE='#' | |
11509 | else | |
11510 | MAINTAINER_MODE_TRUE='#' | |
11511 | MAINTAINER_MODE_FALSE= | |
20e95c23 | 11512 | fi |
6bf9431b | 11513 | |
d7040cdb SE |
11514 | MAINT=$MAINTAINER_MODE_TRUE |
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | if false; then | |
11520 | GENINSRC_NEVER_TRUE= | |
11521 | GENINSRC_NEVER_FALSE='#' | |
11522 | else | |
11523 | GENINSRC_NEVER_TRUE='#' | |
11524 | GENINSRC_NEVER_FALSE= | |
20e95c23 | 11525 | fi |
6bf9431b BE |
11526 | |
11527 | ||
11528 | ||
11529 | ||
11530 | for ac_header in sys/gmon_out.h | |
11531 | do | |
11532 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
0ab6f085 AM |
11533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11534 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11535 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6bf9431b BE |
11537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11538 | fi | |
0ab6f085 AM |
11539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11540 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6bf9431b BE |
11541 | else |
11542 | # Is the header compilable? | |
0ab6f085 AM |
11543 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11544 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6bf9431b BE |
11545 | cat >conftest.$ac_ext <<_ACEOF |
11546 | /* confdefs.h. */ | |
11547 | _ACEOF | |
11548 | cat confdefs.h >>conftest.$ac_ext | |
11549 | cat >>conftest.$ac_ext <<_ACEOF | |
11550 | /* end confdefs.h. */ | |
11551 | $ac_includes_default | |
11552 | #include <$ac_header> | |
11553 | _ACEOF | |
11554 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
11555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11556 | (eval $ac_compile) 2>conftest.er1 | |
6bf9431b BE |
11557 | ac_status=$? |
11558 | grep -v '^ *+' conftest.er1 >conftest.err | |
11559 | rm -f conftest.er1 | |
11560 | cat conftest.err >&5 | |
11561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
11562 | (exit $ac_status); } && |
11563 | { ac_try='test -z "$ac_c_werror_flag" | |
11564 | || test ! -s conftest.err' | |
11565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11566 | (eval $ac_try) 2>&5 | |
11567 | ac_status=$? | |
11568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11569 | (exit $ac_status); }; } && | |
11570 | { ac_try='test -s conftest.$ac_objext' | |
11571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11572 | (eval $ac_try) 2>&5 | |
11573 | ac_status=$? | |
11574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11575 | (exit $ac_status); }; }; then | |
6bf9431b BE |
11576 | ac_header_compiler=yes |
11577 | else | |
11578 | echo "$as_me: failed program was:" >&5 | |
11579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11580 | ||
0ab6f085 | 11581 | ac_header_compiler=no |
6bf9431b | 11582 | fi |
0ab6f085 AM |
11583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11584 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11585 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6bf9431b BE |
11586 | |
11587 | # Is the header present? | |
0ab6f085 AM |
11588 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11589 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6bf9431b BE |
11590 | cat >conftest.$ac_ext <<_ACEOF |
11591 | /* confdefs.h. */ | |
11592 | _ACEOF | |
11593 | cat confdefs.h >>conftest.$ac_ext | |
11594 | cat >>conftest.$ac_ext <<_ACEOF | |
11595 | /* end confdefs.h. */ | |
11596 | #include <$ac_header> | |
11597 | _ACEOF | |
0ab6f085 AM |
11598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
11599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6bf9431b BE |
11600 | ac_status=$? |
11601 | grep -v '^ *+' conftest.er1 >conftest.err | |
11602 | rm -f conftest.er1 | |
11603 | cat conftest.err >&5 | |
11604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
11605 | (exit $ac_status); } >/dev/null; then |
11606 | if test -s conftest.err; then | |
11607 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11608 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11609 | else | |
11610 | ac_cpp_err= | |
11611 | fi | |
11612 | else | |
11613 | ac_cpp_err=yes | |
11614 | fi | |
11615 | if test -z "$ac_cpp_err"; then | |
6bf9431b BE |
11616 | ac_header_preproc=yes |
11617 | else | |
11618 | echo "$as_me: failed program was:" >&5 | |
11619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11620 | ||
11621 | ac_header_preproc=no | |
11622 | fi | |
11623 | rm -f conftest.err conftest.$ac_ext | |
0ab6f085 AM |
11624 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11625 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6bf9431b BE |
11626 | |
11627 | # So? What about this header? | |
11628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11629 | yes:no: ) | |
11630 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11631 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11633 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11634 | ac_header_preproc=yes | |
11635 | ;; | |
11636 | no:yes:* ) | |
11637 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11638 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11639 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11640 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11641 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11642 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11643 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11644 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11645 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11646 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11647 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11648 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
0ab6f085 AM |
11649 | ( |
11650 | cat <<\_ASBOX | |
11651 | ## ------------------------------------------ ## | |
11652 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11653 | ## ------------------------------------------ ## | |
11654 | _ASBOX | |
11655 | ) | | |
11656 | sed "s/^/$as_me: WARNING: /" >&2 | |
6bf9431b BE |
11657 | ;; |
11658 | esac | |
0ab6f085 AM |
11659 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11660 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6bf9431b BE |
11662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11663 | else | |
11664 | eval "$as_ac_Header=\$ac_header_preproc" | |
11665 | fi | |
0ab6f085 AM |
11666 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11667 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6bf9431b BE |
11668 | |
11669 | fi | |
11670 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11671 | cat >>confdefs.h <<_ACEOF | |
11672 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11673 | _ACEOF | |
11674 | ||
11675 | fi | |
11676 | ||
11677 | done | |
11678 | ||
11679 | ||
0ab6f085 AM |
11680 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
11681 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
34875e64 NC |
11682 | if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then |
11683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11684 | else | |
11685 | cat >conftest.$ac_ext <<_ACEOF | |
11686 | /* confdefs.h. */ | |
11687 | _ACEOF | |
11688 | cat confdefs.h >>conftest.$ac_ext | |
11689 | cat >>conftest.$ac_ext <<_ACEOF | |
11690 | /* end confdefs.h. */ | |
11691 | #include <unistd.h> | |
11692 | int | |
11693 | main () | |
11694 | { | |
11695 | extern int getopt (int, char *const*, const char *); | |
11696 | ; | |
11697 | return 0; | |
11698 | } | |
11699 | _ACEOF | |
11700 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
11701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11702 | (eval $ac_compile) 2>conftest.er1 | |
34875e64 NC |
11703 | ac_status=$? |
11704 | grep -v '^ *+' conftest.er1 >conftest.err | |
11705 | rm -f conftest.er1 | |
11706 | cat conftest.err >&5 | |
11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
11708 | (exit $ac_status); } && |
11709 | { ac_try='test -z "$ac_c_werror_flag" | |
11710 | || test ! -s conftest.err' | |
11711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11712 | (eval $ac_try) 2>&5 | |
11713 | ac_status=$? | |
11714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11715 | (exit $ac_status); }; } && | |
11716 | { ac_try='test -s conftest.$ac_objext' | |
11717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11718 | (eval $ac_try) 2>&5 | |
11719 | ac_status=$? | |
11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11721 | (exit $ac_status); }; }; then | |
34875e64 NC |
11722 | gprof_cv_decl_getopt_unistd_h=yes |
11723 | else | |
11724 | echo "$as_me: failed program was:" >&5 | |
11725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11726 | ||
0ab6f085 | 11727 | gprof_cv_decl_getopt_unistd_h=no |
34875e64 | 11728 | fi |
0ab6f085 | 11729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
11730 | fi |
11731 | ||
0ab6f085 AM |
11732 | echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5 |
11733 | echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6 | |
34875e64 NC |
11734 | if test $gprof_cv_decl_getopt_unistd_h = yes; then |
11735 | ||
11736 | cat >>confdefs.h <<\_ACEOF | |
11737 | #define HAVE_DECL_GETOPT 1 | |
11738 | _ACEOF | |
11739 | ||
11740 | fi | |
11741 | ||
1b9750d6 | 11742 | # Some systems have fabs only in -lm, not in -lc. |
0ab6f085 AM |
11743 | echo "$as_me:$LINENO: checking for library containing fabs" >&5 |
11744 | echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6 | |
1b9750d6 NC |
11745 | if test "${ac_cv_search_fabs+set}" = set; then |
11746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11747 | else | |
11748 | ac_func_search_save_LIBS=$LIBS | |
0ab6f085 | 11749 | ac_cv_search_fabs=no |
1b9750d6 NC |
11750 | cat >conftest.$ac_ext <<_ACEOF |
11751 | /* confdefs.h. */ | |
11752 | _ACEOF | |
11753 | cat confdefs.h >>conftest.$ac_ext | |
11754 | cat >>conftest.$ac_ext <<_ACEOF | |
11755 | /* end confdefs.h. */ | |
11756 | ||
0ab6f085 | 11757 | /* Override any gcc2 internal prototype to avoid an error. */ |
1b9750d6 NC |
11758 | #ifdef __cplusplus |
11759 | extern "C" | |
11760 | #endif | |
0ab6f085 AM |
11761 | /* We use char because int might match the return type of a gcc2 |
11762 | builtin and then its argument prototype would still apply. */ | |
1b9750d6 NC |
11763 | char fabs (); |
11764 | int | |
11765 | main () | |
11766 | { | |
0ab6f085 | 11767 | fabs (); |
1b9750d6 NC |
11768 | ; |
11769 | return 0; | |
11770 | } | |
11771 | _ACEOF | |
0ab6f085 AM |
11772 | rm -f conftest.$ac_objext conftest$ac_exeext |
11773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11774 | (eval $ac_link) 2>conftest.er1 | |
1b9750d6 NC |
11775 | ac_status=$? |
11776 | grep -v '^ *+' conftest.er1 >conftest.err | |
11777 | rm -f conftest.er1 | |
11778 | cat conftest.err >&5 | |
11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
11780 | (exit $ac_status); } && |
11781 | { ac_try='test -z "$ac_c_werror_flag" | |
11782 | || test ! -s conftest.err' | |
11783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11784 | (eval $ac_try) 2>&5 | |
11785 | ac_status=$? | |
11786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11787 | (exit $ac_status); }; } && | |
11788 | { ac_try='test -s conftest$ac_exeext' | |
11789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11790 | (eval $ac_try) 2>&5 | |
11791 | ac_status=$? | |
11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11793 | (exit $ac_status); }; }; then | |
11794 | ac_cv_search_fabs="none required" | |
1b9750d6 NC |
11795 | else |
11796 | echo "$as_me: failed program was:" >&5 | |
11797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11798 | ||
1b9750d6 | 11799 | fi |
0ab6f085 AM |
11800 | rm -f conftest.err conftest.$ac_objext \ |
11801 | conftest$ac_exeext conftest.$ac_ext | |
11802 | if test "$ac_cv_search_fabs" = no; then | |
11803 | for ac_lib in m; do | |
11804 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11805 | cat >conftest.$ac_ext <<_ACEOF | |
11806 | /* confdefs.h. */ | |
11807 | _ACEOF | |
11808 | cat confdefs.h >>conftest.$ac_ext | |
11809 | cat >>conftest.$ac_ext <<_ACEOF | |
11810 | /* end confdefs.h. */ | |
1b9750d6 | 11811 | |
0ab6f085 AM |
11812 | /* Override any gcc2 internal prototype to avoid an error. */ |
11813 | #ifdef __cplusplus | |
11814 | extern "C" | |
11815 | #endif | |
11816 | /* We use char because int might match the return type of a gcc2 | |
11817 | builtin and then its argument prototype would still apply. */ | |
11818 | char fabs (); | |
11819 | int | |
11820 | main () | |
11821 | { | |
11822 | fabs (); | |
11823 | ; | |
11824 | return 0; | |
11825 | } | |
11826 | _ACEOF | |
11827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11829 | (eval $ac_link) 2>conftest.er1 | |
11830 | ac_status=$? | |
11831 | grep -v '^ *+' conftest.er1 >conftest.err | |
11832 | rm -f conftest.er1 | |
11833 | cat conftest.err >&5 | |
11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11835 | (exit $ac_status); } && | |
11836 | { ac_try='test -z "$ac_c_werror_flag" | |
11837 | || test ! -s conftest.err' | |
11838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11839 | (eval $ac_try) 2>&5 | |
11840 | ac_status=$? | |
11841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11842 | (exit $ac_status); }; } && | |
11843 | { ac_try='test -s conftest$ac_exeext' | |
11844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11845 | (eval $ac_try) 2>&5 | |
11846 | ac_status=$? | |
11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11848 | (exit $ac_status); }; }; then | |
11849 | ac_cv_search_fabs="-l$ac_lib" | |
11850 | break | |
1b9750d6 | 11851 | else |
0ab6f085 AM |
11852 | echo "$as_me: failed program was:" >&5 |
11853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11854 | ||
11855 | fi | |
11856 | rm -f conftest.err conftest.$ac_objext \ | |
11857 | conftest$ac_exeext conftest.$ac_ext | |
11858 | done | |
1b9750d6 | 11859 | fi |
1b9750d6 NC |
11860 | LIBS=$ac_func_search_save_LIBS |
11861 | fi | |
0ab6f085 AM |
11862 | echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5 |
11863 | echo "${ECHO_T}$ac_cv_search_fabs" >&6 | |
11864 | if test "$ac_cv_search_fabs" != no; then | |
11865 | test "$ac_cv_search_fabs" = "none required" || LIBS="$ac_cv_search_fabs $LIBS" | |
1b9750d6 NC |
11866 | |
11867 | fi | |
11868 | ||
11869 | ||
9e9b66a9 | 11870 | |
a541e3ce | 11871 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
1ad12f97 | 11872 | |
0ab6f085 | 11873 | # Check whether --enable-werror or --disable-werror was given. |
569acd2c | 11874 | if test "${enable_werror+set}" = set; then |
0ab6f085 AM |
11875 | enableval="$enable_werror" |
11876 | case "${enableval}" in | |
1ad12f97 NC |
11877 | yes | y) ERROR_ON_WARNING="yes" ;; |
11878 | no | n) ERROR_ON_WARNING="no" ;; | |
569acd2c NC |
11879 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
11880 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
1ad12f97 NC |
11881 | { (exit 1); exit 1; }; } ;; |
11882 | esac | |
0ab6f085 | 11883 | fi; |
1ad12f97 | 11884 | |
32b1cf22 L |
11885 | # Enable -Wno-format by default when using gcc on mingw |
11886 | case "${host}" in | |
11887 | *-*-mingw32*) | |
11888 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11889 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11890 | fi | |
11891 | ;; | |
11892 | *) ;; | |
11893 | esac | |
11894 | ||
9e9b66a9 AM |
11895 | # Enable -Werror by default when using gcc |
11896 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11897 | ERROR_ON_WARNING=yes | |
11898 | fi | |
11899 | ||
11900 | NO_WERROR= | |
11901 | if test "${ERROR_ON_WARNING}" = yes ; then | |
a541e3ce | 11902 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
9e9b66a9 | 11903 | NO_WERROR="-Wno-error" |
1ad12f97 NC |
11904 | fi |
11905 | ||
a541e3ce SE |
11906 | if test "${GCC}" = yes ; then |
11907 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11908 | fi | |
11909 | ||
0ab6f085 | 11910 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
6bf9431b | 11911 | if test "${enable_build_warnings+set}" = set; then |
0ab6f085 AM |
11912 | enableval="$enable_build_warnings" |
11913 | case "${enableval}" in | |
a541e3ce SE |
11914 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
11915 | no) if test "${GCC}" = yes ; then | |
11916 | WARN_CFLAGS="-w" | |
11917 | fi;; | |
6bf9431b | 11918 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 11919 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; |
6bf9431b | 11920 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 11921 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; |
9e9b66a9 | 11922 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
6bf9431b | 11923 | esac |
0ab6f085 | 11924 | fi; |
9e9b66a9 AM |
11925 | |
11926 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
11927 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
6bf9431b BE |
11928 | fi |
11929 | ||
11930 | ||
9e9b66a9 AM |
11931 | |
11932 | ||
11933 | ||
108a6f8e CD |
11934 | |
11935 | ||
11936 | ||
11937 | ||
0ab6f085 | 11938 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
6bf9431b | 11939 | |
6bf9431b BE |
11940 | cat >confcache <<\_ACEOF |
11941 | # This file is a shell script that caches the results of configure | |
11942 | # tests run on this system so they can be shared between configure | |
11943 | # scripts and configure runs, see configure's option --config-cache. | |
11944 | # It is not useful on other systems. If it contains results you don't | |
11945 | # want to keep, you may remove or edit it. | |
11946 | # | |
11947 | # config.status only pays attention to the cache file if you give it | |
11948 | # the --recheck option to rerun configure. | |
11949 | # | |
11950 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11951 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11952 | # following values. | |
11953 | ||
11954 | _ACEOF | |
11955 | ||
11956 | # The following way of writing the cache mishandles newlines in values, | |
11957 | # but we know of no workaround that is simple, portable, and efficient. | |
0ab6f085 | 11958 | # So, don't put newlines in cache variables' values. |
6bf9431b BE |
11959 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11960 | # and sets the high bit in the cache file unless we assign to the vars. | |
0ab6f085 | 11961 | { |
6bf9431b | 11962 | (set) 2>&1 | |
0ab6f085 AM |
11963 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
11964 | *ac_space=\ *) | |
6bf9431b BE |
11965 | # `set' does not quote correctly, so add quotes (double-quote |
11966 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11967 | sed -n \ | |
11968 | "s/'/'\\\\''/g; | |
11969 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
0ab6f085 | 11970 | ;; |
6bf9431b BE |
11971 | *) |
11972 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
0ab6f085 AM |
11973 | sed -n \ |
11974 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6bf9431b | 11975 | ;; |
0ab6f085 AM |
11976 | esac; |
11977 | } | | |
6bf9431b BE |
11978 | sed ' |
11979 | t clear | |
0ab6f085 | 11980 | : clear |
6bf9431b BE |
11981 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11982 | t end | |
0ab6f085 AM |
11983 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11984 | : end' >>confcache | |
11985 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11986 | if test -w $cache_file; then | |
11987 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
6bf9431b BE |
11988 | cat confcache >$cache_file |
11989 | else | |
0ab6f085 | 11990 | echo "not updating unwritable cache $cache_file" |
6bf9431b BE |
11991 | fi |
11992 | fi | |
11993 | rm -f confcache | |
11994 | ||
11995 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11996 | # Let make expand exec_prefix. | |
11997 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11998 | ||
0ab6f085 AM |
11999 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12000 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12001 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12002 | # (actually we leave an empty line to preserve line numbers). | |
12003 | if test "x$srcdir" = x.; then | |
12004 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12005 | s/:*\$(srcdir):*/:/; | |
12006 | s/:*\${srcdir}:*/:/; | |
12007 | s/:*@srcdir@:*/:/; | |
12008 | s/^\([^=]*=[ ]*\):*/\1/; | |
12009 | s/:*$//; | |
12010 | s/^[^=]*=[ ]*$//; | |
12011 | }' | |
12012 | fi | |
12013 | ||
6bf9431b BE |
12014 | DEFS=-DHAVE_CONFIG_H |
12015 | ||
12016 | ac_libobjs= | |
12017 | ac_ltlibobjs= | |
12018 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12019 | # 1. Remove the extension, and $U if already installed. | |
0ab6f085 AM |
12020 | ac_i=`echo "$ac_i" | |
12021 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
12022 | # 2. Add them. | |
12023 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
12024 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
6bf9431b BE |
12025 | done |
12026 | LIBOBJS=$ac_libobjs | |
12027 | ||
12028 | LTLIBOBJS=$ac_ltlibobjs | |
12029 | ||
12030 | ||
12031 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
12032 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
12033 | Usually this means the macro was only invoked conditionally." >&5 | |
12034 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
12035 | Usually this means the macro was only invoked conditionally." >&2;} | |
12036 | { (exit 1); exit 1; }; } | |
12037 | fi | |
12038 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
12039 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
12040 | Usually this means the macro was only invoked conditionally." >&5 | |
12041 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
12042 | Usually this means the macro was only invoked conditionally." >&2;} | |
12043 | { (exit 1); exit 1; }; } | |
12044 | fi | |
12045 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
12046 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
12047 | Usually this means the macro was only invoked conditionally." >&5 | |
12048 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
12049 | Usually this means the macro was only invoked conditionally." >&2;} | |
12050 | { (exit 1); exit 1; }; } | |
12051 | fi | |
d5fbea21 DJ |
12052 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
12053 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
12054 | Usually this means the macro was only invoked conditionally." >&5 | |
12055 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
12056 | Usually this means the macro was only invoked conditionally." >&2;} | |
12057 | { (exit 1); exit 1; }; } | |
12058 | fi | |
6bf9431b BE |
12059 | |
12060 | : ${CONFIG_STATUS=./config.status} | |
12061 | ac_clean_files_save=$ac_clean_files | |
12062 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12063 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
12064 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12065 | cat >$CONFIG_STATUS <<_ACEOF | |
12066 | #! $SHELL | |
12067 | # Generated by $as_me. | |
12068 | # Run this file to recreate the current configuration. | |
12069 | # Compiler output produced by configure, useful for debugging | |
12070 | # configure, is in config.log if it exists. | |
12071 | ||
12072 | debug=false | |
12073 | ac_cs_recheck=false | |
12074 | ac_cs_silent=false | |
12075 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12076 | _ACEOF | |
12077 | ||
12078 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12079 | ## --------------------- ## | |
12080 | ## M4sh Initialization. ## | |
12081 | ## --------------------- ## | |
12082 | ||
0ab6f085 | 12083 | # Be Bourne compatible |
6bf9431b BE |
12084 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12085 | emulate sh | |
12086 | NULLCMD=: | |
12087 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
12088 | # is contrary to our usage. Disable this feature. | |
12089 | alias -g '${1+"$@"}'='"$@"' | |
0ab6f085 AM |
12090 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
12091 | set -o posix | |
6bf9431b | 12092 | fi |
0ab6f085 | 12093 | DUALCASE=1; export DUALCASE # for MKS sh |
6bf9431b BE |
12094 | |
12095 | # Support unset when possible. | |
12096 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
12097 | as_unset=unset | |
12098 | else | |
12099 | as_unset=false | |
12100 | fi | |
12101 | ||
12102 | ||
12103 | # Work around bugs in pre-3.0 UWIN ksh. | |
0ab6f085 | 12104 | $as_unset ENV MAIL MAILPATH |
6bf9431b BE |
12105 | PS1='$ ' |
12106 | PS2='> ' | |
12107 | PS4='+ ' | |
12108 | ||
12109 | # NLS nuisances. | |
12110 | for as_var in \ | |
12111 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12112 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12113 | LC_TELEPHONE LC_TIME | |
12114 | do | |
12115 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
12116 | eval $as_var=C; export $as_var | |
12117 | else | |
0ab6f085 | 12118 | $as_unset $as_var |
6bf9431b BE |
12119 | fi |
12120 | done | |
12121 | ||
12122 | # Required to use basename. | |
0ab6f085 | 12123 | if expr a : '\(a\)' >/dev/null 2>&1; then |
6bf9431b BE |
12124 | as_expr=expr |
12125 | else | |
12126 | as_expr=false | |
12127 | fi | |
12128 | ||
0ab6f085 | 12129 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
6bf9431b BE |
12130 | as_basename=basename |
12131 | else | |
12132 | as_basename=false | |
252b5132 | 12133 | fi |
252b5132 | 12134 | |
252b5132 | 12135 | |
6bf9431b | 12136 | # Name of the executable. |
0ab6f085 | 12137 | as_me=`$as_basename "$0" || |
6bf9431b BE |
12138 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12139 | X"$0" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
12140 | X"$0" : 'X\(/\)$' \| \ |
12141 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 12142 | echo X/"$0" | |
0ab6f085 AM |
12143 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
12144 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
12145 | /^X\/\(\/\).*/{ s//\1/; q; } | |
12146 | s/.*/./; q'` | |
6bf9431b | 12147 | |
0ab6f085 AM |
12148 | |
12149 | # PATH needs CR, and LINENO needs CR and PATH. | |
12150 | # Avoid depending upon Character Ranges. | |
12151 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12152 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12153 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12154 | as_cr_digits='0123456789' | |
12155 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12156 | ||
12157 | # The user is always right. | |
12158 | if test "${PATH_SEPARATOR+set}" != set; then | |
12159 | echo "#! /bin/sh" >conf$$.sh | |
12160 | echo "exit 0" >>conf$$.sh | |
12161 | chmod +x conf$$.sh | |
12162 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12163 | PATH_SEPARATOR=';' | |
12164 | else | |
12165 | PATH_SEPARATOR=: | |
12166 | fi | |
12167 | rm -f conf$$.sh | |
12168 | fi | |
252b5132 | 12169 | |
252b5132 | 12170 | |
0ab6f085 AM |
12171 | as_lineno_1=$LINENO |
12172 | as_lineno_2=$LINENO | |
12173 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
12174 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
12175 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
12176 | # Find who we are. Look in the path if we contain no path at all | |
12177 | # relative or not. | |
12178 | case $0 in | |
12179 | *[\\/]* ) as_myself=$0 ;; | |
12180 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12181 | for as_dir in $PATH | |
12182 | do | |
12183 | IFS=$as_save_IFS | |
12184 | test -z "$as_dir" && as_dir=. | |
12185 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12186 | done | |
252b5132 | 12187 | |
0ab6f085 AM |
12188 | ;; |
12189 | esac | |
12190 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12191 | # in which case we are not to be found in the path. | |
12192 | if test "x$as_myself" = x; then | |
12193 | as_myself=$0 | |
12194 | fi | |
12195 | if test ! -f "$as_myself"; then | |
12196 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
12197 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
12198 | { (exit 1); exit 1; }; } | |
12199 | fi | |
12200 | case $CONFIG_SHELL in | |
12201 | '') | |
12202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12203 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
12204 | do | |
12205 | IFS=$as_save_IFS | |
12206 | test -z "$as_dir" && as_dir=. | |
12207 | for as_base in sh bash ksh sh5; do | |
12208 | case $as_dir in | |
12209 | /*) | |
12210 | if ("$as_dir/$as_base" -c ' | |
6bf9431b BE |
12211 | as_lineno_1=$LINENO |
12212 | as_lineno_2=$LINENO | |
0ab6f085 | 12213 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
6bf9431b | 12214 | test "x$as_lineno_1" != "x$as_lineno_2" && |
0ab6f085 AM |
12215 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
12216 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
12217 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
12218 | CONFIG_SHELL=$as_dir/$as_base | |
12219 | export CONFIG_SHELL | |
12220 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
12221 | fi;; | |
12222 | esac | |
12223 | done | |
12224 | done | |
12225 | ;; | |
12226 | esac | |
6bf9431b BE |
12227 | |
12228 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
12229 | # uniformly replaced by the line number. The first 'sed' inserts a | |
0ab6f085 AM |
12230 | # line-number line before each line; the second 'sed' does the real |
12231 | # work. The second script uses 'N' to pair each line-number line | |
12232 | # with the numbered line, and appends trailing '-' during | |
12233 | # substitution so that $LINENO is not a special case at line end. | |
6bf9431b | 12234 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
0ab6f085 AM |
12235 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
12236 | sed '=' <$as_myself | | |
6bf9431b BE |
12237 | sed ' |
12238 | N | |
0ab6f085 AM |
12239 | s,$,-, |
12240 | : loop | |
12241 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
6bf9431b | 12242 | t loop |
0ab6f085 AM |
12243 | s,-$,, |
12244 | s,^['$as_cr_digits']*\n,, | |
6bf9431b | 12245 | ' >$as_me.lineno && |
0ab6f085 AM |
12246 | chmod +x $as_me.lineno || |
12247 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
12248 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
6bf9431b BE |
12249 | { (exit 1); exit 1; }; } |
12250 | ||
12251 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12252 | # (the dirname of $[0] is not the place where we might find the | |
0ab6f085 AM |
12253 | # original and so on. Autoconf is especially sensible to this). |
12254 | . ./$as_me.lineno | |
6bf9431b BE |
12255 | # Exit status is that of the last command. |
12256 | exit | |
12257 | } | |
12258 | ||
12259 | ||
0ab6f085 AM |
12260 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
12261 | *c*,-n*) ECHO_N= ECHO_C=' | |
12262 | ' ECHO_T=' ' ;; | |
12263 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
12264 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
6bf9431b BE |
12265 | esac |
12266 | ||
0ab6f085 | 12267 | if expr a : '\(a\)' >/dev/null 2>&1; then |
6bf9431b | 12268 | as_expr=expr |
0eee5820 | 12269 | else |
6bf9431b | 12270 | as_expr=false |
0eee5820 | 12271 | fi |
6bf9431b BE |
12272 | |
12273 | rm -f conf$$ conf$$.exe conf$$.file | |
12274 | echo >conf$$.file | |
12275 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
0ab6f085 AM |
12276 | # We could just check for DJGPP; but this test a) works b) is more generic |
12277 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
12278 | if test -f conf$$.exe; then | |
12279 | # Don't use ln at all; we don't have any links | |
6bf9431b | 12280 | as_ln_s='cp -p' |
0ab6f085 AM |
12281 | else |
12282 | as_ln_s='ln -s' | |
12283 | fi | |
6bf9431b BE |
12284 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12285 | as_ln_s=ln | |
12286 | else | |
12287 | as_ln_s='cp -p' | |
0eee5820 | 12288 | fi |
0ab6f085 | 12289 | rm -f conf$$ conf$$.exe conf$$.file |
6bf9431b BE |
12290 | |
12291 | if mkdir -p . 2>/dev/null; then | |
12292 | as_mkdir_p=: | |
0ab6f085 AM |
12293 | else |
12294 | test -d ./-p && rmdir ./-p | |
12295 | as_mkdir_p=false | |
1b9750d6 | 12296 | fi |
0ab6f085 AM |
12297 | |
12298 | as_executable_p="test -f" | |
0eee5820 | 12299 | |
6bf9431b BE |
12300 | # Sed expression to map a string onto a valid CPP name. |
12301 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12302 | ||
12303 | # Sed expression to map a string onto a valid variable name. | |
12304 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12305 | ||
1b9750d6 | 12306 | |
0ab6f085 AM |
12307 | # IFS |
12308 | # We need space, tab and new line, in precisely that order. | |
12309 | as_nl=' | |
12310 | ' | |
12311 | IFS=" $as_nl" | |
12312 | ||
12313 | # CDPATH. | |
12314 | $as_unset CDPATH | |
12315 | ||
6bf9431b BE |
12316 | exec 6>&1 |
12317 | ||
0ab6f085 | 12318 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
6bf9431b | 12319 | # report actual input values of CONFIG_FILES etc. instead of their |
0ab6f085 AM |
12320 | # values after options handling. Logging --version etc. is OK. |
12321 | exec 5>>config.log | |
12322 | { | |
12323 | echo | |
12324 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12325 | ## Running $as_me. ## | |
12326 | _ASBOX | |
12327 | } >&5 | |
12328 | cat >&5 <<_CSEOF | |
12329 | ||
6bf9431b | 12330 | This file was extended by $as_me, which was |
0ab6f085 | 12331 | generated by GNU Autoconf 2.59. Invocation command line was |
6bf9431b BE |
12332 | |
12333 | CONFIG_FILES = $CONFIG_FILES | |
12334 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12335 | CONFIG_LINKS = $CONFIG_LINKS | |
12336 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12337 | $ $0 $@ | |
12338 | ||
0ab6f085 AM |
12339 | _CSEOF |
12340 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
12341 | echo >&5 | |
6bf9431b BE |
12342 | _ACEOF |
12343 | ||
12344 | # Files that config.status was made for. | |
0ab6f085 AM |
12345 | if test -n "$ac_config_files"; then |
12346 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
12347 | fi | |
a2d91340 | 12348 | |
0ab6f085 AM |
12349 | if test -n "$ac_config_headers"; then |
12350 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
12351 | fi | |
12352 | ||
12353 | if test -n "$ac_config_links"; then | |
12354 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
12355 | fi | |
12356 | ||
12357 | if test -n "$ac_config_commands"; then | |
12358 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
12359 | fi | |
a2d91340 | 12360 | |
6bf9431b | 12361 | cat >>$CONFIG_STATUS <<\_ACEOF |
0ab6f085 | 12362 | |
6bf9431b BE |
12363 | ac_cs_usage="\ |
12364 | \`$as_me' instantiates files from templates according to the | |
12365 | current configuration. | |
12366 | ||
12367 | Usage: $0 [OPTIONS] [FILE]... | |
12368 | ||
12369 | -h, --help print this help, then exit | |
0ab6f085 | 12370 | -V, --version print version number, then exit |
6bf9431b BE |
12371 | -q, --quiet do not print progress messages |
12372 | -d, --debug don't remove temporary files | |
12373 | --recheck update $as_me by reconfiguring in the same conditions | |
12374 | --file=FILE[:TEMPLATE] | |
12375 | instantiate the configuration file FILE | |
12376 | --header=FILE[:TEMPLATE] | |
12377 | instantiate the configuration header FILE | |
12378 | ||
12379 | Configuration files: | |
12380 | $config_files | |
12381 | ||
12382 | Configuration headers: | |
12383 | $config_headers | |
12384 | ||
12385 | Configuration commands: | |
12386 | $config_commands | |
12387 | ||
12388 | Report bugs to <bug-autoconf@gnu.org>." | |
1b9750d6 | 12389 | _ACEOF |
0ab6f085 | 12390 | |
6bf9431b BE |
12391 | cat >>$CONFIG_STATUS <<_ACEOF |
12392 | ac_cs_version="\\ | |
12393 | config.status | |
0ab6f085 AM |
12394 | configured by $0, generated by GNU Autoconf 2.59, |
12395 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
6bf9431b | 12396 | |
0ab6f085 | 12397 | Copyright (C) 2003 Free Software Foundation, Inc. |
6bf9431b BE |
12398 | This config.status script is free software; the Free Software Foundation |
12399 | gives unlimited permission to copy, distribute and modify it." | |
0ab6f085 AM |
12400 | srcdir=$srcdir |
12401 | INSTALL="$INSTALL" | |
6bf9431b BE |
12402 | _ACEOF |
12403 | ||
12404 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12405 | # If no file are specified by the user, then we need to provide default | |
12406 | # value. By we need to know if files were specified by the user. | |
12407 | ac_need_defaults=: | |
12408 | while test $# != 0 | |
12409 | do | |
12410 | case $1 in | |
12411 | --*=*) | |
0ab6f085 AM |
12412 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
12413 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6bf9431b | 12414 | ac_shift=: |
252b5132 | 12415 | ;; |
0ab6f085 | 12416 | -*) |
6bf9431b BE |
12417 | ac_option=$1 |
12418 | ac_optarg=$2 | |
12419 | ac_shift=shift | |
252b5132 | 12420 | ;; |
0ab6f085 AM |
12421 | *) # This is not an option, so the user has probably given explicit |
12422 | # arguments. | |
12423 | ac_option=$1 | |
12424 | ac_need_defaults=false;; | |
6bf9431b | 12425 | esac |
252b5132 | 12426 | |
6bf9431b BE |
12427 | case $ac_option in |
12428 | # Handling of the options. | |
0ab6f085 AM |
12429 | _ACEOF |
12430 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6bf9431b BE |
12431 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12432 | ac_cs_recheck=: ;; | |
0ab6f085 AM |
12433 | --version | --vers* | -V ) |
12434 | echo "$ac_cs_version"; exit 0 ;; | |
12435 | --he | --h) | |
12436 | # Conflict between --help and --header | |
12437 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
12438 | Try \`$0 --help' for more information." >&5 | |
12439 | echo "$as_me: error: ambiguous option: $1 | |
12440 | Try \`$0 --help' for more information." >&2;} | |
12441 | { (exit 1); exit 1; }; };; | |
12442 | --help | --hel | -h ) | |
12443 | echo "$ac_cs_usage"; exit 0 ;; | |
12444 | --debug | --d* | -d ) | |
6bf9431b BE |
12445 | debug=: ;; |
12446 | --file | --fil | --fi | --f ) | |
12447 | $ac_shift | |
12448 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
12449 | ac_need_defaults=false;; | |
12450 | --header | --heade | --head | --hea ) | |
12451 | $ac_shift | |
12452 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
12453 | ac_need_defaults=false;; | |
12454 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12455 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12456 | ac_cs_silent=: ;; | |
252b5132 | 12457 | |
6bf9431b | 12458 | # This is an error. |
0ab6f085 AM |
12459 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
12460 | Try \`$0 --help' for more information." >&5 | |
12461 | echo "$as_me: error: unrecognized option: $1 | |
12462 | Try \`$0 --help' for more information." >&2;} | |
6bf9431b | 12463 | { (exit 1); exit 1; }; } ;; |
252b5132 | 12464 | |
0ab6f085 | 12465 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 12466 | |
6bf9431b BE |
12467 | esac |
12468 | shift | |
12469 | done | |
252b5132 | 12470 | |
6bf9431b | 12471 | ac_configure_extra_args= |
252b5132 | 12472 | |
6bf9431b BE |
12473 | if $ac_cs_silent; then |
12474 | exec 6>/dev/null | |
12475 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12476 | fi | |
252b5132 | 12477 | |
6bf9431b BE |
12478 | _ACEOF |
12479 | cat >>$CONFIG_STATUS <<_ACEOF | |
12480 | if \$ac_cs_recheck; then | |
0ab6f085 AM |
12481 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12482 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6bf9431b BE |
12483 | fi |
12484 | ||
12485 | _ACEOF | |
12486 | ||
12487 | cat >>$CONFIG_STATUS <<_ACEOF | |
252b5132 | 12488 | # |
0ab6f085 | 12489 | # INIT-COMMANDS section. |
252b5132 | 12490 | # |
0ab6f085 | 12491 | |
6bf9431b | 12492 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
12493 | |
12494 | ||
12495 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12496 | # if CDPATH is set. | |
12497 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12498 | ||
12499 | sed_quote_subst='$sed_quote_subst' | |
12500 | double_quote_subst='$double_quote_subst' | |
12501 | delay_variable_subst='$delay_variable_subst' | |
12502 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12503 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
12504 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
12505 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12506 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
12507 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
12508 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12509 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
12510 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12511 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12512 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
12513 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12514 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
12515 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
12516 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12517 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12518 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12519 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
12520 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
12521 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
12522 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
12523 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
12524 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
12525 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
12526 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
12527 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
12528 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12529 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12530 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
12531 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
12532 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
12533 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12534 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
12535 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
12536 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12537 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12538 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12539 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
12540 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12541 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
12542 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
12543 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
12544 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
12545 | 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"`' | |
12546 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
12547 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
12548 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
12549 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
12550 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12551 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
12552 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
12553 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12554 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
12555 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
12556 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
12557 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12558 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12559 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
12560 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
12561 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12562 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12563 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
12564 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12565 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12566 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12567 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12568 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12569 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12570 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12571 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12572 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12573 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12574 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12575 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
12576 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
12577 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
12578 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
12579 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12580 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
12581 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12582 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
12583 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
12584 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
12585 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12586 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12587 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12588 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12589 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12590 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
12591 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
12592 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12593 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
12594 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12595 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12596 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12597 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12598 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12599 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12600 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12601 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12602 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12603 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
12604 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
12605 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12606 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12607 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
12608 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
12609 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
12610 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12611 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12612 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12613 | ||
12614 | LTCC='$LTCC' | |
12615 | LTCFLAGS='$LTCFLAGS' | |
12616 | compiler='$compiler_DEFAULT' | |
12617 | ||
12618 | # Quote evaled strings. | |
12619 | for var in SED \ | |
12620 | GREP \ | |
12621 | EGREP \ | |
12622 | FGREP \ | |
12623 | LD \ | |
12624 | NM \ | |
12625 | LN_S \ | |
12626 | lt_SP2NL \ | |
12627 | lt_NL2SP \ | |
12628 | reload_flag \ | |
12629 | deplibs_check_method \ | |
12630 | file_magic_cmd \ | |
12631 | AR \ | |
12632 | AR_FLAGS \ | |
12633 | STRIP \ | |
12634 | RANLIB \ | |
12635 | CC \ | |
12636 | CFLAGS \ | |
12637 | compiler \ | |
12638 | lt_cv_sys_global_symbol_pipe \ | |
12639 | lt_cv_sys_global_symbol_to_cdecl \ | |
12640 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12641 | SHELL \ | |
12642 | ECHO \ | |
12643 | lt_prog_compiler_no_builtin_flag \ | |
12644 | lt_prog_compiler_wl \ | |
12645 | lt_prog_compiler_pic \ | |
12646 | lt_prog_compiler_static \ | |
12647 | lt_cv_prog_compiler_c_o \ | |
12648 | need_locks \ | |
12649 | shrext_cmds \ | |
12650 | export_dynamic_flag_spec \ | |
12651 | whole_archive_flag_spec \ | |
12652 | compiler_needs_object \ | |
12653 | with_gnu_ld \ | |
12654 | allow_undefined_flag \ | |
12655 | no_undefined_flag \ | |
12656 | hardcode_libdir_flag_spec \ | |
12657 | hardcode_libdir_flag_spec_ld \ | |
12658 | hardcode_libdir_separator \ | |
12659 | fix_srcfile_path \ | |
12660 | exclude_expsyms \ | |
12661 | include_expsyms \ | |
12662 | file_list_spec \ | |
12663 | variables_saved_for_relink \ | |
12664 | libname_spec \ | |
12665 | library_names_spec \ | |
12666 | soname_spec \ | |
12667 | finish_eval \ | |
12668 | old_striplib \ | |
12669 | striplib; do | |
12670 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12671 | *[\\\\\\\`\\"\\\$]*) | |
12672 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12673 | ;; | |
12674 | *) | |
12675 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12676 | ;; | |
12677 | esac | |
12678 | done | |
12679 | ||
12680 | # Double-quote double-evaled strings. | |
12681 | for var in reload_cmds \ | |
12682 | old_postinstall_cmds \ | |
12683 | old_postuninstall_cmds \ | |
12684 | old_archive_cmds \ | |
12685 | extract_expsyms_cmds \ | |
12686 | old_archive_from_new_cmds \ | |
12687 | old_archive_from_expsyms_cmds \ | |
12688 | archive_cmds \ | |
12689 | archive_expsym_cmds \ | |
12690 | module_cmds \ | |
12691 | module_expsym_cmds \ | |
12692 | export_symbols_cmds \ | |
12693 | prelink_cmds \ | |
12694 | postinstall_cmds \ | |
12695 | postuninstall_cmds \ | |
12696 | finish_cmds \ | |
12697 | sys_lib_search_path_spec \ | |
12698 | sys_lib_dlsearch_path_spec; do | |
12699 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12700 | *[\\\\\\\`\\"\\\$]*) | |
12701 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
12702 | ;; | |
12703 | *) | |
12704 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12705 | ;; | |
12706 | esac | |
12707 | done | |
12708 | ||
12709 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
12710 | case \$lt_ECHO in | |
12711 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
12712 | ;; | |
12713 | esac | |
12714 | ||
12715 | ac_aux_dir='$ac_aux_dir' | |
12716 | xsi_shell='$xsi_shell' | |
12717 | lt_shell_append='$lt_shell_append' | |
12718 | ||
12719 | # See if we are running on zsh, and set the options which allow our | |
12720 | # commands through without removal of \ escapes INIT. | |
12721 | if test -n "\${ZSH_VERSION+set}" ; then | |
12722 | setopt NO_GLOB_SUBST | |
12723 | fi | |
12724 | ||
12725 | ||
12726 | PACKAGE='$PACKAGE' | |
12727 | VERSION='$VERSION' | |
12728 | TIMESTAMP='$TIMESTAMP' | |
12729 | RM='$RM' | |
12730 | ofile='$ofile' | |
12731 | ||
12732 | ||
12733 | ||
20e95c23 DJ |
12734 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
12735 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
12736 | # from automake. | |
12737 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
12738 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
12739 | LINGUAS="${LINGUAS-%UNSET%}" | |
6bf9431b BE |
12740 | |
12741 | ||
12742 | _ACEOF | |
12743 | ||
1b9750d6 | 12744 | |
0ab6f085 AM |
12745 | |
12746 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6bf9431b | 12747 | for ac_config_target in $ac_config_targets |
252b5132 | 12748 | do |
0ab6f085 AM |
12749 | case "$ac_config_target" in |
12750 | # Handling of arguments. | |
12751 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12752 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
12753 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12754 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12755 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
12756 | "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;; | |
6bf9431b BE |
12757 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12758 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
12759 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
12760 | esac |
12761 | done | |
12762 | ||
6bf9431b BE |
12763 | # If the user did not use the arguments to specify the items to instantiate, |
12764 | # then the envvar interface is used. Set only those that are not. | |
12765 | # We use the long form for the default assignment because of an extremely | |
12766 | # bizarre bug on SunOS 4.1.3. | |
12767 | if $ac_need_defaults; then | |
12768 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12769 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12770 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12771 | fi | |
12772 | ||
12773 | # Have a temporary directory for convenience. Make it in the build tree | |
0ab6f085 | 12774 | # simply because there is no reason to put it here, and in addition, |
6bf9431b | 12775 | # creating and moving files from /tmp can sometimes cause problems. |
0ab6f085 | 12776 | # Create a temporary directory, and hook for its removal unless debugging. |
6bf9431b BE |
12777 | $debug || |
12778 | { | |
0ab6f085 | 12779 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
6bf9431b BE |
12780 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12781 | } | |
0ab6f085 | 12782 | |
6bf9431b | 12783 | # Create a (secure) tmp directory for tmp files. |
252b5132 | 12784 | |
6bf9431b | 12785 | { |
0ab6f085 | 12786 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
6bf9431b BE |
12787 | test -n "$tmp" && test -d "$tmp" |
12788 | } || | |
12789 | { | |
0ab6f085 AM |
12790 | tmp=./confstat$$-$RANDOM |
12791 | (umask 077 && mkdir $tmp) | |
6bf9431b BE |
12792 | } || |
12793 | { | |
12794 | echo "$me: cannot create a temporary directory in ." >&2 | |
12795 | { (exit 1); exit 1; } | |
12796 | } | |
252b5132 | 12797 | |
0ab6f085 AM |
12798 | _ACEOF |
12799 | ||
12800 | cat >>$CONFIG_STATUS <<_ACEOF | |
12801 | ||
6bf9431b | 12802 | # |
0ab6f085 | 12803 | # CONFIG_FILES section. |
6bf9431b BE |
12804 | # |
12805 | ||
12806 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12807 | # This happens for instance when ./config.status config.h | |
0ab6f085 AM |
12808 | if test -n "\$CONFIG_FILES"; then |
12809 | # Protect against being on the right side of a sed subst in config.status. | |
12810 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
12811 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
12812 | s,@SHELL@,$SHELL,;t t | |
12813 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
12814 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
12815 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
12816 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
12817 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
12818 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
12819 | s,@exec_prefix@,$exec_prefix,;t t | |
12820 | s,@prefix@,$prefix,;t t | |
12821 | s,@program_transform_name@,$program_transform_name,;t t | |
12822 | s,@bindir@,$bindir,;t t | |
12823 | s,@sbindir@,$sbindir,;t t | |
12824 | s,@libexecdir@,$libexecdir,;t t | |
12825 | s,@datadir@,$datadir,;t t | |
12826 | s,@sysconfdir@,$sysconfdir,;t t | |
12827 | s,@sharedstatedir@,$sharedstatedir,;t t | |
12828 | s,@localstatedir@,$localstatedir,;t t | |
12829 | s,@libdir@,$libdir,;t t | |
12830 | s,@includedir@,$includedir,;t t | |
12831 | s,@oldincludedir@,$oldincludedir,;t t | |
12832 | s,@infodir@,$infodir,;t t | |
12833 | s,@mandir@,$mandir,;t t | |
12834 | s,@build_alias@,$build_alias,;t t | |
12835 | s,@host_alias@,$host_alias,;t t | |
12836 | s,@target_alias@,$target_alias,;t t | |
12837 | s,@DEFS@,$DEFS,;t t | |
12838 | s,@ECHO_C@,$ECHO_C,;t t | |
12839 | s,@ECHO_N@,$ECHO_N,;t t | |
12840 | s,@ECHO_T@,$ECHO_T,;t t | |
12841 | s,@LIBS@,$LIBS,;t t | |
12842 | s,@build@,$build,;t t | |
12843 | s,@build_cpu@,$build_cpu,;t t | |
12844 | s,@build_vendor@,$build_vendor,;t t | |
12845 | s,@build_os@,$build_os,;t t | |
12846 | s,@host@,$host,;t t | |
12847 | s,@host_cpu@,$host_cpu,;t t | |
12848 | s,@host_vendor@,$host_vendor,;t t | |
12849 | s,@host_os@,$host_os,;t t | |
12850 | s,@target@,$target,;t t | |
12851 | s,@target_cpu@,$target_cpu,;t t | |
12852 | s,@target_vendor@,$target_vendor,;t t | |
12853 | s,@target_os@,$target_os,;t t | |
12854 | s,@CC@,$CC,;t t | |
12855 | s,@CFLAGS@,$CFLAGS,;t t | |
12856 | s,@LDFLAGS@,$LDFLAGS,;t t | |
12857 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
12858 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
12859 | s,@EXEEXT@,$EXEEXT,;t t | |
12860 | s,@OBJEXT@,$OBJEXT,;t t | |
12861 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
12862 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
12863 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
12864 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
12865 | s,@PACKAGE@,$PACKAGE,;t t | |
12866 | s,@VERSION@,$VERSION,;t t | |
12867 | s,@ACLOCAL@,$ACLOCAL,;t t | |
12868 | s,@AUTOCONF@,$AUTOCONF,;t t | |
12869 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
12870 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
12871 | s,@MAKEINFO@,$MAKEINFO,;t t | |
12872 | s,@install_sh@,$install_sh,;t t | |
12873 | s,@STRIP@,$STRIP,;t t | |
12874 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
12875 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
12876 | s,@mkdir_p@,$mkdir_p,;t t | |
12877 | s,@AWK@,$AWK,;t t | |
12878 | s,@SET_MAKE@,$SET_MAKE,;t t | |
12879 | s,@am__leading_dot@,$am__leading_dot,;t t | |
12880 | s,@AMTAR@,$AMTAR,;t t | |
12881 | s,@am__tar@,$am__tar,;t t | |
12882 | s,@am__untar@,$am__untar,;t t | |
12883 | s,@DEPDIR@,$DEPDIR,;t t | |
12884 | s,@am__include@,$am__include,;t t | |
12885 | s,@am__quote@,$am__quote,;t t | |
12886 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
12887 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
12888 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
12889 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
12890 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
12891 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
7357c5b6 AM |
12892 | s,@CPP@,$CPP,;t t |
12893 | s,@EGREP@,$EGREP,;t t | |
0ab6f085 AM |
12894 | s,@LIBTOOL@,$LIBTOOL,;t t |
12895 | s,@SED@,$SED,;t t | |
0ab6f085 AM |
12896 | s,@FGREP@,$FGREP,;t t |
12897 | s,@GREP@,$GREP,;t t | |
12898 | s,@LD@,$LD,;t t | |
12899 | s,@DUMPBIN@,$DUMPBIN,;t t | |
12900 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
12901 | s,@NM@,$NM,;t t | |
12902 | s,@LN_S@,$LN_S,;t t | |
12903 | s,@AR@,$AR,;t t | |
12904 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
12905 | s,@RANLIB@,$RANLIB,;t t | |
12906 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
12907 | s,@lt_ECHO@,$lt_ECHO,;t t | |
0ab6f085 AM |
12908 | s,@USE_NLS@,$USE_NLS,;t t |
12909 | s,@LIBINTL@,$LIBINTL,;t t | |
12910 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
12911 | s,@INCINTL@,$INCINTL,;t t | |
12912 | s,@XGETTEXT@,$XGETTEXT,;t t | |
12913 | s,@GMSGFMT@,$GMSGFMT,;t t | |
12914 | s,@POSUB@,$POSUB,;t t | |
12915 | s,@CATALOGS@,$CATALOGS,;t t | |
12916 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
12917 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
12918 | s,@GENCAT@,$GENCAT,;t t | |
12919 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
12920 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
12921 | s,@MSGFMT@,$MSGFMT,;t t | |
12922 | s,@MSGMERGE@,$MSGMERGE,;t t | |
12923 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
12924 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
12925 | s,@MAINT@,$MAINT,;t t | |
12926 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t | |
12927 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
12928 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
12929 | s,@NO_WERROR@,$NO_WERROR,;t t | |
12930 | s,@datarootdir@,$datarootdir,;t t | |
12931 | s,@docdir@,$docdir,;t t | |
12932 | s,@htmldir@,$htmldir,;t t | |
12933 | s,@LIBOBJS@,$LIBOBJS,;t t | |
12934 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
12935 | CEOF | |
1b9750d6 | 12936 | |
1b9750d6 | 12937 | _ACEOF |
1b9750d6 | 12938 | |
0ab6f085 AM |
12939 | cat >>$CONFIG_STATUS <<\_ACEOF |
12940 | # Split the substitutions into bite-sized pieces for seds with | |
12941 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
12942 | ac_max_sed_lines=48 | |
12943 | ac_sed_frag=1 # Number of current file. | |
12944 | ac_beg=1 # First line for current file. | |
12945 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
12946 | ac_more_lines=: | |
12947 | ac_sed_cmds= | |
12948 | while $ac_more_lines; do | |
12949 | if test $ac_beg -gt 1; then | |
12950 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
12951 | else | |
12952 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
12953 | fi | |
12954 | if test ! -s $tmp/subs.frag; then | |
12955 | ac_more_lines=false | |
12956 | else | |
12957 | # The purpose of the label and of the branching condition is to | |
12958 | # speed up the sed processing (if there are no `@' at all, there | |
12959 | # is no need to browse any of the substitutions). | |
12960 | # These are the two extra sed commands mentioned above. | |
12961 | (echo ':t | |
12962 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
12963 | if test -z "$ac_sed_cmds"; then | |
12964 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
12965 | else | |
12966 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
12967 | fi | |
12968 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
12969 | ac_beg=$ac_end | |
12970 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
12971 | fi | |
12972 | done | |
12973 | if test -z "$ac_sed_cmds"; then | |
12974 | ac_sed_cmds=cat | |
12975 | fi | |
12976 | fi # test -n "$CONFIG_FILES" | |
1b9750d6 | 12977 | |
1b9750d6 | 12978 | _ACEOF |
6bf9431b | 12979 | cat >>$CONFIG_STATUS <<\_ACEOF |
0ab6f085 AM |
12980 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
12981 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12982 | case $ac_file in | |
12983 | - | *:- | *:-:* ) # input from stdin | |
12984 | cat >$tmp/stdin | |
12985 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12986 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12987 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12988 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12989 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
12990 | esac |
12991 | ||
0ab6f085 AM |
12992 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
12993 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
6bf9431b BE |
12994 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12995 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12996 | X"$ac_file" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
12997 | X"$ac_file" : 'X\(/\)' \| \ |
12998 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 12999 | echo X"$ac_file" | |
0ab6f085 AM |
13000 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13001 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13002 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13003 | /^X\(\/\).*/{ s//\1/; q; } | |
13004 | s/.*/./; q'` | |
13005 | { if $as_mkdir_p; then | |
13006 | mkdir -p "$ac_dir" | |
13007 | else | |
13008 | as_dir="$ac_dir" | |
6bf9431b | 13009 | as_dirs= |
0ab6f085 AM |
13010 | while test ! -d "$as_dir"; do |
13011 | as_dirs="$as_dir $as_dirs" | |
13012 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6bf9431b BE |
13013 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13014 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13015 | X"$as_dir" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
13016 | X"$as_dir" : 'X\(/\)' \| \ |
13017 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 13018 | echo X"$as_dir" | |
0ab6f085 AM |
13019 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13020 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13021 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13022 | /^X\(\/\).*/{ s//\1/; q; } | |
13023 | s/.*/./; q'` | |
6bf9431b | 13024 | done |
0ab6f085 AM |
13025 | test ! -n "$as_dirs" || mkdir $as_dirs |
13026 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13027 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6bf9431b | 13028 | { (exit 1); exit 1; }; }; } |
0ab6f085 | 13029 | |
6bf9431b BE |
13030 | ac_builddir=. |
13031 | ||
0ab6f085 | 13032 | if test "$ac_dir" != .; then |
6bf9431b | 13033 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
0ab6f085 AM |
13034 | # A "../" for each directory in $ac_dir_suffix. |
13035 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
13036 | else | |
13037 | ac_dir_suffix= ac_top_builddir= | |
13038 | fi | |
252b5132 | 13039 | |
6bf9431b | 13040 | case $srcdir in |
0ab6f085 | 13041 | .) # No --srcdir option. We are building in place. |
6bf9431b | 13042 | ac_srcdir=. |
0ab6f085 AM |
13043 | if test -z "$ac_top_builddir"; then |
13044 | ac_top_srcdir=. | |
13045 | else | |
13046 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
13047 | fi ;; | |
13048 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6bf9431b | 13049 | ac_srcdir=$srcdir$ac_dir_suffix; |
0ab6f085 AM |
13050 | ac_top_srcdir=$srcdir ;; |
13051 | *) # Relative path. | |
13052 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
13053 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6bf9431b | 13054 | esac |
252b5132 | 13055 | |
0ab6f085 AM |
13056 | # Do not use `cd foo && pwd` to compute absolute paths, because |
13057 | # the directories may not exist. | |
13058 | case `pwd` in | |
13059 | .) ac_abs_builddir="$ac_dir";; | |
13060 | *) | |
13061 | case "$ac_dir" in | |
13062 | .) ac_abs_builddir=`pwd`;; | |
13063 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
13064 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
13065 | esac;; | |
13066 | esac | |
13067 | case $ac_abs_builddir in | |
13068 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13069 | *) | |
13070 | case ${ac_top_builddir}. in | |
13071 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
13072 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13073 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
13074 | esac;; | |
13075 | esac | |
13076 | case $ac_abs_builddir in | |
13077 | .) ac_abs_srcdir=$ac_srcdir;; | |
13078 | *) | |
13079 | case $ac_srcdir in | |
13080 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
13081 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
13082 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
13083 | esac;; | |
13084 | esac | |
13085 | case $ac_abs_builddir in | |
13086 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13087 | *) | |
13088 | case $ac_top_srcdir in | |
13089 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
13090 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13091 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
13092 | esac;; | |
13093 | esac | |
252b5132 | 13094 | |
6bf9431b BE |
13095 | |
13096 | case $INSTALL in | |
13097 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
0ab6f085 | 13098 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
252b5132 | 13099 | esac |
1b9750d6 | 13100 | |
0ab6f085 AM |
13101 | if test x"$ac_file" != x-; then |
13102 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13103 | echo "$as_me: creating $ac_file" >&6;} | |
13104 | rm -f "$ac_file" | |
13105 | fi | |
13106 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13107 | # use $as_me), people would be surprised to read: | |
13108 | # /* config.h. Generated by config.status. */ | |
13109 | if test x"$ac_file" = x-; then | |
13110 | configure_input= | |
13111 | else | |
13112 | configure_input="$ac_file. " | |
13113 | fi | |
13114 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
13115 | sed 's,.*/,,'` by configure." | |
13116 | ||
13117 | # First look for the input files in the build tree, otherwise in the | |
13118 | # src tree. | |
13119 | ac_file_inputs=`IFS=: | |
13120 | for f in $ac_file_in; do | |
13121 | case $f in | |
13122 | -) echo $tmp/stdin ;; | |
13123 | [\\/$]*) | |
13124 | # Absolute (can't be DOS-style, as IFS=:) | |
13125 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13126 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13127 | { (exit 1); exit 1; }; } | |
13128 | echo "$f";; | |
13129 | *) # Relative | |
13130 | if test -f "$f"; then | |
13131 | # Build tree | |
13132 | echo "$f" | |
13133 | elif test -f "$srcdir/$f"; then | |
13134 | # Source tree | |
13135 | echo "$srcdir/$f" | |
13136 | else | |
13137 | # /dev/null tree | |
13138 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13139 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13140 | { (exit 1); exit 1; }; } | |
13141 | fi;; | |
13142 | esac | |
13143 | done` || { (exit 1); exit 1; } | |
6bf9431b BE |
13144 | _ACEOF |
13145 | cat >>$CONFIG_STATUS <<_ACEOF | |
13146 | sed "$ac_vpsub | |
13147 | $extrasub | |
13148 | _ACEOF | |
13149 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13150 | :t | |
13151 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
0ab6f085 AM |
13152 | s,@configure_input@,$configure_input,;t t |
13153 | s,@srcdir@,$ac_srcdir,;t t | |
13154 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
13155 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
13156 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
13157 | s,@builddir@,$ac_builddir,;t t | |
13158 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
13159 | s,@top_builddir@,$ac_top_builddir,;t t | |
13160 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
13161 | s,@INSTALL@,$ac_INSTALL,;t t | |
13162 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
13163 | rm -f $tmp/stdin | |
13164 | if test x"$ac_file" != x-; then | |
13165 | mv $tmp/out $ac_file | |
13166 | else | |
13167 | cat $tmp/out | |
13168 | rm -f $tmp/out | |
13169 | fi | |
13170 | ||
13171 | done | |
13172 | _ACEOF | |
13173 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13174 | ||
13175 | # | |
13176 | # CONFIG_HEADER section. | |
13177 | # | |
13178 | ||
13179 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13180 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13181 | # | |
13182 | # ac_d sets the value in "#define NAME VALUE" lines. | |
13183 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
13184 | ac_dB='[ ].*$,\1#\2' | |
13185 | ac_dC=' ' | |
13186 | ac_dD=',;t' | |
13187 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13188 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13189 | ac_uB='$,\1#\2define\3' | |
13190 | ac_uC=' ' | |
13191 | ac_uD=',;t' | |
13192 | ||
13193 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
13194 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6bf9431b | 13195 | case $ac_file in |
0ab6f085 AM |
13196 | - | *:- | *:-:* ) # input from stdin |
13197 | cat >$tmp/stdin | |
13198 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13199 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13200 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13201 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13202 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 | 13203 | esac |
0ab6f085 AM |
13204 | |
13205 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13206 | echo "$as_me: creating $ac_file" >&6;} | |
13207 | ||
13208 | # First look for the input files in the build tree, otherwise in the | |
13209 | # src tree. | |
13210 | ac_file_inputs=`IFS=: | |
13211 | for f in $ac_file_in; do | |
13212 | case $f in | |
13213 | -) echo $tmp/stdin ;; | |
13214 | [\\/$]*) | |
13215 | # Absolute (can't be DOS-style, as IFS=:) | |
13216 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13217 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13218 | { (exit 1); exit 1; }; } | |
13219 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
13220 | echo "$f";; | |
13221 | *) # Relative | |
13222 | if test -f "$f"; then | |
13223 | # Build tree | |
13224 | echo "$f" | |
13225 | elif test -f "$srcdir/$f"; then | |
13226 | # Source tree | |
13227 | echo "$srcdir/$f" | |
13228 | else | |
13229 | # /dev/null tree | |
13230 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13231 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13232 | { (exit 1); exit 1; }; } | |
13233 | fi;; | |
13234 | esac | |
13235 | done` || { (exit 1); exit 1; } | |
13236 | # Remove the trailing spaces. | |
13237 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
13238 | ||
13239 | _ACEOF | |
13240 | ||
13241 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
13242 | # `conftest.undefs', that substitutes the proper values into | |
13243 | # config.h.in to produce config.h. The first handles `#define' | |
13244 | # templates, and the second `#undef' templates. | |
13245 | # And first: Protect against being on the right side of a sed subst in | |
13246 | # config.status. Protect against being in an unquoted here document | |
13247 | # in config.status. | |
13248 | rm -f conftest.defines conftest.undefs | |
13249 | # Using a here document instead of a string reduces the quoting nightmare. | |
13250 | # Putting comments in sed scripts is not portable. | |
13251 | # | |
13252 | # `end' is used to avoid that the second main sed command (meant for | |
13253 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
13254 | # See the Autoconf documentation for `clear'. | |
13255 | cat >confdef2sed.sed <<\_ACEOF | |
13256 | s/[\\&,]/\\&/g | |
13257 | s,[\\$`],\\&,g | |
13258 | t clear | |
13259 | : clear | |
13260 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
13261 | t end | |
13262 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
13263 | : end | |
13264 | _ACEOF | |
13265 | # If some macros were called several times there might be several times | |
13266 | # the same #defines, which is useless. Nevertheless, we may not want to | |
13267 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
13268 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
13269 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
13270 | rm -f confdef2sed.sed | |
13271 | ||
13272 | # This sed command replaces #undef with comments. This is necessary, for | |
252b5132 RH |
13273 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
13274 | # on some systems where configure will not decide to define it. | |
0ab6f085 AM |
13275 | cat >>conftest.undefs <<\_ACEOF |
13276 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
13277 | _ACEOF | |
13278 | ||
13279 | # Break up conftest.defines because some shells have a limit on the size | |
13280 | # of here documents, and old seds have small limits too (100 cmds). | |
13281 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
13282 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
13283 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
13284 | echo ' :' >>$CONFIG_STATUS | |
13285 | rm -f conftest.tail | |
13286 | while grep . conftest.defines >/dev/null | |
6bf9431b | 13287 | do |
0ab6f085 AM |
13288 | # Write a limited-size here document to $tmp/defines.sed. |
13289 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
13290 | # Speed up: don't consider the non `#define' lines. | |
13291 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
13292 | # Work around the forget-to-reset-the-flag bug. | |
13293 | echo 't clr' >>$CONFIG_STATUS | |
13294 | echo ': clr' >>$CONFIG_STATUS | |
13295 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
6bf9431b | 13296 | echo 'CEOF |
0ab6f085 AM |
13297 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
13298 | rm -f $tmp/in | |
13299 | mv $tmp/out $tmp/in | |
13300 | ' >>$CONFIG_STATUS | |
13301 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
6bf9431b BE |
13302 | rm -f conftest.defines |
13303 | mv conftest.tail conftest.defines | |
13304 | done | |
0ab6f085 AM |
13305 | rm -f conftest.defines |
13306 | echo ' fi # grep' >>$CONFIG_STATUS | |
13307 | echo >>$CONFIG_STATUS | |
13308 | ||
13309 | # Break up conftest.undefs because some shells have a limit on the size | |
13310 | # of here documents, and old seds have small limits too (100 cmds). | |
13311 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
13312 | rm -f conftest.tail | |
13313 | while grep . conftest.undefs >/dev/null | |
13314 | do | |
13315 | # Write a limited-size here document to $tmp/undefs.sed. | |
13316 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
13317 | # Speed up: don't consider the non `#undef' | |
13318 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
13319 | # Work around the forget-to-reset-the-flag bug. | |
13320 | echo 't clr' >>$CONFIG_STATUS | |
13321 | echo ': clr' >>$CONFIG_STATUS | |
13322 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
13323 | echo 'CEOF | |
13324 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
13325 | rm -f $tmp/in | |
13326 | mv $tmp/out $tmp/in | |
13327 | ' >>$CONFIG_STATUS | |
13328 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
13329 | rm -f conftest.undefs | |
13330 | mv conftest.tail conftest.undefs | |
13331 | done | |
13332 | rm -f conftest.undefs | |
6bf9431b BE |
13333 | |
13334 | cat >>$CONFIG_STATUS <<\_ACEOF | |
0ab6f085 AM |
13335 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13336 | # use $as_me), people would be surprised to read: | |
13337 | # /* config.h. Generated by config.status. */ | |
13338 | if test x"$ac_file" = x-; then | |
13339 | echo "/* Generated by configure. */" >$tmp/config.h | |
13340 | else | |
13341 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
13342 | fi | |
13343 | cat $tmp/in >>$tmp/config.h | |
13344 | rm -f $tmp/in | |
6bf9431b | 13345 | if test x"$ac_file" != x-; then |
0ab6f085 | 13346 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
6bf9431b BE |
13347 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
13348 | echo "$as_me: $ac_file is unchanged" >&6;} | |
13349 | else | |
0ab6f085 AM |
13350 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
13351 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13352 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13353 | X"$ac_file" : 'X\(//\)$' \| \ | |
13354 | X"$ac_file" : 'X\(/\)' \| \ | |
13355 | . : '\(.\)' 2>/dev/null || | |
13356 | echo X"$ac_file" | | |
13357 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13358 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13359 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13360 | /^X\(\/\).*/{ s//\1/; q; } | |
13361 | s/.*/./; q'` | |
13362 | { if $as_mkdir_p; then | |
13363 | mkdir -p "$ac_dir" | |
13364 | else | |
13365 | as_dir="$ac_dir" | |
13366 | as_dirs= | |
13367 | while test ! -d "$as_dir"; do | |
13368 | as_dirs="$as_dir $as_dirs" | |
13369 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
13370 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13371 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13372 | X"$as_dir" : 'X\(//\)$' \| \ | |
13373 | X"$as_dir" : 'X\(/\)' \| \ | |
13374 | . : '\(.\)' 2>/dev/null || | |
13375 | echo X"$as_dir" | | |
13376 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13377 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13378 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13379 | /^X\(\/\).*/{ s//\1/; q; } | |
13380 | s/.*/./; q'` | |
13381 | done | |
13382 | test ! -n "$as_dirs" || mkdir $as_dirs | |
13383 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13384 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
13385 | { (exit 1); exit 1; }; }; } | |
13386 | ||
6bf9431b | 13387 | rm -f $ac_file |
0ab6f085 | 13388 | mv $tmp/config.h $ac_file |
252b5132 | 13389 | fi |
6bf9431b | 13390 | else |
0ab6f085 AM |
13391 | cat $tmp/config.h |
13392 | rm -f $tmp/config.h | |
252b5132 | 13393 | fi |
6bf9431b BE |
13394 | # Compute $ac_file's index in $config_headers. |
13395 | _am_stamp_count=1 | |
13396 | for _am_header in $config_headers :; do | |
13397 | case $_am_header in | |
13398 | $ac_file | $ac_file:* ) | |
13399 | break ;; | |
13400 | * ) | |
13401 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13402 | esac | |
13403 | done | |
0ab6f085 | 13404 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
6bf9431b BE |
13405 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13406 | X$ac_file : 'X\(//\)[^/]' \| \ | |
13407 | X$ac_file : 'X\(//\)$' \| \ | |
0ab6f085 AM |
13408 | X$ac_file : 'X\(/\)' \| \ |
13409 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 13410 | echo X$ac_file | |
0ab6f085 AM |
13411 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13412 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13413 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13414 | /^X\(\/\).*/{ s//\1/; q; } | |
13415 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13416 | done | |
13417 | _ACEOF | |
13418 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6bf9431b | 13419 | |
0ab6f085 AM |
13420 | # |
13421 | # CONFIG_COMMANDS section. | |
13422 | # | |
13423 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
13424 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
13425 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13426 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
13427 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13428 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
13429 | X"$ac_dest" : 'X\(//\)$' \| \ | |
13430 | X"$ac_dest" : 'X\(/\)' \| \ | |
13431 | . : '\(.\)' 2>/dev/null || | |
13432 | echo X"$ac_dest" | | |
13433 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13434 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13435 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13436 | /^X\(\/\).*/{ s//\1/; q; } | |
13437 | s/.*/./; q'` | |
13438 | { if $as_mkdir_p; then | |
13439 | mkdir -p "$ac_dir" | |
13440 | else | |
13441 | as_dir="$ac_dir" | |
13442 | as_dirs= | |
13443 | while test ! -d "$as_dir"; do | |
13444 | as_dirs="$as_dir $as_dirs" | |
13445 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
13446 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13447 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13448 | X"$as_dir" : 'X\(//\)$' \| \ | |
13449 | X"$as_dir" : 'X\(/\)' \| \ | |
13450 | . : '\(.\)' 2>/dev/null || | |
13451 | echo X"$as_dir" | | |
13452 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13453 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13454 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13455 | /^X\(\/\).*/{ s//\1/; q; } | |
13456 | s/.*/./; q'` | |
13457 | done | |
13458 | test ! -n "$as_dirs" || mkdir $as_dirs | |
13459 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13460 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
13461 | { (exit 1); exit 1; }; }; } | |
13462 | ||
13463 | ac_builddir=. | |
13464 | ||
13465 | if test "$ac_dir" != .; then | |
13466 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
13467 | # A "../" for each directory in $ac_dir_suffix. | |
13468 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
13469 | else | |
13470 | ac_dir_suffix= ac_top_builddir= | |
13471 | fi | |
13472 | ||
13473 | case $srcdir in | |
13474 | .) # No --srcdir option. We are building in place. | |
13475 | ac_srcdir=. | |
13476 | if test -z "$ac_top_builddir"; then | |
13477 | ac_top_srcdir=. | |
13478 | else | |
13479 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
13480 | fi ;; | |
13481 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
13482 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13483 | ac_top_srcdir=$srcdir ;; | |
13484 | *) # Relative path. | |
13485 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
13486 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
13487 | esac | |
13488 | ||
13489 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
13490 | # the directories may not exist. | |
13491 | case `pwd` in | |
13492 | .) ac_abs_builddir="$ac_dir";; | |
13493 | *) | |
13494 | case "$ac_dir" in | |
13495 | .) ac_abs_builddir=`pwd`;; | |
13496 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
13497 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
13498 | esac;; | |
13499 | esac | |
13500 | case $ac_abs_builddir in | |
13501 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13502 | *) | |
13503 | case ${ac_top_builddir}. in | |
13504 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
13505 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13506 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
13507 | esac;; | |
13508 | esac | |
13509 | case $ac_abs_builddir in | |
13510 | .) ac_abs_srcdir=$ac_srcdir;; | |
13511 | *) | |
13512 | case $ac_srcdir in | |
13513 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
13514 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
13515 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
13516 | esac;; | |
13517 | esac | |
13518 | case $ac_abs_builddir in | |
13519 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13520 | *) | |
13521 | case $ac_top_srcdir in | |
13522 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
13523 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13524 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
13525 | esac;; | |
13526 | esac | |
6bf9431b BE |
13527 | |
13528 | ||
0ab6f085 AM |
13529 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
13530 | echo "$as_me: executing $ac_dest commands" >&6;} | |
13531 | case $ac_dest in | |
13532 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
6bf9431b BE |
13533 | # Strip MF so we end up with the name of the file. |
13534 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13535 | # Check whether this is an Automake generated Makefile or not. | |
13536 | # We used to match only the files named `Makefile.in', but | |
13537 | # some people rename them; so instead we look at the file content. | |
13538 | # Grep'ing the first line is not enough: some people post-process | |
13539 | # each Makefile.in and add a new line on top of each file to say so. | |
13540 | # So let's grep whole file. | |
13541 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
0ab6f085 | 13542 | dirpart=`(dirname "$mf") 2>/dev/null || |
6bf9431b BE |
13543 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13544 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13545 | X"$mf" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
13546 | X"$mf" : 'X\(/\)' \| \ |
13547 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 13548 | echo X"$mf" | |
0ab6f085 AM |
13549 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13550 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13551 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13552 | /^X\(\/\).*/{ s//\1/; q; } | |
13553 | s/.*/./; q'` | |
6bf9431b BE |
13554 | else |
13555 | continue | |
13556 | fi | |
df76639a AM |
13557 | # Extract the definition of DEPDIR, am__include, and am__quote |
13558 | # from the Makefile without running `make'. | |
6bf9431b BE |
13559 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13560 | test -z "$DEPDIR" && continue | |
df76639a AM |
13561 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
13562 | test -z "am__include" && continue | |
13563 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
6bf9431b BE |
13564 | # When using ansi2knr, U may be empty or an underscore; expand it |
13565 | U=`sed -n 's/^U = //p' < "$mf"` | |
df76639a AM |
13566 | # Find all dependency output files, they are included files with |
13567 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13568 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13569 | # expansion. | |
13570 | for file in `sed -n " | |
13571 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
6bf9431b BE |
13572 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
13573 | # Make sure the directory exists. | |
13574 | test -f "$dirpart/$file" && continue | |
0ab6f085 | 13575 | fdir=`(dirname "$file") 2>/dev/null || |
6bf9431b BE |
13576 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13577 | X"$file" : 'X\(//\)[^/]' \| \ | |
13578 | X"$file" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
13579 | X"$file" : 'X\(/\)' \| \ |
13580 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 13581 | echo X"$file" | |
0ab6f085 AM |
13582 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13583 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13584 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13585 | /^X\(\/\).*/{ s//\1/; q; } | |
13586 | s/.*/./; q'` | |
13587 | { if $as_mkdir_p; then | |
13588 | mkdir -p $dirpart/$fdir | |
13589 | else | |
13590 | as_dir=$dirpart/$fdir | |
6bf9431b | 13591 | as_dirs= |
0ab6f085 AM |
13592 | while test ! -d "$as_dir"; do |
13593 | as_dirs="$as_dir $as_dirs" | |
13594 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6bf9431b BE |
13595 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13596 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13597 | X"$as_dir" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
13598 | X"$as_dir" : 'X\(/\)' \| \ |
13599 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 13600 | echo X"$as_dir" | |
0ab6f085 AM |
13601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
13602 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13603 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13604 | /^X\(\/\).*/{ s//\1/; q; } | |
13605 | s/.*/./; q'` | |
6bf9431b | 13606 | done |
0ab6f085 AM |
13607 | test ! -n "$as_dirs" || mkdir $as_dirs |
13608 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
13609 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
6bf9431b | 13610 | { (exit 1); exit 1; }; }; } |
0ab6f085 | 13611 | |
6bf9431b BE |
13612 | # echo "creating $dirpart/$file" |
13613 | echo '# dummy' > "$dirpart/$file" | |
13614 | done | |
13615 | done | |
d7040cdb | 13616 | ;; |
0ab6f085 | 13617 | libtool ) |
d7040cdb SE |
13618 | |
13619 | # See if we are running on zsh, and set the options which allow our | |
13620 | # commands through without removal of \ escapes. | |
13621 | if test -n "${ZSH_VERSION+set}" ; then | |
13622 | setopt NO_GLOB_SUBST | |
13623 | fi | |
13624 | ||
13625 | cfgfile="${ofile}T" | |
13626 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13627 | $RM "$cfgfile" | |
13628 | ||
13629 | cat <<_LT_EOF >> "$cfgfile" | |
13630 | #! $SHELL | |
13631 | ||
13632 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
13633 | # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION | |
13634 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13635 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
13636 | # | |
13637 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
13638 | # 2006, 2007 Free Software Foundation, Inc. | |
13639 | # | |
13640 | # This file is part of GNU Libtool: | |
13641 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
13642 | # | |
13643 | # This program is free software; you can redistribute it and/or modify | |
13644 | # it under the terms of the GNU General Public License as published by | |
13645 | # the Free Software Foundation; either version 2 of the License, or | |
13646 | # (at your option) any later version. | |
13647 | # | |
13648 | # This program is distributed in the hope that it will be useful, but | |
13649 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
13650 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13651 | # General Public License for more details. | |
13652 | # | |
13653 | # You should have received a copy of the GNU General Public License | |
13654 | # along with this program; if not, a copy can be downloaded from | |
13655 | # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free | |
13656 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
13657 | # MA 02110-1301, USA. | |
13658 | # | |
13659 | # As a special exception to the GNU General Public License, if you | |
13660 | # distribute this file as part of a program that contains a | |
13661 | # configuration script generated by Autoconf, you may include it under | |
13662 | # the same distribution terms that you use for the rest of that program. | |
13663 | ||
13664 | ||
13665 | # The names of the tagged configurations supported by this script. | |
13666 | available_tags="" | |
13667 | ||
13668 | # ### BEGIN LIBTOOL CONFIG | |
13669 | ||
13670 | # Which release of libtool.m4 was used? | |
13671 | macro_version=$macro_version | |
13672 | macro_revision=$macro_revision | |
13673 | ||
13674 | # Whether or not to build shared libraries. | |
13675 | build_libtool_libs=$enable_shared | |
13676 | ||
13677 | # Whether or not to build static libraries. | |
13678 | build_old_libs=$enable_static | |
13679 | ||
13680 | # What type of objects to build. | |
13681 | pic_mode=$pic_mode | |
13682 | ||
13683 | # Whether or not to optimize for fast installation. | |
13684 | fast_install=$enable_fast_install | |
13685 | ||
13686 | # The host system. | |
13687 | host_alias=$host_alias | |
13688 | host=$host | |
13689 | host_os=$host_os | |
13690 | ||
13691 | # The build system. | |
13692 | build_alias=$build_alias | |
13693 | build=$build | |
13694 | build_os=$build_os | |
13695 | ||
13696 | # A sed program that does not truncate output. | |
13697 | SED=$lt_SED | |
13698 | ||
13699 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
13700 | Xsed="\$SED -e 1s/^X//" | |
13701 | ||
13702 | # A grep program that handles long lines. | |
13703 | GREP=$lt_GREP | |
13704 | ||
13705 | # An ERE matcher. | |
13706 | EGREP=$lt_EGREP | |
13707 | ||
13708 | # A literal string matcher. | |
13709 | FGREP=$lt_FGREP | |
13710 | ||
13711 | # A BSD- or MS-compatible name lister. | |
13712 | NM=$lt_NM | |
13713 | ||
13714 | # Whether we need soft or hard links. | |
13715 | LN_S=$lt_LN_S | |
13716 | ||
13717 | # What is the maximum length of a command? | |
13718 | max_cmd_len=$max_cmd_len | |
13719 | ||
13720 | # Object file suffix (normally "o"). | |
13721 | objext=$ac_objext | |
13722 | ||
13723 | # Executable file suffix (normally ""). | |
13724 | exeext=$exeext | |
13725 | ||
13726 | # whether the shell understands "unset". | |
13727 | lt_unset=$lt_unset | |
13728 | ||
13729 | # turn spaces into newlines. | |
13730 | SP2NL=$lt_lt_SP2NL | |
13731 | ||
13732 | # turn newlines into spaces. | |
13733 | NL2SP=$lt_lt_NL2SP | |
13734 | ||
13735 | # How to create reloadable object files. | |
13736 | reload_flag=$lt_reload_flag | |
13737 | reload_cmds=$lt_reload_cmds | |
13738 | ||
13739 | # Method to check whether dependent libraries are shared objects. | |
13740 | deplibs_check_method=$lt_deplibs_check_method | |
13741 | ||
13742 | # Command to use when deplibs_check_method == "file_magic". | |
13743 | file_magic_cmd=$lt_file_magic_cmd | |
13744 | ||
13745 | # The archiver. | |
13746 | AR=$lt_AR | |
13747 | AR_FLAGS=$lt_AR_FLAGS | |
13748 | ||
13749 | # A symbol stripping program. | |
13750 | STRIP=$lt_STRIP | |
13751 | ||
13752 | # Commands used to install an old-style archive. | |
13753 | RANLIB=$lt_RANLIB | |
13754 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13755 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13756 | ||
13757 | # A C compiler. | |
13758 | LTCC=$lt_CC | |
13759 | ||
13760 | # LTCC compiler flags. | |
13761 | LTCFLAGS=$lt_CFLAGS | |
13762 | ||
13763 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13764 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13765 | ||
13766 | # Transform the output of nm in a proper C declaration. | |
13767 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13768 | ||
13769 | # Transform the output of nm in a C name address pair. | |
13770 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13771 | ||
13772 | # The name of the directory that contains temporary libtool files. | |
13773 | objdir=$objdir | |
13774 | ||
13775 | # Shell to use when invoking shell scripts. | |
13776 | SHELL=$lt_SHELL | |
13777 | ||
13778 | # An echo program that does not interpret backslashes. | |
13779 | ECHO=$lt_ECHO | |
13780 | ||
13781 | # Used to examine libraries when file_magic_cmd begins with "file". | |
13782 | MAGIC_CMD=$MAGIC_CMD | |
13783 | ||
13784 | # Must we lock files when doing compilation? | |
13785 | need_locks=$lt_need_locks | |
13786 | ||
13787 | # Old archive suffix (normally "a"). | |
13788 | libext=$libext | |
13789 | ||
13790 | # Shared library suffix (normally ".so"). | |
13791 | shrext_cmds=$lt_shrext_cmds | |
13792 | ||
13793 | # The commands to extract the exported symbol list from a shared archive. | |
13794 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13795 | ||
13796 | # Variables whose values should be saved in libtool wrapper scripts and | |
13797 | # restored at link time. | |
13798 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
13799 | ||
13800 | # Do we need the "lib" prefix for modules? | |
13801 | need_lib_prefix=$need_lib_prefix | |
13802 | ||
13803 | # Do we need a version for libraries? | |
13804 | need_version=$need_version | |
13805 | ||
13806 | # Library versioning type. | |
13807 | version_type=$version_type | |
13808 | ||
13809 | # Shared library runtime path variable. | |
13810 | runpath_var=$runpath_var | |
13811 | ||
13812 | # Shared library path variable. | |
13813 | shlibpath_var=$shlibpath_var | |
13814 | ||
13815 | # Is shlibpath searched before the hard-coded library search path? | |
13816 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13817 | ||
13818 | # Format of library name prefix. | |
13819 | libname_spec=$lt_libname_spec | |
13820 | ||
13821 | # List of archive names. First name is the real one, the rest are links. | |
13822 | # The last name is the one that the linker finds with -lNAME | |
13823 | library_names_spec=$lt_library_names_spec | |
13824 | ||
13825 | # The coded name of the library, if different from the real name. | |
13826 | soname_spec=$lt_soname_spec | |
13827 | ||
13828 | # Command to use after installation of a shared archive. | |
13829 | postinstall_cmds=$lt_postinstall_cmds | |
13830 | ||
13831 | # Command to use after uninstallation of a shared archive. | |
13832 | postuninstall_cmds=$lt_postuninstall_cmds | |
13833 | ||
13834 | # Commands used to finish a libtool library installation in a directory. | |
13835 | finish_cmds=$lt_finish_cmds | |
13836 | ||
13837 | # As "finish_cmds", except a single script fragment to be evaled but | |
13838 | # not shown. | |
13839 | finish_eval=$lt_finish_eval | |
13840 | ||
13841 | # Whether we should hardcode library paths into libraries. | |
13842 | hardcode_into_libs=$hardcode_into_libs | |
13843 | ||
13844 | # Compile-time system search path for libraries. | |
13845 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13846 | ||
13847 | # Run-time system search path for libraries. | |
13848 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13849 | ||
13850 | # Whether dlopen is supported. | |
13851 | dlopen_support=$enable_dlopen | |
13852 | ||
13853 | # Whether dlopen of programs is supported. | |
13854 | dlopen_self=$enable_dlopen_self | |
13855 | ||
13856 | # Whether dlopen of statically linked programs is supported. | |
13857 | dlopen_self_static=$enable_dlopen_self_static | |
13858 | ||
13859 | # Commands to strip libraries. | |
13860 | old_striplib=$lt_old_striplib | |
13861 | striplib=$lt_striplib | |
13862 | ||
13863 | ||
13864 | # The linker used to build libraries. | |
13865 | LD=$lt_LD | |
13866 | ||
13867 | # Commands used to build an old-style archive. | |
13868 | old_archive_cmds=$lt_old_archive_cmds | |
13869 | ||
13870 | # A language specific compiler. | |
13871 | CC=$lt_compiler | |
13872 | ||
13873 | # Is the compiler the GNU compiler? | |
13874 | with_gcc=$GCC | |
13875 | ||
13876 | # Compiler flag to turn off builtin functions. | |
13877 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
13878 | ||
13879 | # How to pass a linker flag through the compiler. | |
13880 | wl=$lt_lt_prog_compiler_wl | |
13881 | ||
13882 | # Additional compiler flags for building library objects. | |
13883 | pic_flag=$lt_lt_prog_compiler_pic | |
13884 | ||
13885 | # Compiler flag to prevent dynamic linking. | |
13886 | link_static_flag=$lt_lt_prog_compiler_static | |
13887 | ||
13888 | # Does compiler simultaneously support -c and -o options? | |
13889 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13890 | ||
13891 | # Whether or not to add -lc for building shared libraries. | |
13892 | build_libtool_need_lc=$archive_cmds_need_lc | |
13893 | ||
13894 | # Whether or not to disallow shared libs when runtime libs are static. | |
13895 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13896 | ||
13897 | # Compiler flag to allow reflexive dlopens. | |
13898 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
13899 | ||
13900 | # Compiler flag to generate shared objects directly from archives. | |
13901 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
13902 | ||
13903 | # Whether the compiler copes with passing no objects directly. | |
13904 | compiler_needs_object=$lt_compiler_needs_object | |
13905 | ||
13906 | # Create an old-style archive from a shared archive. | |
13907 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
13908 | ||
13909 | # Create a temporary old-style archive to link instead of a shared archive. | |
13910 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
13911 | ||
13912 | # Commands used to build a shared archive. | |
13913 | archive_cmds=$lt_archive_cmds | |
13914 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
13915 | ||
13916 | # Commands used to build a loadable module if different from building | |
13917 | # a shared archive. | |
13918 | module_cmds=$lt_module_cmds | |
13919 | module_expsym_cmds=$lt_module_expsym_cmds | |
13920 | ||
13921 | # Whether we are building with GNU ld or not. | |
13922 | with_gnu_ld=$lt_with_gnu_ld | |
13923 | ||
13924 | # Flag that allows shared libraries with undefined symbols to be built. | |
13925 | allow_undefined_flag=$lt_allow_undefined_flag | |
13926 | ||
13927 | # Flag that enforces no undefined symbols. | |
13928 | no_undefined_flag=$lt_no_undefined_flag | |
13929 | ||
13930 | # Flag to hardcode \$libdir into a binary during linking. | |
13931 | # This must work even if \$libdir does not exist | |
13932 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
13933 | ||
13934 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
13935 | # during linking. This must work even if \$libdir does not exist. | |
13936 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
13937 | ||
13938 | # Whether we need a single "-rpath" flag with a separated argument. | |
13939 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
13940 | ||
13941 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13942 | # DIR into the resulting binary. | |
13943 | hardcode_direct=$hardcode_direct | |
13944 | ||
13945 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13946 | # DIR into the resulting binary and the resulting library dependency is | |
13947 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13948 | # library is relocated. | |
13949 | hardcode_direct_absolute=$hardcode_direct_absolute | |
13950 | ||
13951 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
13952 | # into the resulting binary. | |
13953 | hardcode_minus_L=$hardcode_minus_L | |
13954 | ||
13955 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
13956 | # into the resulting binary. | |
13957 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
13958 | ||
13959 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
13960 | # into the library and all subsequent libraries and executables linked | |
13961 | # against it. | |
13962 | hardcode_automatic=$hardcode_automatic | |
13963 | ||
13964 | # Set to yes if linker adds runtime paths of dependent libraries | |
13965 | # to runtime path list. | |
13966 | inherit_rpath=$inherit_rpath | |
13967 | ||
13968 | # Whether libtool must link a program against all its dependency libraries. | |
13969 | link_all_deplibs=$link_all_deplibs | |
13970 | ||
13971 | # Fix the shell variable \$srcfile for the compiler. | |
13972 | fix_srcfile_path=$lt_fix_srcfile_path | |
13973 | ||
13974 | # Set to "yes" if exported symbols are required. | |
13975 | always_export_symbols=$always_export_symbols | |
13976 | ||
13977 | # The commands to list exported symbols. | |
13978 | export_symbols_cmds=$lt_export_symbols_cmds | |
13979 | ||
13980 | # Symbols that should not be listed in the preloaded symbols. | |
13981 | exclude_expsyms=$lt_exclude_expsyms | |
13982 | ||
13983 | # Symbols that must always be exported. | |
13984 | include_expsyms=$lt_include_expsyms | |
13985 | ||
13986 | # Commands necessary for linking programs (against libraries) with templates. | |
13987 | prelink_cmds=$lt_prelink_cmds | |
13988 | ||
13989 | # Specify filename containing input files. | |
13990 | file_list_spec=$lt_file_list_spec | |
13991 | ||
13992 | # How to hardcode a shared library path into an executable. | |
13993 | hardcode_action=$hardcode_action | |
13994 | ||
13995 | # ### END LIBTOOL CONFIG | |
13996 | ||
13997 | _LT_EOF | |
13998 | ||
13999 | case $host_os in | |
14000 | aix3*) | |
14001 | cat <<\_LT_EOF >> "$cfgfile" | |
14002 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14003 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14004 | # vanish in a puff of smoke. | |
14005 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14006 | COLLECT_NAMES= | |
14007 | export COLLECT_NAMES | |
14008 | fi | |
14009 | _LT_EOF | |
14010 | ;; | |
14011 | esac | |
14012 | ||
14013 | ||
14014 | ltmain="$ac_aux_dir/ltmain.sh" | |
14015 | ||
14016 | ||
14017 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14018 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14019 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14020 | # is reportedly fixed, but why not run on old versions too? | |
14021 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14022 | || (rm -f "$cfgfile"; exit 1) | |
14023 | ||
14024 | case $xsi_shell in | |
14025 | yes) | |
14026 | cat << \_LT_EOF >> "$cfgfile" | |
14027 | # func_dirname file append nondir_replacement | |
14028 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14029 | # otherwise set result to NONDIR_REPLACEMENT. | |
14030 | func_dirname () | |
14031 | { | |
14032 | case ${1} in | |
14033 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14034 | * ) func_dirname_result="${3}" ;; | |
14035 | esac | |
14036 | } | |
14037 | ||
14038 | # func_basename file | |
14039 | func_basename () | |
14040 | { | |
14041 | func_basename_result="${1##*/}" | |
14042 | } | |
14043 | ||
14044 | # func_stripname prefix suffix name | |
14045 | # strip PREFIX and SUFFIX off of NAME. | |
14046 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14047 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14048 | # dot (in which case that matches only a dot). | |
14049 | func_stripname () | |
14050 | { | |
14051 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
14052 | # positional parameters, so assign one to ordinary parameter first. | |
14053 | func_stripname_result=${3} | |
14054 | func_stripname_result=${func_stripname_result#"${1}"} | |
14055 | func_stripname_result=${func_stripname_result%"${2}"} | |
14056 | } | |
14057 | ||
14058 | # func_opt_split | |
14059 | func_opt_split () | |
14060 | { | |
14061 | func_opt_split_opt=${1%%=*} | |
14062 | func_opt_split_arg=${1#*=} | |
14063 | } | |
14064 | ||
14065 | # func_lo2o object | |
14066 | func_lo2o () | |
14067 | { | |
14068 | case ${1} in | |
14069 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
14070 | *) func_lo2o_result=${1} ;; | |
14071 | esac | |
14072 | } | |
14073 | _LT_EOF | |
14074 | ;; | |
14075 | *) # Bourne compatible functions. | |
14076 | cat << \_LT_EOF >> "$cfgfile" | |
14077 | # func_dirname file append nondir_replacement | |
14078 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14079 | # otherwise set result to NONDIR_REPLACEMENT. | |
14080 | func_dirname () | |
14081 | { | |
14082 | # Extract subdirectory from the argument. | |
14083 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
14084 | if test "X$func_dirname_result" = "X${1}"; then | |
14085 | func_dirname_result="${3}" | |
14086 | else | |
14087 | func_dirname_result="$func_dirname_result${2}" | |
14088 | fi | |
14089 | } | |
14090 | ||
14091 | # func_basename file | |
14092 | func_basename () | |
14093 | { | |
14094 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
14095 | } | |
14096 | ||
14097 | # func_stripname prefix suffix name | |
14098 | # strip PREFIX and SUFFIX off of NAME. | |
14099 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14100 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14101 | # dot (in which case that matches only a dot). | |
14102 | # func_strip_suffix prefix name | |
14103 | func_stripname () | |
14104 | { | |
14105 | case ${2} in | |
14106 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
14107 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
14108 | *) func_stripname_result=`$ECHO "X${3}" \ | |
14109 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
14110 | esac | |
14111 | } | |
14112 | ||
14113 | # sed scripts: | |
14114 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14115 | my_sed_long_arg='1s/^-[^=]*=//' | |
14116 | ||
14117 | # func_opt_split | |
14118 | func_opt_split () | |
14119 | { | |
14120 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
14121 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
14122 | } | |
14123 | ||
14124 | # func_lo2o object | |
14125 | func_lo2o () | |
14126 | { | |
14127 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
14128 | } | |
14129 | _LT_EOF | |
14130 | esac | |
14131 | ||
14132 | case $lt_shell_append in | |
14133 | yes) | |
14134 | cat << \_LT_EOF >> "$cfgfile" | |
14135 | ||
14136 | # func_append var value | |
14137 | # Append VALUE to the end of shell variable VAR. | |
14138 | func_append () | |
14139 | { | |
14140 | eval "$1+=\$2" | |
14141 | } | |
14142 | _LT_EOF | |
14143 | ;; | |
14144 | *) | |
14145 | cat << \_LT_EOF >> "$cfgfile" | |
14146 | ||
14147 | # func_append var value | |
14148 | # Append VALUE to the end of shell variable VAR. | |
14149 | func_append () | |
14150 | { | |
14151 | eval "$1=\$$1\$2" | |
14152 | } | |
14153 | _LT_EOF | |
14154 | ;; | |
14155 | esac | |
14156 | ||
14157 | ||
14158 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14159 | || (rm -f "$cfgfile"; exit 1) | |
14160 | ||
14161 | mv -f "$cfgfile" "$ofile" || | |
14162 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14163 | chmod +x "$ofile" | |
14164 | ||
6bf9431b | 14165 | ;; |
0ab6f085 | 14166 | default-1 ) |
20e95c23 DJ |
14167 | for ac_file in $CONFIG_FILES; do |
14168 | # Support "outfile[:infile[:infile...]]" | |
14169 | case "$ac_file" in | |
14170 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14171 | esac | |
14172 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
14173 | case "$ac_file" in */Makefile.in) | |
14174 | # Adjust a relative srcdir. | |
14175 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
14176 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
14177 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
14178 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
14179 | # In autoconf-2.50 it is called $srcdir. | |
14180 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
14181 | case "$ac_given_srcdir" in | |
14182 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
14183 | /*) top_srcdir="$ac_given_srcdir" ;; | |
14184 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
14185 | esac | |
14186 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
14187 | rm -f "$ac_dir/POTFILES" | |
14188 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
14189 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
14190 | POMAKEFILEDEPS="POTFILES.in" | |
14191 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
14192 | # on $ac_dir but don't depend on user-specified configuration | |
14193 | # parameters. | |
14194 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
14195 | # The LINGUAS file contains the set of available languages. | |
14196 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
14197 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
14198 | fi | |
14199 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
14200 | # Hide the ALL_LINGUAS assigment from automake. | |
14201 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
14202 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
14203 | else | |
14204 | # The set of available languages was given in configure.in. | |
14205 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
14206 | fi | |
14207 | case "$ac_given_srcdir" in | |
14208 | .) srcdirpre= ;; | |
14209 | *) srcdirpre='$(srcdir)/' ;; | |
14210 | esac | |
14211 | POFILES= | |
14212 | GMOFILES= | |
14213 | UPDATEPOFILES= | |
14214 | DUMMYPOFILES= | |
14215 | for lang in $ALL_LINGUAS; do | |
14216 | POFILES="$POFILES $srcdirpre$lang.po" | |
14217 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
14218 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
14219 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
14220 | done | |
14221 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
14222 | # environment variable. | |
14223 | INST_LINGUAS= | |
14224 | if test -n "$ALL_LINGUAS"; then | |
14225 | for presentlang in $ALL_LINGUAS; do | |
14226 | useit=no | |
14227 | if test "%UNSET%" != "$LINGUAS"; then | |
14228 | desiredlanguages="$LINGUAS" | |
14229 | else | |
14230 | desiredlanguages="$ALL_LINGUAS" | |
14231 | fi | |
14232 | for desiredlang in $desiredlanguages; do | |
14233 | # Use the presentlang catalog if desiredlang is | |
14234 | # a. equal to presentlang, or | |
14235 | # b. a variant of presentlang (because in this case, | |
14236 | # presentlang can be used as a fallback for messages | |
14237 | # which are not translated in the desiredlang catalog). | |
14238 | case "$desiredlang" in | |
14239 | "$presentlang"*) useit=yes;; | |
14240 | esac | |
14241 | done | |
14242 | if test $useit = yes; then | |
14243 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
14244 | fi | |
14245 | done | |
14246 | fi | |
14247 | CATALOGS= | |
14248 | if test -n "$INST_LINGUAS"; then | |
14249 | for lang in $INST_LINGUAS; do | |
14250 | CATALOGS="$CATALOGS $lang.gmo" | |
14251 | done | |
14252 | fi | |
14253 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
14254 | 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" | |
14255 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
14256 | if test -f "$f"; then | |
14257 | case "$f" in | |
14258 | *.orig | *.bak | *~) ;; | |
14259 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
14260 | esac | |
14261 | fi | |
14262 | done | |
14263 | fi | |
14264 | ;; | |
14265 | esac | |
14266 | done ;; | |
6bf9431b | 14267 | esac |
0ab6f085 AM |
14268 | done |
14269 | _ACEOF | |
6bf9431b | 14270 | |
0ab6f085 | 14271 | cat >>$CONFIG_STATUS <<\_ACEOF |
6bf9431b BE |
14272 | |
14273 | { (exit 0); exit 0; } | |
14274 | _ACEOF | |
252b5132 | 14275 | chmod +x $CONFIG_STATUS |
6bf9431b BE |
14276 | ac_clean_files=$ac_clean_files_save |
14277 | ||
14278 | ||
14279 | # configure is writing to config.log, and then calls config.status. | |
14280 | # config.status does its own redirection, appending to config.log. | |
14281 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14282 | # by configure, so config.status won't be able to write to it; its | |
14283 | # output is simply discarded. So we exec the FD to /dev/null, | |
14284 | # effectively closing config.log, so it can be properly (re)opened and | |
14285 | # appended to by config.status. When coming back to configure, we | |
14286 | # need to make the FD available again. | |
14287 | if test "$no_create" != yes; then | |
14288 | ac_cs_success=: | |
14289 | ac_config_status_args= | |
14290 | test "$silent" = yes && | |
14291 | ac_config_status_args="$ac_config_status_args --quiet" | |
14292 | exec 5>/dev/null | |
14293 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14294 | exec 5>>config.log | |
14295 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14296 | # would make configure fail if this is the last instruction. | |
14297 | $ac_cs_success || { (exit 1); exit 1; } | |
14298 | fi | |
252b5132 | 14299 |