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 | ||
0ab6f085 | 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP 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='' |
252b5132 RH |
463 | |
464 | # Initialize some variables set by options. | |
6bf9431b BE |
465 | ac_init_help= |
466 | ac_init_version=false | |
252b5132 RH |
467 | # The variables have the same names as the options, with |
468 | # dashes changed to underlines. | |
6bf9431b | 469 | cache_file=/dev/null |
252b5132 | 470 | exec_prefix=NONE |
252b5132 | 471 | no_create= |
252b5132 RH |
472 | no_recursion= |
473 | prefix=NONE | |
474 | program_prefix=NONE | |
475 | program_suffix=NONE | |
476 | program_transform_name=s,x,x, | |
477 | silent= | |
478 | site= | |
479 | srcdir= | |
252b5132 RH |
480 | verbose= |
481 | x_includes=NONE | |
482 | x_libraries=NONE | |
6bf9431b BE |
483 | |
484 | # Installation directory options. | |
485 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
486 | # and all the variables that are supposed to be based on exec_prefix | |
487 | # by default will actually change. | |
488 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
489 | bindir='${exec_prefix}/bin' |
490 | sbindir='${exec_prefix}/sbin' | |
491 | libexecdir='${exec_prefix}/libexec' | |
0ab6f085 | 492 | datadir='${prefix}/share' |
252b5132 RH |
493 | sysconfdir='${prefix}/etc' |
494 | sharedstatedir='${prefix}/com' | |
495 | localstatedir='${prefix}/var' | |
0ab6f085 | 496 | libdir='${exec_prefix}/lib' |
252b5132 RH |
497 | includedir='${prefix}/include' |
498 | oldincludedir='/usr/include' | |
0ab6f085 AM |
499 | infodir='${prefix}/info' |
500 | mandir='${prefix}/man' | |
252b5132 | 501 | |
252b5132 RH |
502 | ac_prev= |
503 | for ac_option | |
504 | do | |
252b5132 RH |
505 | # If the previous option needs an argument, assign it. |
506 | if test -n "$ac_prev"; then | |
0ab6f085 | 507 | eval "$ac_prev=\$ac_option" |
252b5132 RH |
508 | ac_prev= |
509 | continue | |
510 | fi | |
511 | ||
0ab6f085 | 512 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
513 | |
514 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
515 | ||
0ab6f085 | 516 | case $ac_option in |
252b5132 RH |
517 | |
518 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
519 | ac_prev=bindir ;; | |
520 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
6bf9431b | 521 | bindir=$ac_optarg ;; |
252b5132 RH |
522 | |
523 | -build | --build | --buil | --bui | --bu) | |
6bf9431b | 524 | ac_prev=build_alias ;; |
252b5132 | 525 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
6bf9431b | 526 | build_alias=$ac_optarg ;; |
252b5132 RH |
527 | |
528 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
529 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
530 | ac_prev=cache_file ;; | |
531 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
532 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
6bf9431b BE |
533 | cache_file=$ac_optarg ;; |
534 | ||
535 | --config-cache | -C) | |
536 | cache_file=config.cache ;; | |
252b5132 | 537 | |
0ab6f085 | 538 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
252b5132 | 539 | ac_prev=datadir ;; |
0ab6f085 AM |
540 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
541 | | --da=*) | |
6bf9431b | 542 | datadir=$ac_optarg ;; |
252b5132 RH |
543 | |
544 | -disable-* | --disable-*) | |
6bf9431b | 545 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 546 | # Reject names that are not valid shell variable names. |
0ab6f085 | 547 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
6bf9431b BE |
548 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
549 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
550 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
551 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
552 | |
553 | -enable-* | --enable-*) | |
6bf9431b | 554 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 555 | # Reject names that are not valid shell variable names. |
0ab6f085 | 556 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
6bf9431b BE |
557 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
558 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
559 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
560 | case $ac_option in | |
561 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
562 | *) ac_optarg=yes ;; | |
563 | esac | |
564 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
252b5132 RH |
565 | |
566 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
567 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
568 | | --exec | --exe | --ex) | |
569 | ac_prev=exec_prefix ;; | |
570 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
571 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
572 | | --exec=* | --exe=* | --ex=*) | |
6bf9431b | 573 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -gas | --gas | --ga | --g) | |
576 | # Obsolete; use --with-gas. | |
577 | with_gas=yes ;; | |
578 | ||
6bf9431b BE |
579 | -help | --help | --hel | --he | -h) |
580 | ac_init_help=long ;; | |
581 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
582 | ac_init_help=recursive ;; | |
583 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
584 | ac_init_help=short ;; | |
252b5132 RH |
585 | |
586 | -host | --host | --hos | --ho) | |
6bf9431b | 587 | ac_prev=host_alias ;; |
252b5132 | 588 | -host=* | --host=* | --hos=* | --ho=*) |
6bf9431b | 589 | host_alias=$ac_optarg ;; |
252b5132 RH |
590 | |
591 | -includedir | --includedir | --includedi | --included | --include \ | |
592 | | --includ | --inclu | --incl | --inc) | |
593 | ac_prev=includedir ;; | |
594 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
595 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
6bf9431b | 596 | includedir=$ac_optarg ;; |
252b5132 RH |
597 | |
598 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
599 | ac_prev=infodir ;; | |
600 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
6bf9431b | 601 | infodir=$ac_optarg ;; |
252b5132 RH |
602 | |
603 | -libdir | --libdir | --libdi | --libd) | |
604 | ac_prev=libdir ;; | |
605 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
6bf9431b | 606 | libdir=$ac_optarg ;; |
252b5132 RH |
607 | |
608 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
609 | | --libexe | --libex | --libe) | |
610 | ac_prev=libexecdir ;; | |
611 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
612 | | --libexe=* | --libex=* | --libe=*) | |
6bf9431b | 613 | libexecdir=$ac_optarg ;; |
252b5132 RH |
614 | |
615 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
0ab6f085 AM |
616 | | --localstate | --localstat | --localsta | --localst \ |
617 | | --locals | --local | --loca | --loc | --lo) | |
252b5132 RH |
618 | ac_prev=localstatedir ;; |
619 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
0ab6f085 AM |
620 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
621 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
6bf9431b | 622 | localstatedir=$ac_optarg ;; |
252b5132 RH |
623 | |
624 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
625 | ac_prev=mandir ;; | |
626 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
6bf9431b | 627 | mandir=$ac_optarg ;; |
252b5132 RH |
628 | |
629 | -nfp | --nfp | --nf) | |
630 | # Obsolete; use --without-fp. | |
631 | with_fp=no ;; | |
632 | ||
633 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
6bf9431b | 634 | | --no-cr | --no-c | -n) |
252b5132 RH |
635 | no_create=yes ;; |
636 | ||
637 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
638 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
639 | no_recursion=yes ;; | |
640 | ||
641 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
642 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
643 | | --oldin | --oldi | --old | --ol | --o) | |
644 | ac_prev=oldincludedir ;; | |
645 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
646 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
647 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
6bf9431b | 648 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
649 | |
650 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
651 | ac_prev=prefix ;; | |
652 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
6bf9431b | 653 | prefix=$ac_optarg ;; |
252b5132 RH |
654 | |
655 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
656 | | --program-pre | --program-pr | --program-p) | |
657 | ac_prev=program_prefix ;; | |
658 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
659 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
6bf9431b | 660 | program_prefix=$ac_optarg ;; |
252b5132 RH |
661 | |
662 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
663 | | --program-suf | --program-su | --program-s) | |
664 | ac_prev=program_suffix ;; | |
665 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
666 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
6bf9431b | 667 | program_suffix=$ac_optarg ;; |
252b5132 RH |
668 | |
669 | -program-transform-name | --program-transform-name \ | |
670 | | --program-transform-nam | --program-transform-na \ | |
671 | | --program-transform-n | --program-transform- \ | |
672 | | --program-transform | --program-transfor \ | |
673 | | --program-transfo | --program-transf \ | |
674 | | --program-trans | --program-tran \ | |
675 | | --progr-tra | --program-tr | --program-t) | |
676 | ac_prev=program_transform_name ;; | |
677 | -program-transform-name=* | --program-transform-name=* \ | |
678 | | --program-transform-nam=* | --program-transform-na=* \ | |
679 | | --program-transform-n=* | --program-transform-=* \ | |
680 | | --program-transform=* | --program-transfor=* \ | |
681 | | --program-transfo=* | --program-transf=* \ | |
682 | | --program-trans=* | --program-tran=* \ | |
683 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
6bf9431b | 684 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
685 | |
686 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
687 | | -silent | --silent | --silen | --sile | --sil) | |
688 | silent=yes ;; | |
689 | ||
690 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
691 | ac_prev=sbindir ;; | |
692 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
693 | | --sbi=* | --sb=*) | |
6bf9431b | 694 | sbindir=$ac_optarg ;; |
252b5132 RH |
695 | |
696 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
697 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
698 | | --sharedst | --shareds | --shared | --share | --shar \ | |
699 | | --sha | --sh) | |
700 | ac_prev=sharedstatedir ;; | |
701 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
702 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
703 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
704 | | --sha=* | --sh=*) | |
6bf9431b | 705 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
706 | |
707 | -site | --site | --sit) | |
708 | ac_prev=site ;; | |
709 | -site=* | --site=* | --sit=*) | |
6bf9431b | 710 | site=$ac_optarg ;; |
093872ec | 711 | |
252b5132 RH |
712 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
713 | ac_prev=srcdir ;; | |
714 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
6bf9431b | 715 | srcdir=$ac_optarg ;; |
252b5132 RH |
716 | |
717 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
718 | | --syscon | --sysco | --sysc | --sys | --sy) | |
719 | ac_prev=sysconfdir ;; | |
720 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
721 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
6bf9431b | 722 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
723 | |
724 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
6bf9431b | 725 | ac_prev=target_alias ;; |
252b5132 | 726 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
6bf9431b | 727 | target_alias=$ac_optarg ;; |
252b5132 RH |
728 | |
729 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
730 | verbose=yes ;; | |
731 | ||
6bf9431b BE |
732 | -version | --version | --versio | --versi | --vers | -V) |
733 | ac_init_version=: ;; | |
252b5132 RH |
734 | |
735 | -with-* | --with-*) | |
6bf9431b | 736 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 737 | # Reject names that are not valid shell variable names. |
0ab6f085 | 738 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
6bf9431b BE |
739 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
740 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
741 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
742 | case $ac_option in | |
743 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
744 | *) ac_optarg=yes ;; | |
745 | esac | |
746 | eval "with_$ac_package='$ac_optarg'" ;; | |
252b5132 RH |
747 | |
748 | -without-* | --without-*) | |
6bf9431b | 749 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 750 | # Reject names that are not valid shell variable names. |
0ab6f085 | 751 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
6bf9431b BE |
752 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
753 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
754 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
755 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
756 | |
757 | --x) | |
758 | # Obsolete; use --with-x. | |
759 | with_x=yes ;; | |
760 | ||
761 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
762 | | --x-incl | --x-inc | --x-in | --x-i) | |
763 | ac_prev=x_includes ;; | |
764 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
765 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
6bf9431b | 766 | x_includes=$ac_optarg ;; |
252b5132 RH |
767 | |
768 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
769 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
770 | ac_prev=x_libraries ;; | |
771 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
772 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
6bf9431b | 773 | x_libraries=$ac_optarg ;; |
252b5132 | 774 | |
6bf9431b BE |
775 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
776 | Try \`$0 --help' for more information." >&2 | |
777 | { (exit 1); exit 1; }; } | |
252b5132 RH |
778 | ;; |
779 | ||
6bf9431b BE |
780 | *=*) |
781 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
782 | # Reject names that are not valid shell variable names. | |
783 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
784 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
785 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
786 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
787 | eval "$ac_envvar='$ac_optarg'" | |
6bf9431b BE |
788 | export $ac_envvar ;; |
789 | ||
252b5132 | 790 | *) |
6bf9431b BE |
791 | # FIXME: should be removed in autoconf 3.0. |
792 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
793 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
794 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
795 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
796 | ;; |
797 | ||
798 | esac | |
799 | done | |
800 | ||
801 | if test -n "$ac_prev"; then | |
6bf9431b BE |
802 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
803 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
804 | { (exit 1); exit 1; }; } | |
252b5132 RH |
805 | fi |
806 | ||
0ab6f085 AM |
807 | # Be sure to have absolute paths. |
808 | for ac_var in exec_prefix prefix | |
252b5132 | 809 | do |
0ab6f085 | 810 | eval ac_val=$`echo $ac_var` |
6bf9431b | 811 | case $ac_val in |
0ab6f085 AM |
812 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
813 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
814 | { (exit 1); exit 1; }; };; | |
815 | esac | |
816 | done | |
817 | ||
818 | # Be sure to have absolute paths. | |
819 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
820 | localstatedir libdir includedir oldincludedir infodir mandir | |
821 | do | |
822 | eval ac_val=$`echo $ac_var` | |
823 | case $ac_val in | |
824 | [\\/$]* | ?:[\\/]* ) ;; | |
825 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
826 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
827 | esac |
828 | done | |
829 | ||
6bf9431b BE |
830 | # There might be people who depend on the old broken behavior: `$host' |
831 | # used to hold the argument of --host etc. | |
832 | # FIXME: To remove some day. | |
833 | build=$build_alias | |
834 | host=$host_alias | |
835 | target=$target_alias | |
836 | ||
837 | # FIXME: To remove some day. | |
838 | if test "x$host_alias" != x; then | |
839 | if test "x$build_alias" = x; then | |
840 | cross_compiling=maybe | |
841 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
842 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
843 | elif test "x$build_alias" != "x$host_alias"; then | |
844 | cross_compiling=yes | |
845 | fi | |
846 | fi | |
252b5132 | 847 | |
6bf9431b BE |
848 | ac_tool_prefix= |
849 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
850 | ||
851 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 852 | |
252b5132 RH |
853 | |
854 | # Find the source files, if location was not specified. | |
855 | if test -z "$srcdir"; then | |
856 | ac_srcdir_defaulted=yes | |
0ab6f085 AM |
857 | # Try the directory containing this script, then its parent. |
858 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
6bf9431b BE |
859 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
860 | X"$0" : 'X\(//\)[^/]' \| \ | |
861 | X"$0" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
862 | X"$0" : 'X\(/\)' \| \ |
863 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 864 | echo X"$0" | |
0ab6f085 AM |
865 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
866 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
867 | /^X\(\/\/\)$/{ s//\1/; q; } | |
868 | /^X\(\/\).*/{ s//\1/; q; } | |
869 | s/.*/./; q'` | |
252b5132 | 870 | srcdir=$ac_confdir |
0ab6f085 | 871 | if test ! -r $srcdir/$ac_unique_file; then |
252b5132 RH |
872 | srcdir=.. |
873 | fi | |
874 | else | |
875 | ac_srcdir_defaulted=no | |
876 | fi | |
0ab6f085 AM |
877 | if test ! -r $srcdir/$ac_unique_file; then |
878 | if test "$ac_srcdir_defaulted" = yes; then | |
879 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
880 | { (exit 1); exit 1; }; } | |
881 | else | |
882 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
6bf9431b | 883 | { (exit 1); exit 1; }; } |
0ab6f085 | 884 | fi |
252b5132 | 885 | fi |
0ab6f085 AM |
886 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
887 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
6bf9431b | 888 | { (exit 1); exit 1; }; } |
0ab6f085 AM |
889 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
890 | ac_env_build_alias_set=${build_alias+set} | |
891 | ac_env_build_alias_value=$build_alias | |
892 | ac_cv_env_build_alias_set=${build_alias+set} | |
893 | ac_cv_env_build_alias_value=$build_alias | |
894 | ac_env_host_alias_set=${host_alias+set} | |
895 | ac_env_host_alias_value=$host_alias | |
896 | ac_cv_env_host_alias_set=${host_alias+set} | |
897 | ac_cv_env_host_alias_value=$host_alias | |
898 | ac_env_target_alias_set=${target_alias+set} | |
899 | ac_env_target_alias_value=$target_alias | |
900 | ac_cv_env_target_alias_set=${target_alias+set} | |
901 | ac_cv_env_target_alias_value=$target_alias | |
902 | ac_env_CC_set=${CC+set} | |
903 | ac_env_CC_value=$CC | |
904 | ac_cv_env_CC_set=${CC+set} | |
905 | ac_cv_env_CC_value=$CC | |
906 | ac_env_CFLAGS_set=${CFLAGS+set} | |
907 | ac_env_CFLAGS_value=$CFLAGS | |
908 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
909 | ac_cv_env_CFLAGS_value=$CFLAGS | |
910 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
911 | ac_env_LDFLAGS_value=$LDFLAGS | |
912 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
913 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
914 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
915 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
916 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
917 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
918 | ac_env_CPP_set=${CPP+set} | |
919 | ac_env_CPP_value=$CPP | |
920 | ac_cv_env_CPP_set=${CPP+set} | |
921 | ac_cv_env_CPP_value=$CPP | |
252b5132 | 922 | |
6bf9431b BE |
923 | # |
924 | # Report the --help message. | |
925 | # | |
926 | if test "$ac_init_help" = "long"; then | |
927 | # Omit some internal or obsolete options to make the list less imposing. | |
928 | # This message is too long to be a string in the A/UX 3.1 sh. | |
929 | cat <<_ACEOF | |
930 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 931 | |
6bf9431b | 932 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 933 | |
6bf9431b BE |
934 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
935 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 936 | |
6bf9431b | 937 | Defaults for the options are specified in brackets. |
ac48eca1 | 938 | |
6bf9431b BE |
939 | Configuration: |
940 | -h, --help display this help and exit | |
941 | --help=short display options specific to this package | |
942 | --help=recursive display the short help of all the included packages | |
943 | -V, --version display version information and exit | |
944 | -q, --quiet, --silent do not print \`checking...' messages | |
945 | --cache-file=FILE cache test results in FILE [disabled] | |
946 | -C, --config-cache alias for \`--cache-file=config.cache' | |
947 | -n, --no-create do not create output files | |
948 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
949 | ||
0ab6f085 AM |
950 | _ACEOF |
951 | ||
952 | cat <<_ACEOF | |
6bf9431b BE |
953 | Installation directories: |
954 | --prefix=PREFIX install architecture-independent files in PREFIX | |
955 | [$ac_default_prefix] | |
956 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
957 | [PREFIX] | |
ac48eca1 | 958 | |
6bf9431b BE |
959 | By default, \`make install' will install all the files in |
960 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
961 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
962 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 963 | |
6bf9431b | 964 | For better control, use the options below. |
ac48eca1 | 965 | |
6bf9431b BE |
966 | Fine tuning of the installation directories: |
967 | --bindir=DIR user executables [EPREFIX/bin] | |
968 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
969 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
0ab6f085 | 970 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
6bf9431b BE |
971 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
972 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
973 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
974 | --libdir=DIR object code libraries [EPREFIX/lib] | |
975 | --includedir=DIR C header files [PREFIX/include] | |
976 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
0ab6f085 AM |
977 | --infodir=DIR info documentation [PREFIX/info] |
978 | --mandir=DIR man documentation [PREFIX/man] | |
6bf9431b | 979 | _ACEOF |
ac48eca1 | 980 | |
6bf9431b | 981 | cat <<\_ACEOF |
252b5132 | 982 | |
6bf9431b BE |
983 | Program names: |
984 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
985 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
986 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 987 | |
6bf9431b BE |
988 | System types: |
989 | --build=BUILD configure for building on BUILD [guessed] | |
990 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
991 | --target=TARGET configure for building compilers for TARGET [HOST] | |
992 | _ACEOF | |
252b5132 | 993 | fi |
252b5132 | 994 | |
6bf9431b | 995 | if test -n "$ac_init_help"; then |
252b5132 | 996 | |
6bf9431b | 997 | cat <<\_ACEOF |
252b5132 | 998 | |
6bf9431b BE |
999 | Optional Features: |
1000 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1001 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1002 | --disable-dependency-tracking speeds up one-time build | |
1003 | --enable-dependency-tracking do not reject slow dependency extractors | |
0ab6f085 AM |
1004 | --enable-shared[=PKGS] |
1005 | build shared libraries [default=yes] | |
1006 | --enable-static[=PKGS] | |
1007 | build static libraries [default=yes] | |
d7040cdb SE |
1008 | --enable-fast-install[=PKGS] |
1009 | optimize for fast installation [default=yes] | |
6bf9431b BE |
1010 | --disable-libtool-lock avoid locking (might break parallel builds) |
1011 | --disable-nls do not use Native Language Support | |
1012 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1013 | (and sometimes confusing) to the casual installer | |
241a6c40 AM |
1014 | --enable-werror treat compile warnings as errors |
1015 | --enable-build-warnings enable build-time compiler warnings | |
6bf9431b BE |
1016 | |
1017 | Optional Packages: | |
1018 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1019 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1020 | --with-pic try to use only PIC/non-PIC objects [default=use |
1021 | both] | |
1022 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
252b5132 | 1023 | |
6bf9431b BE |
1024 | Some influential environment variables: |
1025 | CC C compiler command | |
1026 | CFLAGS C compiler flags | |
1027 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1028 | nonstandard directory <lib dir> | |
0ab6f085 AM |
1029 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1030 | headers in a nonstandard directory <include dir> | |
6bf9431b | 1031 | CPP C preprocessor |
252b5132 | 1032 | |
6bf9431b BE |
1033 | Use these variables to override the choices made by `configure' or to help |
1034 | it to find libraries and programs with nonstandard names/locations. | |
1035 | ||
1036 | _ACEOF | |
252b5132 RH |
1037 | fi |
1038 | ||
6bf9431b BE |
1039 | if test "$ac_init_help" = "recursive"; then |
1040 | # If there are subdirs, report their specific --help. | |
0ab6f085 | 1041 | ac_popdir=`pwd` |
6bf9431b | 1042 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
0ab6f085 | 1043 | test -d $ac_dir || continue |
6bf9431b | 1044 | ac_builddir=. |
252b5132 | 1045 | |
0ab6f085 | 1046 | if test "$ac_dir" != .; then |
6bf9431b | 1047 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
0ab6f085 AM |
1048 | # A "../" for each directory in $ac_dir_suffix. |
1049 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1050 | else | |
1051 | ac_dir_suffix= ac_top_builddir= | |
1052 | fi | |
6bf9431b BE |
1053 | |
1054 | case $srcdir in | |
0ab6f085 | 1055 | .) # No --srcdir option. We are building in place. |
6bf9431b | 1056 | ac_srcdir=. |
0ab6f085 AM |
1057 | if test -z "$ac_top_builddir"; then |
1058 | ac_top_srcdir=. | |
1059 | else | |
1060 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1061 | fi ;; | |
1062 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6bf9431b | 1063 | ac_srcdir=$srcdir$ac_dir_suffix; |
0ab6f085 AM |
1064 | ac_top_srcdir=$srcdir ;; |
1065 | *) # Relative path. | |
1066 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1067 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1068 | esac | |
1069 | ||
1070 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1071 | # the directories may not exist. | |
1072 | case `pwd` in | |
1073 | .) ac_abs_builddir="$ac_dir";; | |
1074 | *) | |
1075 | case "$ac_dir" in | |
1076 | .) ac_abs_builddir=`pwd`;; | |
1077 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1078 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1079 | esac;; | |
1080 | esac | |
1081 | case $ac_abs_builddir in | |
1082 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1083 | *) | |
1084 | case ${ac_top_builddir}. in | |
1085 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1086 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1087 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1088 | esac;; | |
6bf9431b | 1089 | esac |
0ab6f085 AM |
1090 | case $ac_abs_builddir in |
1091 | .) ac_abs_srcdir=$ac_srcdir;; | |
1092 | *) | |
1093 | case $ac_srcdir in | |
1094 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1095 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1096 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1097 | esac;; | |
1098 | esac | |
1099 | case $ac_abs_builddir in | |
1100 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1101 | *) | |
1102 | case $ac_top_srcdir in | |
1103 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1104 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1105 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1106 | esac;; | |
1107 | esac | |
1108 | ||
1109 | cd $ac_dir | |
1110 | # Check for guested configure; otherwise get Cygnus style configure. | |
1111 | if test -f $ac_srcdir/configure.gnu; then | |
1112 | echo | |
1113 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1114 | elif test -f $ac_srcdir/configure; then | |
1115 | echo | |
1116 | $SHELL $ac_srcdir/configure --help=recursive | |
1117 | elif test -f $ac_srcdir/configure.ac || | |
1118 | test -f $ac_srcdir/configure.in; then | |
1119 | echo | |
1120 | $ac_configure --help | |
6bf9431b BE |
1121 | else |
1122 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
0ab6f085 AM |
1123 | fi |
1124 | cd $ac_popdir | |
6bf9431b BE |
1125 | done |
1126 | fi | |
252b5132 | 1127 | |
0ab6f085 | 1128 | test -n "$ac_init_help" && exit 0 |
6bf9431b BE |
1129 | if $ac_init_version; then |
1130 | cat <<\_ACEOF | |
252b5132 | 1131 | |
0ab6f085 | 1132 | Copyright (C) 2003 Free Software Foundation, Inc. |
6bf9431b BE |
1133 | This configure script is free software; the Free Software Foundation |
1134 | gives unlimited permission to copy, distribute and modify it. | |
1135 | _ACEOF | |
0ab6f085 | 1136 | exit 0 |
6bf9431b | 1137 | fi |
0ab6f085 AM |
1138 | exec 5>config.log |
1139 | cat >&5 <<_ACEOF | |
6bf9431b BE |
1140 | This file contains any messages produced by compilers while |
1141 | running configure, to aid debugging if configure makes a mistake. | |
66477e87 | 1142 | |
6bf9431b | 1143 | It was created by $as_me, which was |
0ab6f085 | 1144 | generated by GNU Autoconf 2.59. Invocation command line was |
5d64ca4e | 1145 | |
6bf9431b | 1146 | $ $0 $@ |
5d64ca4e | 1147 | |
6bf9431b BE |
1148 | _ACEOF |
1149 | { | |
1150 | cat <<_ASUNAME | |
1151 | ## --------- ## | |
1152 | ## Platform. ## | |
1153 | ## --------- ## | |
1154 | ||
1155 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1156 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1157 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1158 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1159 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1160 | ||
1161 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1162 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1163 | ||
1164 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1165 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1166 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
0ab6f085 | 1167 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
6bf9431b BE |
1168 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1169 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1170 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1171 | ||
1172 | _ASUNAME | |
1173 | ||
1174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1175 | for as_dir in $PATH | |
1176 | do | |
1177 | IFS=$as_save_IFS | |
1178 | test -z "$as_dir" && as_dir=. | |
1179 | echo "PATH: $as_dir" | |
1180 | done | |
5d64ca4e | 1181 | |
6bf9431b | 1182 | } >&5 |
093872ec | 1183 | |
6bf9431b | 1184 | cat >&5 <<_ACEOF |
252b5132 | 1185 | |
6bf9431b BE |
1186 | |
1187 | ## ----------- ## | |
1188 | ## Core tests. ## | |
1189 | ## ----------- ## | |
1190 | ||
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | # Keep a trace of the command line. | |
1195 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1196 | # Strip out --silent because we don't want to record it for future runs. | |
1197 | # Also quote any args containing shell meta-characters. | |
1198 | # Make two passes to allow for proper duplicate-argument suppression. | |
1199 | ac_configure_args= | |
1200 | ac_configure_args0= | |
1201 | ac_configure_args1= | |
0ab6f085 | 1202 | ac_sep= |
6bf9431b BE |
1203 | ac_must_keep_next=false |
1204 | for ac_pass in 1 2 | |
1205 | do | |
1206 | for ac_arg | |
1207 | do | |
1208 | case $ac_arg in | |
1209 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1210 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1211 | | -silent | --silent | --silen | --sile | --sil) | |
1212 | continue ;; | |
0ab6f085 | 1213 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
6bf9431b BE |
1214 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1215 | esac | |
1216 | case $ac_pass in | |
1217 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1218 | 2) | |
1219 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1220 | if test $ac_must_keep_next = true; then | |
1221 | ac_must_keep_next=false # Got value, back to normal. | |
1222 | else | |
1223 | case $ac_arg in | |
1224 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1225 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1226 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1227 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1228 | case "$ac_configure_args0 " in | |
1229 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1230 | esac | |
1231 | ;; | |
1232 | -* ) ac_must_keep_next=true ;; | |
1233 | esac | |
1234 | fi | |
0ab6f085 AM |
1235 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1236 | # Get rid of the leading space. | |
1237 | ac_sep=" " | |
6bf9431b BE |
1238 | ;; |
1239 | esac | |
1240 | done | |
1241 | done | |
1242 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1243 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1244 | ||
1245 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1246 | # config.log. We remove comments because anyway the quotes in there | |
1247 | # would cause problems or look ugly. | |
0ab6f085 AM |
1248 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1249 | # such as our DU 5.0 friend, will then `close' the trap. | |
6bf9431b BE |
1250 | trap 'exit_status=$? |
1251 | # Save into config.log some information that might help in debugging. | |
1252 | { | |
1253 | echo | |
1254 | ||
1255 | cat <<\_ASBOX | |
1256 | ## ---------------- ## | |
1257 | ## Cache variables. ## | |
1258 | ## ---------------- ## | |
1259 | _ASBOX | |
1260 | echo | |
1261 | # The following way of writing the cache mishandles newlines in values, | |
0ab6f085 | 1262 | { |
6bf9431b | 1263 | (set) 2>&1 | |
0ab6f085 AM |
1264 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1265 | *ac_space=\ *) | |
6bf9431b | 1266 | sed -n \ |
0ab6f085 AM |
1267 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1268 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1269 | ;; | |
6bf9431b | 1270 | *) |
0ab6f085 AM |
1271 | sed -n \ |
1272 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6bf9431b | 1273 | ;; |
0ab6f085 AM |
1274 | esac; |
1275 | } | |
6bf9431b BE |
1276 | echo |
1277 | ||
1278 | cat <<\_ASBOX | |
1279 | ## ----------------- ## | |
1280 | ## Output variables. ## | |
1281 | ## ----------------- ## | |
1282 | _ASBOX | |
1283 | echo | |
1284 | for ac_var in $ac_subst_vars | |
1285 | do | |
0ab6f085 AM |
1286 | eval ac_val=$`echo $ac_var` |
1287 | echo "$ac_var='"'"'$ac_val'"'"'" | |
6bf9431b BE |
1288 | done | sort |
1289 | echo | |
1290 | ||
1291 | if test -n "$ac_subst_files"; then | |
1292 | cat <<\_ASBOX | |
0ab6f085 AM |
1293 | ## ------------- ## |
1294 | ## Output files. ## | |
1295 | ## ------------- ## | |
6bf9431b BE |
1296 | _ASBOX |
1297 | echo | |
1298 | for ac_var in $ac_subst_files | |
1299 | do | |
0ab6f085 AM |
1300 | eval ac_val=$`echo $ac_var` |
1301 | echo "$ac_var='"'"'$ac_val'"'"'" | |
6bf9431b BE |
1302 | done | sort |
1303 | echo | |
1304 | fi | |
1305 | ||
1306 | if test -s confdefs.h; then | |
1307 | cat <<\_ASBOX | |
1308 | ## ----------- ## | |
1309 | ## confdefs.h. ## | |
1310 | ## ----------- ## | |
1311 | _ASBOX | |
1312 | echo | |
0ab6f085 | 1313 | sed "/^$/d" confdefs.h | sort |
6bf9431b BE |
1314 | echo |
1315 | fi | |
1316 | test "$ac_signal" != 0 && | |
1317 | echo "$as_me: caught signal $ac_signal" | |
1318 | echo "$as_me: exit $exit_status" | |
1319 | } >&5 | |
0ab6f085 AM |
1320 | rm -f core *.core && |
1321 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
6bf9431b | 1322 | exit $exit_status |
0ab6f085 | 1323 | ' 0 |
6bf9431b BE |
1324 | for ac_signal in 1 2 13 15; do |
1325 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1326 | done | |
1327 | ac_signal=0 | |
1328 | ||
1329 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
0ab6f085 AM |
1330 | rm -rf conftest* confdefs.h |
1331 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1332 | echo >confdefs.h | |
6bf9431b BE |
1333 | |
1334 | # Predefined preprocessor variables. | |
1335 | ||
1336 | cat >>confdefs.h <<_ACEOF | |
1337 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1338 | _ACEOF | |
1339 | ||
1340 | ||
1341 | cat >>confdefs.h <<_ACEOF | |
1342 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1343 | _ACEOF | |
1344 | ||
1345 | ||
1346 | cat >>confdefs.h <<_ACEOF | |
1347 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1348 | _ACEOF | |
1349 | ||
1350 | ||
1351 | cat >>confdefs.h <<_ACEOF | |
1352 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1353 | _ACEOF | |
1354 | ||
1355 | ||
1356 | cat >>confdefs.h <<_ACEOF | |
1357 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1358 | _ACEOF | |
1359 | ||
1360 | ||
1361 | # Let the site file select an alternate cache file if it wants to. | |
1362 | # Prefer explicitly selected file to automatically selected ones. | |
0ab6f085 AM |
1363 | if test -z "$CONFIG_SITE"; then |
1364 | if test "x$prefix" != xNONE; then | |
1365 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1366 | else | |
1367 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1368 | fi | |
6bf9431b | 1369 | fi |
0ab6f085 | 1370 | for ac_site_file in $CONFIG_SITE; do |
6bf9431b BE |
1371 | if test -r "$ac_site_file"; then |
1372 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1373 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1374 | sed 's/^/| /' "$ac_site_file" >&5 | |
1375 | . "$ac_site_file" | |
1376 | fi | |
1377 | done | |
1378 | ||
1379 | if test -r "$cache_file"; then | |
1380 | # Some versions of bash will fail to source /dev/null (special | |
1381 | # files actually), so we avoid doing that. | |
1382 | if test -f "$cache_file"; then | |
1383 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1384 | echo "$as_me: loading cache $cache_file" >&6;} | |
1385 | case $cache_file in | |
0ab6f085 AM |
1386 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1387 | *) . ./$cache_file;; | |
6bf9431b BE |
1388 | esac |
1389 | fi | |
1390 | else | |
1391 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1392 | echo "$as_me: creating cache $cache_file" >&6;} | |
1393 | >$cache_file | |
1394 | fi | |
1395 | ||
1396 | # Check that the precious variables saved in the cache have kept the same | |
1397 | # value. | |
1398 | ac_cache_corrupted=false | |
0ab6f085 AM |
1399 | for ac_var in `(set) 2>&1 | |
1400 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
6bf9431b BE |
1401 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1402 | eval ac_new_set=\$ac_env_${ac_var}_set | |
0ab6f085 AM |
1403 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1404 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
6bf9431b BE |
1405 | case $ac_old_set,$ac_new_set in |
1406 | set,) | |
1407 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1408 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1409 | ac_cache_corrupted=: ;; | |
1410 | ,set) | |
1411 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1412 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1413 | ac_cache_corrupted=: ;; | |
1414 | ,);; | |
1415 | *) | |
1416 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1417 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1418 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1419 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1420 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1421 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1422 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1423 | ac_cache_corrupted=: | |
1424 | fi;; | |
1425 | esac | |
1426 | # Pass precious variables to config.status. | |
1427 | if test "$ac_new_set" = set; then | |
1428 | case $ac_new_val in | |
0ab6f085 AM |
1429 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1430 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6bf9431b BE |
1431 | *) ac_arg=$ac_var=$ac_new_val ;; |
1432 | esac | |
1433 | case " $ac_configure_args " in | |
1434 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1435 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1436 | esac | |
1437 | fi | |
1438 | done | |
1439 | if $ac_cache_corrupted; then | |
1440 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1441 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1442 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1443 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1444 | { (exit 1); exit 1; }; } | |
1445 | fi | |
1446 | ||
0ab6f085 AM |
1447 | ac_ext=c |
1448 | ac_cpp='$CPP $CPPFLAGS' | |
1449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1452 | ||
6bf9431b BE |
1453 | |
1454 | ||
1455 | ||
1456 | ||
1457 | ||
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ac_aux_dir= | |
0ab6f085 AM |
1474 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1475 | if test -f $ac_dir/install-sh; then | |
6bf9431b BE |
1476 | ac_aux_dir=$ac_dir |
1477 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1478 | break | |
0ab6f085 | 1479 | elif test -f $ac_dir/install.sh; then |
6bf9431b BE |
1480 | ac_aux_dir=$ac_dir |
1481 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1482 | break | |
0ab6f085 | 1483 | elif test -f $ac_dir/shtool; then |
6bf9431b BE |
1484 | ac_aux_dir=$ac_dir |
1485 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1486 | break | |
1487 | fi | |
1488 | done | |
1489 | if test -z "$ac_aux_dir"; then | |
0ab6f085 AM |
1490 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1491 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
6bf9431b BE |
1492 | { (exit 1); exit 1; }; } |
1493 | fi | |
0ab6f085 AM |
1494 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1495 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1496 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
6bf9431b BE |
1497 | |
1498 | # Make sure we can run config.sub. | |
0ab6f085 AM |
1499 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1500 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1501 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
6bf9431b BE |
1502 | { (exit 1); exit 1; }; } |
1503 | ||
0ab6f085 AM |
1504 | echo "$as_me:$LINENO: checking build system type" >&5 |
1505 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
6bf9431b BE |
1506 | if test "${ac_cv_build+set}" = set; then |
1507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1508 | else | |
0ab6f085 AM |
1509 | ac_cv_build_alias=$build_alias |
1510 | test -z "$ac_cv_build_alias" && | |
1511 | ac_cv_build_alias=`$ac_config_guess` | |
1512 | test -z "$ac_cv_build_alias" && | |
6bf9431b BE |
1513 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1514 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1515 | { (exit 1); exit 1; }; } | |
0ab6f085 AM |
1516 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1517 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1518 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
6bf9431b BE |
1519 | { (exit 1); exit 1; }; } |
1520 | ||
1521 | fi | |
0ab6f085 AM |
1522 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1523 | echo "${ECHO_T}$ac_cv_build" >&6 | |
6bf9431b | 1524 | build=$ac_cv_build |
0ab6f085 AM |
1525 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1526 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1527 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1528 | ||
1529 | ||
1530 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1531 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
6bf9431b BE |
1532 | if test "${ac_cv_host+set}" = set; then |
1533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1534 | else | |
0ab6f085 AM |
1535 | ac_cv_host_alias=$host_alias |
1536 | test -z "$ac_cv_host_alias" && | |
1537 | ac_cv_host_alias=$ac_cv_build_alias | |
1538 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1539 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1540 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
6bf9431b BE |
1541 | { (exit 1); exit 1; }; } |
1542 | ||
1543 | fi | |
0ab6f085 AM |
1544 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1545 | echo "${ECHO_T}$ac_cv_host" >&6 | |
6bf9431b | 1546 | host=$ac_cv_host |
0ab6f085 AM |
1547 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1548 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1549 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1550 | ||
1551 | ||
1552 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1553 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
6bf9431b BE |
1554 | if test "${ac_cv_target+set}" = set; then |
1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1556 | else | |
0ab6f085 AM |
1557 | ac_cv_target_alias=$target_alias |
1558 | test "x$ac_cv_target_alias" = "x" && | |
1559 | ac_cv_target_alias=$ac_cv_host_alias | |
1560 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1561 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1562 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
6bf9431b BE |
1563 | { (exit 1); exit 1; }; } |
1564 | ||
1565 | fi | |
0ab6f085 AM |
1566 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1567 | echo "${ECHO_T}$ac_cv_target" >&6 | |
6bf9431b | 1568 | target=$ac_cv_target |
0ab6f085 AM |
1569 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1570 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1571 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
6bf9431b BE |
1572 | |
1573 | ||
1574 | # The aliases save the names the user supplied, while $host etc. | |
1575 | # will get canonicalized. | |
1576 | test -n "$target_alias" && | |
1577 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1578 | NONENONEs,x,x, && | |
1579 | program_prefix=${target_alias}- | |
1580 | ac_ext=c | |
1581 | ac_cpp='$CPP $CPPFLAGS' | |
1582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1585 | if test -n "$ac_tool_prefix"; then | |
1586 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1587 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
0ab6f085 AM |
1588 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1590 | if test "${ac_cv_prog_CC+set}" = set; then |
1591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1592 | else | |
1593 | if test -n "$CC"; then | |
1594 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1595 | else | |
1596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1597 | for as_dir in $PATH | |
1598 | do | |
1599 | IFS=$as_save_IFS | |
1600 | test -z "$as_dir" && as_dir=. | |
1601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1602 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1603 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1605 | break 2 | |
1606 | fi | |
1607 | done | |
1608 | done | |
1609 | ||
1610 | fi | |
1611 | fi | |
1612 | CC=$ac_cv_prog_CC | |
1613 | if test -n "$CC"; then | |
0ab6f085 AM |
1614 | echo "$as_me:$LINENO: result: $CC" >&5 |
1615 | echo "${ECHO_T}$CC" >&6 | |
6bf9431b | 1616 | else |
0ab6f085 AM |
1617 | echo "$as_me:$LINENO: result: no" >&5 |
1618 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1619 | fi |
1620 | ||
1621 | fi | |
1622 | if test -z "$ac_cv_prog_CC"; then | |
1623 | ac_ct_CC=$CC | |
1624 | # Extract the first word of "gcc", so it can be a program name with args. | |
1625 | set dummy gcc; ac_word=$2 | |
0ab6f085 AM |
1626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1628 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1630 | else | |
1631 | if test -n "$ac_ct_CC"; then | |
1632 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1633 | else | |
1634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1635 | for as_dir in $PATH | |
1636 | do | |
1637 | IFS=$as_save_IFS | |
1638 | test -z "$as_dir" && as_dir=. | |
1639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1640 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1641 | ac_cv_prog_ac_ct_CC="gcc" |
1642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1643 | break 2 | |
1644 | fi | |
1645 | done | |
1646 | done | |
1647 | ||
1648 | fi | |
1649 | fi | |
1650 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1651 | if test -n "$ac_ct_CC"; then | |
0ab6f085 AM |
1652 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1653 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
6bf9431b | 1654 | else |
0ab6f085 AM |
1655 | echo "$as_me:$LINENO: result: no" >&5 |
1656 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1657 | fi |
1658 | ||
0ab6f085 | 1659 | CC=$ac_ct_CC |
6bf9431b BE |
1660 | else |
1661 | CC="$ac_cv_prog_CC" | |
1662 | fi | |
1663 | ||
1664 | if test -z "$CC"; then | |
0ab6f085 AM |
1665 | if test -n "$ac_tool_prefix"; then |
1666 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6bf9431b | 1667 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
0ab6f085 AM |
1668 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1670 | if test "${ac_cv_prog_CC+set}" = set; then |
1671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1672 | else | |
1673 | if test -n "$CC"; then | |
1674 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1675 | else | |
1676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1677 | for as_dir in $PATH | |
1678 | do | |
1679 | IFS=$as_save_IFS | |
1680 | test -z "$as_dir" && as_dir=. | |
1681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1682 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1683 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1685 | break 2 | |
1686 | fi | |
1687 | done | |
1688 | done | |
1689 | ||
1690 | fi | |
1691 | fi | |
1692 | CC=$ac_cv_prog_CC | |
1693 | if test -n "$CC"; then | |
0ab6f085 AM |
1694 | echo "$as_me:$LINENO: result: $CC" >&5 |
1695 | echo "${ECHO_T}$CC" >&6 | |
6bf9431b | 1696 | else |
0ab6f085 AM |
1697 | echo "$as_me:$LINENO: result: no" >&5 |
1698 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1699 | fi |
1700 | ||
0ab6f085 AM |
1701 | fi |
1702 | if test -z "$ac_cv_prog_CC"; then | |
1703 | ac_ct_CC=$CC | |
1704 | # Extract the first word of "cc", so it can be a program name with args. | |
1705 | set dummy cc; ac_word=$2 | |
1706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1708 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1710 | else | |
1711 | if test -n "$ac_ct_CC"; then | |
1712 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1713 | else | |
1714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1715 | for as_dir in $PATH | |
1716 | do | |
1717 | IFS=$as_save_IFS | |
1718 | test -z "$as_dir" && as_dir=. | |
1719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1721 | ac_cv_prog_ac_ct_CC="cc" | |
1722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1723 | break 2 | |
1b9750d6 | 1724 | fi |
0ab6f085 AM |
1725 | done |
1726 | done | |
1727 | ||
1728 | fi | |
1729 | fi | |
1730 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1731 | if test -n "$ac_ct_CC"; then | |
1732 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1733 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1734 | else | |
1735 | echo "$as_me:$LINENO: result: no" >&5 | |
1736 | echo "${ECHO_T}no" >&6 | |
1737 | fi | |
1738 | ||
1739 | CC=$ac_ct_CC | |
1740 | else | |
1741 | CC="$ac_cv_prog_CC" | |
1742 | fi | |
1743 | ||
6bf9431b BE |
1744 | fi |
1745 | if test -z "$CC"; then | |
1746 | # Extract the first word of "cc", so it can be a program name with args. | |
1747 | set dummy cc; ac_word=$2 | |
0ab6f085 AM |
1748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1750 | if test "${ac_cv_prog_CC+set}" = set; then |
1751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1752 | else | |
1753 | if test -n "$CC"; then | |
1754 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1755 | else | |
1756 | ac_prog_rejected=no | |
1757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1758 | for as_dir in $PATH | |
1759 | do | |
1760 | IFS=$as_save_IFS | |
1761 | test -z "$as_dir" && as_dir=. | |
1762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1764 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1765 | ac_prog_rejected=yes | |
1766 | continue | |
1767 | fi | |
1768 | ac_cv_prog_CC="cc" | |
1769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1770 | break 2 | |
1771 | fi | |
1772 | done | |
1773 | done | |
1774 | ||
1775 | if test $ac_prog_rejected = yes; then | |
1776 | # We found a bogon in the path, so make sure we never use it. | |
1777 | set dummy $ac_cv_prog_CC | |
1778 | shift | |
1779 | if test $# != 0; then | |
1780 | # We chose a different compiler from the bogus one. | |
1781 | # However, it has the same basename, so the bogon will be chosen | |
1782 | # first if we set CC to just the basename; use the full file name. | |
1783 | shift | |
1784 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1785 | fi | |
1786 | fi | |
1787 | fi | |
1788 | fi | |
1789 | CC=$ac_cv_prog_CC | |
1790 | if test -n "$CC"; then | |
0ab6f085 AM |
1791 | echo "$as_me:$LINENO: result: $CC" >&5 |
1792 | echo "${ECHO_T}$CC" >&6 | |
6bf9431b | 1793 | else |
0ab6f085 AM |
1794 | echo "$as_me:$LINENO: result: no" >&5 |
1795 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1796 | fi |
1797 | ||
1798 | fi | |
1799 | if test -z "$CC"; then | |
1800 | if test -n "$ac_tool_prefix"; then | |
0ab6f085 | 1801 | for ac_prog in cl |
6bf9431b BE |
1802 | do |
1803 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1804 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
0ab6f085 AM |
1805 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1807 | if test "${ac_cv_prog_CC+set}" = set; then |
1808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1809 | else | |
1810 | if test -n "$CC"; then | |
1811 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1812 | else | |
1813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1814 | for as_dir in $PATH | |
1815 | do | |
1816 | IFS=$as_save_IFS | |
1817 | test -z "$as_dir" && as_dir=. | |
1818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1819 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1820 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1822 | break 2 | |
1823 | fi | |
1824 | done | |
1825 | done | |
1826 | ||
1827 | fi | |
1828 | fi | |
1829 | CC=$ac_cv_prog_CC | |
1830 | if test -n "$CC"; then | |
0ab6f085 AM |
1831 | echo "$as_me:$LINENO: result: $CC" >&5 |
1832 | echo "${ECHO_T}$CC" >&6 | |
6bf9431b | 1833 | else |
0ab6f085 AM |
1834 | echo "$as_me:$LINENO: result: no" >&5 |
1835 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1836 | fi |
1837 | ||
1838 | test -n "$CC" && break | |
1839 | done | |
1840 | fi | |
1841 | if test -z "$CC"; then | |
1842 | ac_ct_CC=$CC | |
0ab6f085 | 1843 | for ac_prog in cl |
6bf9431b BE |
1844 | do |
1845 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1846 | set dummy $ac_prog; ac_word=$2 | |
0ab6f085 AM |
1847 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
1849 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1851 | else | |
1852 | if test -n "$ac_ct_CC"; then | |
1853 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1854 | else | |
1855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1856 | for as_dir in $PATH | |
1857 | do | |
1858 | IFS=$as_save_IFS | |
1859 | test -z "$as_dir" && as_dir=. | |
1860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 1861 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
1862 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1864 | break 2 | |
1865 | fi | |
1866 | done | |
1867 | done | |
1868 | ||
1869 | fi | |
1870 | fi | |
1871 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1872 | if test -n "$ac_ct_CC"; then | |
0ab6f085 AM |
1873 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1874 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
6bf9431b | 1875 | else |
0ab6f085 AM |
1876 | echo "$as_me:$LINENO: result: no" >&5 |
1877 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
1878 | fi |
1879 | ||
1880 | test -n "$ac_ct_CC" && break | |
1881 | done | |
1882 | ||
0ab6f085 | 1883 | CC=$ac_ct_CC |
6bf9431b BE |
1884 | fi |
1885 | ||
1886 | fi | |
1887 | ||
1888 | ||
1889 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1890 | See \`config.log' for more details." >&5 | |
1891 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1892 | See \`config.log' for more details." >&2;} | |
1893 | { (exit 1); exit 1; }; } | |
1894 | ||
1895 | # Provide some information about the compiler. | |
0ab6f085 AM |
1896 | echo "$as_me:$LINENO:" \ |
1897 | "checking for C compiler version" >&5 | |
6bf9431b | 1898 | ac_compiler=`set X $ac_compile; echo $2` |
0ab6f085 AM |
1899 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1900 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
6bf9431b BE |
1901 | ac_status=$? |
1902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1903 | (exit $ac_status); } | |
0ab6f085 AM |
1904 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1905 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
6bf9431b BE |
1906 | ac_status=$? |
1907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1908 | (exit $ac_status); } | |
0ab6f085 AM |
1909 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1910 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
6bf9431b BE |
1911 | ac_status=$? |
1912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1913 | (exit $ac_status); } | |
1914 | ||
1915 | cat >conftest.$ac_ext <<_ACEOF | |
1916 | /* confdefs.h. */ | |
1917 | _ACEOF | |
1918 | cat confdefs.h >>conftest.$ac_ext | |
1919 | cat >>conftest.$ac_ext <<_ACEOF | |
1920 | /* end confdefs.h. */ | |
1921 | ||
1922 | int | |
1923 | main () | |
1924 | { | |
1925 | ||
1926 | ; | |
1927 | return 0; | |
1928 | } | |
1929 | _ACEOF | |
1930 | ac_clean_files_save=$ac_clean_files | |
1931 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1932 | # Try to create an executable without -o first, disregard a.out. | |
1933 | # It will help us diagnose broken compilers, and finding out an intuition | |
1934 | # of exeext. | |
0ab6f085 AM |
1935 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1936 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
6bf9431b | 1937 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
0ab6f085 AM |
1938 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1939 | (eval $ac_link_default) 2>&5 | |
6bf9431b BE |
1940 | ac_status=$? |
1941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1942 | (exit $ac_status); }; then | |
0ab6f085 AM |
1943 | # Find the output, starting from the most likely. This scheme is |
1944 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1945 | # resort. | |
1946 | ||
1947 | # Be careful to initialize this variable, since it used to be cached. | |
1948 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1949 | ac_cv_exeext= | |
1950 | # b.out is created by i960 compilers. | |
1951 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
6bf9431b BE |
1952 | do |
1953 | test -f "$ac_file" || continue | |
1954 | case $ac_file in | |
0ab6f085 AM |
1955 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1956 | ;; | |
1957 | conftest.$ac_ext ) | |
1958 | # This is the source file. | |
6bf9431b BE |
1959 | ;; |
1960 | [ab].out ) | |
1961 | # We found the default executable, but exeext='' is most | |
1962 | # certainly right. | |
1963 | break;; | |
1964 | *.* ) | |
0ab6f085 AM |
1965 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1966 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1967 | # but it would be cool to find out if it's true. Does anybody | |
1968 | # maintain Libtool? --akim. | |
1969 | export ac_cv_exeext | |
6bf9431b BE |
1970 | break;; |
1971 | * ) | |
1972 | break;; | |
1973 | esac | |
1974 | done | |
1975 | else | |
1976 | echo "$as_me: failed program was:" >&5 | |
1977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1978 | ||
1979 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1980 | See \`config.log' for more details." >&5 | |
1981 | echo "$as_me: error: C compiler cannot create executables | |
1982 | See \`config.log' for more details." >&2;} | |
1983 | { (exit 77); exit 77; }; } | |
1984 | fi | |
1985 | ||
1986 | ac_exeext=$ac_cv_exeext | |
0ab6f085 AM |
1987 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
1988 | echo "${ECHO_T}$ac_file" >&6 | |
6bf9431b | 1989 | |
0ab6f085 | 1990 | # Check the compiler produces executables we can run. If not, either |
6bf9431b | 1991 | # the compiler is broken, or we cross compile. |
0ab6f085 AM |
1992 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1993 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
6bf9431b BE |
1994 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1995 | # If not cross compiling, check that we can run a simple program. | |
1996 | if test "$cross_compiling" != yes; then | |
1997 | if { ac_try='./$ac_file' | |
0ab6f085 AM |
1998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1999 | (eval $ac_try) 2>&5 | |
6bf9431b BE |
2000 | ac_status=$? |
2001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2002 | (exit $ac_status); }; }; then | |
2003 | cross_compiling=no | |
2004 | else | |
2005 | if test "$cross_compiling" = maybe; then | |
2006 | cross_compiling=yes | |
2007 | else | |
2008 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2009 | If you meant to cross compile, use \`--host'. | |
2010 | See \`config.log' for more details." >&5 | |
2011 | echo "$as_me: error: cannot run C compiled programs. | |
2012 | If you meant to cross compile, use \`--host'. | |
2013 | See \`config.log' for more details." >&2;} | |
2014 | { (exit 1); exit 1; }; } | |
2015 | fi | |
2016 | fi | |
2017 | fi | |
0ab6f085 AM |
2018 | echo "$as_me:$LINENO: result: yes" >&5 |
2019 | echo "${ECHO_T}yes" >&6 | |
6bf9431b BE |
2020 | |
2021 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2022 | ac_clean_files=$ac_clean_files_save | |
0ab6f085 | 2023 | # Check the compiler produces executables we can run. If not, either |
6bf9431b | 2024 | # the compiler is broken, or we cross compile. |
0ab6f085 AM |
2025 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2026 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2027 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2028 | echo "${ECHO_T}$cross_compiling" >&6 | |
2029 | ||
2030 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2031 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2033 | (eval $ac_link) 2>&5 | |
6bf9431b BE |
2034 | ac_status=$? |
2035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2036 | (exit $ac_status); }; then | |
2037 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2038 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2039 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2040 | # `rm'. | |
2041 | for ac_file in conftest.exe conftest conftest.*; do | |
2042 | test -f "$ac_file" || continue | |
2043 | case $ac_file in | |
0ab6f085 | 2044 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
6bf9431b | 2045 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
0ab6f085 | 2046 | export ac_cv_exeext |
6bf9431b BE |
2047 | break;; |
2048 | * ) break;; | |
2049 | esac | |
2050 | done | |
2051 | else | |
2052 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2053 | See \`config.log' for more details." >&5 | |
2054 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2055 | See \`config.log' for more details." >&2;} | |
2056 | { (exit 1); exit 1; }; } | |
2057 | fi | |
2058 | ||
2059 | rm -f conftest$ac_cv_exeext | |
0ab6f085 AM |
2060 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2061 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
6bf9431b BE |
2062 | |
2063 | rm -f conftest.$ac_ext | |
2064 | EXEEXT=$ac_cv_exeext | |
2065 | ac_exeext=$EXEEXT | |
0ab6f085 AM |
2066 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2067 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
6bf9431b BE |
2068 | if test "${ac_cv_objext+set}" = set; then |
2069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2070 | else | |
2071 | cat >conftest.$ac_ext <<_ACEOF | |
2072 | /* confdefs.h. */ | |
2073 | _ACEOF | |
2074 | cat confdefs.h >>conftest.$ac_ext | |
2075 | cat >>conftest.$ac_ext <<_ACEOF | |
2076 | /* end confdefs.h. */ | |
2077 | ||
2078 | int | |
2079 | main () | |
2080 | { | |
2081 | ||
2082 | ; | |
2083 | return 0; | |
2084 | } | |
2085 | _ACEOF | |
2086 | rm -f conftest.o conftest.obj | |
0ab6f085 AM |
2087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2088 | (eval $ac_compile) 2>&5 | |
6bf9431b BE |
2089 | ac_status=$? |
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2091 | (exit $ac_status); }; then | |
0ab6f085 | 2092 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
6bf9431b | 2093 | case $ac_file in |
0ab6f085 | 2094 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
6bf9431b BE |
2095 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2096 | break;; | |
2097 | esac | |
2098 | done | |
2099 | else | |
2100 | echo "$as_me: failed program was:" >&5 | |
2101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2102 | ||
2103 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2104 | See \`config.log' for more details." >&5 | |
2105 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2106 | See \`config.log' for more details." >&2;} | |
2107 | { (exit 1); exit 1; }; } | |
2108 | fi | |
2109 | ||
2110 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2111 | fi | |
0ab6f085 AM |
2112 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2113 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
6bf9431b BE |
2114 | OBJEXT=$ac_cv_objext |
2115 | ac_objext=$OBJEXT | |
0ab6f085 AM |
2116 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2117 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
6bf9431b BE |
2118 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2120 | else | |
2121 | cat >conftest.$ac_ext <<_ACEOF | |
2122 | /* confdefs.h. */ | |
2123 | _ACEOF | |
2124 | cat confdefs.h >>conftest.$ac_ext | |
2125 | cat >>conftest.$ac_ext <<_ACEOF | |
2126 | /* end confdefs.h. */ | |
2127 | ||
2128 | int | |
2129 | main () | |
2130 | { | |
2131 | #ifndef __GNUC__ | |
2132 | choke me | |
2133 | #endif | |
2134 | ||
2135 | ; | |
2136 | return 0; | |
2137 | } | |
2138 | _ACEOF | |
2139 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
2140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2141 | (eval $ac_compile) 2>conftest.er1 | |
6bf9431b BE |
2142 | ac_status=$? |
2143 | grep -v '^ *+' conftest.er1 >conftest.err | |
2144 | rm -f conftest.er1 | |
2145 | cat conftest.err >&5 | |
2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2147 | (exit $ac_status); } && |
2148 | { ac_try='test -z "$ac_c_werror_flag" | |
2149 | || test ! -s conftest.err' | |
2150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2151 | (eval $ac_try) 2>&5 | |
2152 | ac_status=$? | |
2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2154 | (exit $ac_status); }; } && | |
2155 | { ac_try='test -s conftest.$ac_objext' | |
2156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2157 | (eval $ac_try) 2>&5 | |
2158 | ac_status=$? | |
2159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2160 | (exit $ac_status); }; }; then | |
6bf9431b BE |
2161 | ac_compiler_gnu=yes |
2162 | else | |
2163 | echo "$as_me: failed program was:" >&5 | |
2164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2165 | ||
0ab6f085 | 2166 | ac_compiler_gnu=no |
6bf9431b | 2167 | fi |
0ab6f085 | 2168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bf9431b BE |
2169 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2170 | ||
2171 | fi | |
0ab6f085 AM |
2172 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2173 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
6bf9431b BE |
2174 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2175 | ac_test_CFLAGS=${CFLAGS+set} | |
2176 | ac_save_CFLAGS=$CFLAGS | |
0ab6f085 AM |
2177 | CFLAGS="-g" |
2178 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2179 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
6bf9431b BE |
2180 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2182 | else | |
0ab6f085 | 2183 | cat >conftest.$ac_ext <<_ACEOF |
6bf9431b BE |
2184 | /* confdefs.h. */ |
2185 | _ACEOF | |
2186 | cat confdefs.h >>conftest.$ac_ext | |
2187 | cat >>conftest.$ac_ext <<_ACEOF | |
2188 | /* end confdefs.h. */ | |
2189 | ||
2190 | int | |
2191 | main () | |
2192 | { | |
2193 | ||
2194 | ; | |
2195 | return 0; | |
2196 | } | |
2197 | _ACEOF | |
2198 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
2199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2200 | (eval $ac_compile) 2>conftest.er1 | |
6bf9431b BE |
2201 | ac_status=$? |
2202 | grep -v '^ *+' conftest.er1 >conftest.err | |
2203 | rm -f conftest.er1 | |
2204 | cat conftest.err >&5 | |
2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2206 | (exit $ac_status); } && |
2207 | { ac_try='test -z "$ac_c_werror_flag" | |
2208 | || test ! -s conftest.err' | |
2209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2210 | (eval $ac_try) 2>&5 | |
6bf9431b BE |
2211 | ac_status=$? |
2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2213 | (exit $ac_status); }; } && |
2214 | { ac_try='test -s conftest.$ac_objext' | |
2215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2216 | (eval $ac_try) 2>&5 | |
6bf9431b BE |
2217 | ac_status=$? |
2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 | 2219 | (exit $ac_status); }; }; then |
6bf9431b BE |
2220 | ac_cv_prog_cc_g=yes |
2221 | else | |
2222 | echo "$as_me: failed program was:" >&5 | |
2223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2224 | ||
0ab6f085 | 2225 | ac_cv_prog_cc_g=no |
6bf9431b | 2226 | fi |
0ab6f085 | 2227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bf9431b | 2228 | fi |
0ab6f085 AM |
2229 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2230 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
6bf9431b BE |
2231 | if test "$ac_test_CFLAGS" = set; then |
2232 | CFLAGS=$ac_save_CFLAGS | |
2233 | elif test $ac_cv_prog_cc_g = yes; then | |
2234 | if test "$GCC" = yes; then | |
2235 | CFLAGS="-g -O2" | |
2236 | else | |
2237 | CFLAGS="-g" | |
2238 | fi | |
2239 | else | |
2240 | if test "$GCC" = yes; then | |
2241 | CFLAGS="-O2" | |
2242 | else | |
2243 | CFLAGS= | |
2244 | fi | |
2245 | fi | |
0ab6f085 AM |
2246 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2247 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2248 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
6bf9431b BE |
2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2250 | else | |
0ab6f085 | 2251 | ac_cv_prog_cc_stdc=no |
6bf9431b BE |
2252 | ac_save_CC=$CC |
2253 | cat >conftest.$ac_ext <<_ACEOF | |
2254 | /* confdefs.h. */ | |
2255 | _ACEOF | |
2256 | cat confdefs.h >>conftest.$ac_ext | |
2257 | cat >>conftest.$ac_ext <<_ACEOF | |
2258 | /* end confdefs.h. */ | |
2259 | #include <stdarg.h> | |
2260 | #include <stdio.h> | |
2261 | #include <sys/types.h> | |
2262 | #include <sys/stat.h> | |
2263 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2264 | struct buf { int x; }; | |
2265 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2266 | static char *e (p, i) | |
2267 | char **p; | |
2268 | int i; | |
2269 | { | |
2270 | return p[i]; | |
2271 | } | |
2272 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2273 | { | |
2274 | char *s; | |
2275 | va_list v; | |
2276 | va_start (v,p); | |
2277 | s = g (p, va_arg (v,int)); | |
2278 | va_end (v); | |
2279 | return s; | |
2280 | } | |
2281 | ||
2282 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2283 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2284 | These don't provoke an error unfortunately, instead are silently treated | |
0ab6f085 | 2285 | as 'x'. The following induces an error, until -std1 is added to get |
6bf9431b BE |
2286 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2287 | array size at least. It's necessary to write '\x00'==0 to get something | |
0ab6f085 | 2288 | that's true only with -std1. */ |
6bf9431b BE |
2289 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2290 | ||
2291 | int test (int i, double x); | |
2292 | struct s1 {int (*f) (int a);}; | |
2293 | struct s2 {int (*f) (double a);}; | |
2294 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2295 | int argc; | |
2296 | char **argv; | |
2297 | int | |
2298 | main () | |
2299 | { | |
2300 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2301 | ; | |
2302 | return 0; | |
2303 | } | |
2304 | _ACEOF | |
0ab6f085 AM |
2305 | # Don't try gcc -ansi; that turns off useful extensions and |
2306 | # breaks some systems' header files. | |
2307 | # AIX -qlanglvl=ansi | |
2308 | # Ultrix and OSF/1 -std1 | |
2309 | # HP-UX 10.20 and later -Ae | |
2310 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2311 | # SVR4 -Xc -D__EXTENSIONS__ | |
2312 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
6bf9431b BE |
2313 | do |
2314 | CC="$ac_save_CC $ac_arg" | |
2315 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
2316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2317 | (eval $ac_compile) 2>conftest.er1 | |
6bf9431b BE |
2318 | ac_status=$? |
2319 | grep -v '^ *+' conftest.er1 >conftest.err | |
2320 | rm -f conftest.er1 | |
2321 | cat conftest.err >&5 | |
2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2323 | (exit $ac_status); } && |
2324 | { ac_try='test -z "$ac_c_werror_flag" | |
2325 | || test ! -s conftest.err' | |
2326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2327 | (eval $ac_try) 2>&5 | |
2328 | ac_status=$? | |
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2330 | (exit $ac_status); }; } && | |
2331 | { ac_try='test -s conftest.$ac_objext' | |
2332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2333 | (eval $ac_try) 2>&5 | |
2334 | ac_status=$? | |
2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2336 | (exit $ac_status); }; }; then | |
2337 | ac_cv_prog_cc_stdc=$ac_arg | |
2338 | break | |
6bf9431b BE |
2339 | else |
2340 | echo "$as_me: failed program was:" >&5 | |
2341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2342 | ||
2343 | fi | |
0ab6f085 | 2344 | rm -f conftest.err conftest.$ac_objext |
6bf9431b | 2345 | done |
0ab6f085 | 2346 | rm -f conftest.$ac_ext conftest.$ac_objext |
6bf9431b BE |
2347 | CC=$ac_save_CC |
2348 | ||
2349 | fi | |
0ab6f085 AM |
2350 | |
2351 | case "x$ac_cv_prog_cc_stdc" in | |
2352 | x|xno) | |
2353 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2354 | echo "${ECHO_T}none needed" >&6 ;; | |
6bf9431b | 2355 | *) |
0ab6f085 AM |
2356 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2357 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2358 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
6bf9431b BE |
2359 | esac |
2360 | ||
0ab6f085 AM |
2361 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2362 | # in C++ we need to declare it. In case someone uses the same compiler | |
2363 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2364 | # the declaration of exit, since it's the most demanding environment. | |
2365 | cat >conftest.$ac_ext <<_ACEOF | |
2366 | #ifndef __cplusplus | |
2367 | choke me | |
2368 | #endif | |
2369 | _ACEOF | |
2370 | rm -f conftest.$ac_objext | |
2371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2372 | (eval $ac_compile) 2>conftest.er1 | |
2373 | ac_status=$? | |
2374 | grep -v '^ *+' conftest.er1 >conftest.err | |
2375 | rm -f conftest.er1 | |
2376 | cat conftest.err >&5 | |
2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2378 | (exit $ac_status); } && | |
2379 | { ac_try='test -z "$ac_c_werror_flag" | |
2380 | || test ! -s conftest.err' | |
2381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2382 | (eval $ac_try) 2>&5 | |
2383 | ac_status=$? | |
2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2385 | (exit $ac_status); }; } && | |
2386 | { ac_try='test -s conftest.$ac_objext' | |
2387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2388 | (eval $ac_try) 2>&5 | |
2389 | ac_status=$? | |
2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2391 | (exit $ac_status); }; }; then | |
2392 | for ac_declaration in \ | |
2393 | '' \ | |
2394 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2395 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2396 | 'extern "C" void exit (int) throw ();' \ | |
2397 | 'extern "C" void exit (int);' \ | |
2398 | 'void exit (int);' | |
2399 | do | |
2400 | cat >conftest.$ac_ext <<_ACEOF | |
2401 | /* confdefs.h. */ | |
2402 | _ACEOF | |
2403 | cat confdefs.h >>conftest.$ac_ext | |
2404 | cat >>conftest.$ac_ext <<_ACEOF | |
2405 | /* end confdefs.h. */ | |
2406 | $ac_declaration | |
2407 | #include <stdlib.h> | |
2408 | int | |
2409 | main () | |
2410 | { | |
2411 | exit (42); | |
2412 | ; | |
2413 | return 0; | |
2414 | } | |
2415 | _ACEOF | |
2416 | rm -f conftest.$ac_objext | |
2417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2418 | (eval $ac_compile) 2>conftest.er1 | |
2419 | ac_status=$? | |
2420 | grep -v '^ *+' conftest.er1 >conftest.err | |
2421 | rm -f conftest.er1 | |
2422 | cat conftest.err >&5 | |
2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2424 | (exit $ac_status); } && | |
2425 | { ac_try='test -z "$ac_c_werror_flag" | |
2426 | || test ! -s conftest.err' | |
2427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2428 | (eval $ac_try) 2>&5 | |
2429 | ac_status=$? | |
2430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2431 | (exit $ac_status); }; } && | |
2432 | { ac_try='test -s conftest.$ac_objext' | |
2433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2434 | (eval $ac_try) 2>&5 | |
2435 | ac_status=$? | |
2436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2437 | (exit $ac_status); }; }; then | |
2438 | : | |
2439 | else | |
2440 | echo "$as_me: failed program was:" >&5 | |
2441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2442 | ||
2443 | continue | |
2444 | fi | |
2445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2446 | cat >conftest.$ac_ext <<_ACEOF | |
2447 | /* confdefs.h. */ | |
2448 | _ACEOF | |
2449 | cat confdefs.h >>conftest.$ac_ext | |
2450 | cat >>conftest.$ac_ext <<_ACEOF | |
2451 | /* end confdefs.h. */ | |
2452 | $ac_declaration | |
2453 | int | |
2454 | main () | |
2455 | { | |
2456 | exit (42); | |
2457 | ; | |
2458 | return 0; | |
2459 | } | |
2460 | _ACEOF | |
2461 | rm -f conftest.$ac_objext | |
2462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2463 | (eval $ac_compile) 2>conftest.er1 | |
2464 | ac_status=$? | |
2465 | grep -v '^ *+' conftest.er1 >conftest.err | |
2466 | rm -f conftest.er1 | |
2467 | cat conftest.err >&5 | |
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2469 | (exit $ac_status); } && | |
2470 | { ac_try='test -z "$ac_c_werror_flag" | |
2471 | || test ! -s conftest.err' | |
2472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2473 | (eval $ac_try) 2>&5 | |
2474 | ac_status=$? | |
2475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2476 | (exit $ac_status); }; } && | |
2477 | { ac_try='test -s conftest.$ac_objext' | |
2478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2479 | (eval $ac_try) 2>&5 | |
2480 | ac_status=$? | |
2481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2482 | (exit $ac_status); }; }; then | |
2483 | break | |
2484 | else | |
2485 | echo "$as_me: failed program was:" >&5 | |
2486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2487 | ||
2488 | fi | |
2489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2490 | done | |
2491 | rm -f conftest* | |
2492 | if test -n "$ac_declaration"; then | |
2493 | echo '#ifdef __cplusplus' >>confdefs.h | |
2494 | echo $ac_declaration >>confdefs.h | |
2495 | echo '#endif' >>confdefs.h | |
2496 | fi | |
2497 | ||
2498 | else | |
2499 | echo "$as_me: failed program was:" >&5 | |
2500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 2501 | |
0ab6f085 AM |
2502 | fi |
2503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bf9431b BE |
2504 | ac_ext=c |
2505 | ac_cpp='$CPP $CPPFLAGS' | |
2506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2507 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2508 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2509 | ||
2510 | ||
0ab6f085 AM |
2511 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2512 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
6bf9431b BE |
2513 | if test "${ac_cv_search_strerror+set}" = set; then |
2514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2515 | else | |
2516 | ac_func_search_save_LIBS=$LIBS | |
0ab6f085 | 2517 | ac_cv_search_strerror=no |
6bf9431b BE |
2518 | cat >conftest.$ac_ext <<_ACEOF |
2519 | /* confdefs.h. */ | |
2520 | _ACEOF | |
2521 | cat confdefs.h >>conftest.$ac_ext | |
2522 | cat >>conftest.$ac_ext <<_ACEOF | |
2523 | /* end confdefs.h. */ | |
2524 | ||
0ab6f085 | 2525 | /* Override any gcc2 internal prototype to avoid an error. */ |
6bf9431b BE |
2526 | #ifdef __cplusplus |
2527 | extern "C" | |
2528 | #endif | |
0ab6f085 AM |
2529 | /* We use char because int might match the return type of a gcc2 |
2530 | builtin and then its argument prototype would still apply. */ | |
6bf9431b BE |
2531 | char strerror (); |
2532 | int | |
2533 | main () | |
2534 | { | |
0ab6f085 | 2535 | strerror (); |
6bf9431b BE |
2536 | ; |
2537 | return 0; | |
2538 | } | |
2539 | _ACEOF | |
0ab6f085 AM |
2540 | rm -f conftest.$ac_objext conftest$ac_exeext |
2541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2542 | (eval $ac_link) 2>conftest.er1 | |
6bf9431b BE |
2543 | ac_status=$? |
2544 | grep -v '^ *+' conftest.er1 >conftest.err | |
2545 | rm -f conftest.er1 | |
2546 | cat conftest.err >&5 | |
2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
2548 | (exit $ac_status); } && |
2549 | { ac_try='test -z "$ac_c_werror_flag" | |
2550 | || test ! -s conftest.err' | |
2551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2552 | (eval $ac_try) 2>&5 | |
2553 | ac_status=$? | |
2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2555 | (exit $ac_status); }; } && | |
2556 | { ac_try='test -s conftest$ac_exeext' | |
2557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2558 | (eval $ac_try) 2>&5 | |
2559 | ac_status=$? | |
2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2561 | (exit $ac_status); }; }; then | |
2562 | ac_cv_search_strerror="none required" | |
6bf9431b BE |
2563 | else |
2564 | echo "$as_me: failed program was:" >&5 | |
2565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2566 | ||
1b9750d6 | 2567 | fi |
0ab6f085 AM |
2568 | rm -f conftest.err conftest.$ac_objext \ |
2569 | conftest$ac_exeext conftest.$ac_ext | |
2570 | if test "$ac_cv_search_strerror" = no; then | |
2571 | for ac_lib in cposix; do | |
2572 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2573 | cat >conftest.$ac_ext <<_ACEOF | |
2574 | /* confdefs.h. */ | |
2575 | _ACEOF | |
2576 | cat confdefs.h >>conftest.$ac_ext | |
2577 | cat >>conftest.$ac_ext <<_ACEOF | |
2578 | /* end confdefs.h. */ | |
6bf9431b | 2579 | |
0ab6f085 AM |
2580 | /* Override any gcc2 internal prototype to avoid an error. */ |
2581 | #ifdef __cplusplus | |
2582 | extern "C" | |
2583 | #endif | |
2584 | /* We use char because int might match the return type of a gcc2 | |
2585 | builtin and then its argument prototype would still apply. */ | |
2586 | char strerror (); | |
2587 | int | |
2588 | main () | |
2589 | { | |
2590 | strerror (); | |
2591 | ; | |
2592 | return 0; | |
2593 | } | |
2594 | _ACEOF | |
2595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2597 | (eval $ac_link) 2>conftest.er1 | |
2598 | ac_status=$? | |
2599 | grep -v '^ *+' conftest.er1 >conftest.err | |
2600 | rm -f conftest.er1 | |
2601 | cat conftest.err >&5 | |
2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2603 | (exit $ac_status); } && | |
2604 | { ac_try='test -z "$ac_c_werror_flag" | |
2605 | || test ! -s conftest.err' | |
2606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2607 | (eval $ac_try) 2>&5 | |
2608 | ac_status=$? | |
2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2610 | (exit $ac_status); }; } && | |
2611 | { ac_try='test -s conftest$ac_exeext' | |
2612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2613 | (eval $ac_try) 2>&5 | |
2614 | ac_status=$? | |
2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2616 | (exit $ac_status); }; }; then | |
2617 | ac_cv_search_strerror="-l$ac_lib" | |
2618 | break | |
1b9750d6 | 2619 | else |
0ab6f085 AM |
2620 | echo "$as_me: failed program was:" >&5 |
2621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2622 | ||
2623 | fi | |
2624 | rm -f conftest.err conftest.$ac_objext \ | |
2625 | conftest$ac_exeext conftest.$ac_ext | |
2626 | done | |
6bf9431b BE |
2627 | fi |
2628 | LIBS=$ac_func_search_save_LIBS | |
2629 | fi | |
0ab6f085 AM |
2630 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2631 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2632 | if test "$ac_cv_search_strerror" != no; then | |
2633 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
6bf9431b BE |
2634 | |
2635 | fi | |
2636 | ||
2637 | ||
2638 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
df76639a | 2639 | am__api_version="1.9" |
6bf9431b BE |
2640 | # Find a good install program. We prefer a C program (faster), |
2641 | # so one script is as good as another. But avoid the broken or | |
2642 | # incompatible versions: | |
2643 | # SysV /etc/install, /usr/sbin/install | |
2644 | # SunOS /usr/etc/install | |
2645 | # IRIX /sbin/install | |
2646 | # AIX /bin/install | |
2647 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2648 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2649 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2650 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2651 | # OS/2's system install, which has a completely different semantic | |
2652 | # ./install, which can be erroneously created by make from ./install.sh. | |
58c85be7 | 2653 | # Reject install programs that cannot install multiple files. |
0ab6f085 AM |
2654 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2655 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
6bf9431b BE |
2656 | if test -z "$INSTALL"; then |
2657 | if test "${ac_cv_path_install+set}" = set; then | |
2658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2659 | else | |
2660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2661 | for as_dir in $PATH | |
2662 | do | |
2663 | IFS=$as_save_IFS | |
2664 | test -z "$as_dir" && as_dir=. | |
2665 | # Account for people who put trailing slashes in PATH elements. | |
2666 | case $as_dir/ in | |
2667 | ./ | .// | /cC/* | \ | |
2668 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2669 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2670 | /usr/ucb/* ) ;; | |
2671 | *) | |
2672 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2673 | # Don't use installbsd from OSF since it installs stuff as root | |
2674 | # by default. | |
2675 | for ac_prog in ginstall scoinst install; do | |
2676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 2677 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6bf9431b BE |
2678 | if test $ac_prog = install && |
2679 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2680 | # AIX install. It has an incompatible calling convention. | |
2681 | : | |
2682 | elif test $ac_prog = install && | |
2683 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2684 | # program-specific install script used by HP pwplus--don't use. | |
2685 | : | |
252b5132 | 2686 | else |
58c85be7 RW |
2687 | rm -rf conftest.one conftest.two conftest.dir |
2688 | echo one > conftest.one | |
2689 | echo two > conftest.two | |
2690 | mkdir conftest.dir | |
2691 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2692 | test -s conftest.one && test -s conftest.two && | |
2693 | test -s conftest.dir/conftest.one && | |
2694 | test -s conftest.dir/conftest.two | |
2695 | then | |
2696 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2697 | break 3 | |
2698 | fi | |
252b5132 RH |
2699 | fi |
2700 | fi | |
2701 | done | |
6bf9431b BE |
2702 | done |
2703 | ;; | |
2704 | esac | |
2705 | done | |
2706 | ||
58c85be7 | 2707 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
2708 | |
2709 | fi | |
2710 | if test "${ac_cv_path_install+set}" = set; then | |
6bf9431b | 2711 | INSTALL=$ac_cv_path_install |
252b5132 | 2712 | else |
58c85be7 RW |
2713 | # As a last resort, use the slow shell script. Don't cache a |
2714 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2715 | # break other packages using the cache if that directory is |
58c85be7 | 2716 | # removed, or if the value is a relative name. |
6bf9431b | 2717 | INSTALL=$ac_install_sh |
252b5132 RH |
2718 | fi |
2719 | fi | |
0ab6f085 AM |
2720 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2721 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2722 | |
2723 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2724 | # It thinks the first close brace ends the variable substitution. | |
2725 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2726 | ||
6bf9431b | 2727 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2728 | |
2729 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2730 | ||
0ab6f085 AM |
2731 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2732 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2733 | # Just in case |
2734 | sleep 1 | |
6bf9431b | 2735 | echo timestamp > conftest.file |
252b5132 RH |
2736 | # Do `set' in a subshell so we don't clobber the current shell's |
2737 | # arguments. Must try -L first in case configure is actually a | |
2738 | # symlink; some systems play weird games with the mod time of symlinks | |
2739 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2740 | # directory). | |
2741 | if ( | |
6bf9431b | 2742 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2743 | if test "$*" = "X"; then |
2744 | # -L didn't work. | |
6bf9431b | 2745 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2746 | fi |
6bf9431b BE |
2747 | rm -f conftest.file |
2748 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2749 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2750 | |
2751 | # If neither matched, then we have a broken ls. This can happen | |
2752 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2753 | # broken ls alias from the environment. This has actually | |
2754 | # happened. Such a system could not be considered "sane". | |
6bf9431b BE |
2755 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2756 | alias in your environment" >&5 | |
2757 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2758 | alias in your environment" >&2;} | |
2759 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2760 | fi |
2761 | ||
6bf9431b | 2762 | test "$2" = conftest.file |
252b5132 RH |
2763 | ) |
2764 | then | |
2765 | # Ok. | |
2766 | : | |
2767 | else | |
6bf9431b BE |
2768 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2769 | Check your system clock" >&5 | |
2770 | echo "$as_me: error: newly created file is older than distributed files! | |
2771 | Check your system clock" >&2;} | |
2772 | { (exit 1); exit 1; }; } | |
252b5132 | 2773 | fi |
0ab6f085 AM |
2774 | echo "$as_me:$LINENO: result: yes" >&5 |
2775 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2776 | test "$program_prefix" != NONE && |
0ab6f085 | 2777 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2778 | # Use a double $ so make ignores it. |
2779 | test "$program_suffix" != NONE && | |
0ab6f085 | 2780 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
6bf9431b BE |
2781 | # Double any \ or $. echo might interpret backslashes. |
2782 | # By default was `s,x,x', remove it if useless. | |
2783 | cat <<\_ACEOF >conftest.sed | |
2784 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2785 | _ACEOF | |
2786 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
0ab6f085 | 2787 | rm conftest.sed |
6bf9431b BE |
2788 | |
2789 | # expand $ac_aux_dir to an absolute path | |
2790 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2791 | ||
2792 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2793 | # Use eval to expand $SHELL | |
2794 | if eval "$MISSING --run true"; then | |
2795 | am_missing_run="$MISSING --run " | |
2796 | else | |
2797 | am_missing_run= | |
2798 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2799 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2800 | fi | |
2801 | ||
2802 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
df76639a AM |
2803 | # We used to keeping the `.' as first argument, in order to |
2804 | # allow $(mkdir_p) to be used without argument. As in | |
6bf9431b | 2805 | # $(mkdir_p) $(somedir) |
df76639a AM |
2806 | # where $(somedir) is conditionally defined. However this is wrong |
2807 | # for two reasons: | |
2808 | # 1. if the package is installed by a user who cannot write `.' | |
2809 | # make install will fail, | |
2810 | # 2. the above comment should most certainly read | |
2811 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2812 | # so it does not work when $(somedir) is undefined and | |
2813 | # $(DESTDIR) is not. | |
2814 | # To support the latter case, we have to write | |
2815 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2816 | # so the `.' trick is pointless. | |
2817 | mkdir_p='mkdir -p --' | |
6bf9431b BE |
2818 | else |
2819 | # On NextStep and OpenStep, the `mkdir' command does not | |
2820 | # recognize any option. It will interpret all options as | |
2821 | # directories to create, and then abort because `.' already | |
2822 | # exists. | |
2823 | for d in ./-p ./--version; | |
2824 | do | |
2825 | test -d $d && rmdir $d | |
2826 | done | |
2827 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2828 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2829 | mkdir_p='$(mkinstalldirs)' | |
2830 | else | |
2831 | mkdir_p='$(install_sh) -d' | |
2832 | fi | |
2833 | fi | |
252b5132 | 2834 | |
6bf9431b BE |
2835 | for ac_prog in gawk mawk nawk awk |
2836 | do | |
2837 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2838 | set dummy $ac_prog; ac_word=$2 | |
0ab6f085 AM |
2839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
2841 | if test "${ac_cv_prog_AWK+set}" = set; then |
2842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2843 | else | |
2844 | if test -n "$AWK"; then | |
2845 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2846 | else | |
2847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2848 | for as_dir in $PATH | |
2849 | do | |
2850 | IFS=$as_save_IFS | |
2851 | test -z "$as_dir" && as_dir=. | |
2852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 2853 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
2854 | ac_cv_prog_AWK="$ac_prog" |
2855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2856 | break 2 | |
2857 | fi | |
2858 | done | |
2859 | done | |
2860 | ||
2861 | fi | |
2862 | fi | |
2863 | AWK=$ac_cv_prog_AWK | |
2864 | if test -n "$AWK"; then | |
0ab6f085 AM |
2865 | echo "$as_me:$LINENO: result: $AWK" >&5 |
2866 | echo "${ECHO_T}$AWK" >&6 | |
6bf9431b | 2867 | else |
0ab6f085 AM |
2868 | echo "$as_me:$LINENO: result: no" >&5 |
2869 | echo "${ECHO_T}no" >&6 | |
6bf9431b BE |
2870 | fi |
2871 | ||
2872 | test -n "$AWK" && break | |
2873 | done | |
252b5132 | 2874 | |
0ab6f085 AM |
2875 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2876 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2877 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2878 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
6bf9431b | 2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 2880 | else |
6bf9431b | 2881 | cat >conftest.make <<\_ACEOF |
252b5132 | 2882 | all: |
0ab6f085 | 2883 | @echo 'ac_maketemp="$(MAKE)"' |
6bf9431b | 2884 | _ACEOF |
252b5132 | 2885 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
0ab6f085 AM |
2886 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
2887 | if test -n "$ac_maketemp"; then | |
2888 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2889 | else | |
2890 | eval ac_cv_prog_make_${ac_make}_set=no | |
2891 | fi | |
6bf9431b | 2892 | rm -f conftest.make |
252b5132 | 2893 | fi |
0ab6f085 AM |
2894 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
2895 | echo "$as_me:$LINENO: result: yes" >&5 | |
2896 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2897 | SET_MAKE= |
2898 | else | |
0ab6f085 AM |
2899 | echo "$as_me:$LINENO: result: no" >&5 |
2900 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2901 | SET_MAKE="MAKE=${MAKE-make}" |
2902 | fi | |
2903 | ||
6bf9431b BE |
2904 | rm -rf .tst 2>/dev/null |
2905 | mkdir .tst 2>/dev/null | |
2906 | if test -d .tst; then | |
2907 | am__leading_dot=. | |
2908 | else | |
2909 | am__leading_dot=_ | |
2910 | fi | |
2911 | rmdir .tst 2>/dev/null | |
2912 | ||
2913 | DEPDIR="${am__leading_dot}deps" | |
2914 | ||
0ab6f085 | 2915 | ac_config_commands="$ac_config_commands depfiles" |
6bf9431b BE |
2916 | |
2917 | ||
2918 | am_make=${MAKE-make} | |
2919 | cat > confinc << 'END' | |
2920 | am__doit: | |
2921 | @echo done | |
2922 | .PHONY: am__doit | |
2923 | END | |
2924 | # If we don't find an include directive, just comment out the code. | |
0ab6f085 AM |
2925 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2926 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
6bf9431b BE |
2927 | am__include="#" |
2928 | am__quote= | |
2929 | _am_result=none | |
2930 | # First try GNU make style include. | |
2931 | echo "include confinc" > confmf | |
2932 | # We grep out `Entering directory' and `Leaving directory' | |
2933 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2934 | # In particular we don't look at `^make:' because GNU make might | |
2935 | # be invoked under some other name (usually "gmake"), in which | |
2936 | # case it prints its new name instead of `make'. | |
2937 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2938 | am__include=include | |
2939 | am__quote= | |
2940 | _am_result=GNU | |
2941 | fi | |
2942 | # Now try BSD make style include. | |
2943 | if test "$am__include" = "#"; then | |
2944 | echo '.include "confinc"' > confmf | |
2945 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2946 | am__include=.include | |
2947 | am__quote="\"" | |
2948 | _am_result=BSD | |
2949 | fi | |
2950 | fi | |
2951 | ||
252b5132 | 2952 | |
0ab6f085 AM |
2953 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2954 | echo "${ECHO_T}$_am_result" >&6 | |
6bf9431b | 2955 | rm -f confinc confmf |
252b5132 | 2956 | |
0ab6f085 | 2957 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
6bf9431b | 2958 | if test "${enable_dependency_tracking+set}" = set; then |
0ab6f085 | 2959 | enableval="$enable_dependency_tracking" |
252b5132 | 2960 | |
0ab6f085 | 2961 | fi; |
6bf9431b BE |
2962 | if test "x$enable_dependency_tracking" != xno; then |
2963 | am_depcomp="$ac_aux_dir/depcomp" | |
2964 | AMDEPBACKSLASH='\' | |
252b5132 | 2965 | fi |
6bf9431b BE |
2966 | |
2967 | ||
2968 | if test "x$enable_dependency_tracking" != xno; then | |
2969 | AMDEP_TRUE= | |
2970 | AMDEP_FALSE='#' | |
2971 | else | |
2972 | AMDEP_TRUE='#' | |
2973 | AMDEP_FALSE= | |
2974 | fi | |
2975 | ||
2976 | ||
2977 | ||
2978 | # test to see if srcdir already configured | |
2979 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2980 | test -f $srcdir/config.status; then | |
2981 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2982 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2983 | { (exit 1); exit 1; }; } | |
2984 | fi | |
2985 | ||
2986 | # test whether we have cygpath | |
2987 | if test -z "$CYGPATH_W"; then | |
2988 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2989 | CYGPATH_W='cygpath -w' | |
2990 | else | |
2991 | CYGPATH_W=echo | |
2992 | fi | |
2993 | fi | |
2994 | ||
2995 | ||
2996 | # Define the identity of the package. | |
2997 | PACKAGE=gprof | |
2998 | VERSION=${BFD_VERSION} | |
2999 | ||
3000 | ||
3001 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3002 | #define PACKAGE "$PACKAGE" |
6bf9431b BE |
3003 | _ACEOF |
3004 | ||
252b5132 | 3005 | |
6bf9431b | 3006 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3007 | #define VERSION "$VERSION" |
6bf9431b BE |
3008 | _ACEOF |
3009 | ||
3010 | # Some tools Automake needs. | |
3011 | ||
3012 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3013 | ||
3014 | ||
3015 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3016 | ||
3017 | ||
3018 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3019 | ||
3020 | ||
3021 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3022 | ||
3023 | ||
3024 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3025 | ||
6bf9431b | 3026 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
252b5132 | 3027 | |
6bf9431b BE |
3028 | # Installed binaries are usually stripped using `strip' when the user |
3029 | # run `make install-strip'. However `strip' might not be the right | |
3030 | # tool to use in cross-compilation environments, therefore Automake | |
3031 | # will honor the `STRIP' environment variable to overrule this program. | |
3032 | if test "$cross_compiling" != no; then | |
3033 | if test -n "$ac_tool_prefix"; then | |
3034 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3035 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
0ab6f085 AM |
3036 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
3038 | if test "${ac_cv_prog_STRIP+set}" = set; then |
3039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3040 | else | |
3041 | if test -n "$STRIP"; then | |
3042 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3043 | else | |
3044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3045 | for as_dir in $PATH | |
3046 | do | |
3047 | IFS=$as_save_IFS | |
3048 | test -z "$as_dir" && as_dir=. | |
3049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 3050 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
3051 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3053 | break 2 | |
3054 | fi | |
3055 | done | |
3056 | done | |
3057 | ||
3058 | fi | |
3059 | fi | |
3060 | STRIP=$ac_cv_prog_STRIP | |
3061 | if test -n "$STRIP"; then | |
0ab6f085 AM |
3062 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3063 | echo "${ECHO_T}$STRIP" >&6 | |
6bf9431b | 3064 | else |
0ab6f085 AM |
3065 | echo "$as_me:$LINENO: result: no" >&5 |
3066 | echo "${ECHO_T}no" >&6 | |
6bf9431b | 3067 | fi |
252b5132 | 3068 | |
6bf9431b BE |
3069 | fi |
3070 | if test -z "$ac_cv_prog_STRIP"; then | |
3071 | ac_ct_STRIP=$STRIP | |
3072 | # Extract the first word of "strip", so it can be a program name with args. | |
3073 | set dummy strip; ac_word=$2 | |
0ab6f085 AM |
3074 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6bf9431b BE |
3076 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
3077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3078 | else | |
3079 | if test -n "$ac_ct_STRIP"; then | |
3080 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3081 | else | |
3082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3083 | for as_dir in $PATH | |
3084 | do | |
3085 | IFS=$as_save_IFS | |
3086 | test -z "$as_dir" && as_dir=. | |
3087 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 3088 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6bf9431b BE |
3089 | ac_cv_prog_ac_ct_STRIP="strip" |
3090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3091 | break 2 | |
3092 | fi | |
3093 | done | |
3094 | done | |
252b5132 | 3095 | |
0ab6f085 | 3096 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6bf9431b BE |
3097 | fi |
3098 | fi | |
3099 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3100 | if test -n "$ac_ct_STRIP"; then | |
0ab6f085 AM |
3101 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
3102 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 3103 | else |
0ab6f085 AM |
3104 | echo "$as_me:$LINENO: result: no" >&5 |
3105 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3106 | fi |
3107 | ||
0ab6f085 | 3108 | STRIP=$ac_ct_STRIP |
252b5132 | 3109 | else |
6bf9431b | 3110 | STRIP="$ac_cv_prog_STRIP" |
252b5132 RH |
3111 | fi |
3112 | ||
6bf9431b BE |
3113 | fi |
3114 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
3115 | ||
3116 | # We need awk for the "check" target. The system "awk" is bad on | |
3117 | # some platforms. | |
df76639a AM |
3118 | # Always define AMTAR for backward compatibility. |
3119 | ||
3120 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3121 | ||
3122 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3123 | ||
3124 | ||
6bf9431b BE |
3125 | |
3126 | ||
3127 | depcc="$CC" am_compiler_list= | |
3128 | ||
0ab6f085 AM |
3129 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3130 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
6bf9431b BE |
3131 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3133 | else | |
3134 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3135 | # We make a subdir and do the tests there. Otherwise we can end up | |
3136 | # making bogus files that we don't know about and never remove. For | |
3137 | # instance it was reported that on HP-UX the gcc test will end up | |
3138 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3139 | # in D'. | |
3140 | mkdir conftest.dir | |
3141 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3142 | # using a relative directory. | |
3143 | cp "$am_depcomp" conftest.dir | |
3144 | cd conftest.dir | |
3145 | # We will build objects and dependencies in a subdirectory because | |
3146 | # it helps to detect inapplicable dependency modes. For instance | |
3147 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3148 | # side effect of compilation, but ICC will put the dependencies in | |
3149 | # the current directory while Tru64 will put them in the object | |
3150 | # directory. | |
3151 | mkdir sub | |
3152 | ||
3153 | am_cv_CC_dependencies_compiler_type=none | |
3154 | if test "$am_compiler_list" = ""; then | |
3155 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3156 | fi | |
3157 | for depmode in $am_compiler_list; do | |
3158 | # Setup a source with many dependencies, because some compilers | |
3159 | # like to wrap large dependency lists on column 80 (with \), and | |
3160 | # we should not choose a depcomp mode which is confused by this. | |
3161 | # | |
3162 | # We need to recreate these files for each test, as the compiler may | |
3163 | # overwrite some of them when testing with obscure command lines. | |
3164 | # This happens at least with the AIX C compiler. | |
3165 | : > sub/conftest.c | |
3166 | for i in 1 2 3 4 5 6; do | |
3167 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3168 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3169 | # Solaris 8's {/usr,}/bin/sh. | |
3170 | touch sub/conftst$i.h | |
3171 | done | |
3172 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3173 | ||
3174 | case $depmode in | |
3175 | nosideeffect) | |
3176 | # after this tag, mechanisms are not by side-effect, so they'll | |
3177 | # only be used when explicitly requested | |
3178 | if test "x$enable_dependency_tracking" = xyes; then | |
3179 | continue | |
3180 | else | |
3181 | break | |
3182 | fi | |
3183 | ;; | |
3184 | none) break ;; | |
3185 | esac | |
3186 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3187 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3188 | # handle `-M -o', and we need to detect this. | |
3189 | if depmode=$depmode \ | |
3190 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3191 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3192 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3193 | >/dev/null 2>conftest.err && | |
3194 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3195 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3196 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3197 | # icc doesn't choke on unknown options, it will just issue warnings | |
3198 | # or remarks (even with -Werror). So we grep stderr for any message | |
3199 | # that says an option was ignored or not supported. | |
3200 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3201 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3202 | # The diagnosis changed in icc 8.0: | |
3203 | # icc: Command line remark: option '-MP' not supported | |
3204 | if (grep 'ignoring option' conftest.err || | |
3205 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3206 | am_cv_CC_dependencies_compiler_type=$depmode | |
3207 | break | |
3208 | fi | |
3209 | fi | |
3210 | done | |
3211 | ||
3212 | cd .. | |
3213 | rm -rf conftest.dir | |
252b5132 | 3214 | else |
6bf9431b | 3215 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3216 | fi |
3217 | ||
252b5132 | 3218 | fi |
0ab6f085 AM |
3219 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3220 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
6bf9431b BE |
3221 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3222 | ||
252b5132 | 3223 | |
6bf9431b BE |
3224 | |
3225 | if | |
3226 | test "x$enable_dependency_tracking" != xno \ | |
3227 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3228 | am__fastdepCC_TRUE= | |
3229 | am__fastdepCC_FALSE='#' | |
252b5132 | 3230 | else |
6bf9431b BE |
3231 | am__fastdepCC_TRUE='#' |
3232 | am__fastdepCC_FALSE= | |
252b5132 RH |
3233 | fi |
3234 | ||
3235 | ||
3236 | ||
6bf9431b | 3237 | |
ce2cded5 | 3238 | ac_config_headers="$ac_config_headers gconfig.h:gconfig.in" |
d7040cdb SE |
3239 | |
3240 | ||
ce2cded5 L |
3241 | ac_ext=c |
3242 | ac_cpp='$CPP $CPPFLAGS' | |
3243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3246 | if test -n "$ac_tool_prefix"; then | |
3247 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3248 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3249 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3251 | if test "${ac_cv_prog_CC+set}" = set; then | |
3252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1b9750d6 | 3253 | else |
ce2cded5 L |
3254 | if test -n "$CC"; then |
3255 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
0ab6f085 | 3256 | else |
ce2cded5 L |
3257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3258 | for as_dir in $PATH | |
3259 | do | |
3260 | IFS=$as_save_IFS | |
3261 | test -z "$as_dir" && as_dir=. | |
3262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3264 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3266 | break 2 | |
3267 | fi | |
3268 | done | |
3269 | done | |
0ab6f085 | 3270 | |
ce2cded5 L |
3271 | fi |
3272 | fi | |
3273 | CC=$ac_cv_prog_CC | |
3274 | if test -n "$CC"; then | |
3275 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3276 | echo "${ECHO_T}$CC" >&6 | |
0ab6f085 | 3277 | else |
ce2cded5 L |
3278 | echo "$as_me:$LINENO: result: no" >&5 |
3279 | echo "${ECHO_T}no" >&6 | |
3280 | fi | |
d7040cdb | 3281 | |
ce2cded5 L |
3282 | fi |
3283 | if test -z "$ac_cv_prog_CC"; then | |
3284 | ac_ct_CC=$CC | |
3285 | # Extract the first word of "gcc", so it can be a program name with args. | |
3286 | set dummy gcc; ac_word=$2 | |
3287 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3289 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1b9750d6 NC |
3290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3291 | else | |
ce2cded5 L |
3292 | if test -n "$ac_ct_CC"; then |
3293 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3294 | else | |
d7040cdb | 3295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
0ab6f085 | 3296 | for as_dir in $PATH |
d7040cdb SE |
3297 | do |
3298 | IFS=$as_save_IFS | |
3299 | test -z "$as_dir" && as_dir=. | |
ce2cded5 L |
3300 | for ac_exec_ext in '' $ac_executable_extensions; do |
3301 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3302 | ac_cv_prog_ac_ct_CC="gcc" | |
3303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3304 | break 2 | |
0ab6f085 | 3305 | fi |
ce2cded5 | 3306 | done |
0ab6f085 | 3307 | done |
d7040cdb | 3308 | |
ce2cded5 L |
3309 | fi |
3310 | fi | |
3311 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3312 | if test -n "$ac_ct_CC"; then | |
3313 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3314 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3315 | else | |
3316 | echo "$as_me:$LINENO: result: no" >&5 | |
3317 | echo "${ECHO_T}no" >&6 | |
1b9750d6 | 3318 | fi |
d7040cdb | 3319 | |
ce2cded5 L |
3320 | CC=$ac_ct_CC |
3321 | else | |
3322 | CC="$ac_cv_prog_CC" | |
3323 | fi | |
d7040cdb | 3324 | |
ce2cded5 L |
3325 | if test -z "$CC"; then |
3326 | if test -n "$ac_tool_prefix"; then | |
3327 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3328 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3331 | if test "${ac_cv_prog_CC+set}" = set; then | |
0ab6f085 | 3332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d7040cdb | 3333 | else |
ce2cded5 L |
3334 | if test -n "$CC"; then |
3335 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
0ab6f085 | 3336 | else |
ce2cded5 L |
3337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3338 | for as_dir in $PATH | |
3339 | do | |
3340 | IFS=$as_save_IFS | |
3341 | test -z "$as_dir" && as_dir=. | |
3342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3344 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3346 | break 2 | |
3347 | fi | |
3348 | done | |
3349 | done | |
d7040cdb | 3350 | |
252b5132 RH |
3351 | fi |
3352 | fi | |
ce2cded5 L |
3353 | CC=$ac_cv_prog_CC |
3354 | if test -n "$CC"; then | |
3355 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3356 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3357 | else |
0ab6f085 AM |
3358 | echo "$as_me:$LINENO: result: no" >&5 |
3359 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3360 | fi |
d7040cdb | 3361 | |
252b5132 | 3362 | fi |
ce2cded5 L |
3363 | if test -z "$ac_cv_prog_CC"; then |
3364 | ac_ct_CC=$CC | |
3365 | # Extract the first word of "cc", so it can be a program name with args. | |
3366 | set dummy cc; ac_word=$2 | |
0ab6f085 AM |
3367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3369 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
d7040cdb | 3370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3371 | else |
ce2cded5 L |
3372 | if test -n "$ac_ct_CC"; then |
3373 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3374 | else |
3375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3376 | for as_dir in $PATH | |
3377 | do | |
3378 | IFS=$as_save_IFS | |
3379 | test -z "$as_dir" && as_dir=. | |
3380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 3381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3382 | ac_cv_prog_ac_ct_CC="cc" |
d7040cdb SE |
3383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3384 | break 2 | |
3385 | fi | |
3386 | done | |
3387 | done | |
ac48eca1 | 3388 | |
d7040cdb SE |
3389 | fi |
3390 | fi | |
ce2cded5 L |
3391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3392 | if test -n "$ac_ct_CC"; then | |
3393 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3394 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3395 | else | |
3396 | echo "$as_me:$LINENO: result: no" >&5 | |
3397 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 3398 | fi |
6be7c12c | 3399 | |
ce2cded5 L |
3400 | CC=$ac_ct_CC |
3401 | else | |
3402 | CC="$ac_cv_prog_CC" | |
3403 | fi | |
3404 | ||
3405 | fi | |
3406 | if test -z "$CC"; then | |
3407 | # Extract the first word of "cc", so it can be a program name with args. | |
3408 | set dummy cc; ac_word=$2 | |
3409 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3411 | if test "${ac_cv_prog_CC+set}" = set; then | |
3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3413 | else | |
3414 | if test -n "$CC"; then | |
3415 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3416 | else | |
3417 | ac_prog_rejected=no | |
3418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3419 | for as_dir in $PATH | |
3420 | do | |
3421 | IFS=$as_save_IFS | |
3422 | test -z "$as_dir" && as_dir=. | |
3423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3425 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3426 | ac_prog_rejected=yes | |
3427 | continue | |
3428 | fi | |
3429 | ac_cv_prog_CC="cc" | |
3430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3431 | break 2 | |
3432 | fi | |
3433 | done | |
3434 | done | |
3435 | ||
3436 | if test $ac_prog_rejected = yes; then | |
3437 | # We found a bogon in the path, so make sure we never use it. | |
3438 | set dummy $ac_cv_prog_CC | |
3439 | shift | |
3440 | if test $# != 0; then | |
3441 | # We chose a different compiler from the bogus one. | |
3442 | # However, it has the same basename, so the bogon will be chosen | |
3443 | # first if we set CC to just the basename; use the full file name. | |
3444 | shift | |
3445 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3446 | fi | |
3447 | fi | |
3448 | fi | |
3449 | fi | |
3450 | CC=$ac_cv_prog_CC | |
3451 | if test -n "$CC"; then | |
3452 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3453 | echo "${ECHO_T}$CC" >&6 | |
3454 | else | |
3455 | echo "$as_me:$LINENO: result: no" >&5 | |
3456 | echo "${ECHO_T}no" >&6 | |
3457 | fi | |
3458 | ||
3459 | fi | |
3460 | if test -z "$CC"; then | |
3461 | if test -n "$ac_tool_prefix"; then | |
3462 | for ac_prog in cl | |
3463 | do | |
3464 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3465 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3466 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3468 | if test "${ac_cv_prog_CC+set}" = set; then | |
3469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3470 | else | |
3471 | if test -n "$CC"; then | |
3472 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3473 | else | |
3474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3475 | for as_dir in $PATH | |
3476 | do | |
3477 | IFS=$as_save_IFS | |
3478 | test -z "$as_dir" && as_dir=. | |
3479 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3480 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3481 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3483 | break 2 | |
3484 | fi | |
3485 | done | |
3486 | done | |
3487 | ||
3488 | fi | |
3489 | fi | |
3490 | CC=$ac_cv_prog_CC | |
3491 | if test -n "$CC"; then | |
3492 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3493 | echo "${ECHO_T}$CC" >&6 | |
3494 | else | |
3495 | echo "$as_me:$LINENO: result: no" >&5 | |
3496 | echo "${ECHO_T}no" >&6 | |
3497 | fi | |
3498 | ||
3499 | test -n "$CC" && break | |
d7040cdb SE |
3500 | done |
3501 | fi | |
ce2cded5 L |
3502 | if test -z "$CC"; then |
3503 | ac_ct_CC=$CC | |
3504 | for ac_prog in cl | |
d7040cdb SE |
3505 | do |
3506 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3507 | set dummy $ac_prog; ac_word=$2 | |
0ab6f085 AM |
3508 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3510 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
d7040cdb SE |
3511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3512 | else | |
ce2cded5 L |
3513 | if test -n "$ac_ct_CC"; then |
3514 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3515 | else |
3516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3517 | for as_dir in $PATH | |
3518 | do | |
3519 | IFS=$as_save_IFS | |
3520 | test -z "$as_dir" && as_dir=. | |
3521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 3522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3523 | ac_cv_prog_ac_ct_CC="$ac_prog" |
d7040cdb SE |
3524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3525 | break 2 | |
ac48eca1 | 3526 | fi |
d7040cdb SE |
3527 | done |
3528 | done | |
ac48eca1 | 3529 | |
d7040cdb SE |
3530 | fi |
3531 | fi | |
ce2cded5 L |
3532 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3533 | if test -n "$ac_ct_CC"; then | |
3534 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3535 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
d7040cdb | 3536 | else |
0ab6f085 AM |
3537 | echo "$as_me:$LINENO: result: no" >&5 |
3538 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 3539 | fi |
ac48eca1 | 3540 | |
ce2cded5 | 3541 | test -n "$ac_ct_CC" && break |
d7040cdb | 3542 | done |
ac48eca1 | 3543 | |
ce2cded5 | 3544 | CC=$ac_ct_CC |
d7040cdb | 3545 | fi |
ac48eca1 | 3546 | |
d7040cdb | 3547 | fi |
ac48eca1 | 3548 | |
ac48eca1 | 3549 | |
ce2cded5 L |
3550 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3551 | See \`config.log' for more details." >&5 | |
3552 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3553 | See \`config.log' for more details." >&2;} | |
3554 | { (exit 1); exit 1; }; } | |
6be7c12c | 3555 | |
ce2cded5 L |
3556 | # Provide some information about the compiler. |
3557 | echo "$as_me:$LINENO:" \ | |
3558 | "checking for C compiler version" >&5 | |
3559 | ac_compiler=`set X $ac_compile; echo $2` | |
3560 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3561 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3562 | ac_status=$? | |
3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3564 | (exit $ac_status); } | |
3565 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3566 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3567 | ac_status=$? | |
3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3569 | (exit $ac_status); } | |
3570 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3571 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3572 | ac_status=$? | |
3573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3574 | (exit $ac_status); } | |
ac48eca1 | 3575 | |
ce2cded5 L |
3576 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3577 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3578 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
d7040cdb SE |
3579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3580 | else | |
ce2cded5 L |
3581 | cat >conftest.$ac_ext <<_ACEOF |
3582 | /* confdefs.h. */ | |
3583 | _ACEOF | |
3584 | cat confdefs.h >>conftest.$ac_ext | |
3585 | cat >>conftest.$ac_ext <<_ACEOF | |
3586 | /* end confdefs.h. */ | |
ac48eca1 | 3587 | |
ce2cded5 L |
3588 | int |
3589 | main () | |
3590 | { | |
3591 | #ifndef __GNUC__ | |
3592 | choke me | |
3593 | #endif | |
3594 | ||
3595 | ; | |
3596 | return 0; | |
3597 | } | |
3598 | _ACEOF | |
3599 | rm -f conftest.$ac_objext | |
3600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3601 | (eval $ac_compile) 2>conftest.er1 | |
3602 | ac_status=$? | |
3603 | grep -v '^ *+' conftest.er1 >conftest.err | |
3604 | rm -f conftest.er1 | |
3605 | cat conftest.err >&5 | |
3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3607 | (exit $ac_status); } && | |
3608 | { ac_try='test -z "$ac_c_werror_flag" | |
3609 | || test ! -s conftest.err' | |
3610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3611 | (eval $ac_try) 2>&5 | |
3612 | ac_status=$? | |
3613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3614 | (exit $ac_status); }; } && | |
3615 | { ac_try='test -s conftest.$ac_objext' | |
3616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3617 | (eval $ac_try) 2>&5 | |
3618 | ac_status=$? | |
3619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3620 | (exit $ac_status); }; }; then | |
3621 | ac_compiler_gnu=yes | |
d7040cdb | 3622 | else |
ce2cded5 L |
3623 | echo "$as_me: failed program was:" >&5 |
3624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3625 | ||
3626 | ac_compiler_gnu=no | |
d7040cdb | 3627 | fi |
ce2cded5 L |
3628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3629 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
ac48eca1 | 3630 | |
ce2cded5 L |
3631 | fi |
3632 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3633 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3634 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3635 | ac_test_CFLAGS=${CFLAGS+set} | |
3636 | ac_save_CFLAGS=$CFLAGS | |
3637 | CFLAGS="-g" | |
3638 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3639 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3640 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
108a6f8e CD |
3641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3642 | else | |
ce2cded5 L |
3643 | cat >conftest.$ac_ext <<_ACEOF |
3644 | /* confdefs.h. */ | |
3645 | _ACEOF | |
3646 | cat confdefs.h >>conftest.$ac_ext | |
3647 | cat >>conftest.$ac_ext <<_ACEOF | |
3648 | /* end confdefs.h. */ | |
d7040cdb | 3649 | |
ce2cded5 L |
3650 | int |
3651 | main () | |
3652 | { | |
d7040cdb | 3653 | |
ce2cded5 L |
3654 | ; |
3655 | return 0; | |
3656 | } | |
3657 | _ACEOF | |
3658 | rm -f conftest.$ac_objext | |
3659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3660 | (eval $ac_compile) 2>conftest.er1 | |
3661 | ac_status=$? | |
3662 | grep -v '^ *+' conftest.er1 >conftest.err | |
3663 | rm -f conftest.er1 | |
3664 | cat conftest.err >&5 | |
3665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3666 | (exit $ac_status); } && | |
3667 | { ac_try='test -z "$ac_c_werror_flag" | |
3668 | || test ! -s conftest.err' | |
3669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3670 | (eval $ac_try) 2>&5 | |
3671 | ac_status=$? | |
3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3673 | (exit $ac_status); }; } && | |
3674 | { ac_try='test -s conftest.$ac_objext' | |
3675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3676 | (eval $ac_try) 2>&5 | |
3677 | ac_status=$? | |
3678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3679 | (exit $ac_status); }; }; then | |
3680 | ac_cv_prog_cc_g=yes | |
3681 | else | |
3682 | echo "$as_me: failed program was:" >&5 | |
3683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
108a6f8e | 3684 | |
ce2cded5 | 3685 | ac_cv_prog_cc_g=no |
108a6f8e | 3686 | fi |
ce2cded5 | 3687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
108a6f8e | 3688 | fi |
ce2cded5 L |
3689 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3690 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3691 | if test "$ac_test_CFLAGS" = set; then | |
3692 | CFLAGS=$ac_save_CFLAGS | |
3693 | elif test $ac_cv_prog_cc_g = yes; then | |
3694 | if test "$GCC" = yes; then | |
3695 | CFLAGS="-g -O2" | |
3696 | else | |
3697 | CFLAGS="-g" | |
3698 | fi | |
ac48eca1 | 3699 | else |
ce2cded5 L |
3700 | if test "$GCC" = yes; then |
3701 | CFLAGS="-O2" | |
3702 | else | |
3703 | CFLAGS= | |
3704 | fi | |
ac48eca1 | 3705 | fi |
ce2cded5 L |
3706 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3707 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3708 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
6bf9431b | 3709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3710 | else |
ce2cded5 L |
3711 | ac_cv_prog_cc_stdc=no |
3712 | ac_save_CC=$CC | |
3713 | cat >conftest.$ac_ext <<_ACEOF | |
3714 | /* confdefs.h. */ | |
3715 | _ACEOF | |
3716 | cat confdefs.h >>conftest.$ac_ext | |
3717 | cat >>conftest.$ac_ext <<_ACEOF | |
3718 | /* end confdefs.h. */ | |
3719 | #include <stdarg.h> | |
3720 | #include <stdio.h> | |
3721 | #include <sys/types.h> | |
3722 | #include <sys/stat.h> | |
3723 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3724 | struct buf { int x; }; | |
3725 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3726 | static char *e (p, i) | |
3727 | char **p; | |
3728 | int i; | |
3729 | { | |
3730 | return p[i]; | |
3731 | } | |
3732 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3733 | { | |
3734 | char *s; | |
3735 | va_list v; | |
3736 | va_start (v,p); | |
3737 | s = g (p, va_arg (v,int)); | |
3738 | va_end (v); | |
3739 | return s; | |
3740 | } | |
d7040cdb | 3741 | |
ce2cded5 L |
3742 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3743 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3744 | These don't provoke an error unfortunately, instead are silently treated | |
3745 | as 'x'. The following induces an error, until -std1 is added to get | |
3746 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3747 | array size at least. It's necessary to write '\x00'==0 to get something | |
3748 | that's true only with -std1. */ | |
3749 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
d7040cdb | 3750 | |
ce2cded5 L |
3751 | int test (int i, double x); |
3752 | struct s1 {int (*f) (int a);}; | |
3753 | struct s2 {int (*f) (double a);}; | |
3754 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3755 | int argc; | |
3756 | char **argv; | |
3757 | int | |
3758 | main () | |
3759 | { | |
3760 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3761 | ; | |
3762 | return 0; | |
3763 | } | |
3764 | _ACEOF | |
3765 | # Don't try gcc -ansi; that turns off useful extensions and | |
3766 | # breaks some systems' header files. | |
3767 | # AIX -qlanglvl=ansi | |
3768 | # Ultrix and OSF/1 -std1 | |
3769 | # HP-UX 10.20 and later -Ae | |
3770 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3771 | # SVR4 -Xc -D__EXTENSIONS__ | |
3772 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3773 | do | |
3774 | CC="$ac_save_CC $ac_arg" | |
3775 | rm -f conftest.$ac_objext | |
3776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3777 | (eval $ac_compile) 2>conftest.er1 | |
3778 | ac_status=$? | |
3779 | grep -v '^ *+' conftest.er1 >conftest.err | |
3780 | rm -f conftest.er1 | |
3781 | cat conftest.err >&5 | |
3782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3783 | (exit $ac_status); } && | |
3784 | { ac_try='test -z "$ac_c_werror_flag" | |
3785 | || test ! -s conftest.err' | |
3786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3787 | (eval $ac_try) 2>&5 | |
3788 | ac_status=$? | |
3789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3790 | (exit $ac_status); }; } && | |
3791 | { ac_try='test -s conftest.$ac_objext' | |
3792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3793 | (eval $ac_try) 2>&5 | |
3794 | ac_status=$? | |
3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3796 | (exit $ac_status); }; }; then | |
3797 | ac_cv_prog_cc_stdc=$ac_arg | |
3798 | break | |
3799 | else | |
3800 | echo "$as_me: failed program was:" >&5 | |
3801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3802 | |
ce2cded5 L |
3803 | fi |
3804 | rm -f conftest.err conftest.$ac_objext | |
3805 | done | |
3806 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3807 | CC=$ac_save_CC | |
d7040cdb | 3808 | |
ce2cded5 | 3809 | fi |
d7040cdb | 3810 | |
ce2cded5 L |
3811 | case "x$ac_cv_prog_cc_stdc" in |
3812 | x|xno) | |
3813 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3814 | echo "${ECHO_T}none needed" >&6 ;; | |
3815 | *) | |
3816 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3817 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3818 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3819 | esac | |
d7040cdb | 3820 | |
ce2cded5 L |
3821 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3822 | # in C++ we need to declare it. In case someone uses the same compiler | |
3823 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3824 | # the declaration of exit, since it's the most demanding environment. | |
3825 | cat >conftest.$ac_ext <<_ACEOF | |
3826 | #ifndef __cplusplus | |
3827 | choke me | |
3828 | #endif | |
3829 | _ACEOF | |
3830 | rm -f conftest.$ac_objext | |
3831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3832 | (eval $ac_compile) 2>conftest.er1 | |
3833 | ac_status=$? | |
3834 | grep -v '^ *+' conftest.er1 >conftest.err | |
3835 | rm -f conftest.er1 | |
3836 | cat conftest.err >&5 | |
3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3838 | (exit $ac_status); } && | |
3839 | { ac_try='test -z "$ac_c_werror_flag" | |
3840 | || test ! -s conftest.err' | |
3841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3842 | (eval $ac_try) 2>&5 | |
3843 | ac_status=$? | |
3844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3845 | (exit $ac_status); }; } && | |
3846 | { ac_try='test -s conftest.$ac_objext' | |
3847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3848 | (eval $ac_try) 2>&5 | |
3849 | ac_status=$? | |
3850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3851 | (exit $ac_status); }; }; then | |
3852 | for ac_declaration in \ | |
3853 | '' \ | |
3854 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3855 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3856 | 'extern "C" void exit (int) throw ();' \ | |
3857 | 'extern "C" void exit (int);' \ | |
3858 | 'void exit (int);' | |
3859 | do | |
3860 | cat >conftest.$ac_ext <<_ACEOF | |
3861 | /* confdefs.h. */ | |
3862 | _ACEOF | |
3863 | cat confdefs.h >>conftest.$ac_ext | |
3864 | cat >>conftest.$ac_ext <<_ACEOF | |
3865 | /* end confdefs.h. */ | |
3866 | $ac_declaration | |
3867 | #include <stdlib.h> | |
3868 | int | |
3869 | main () | |
3870 | { | |
3871 | exit (42); | |
3872 | ; | |
3873 | return 0; | |
3874 | } | |
3875 | _ACEOF | |
3876 | rm -f conftest.$ac_objext | |
3877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3878 | (eval $ac_compile) 2>conftest.er1 | |
3879 | ac_status=$? | |
3880 | grep -v '^ *+' conftest.er1 >conftest.err | |
3881 | rm -f conftest.er1 | |
3882 | cat conftest.err >&5 | |
3883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3884 | (exit $ac_status); } && | |
3885 | { ac_try='test -z "$ac_c_werror_flag" | |
3886 | || test ! -s conftest.err' | |
3887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3888 | (eval $ac_try) 2>&5 | |
3889 | ac_status=$? | |
3890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3891 | (exit $ac_status); }; } && | |
3892 | { ac_try='test -s conftest.$ac_objext' | |
3893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3894 | (eval $ac_try) 2>&5 | |
3895 | ac_status=$? | |
3896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3897 | (exit $ac_status); }; }; then | |
3898 | : | |
3899 | else | |
3900 | echo "$as_me: failed program was:" >&5 | |
3901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3902 | |
ce2cded5 L |
3903 | continue |
3904 | fi | |
3905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3906 | cat >conftest.$ac_ext <<_ACEOF | |
3907 | /* confdefs.h. */ | |
3908 | _ACEOF | |
3909 | cat confdefs.h >>conftest.$ac_ext | |
3910 | cat >>conftest.$ac_ext <<_ACEOF | |
3911 | /* end confdefs.h. */ | |
3912 | $ac_declaration | |
3913 | int | |
3914 | main () | |
3915 | { | |
3916 | exit (42); | |
3917 | ; | |
3918 | return 0; | |
3919 | } | |
3920 | _ACEOF | |
3921 | rm -f conftest.$ac_objext | |
3922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3923 | (eval $ac_compile) 2>conftest.er1 | |
3924 | ac_status=$? | |
3925 | grep -v '^ *+' conftest.er1 >conftest.err | |
3926 | rm -f conftest.er1 | |
3927 | cat conftest.err >&5 | |
3928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3929 | (exit $ac_status); } && | |
3930 | { ac_try='test -z "$ac_c_werror_flag" | |
3931 | || test ! -s conftest.err' | |
3932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3933 | (eval $ac_try) 2>&5 | |
3934 | ac_status=$? | |
3935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3936 | (exit $ac_status); }; } && | |
3937 | { ac_try='test -s conftest.$ac_objext' | |
3938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3939 | (eval $ac_try) 2>&5 | |
3940 | ac_status=$? | |
3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3942 | (exit $ac_status); }; }; then | |
3943 | break | |
3944 | else | |
3945 | echo "$as_me: failed program was:" >&5 | |
3946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3947 | |
ce2cded5 L |
3948 | fi |
3949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3950 | done | |
3951 | rm -f conftest* | |
3952 | if test -n "$ac_declaration"; then | |
3953 | echo '#ifdef __cplusplus' >>confdefs.h | |
3954 | echo $ac_declaration >>confdefs.h | |
3955 | echo '#endif' >>confdefs.h | |
3956 | fi | |
d7040cdb | 3957 | |
d7040cdb | 3958 | else |
ce2cded5 L |
3959 | echo "$as_me: failed program was:" >&5 |
3960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3961 | |
ce2cded5 L |
3962 | fi |
3963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3964 | ac_ext=c | |
3965 | ac_cpp='$CPP $CPPFLAGS' | |
3966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 3969 | |
d7040cdb | 3970 | |
ce2cded5 L |
3971 | cat >>confdefs.h <<\_ACEOF |
3972 | #define _GNU_SOURCE 1 | |
3973 | _ACEOF | |
d7040cdb | 3974 | |
d7040cdb | 3975 | |
ce2cded5 L |
3976 | # Find a good install program. We prefer a C program (faster), |
3977 | # so one script is as good as another. But avoid the broken or | |
3978 | # incompatible versions: | |
3979 | # SysV /etc/install, /usr/sbin/install | |
3980 | # SunOS /usr/etc/install | |
3981 | # IRIX /sbin/install | |
3982 | # AIX /bin/install | |
3983 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3984 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3985 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3986 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3987 | # OS/2's system install, which has a completely different semantic | |
3988 | # ./install, which can be erroneously created by make from ./install.sh. | |
58c85be7 | 3989 | # Reject install programs that cannot install multiple files. |
ce2cded5 L |
3990 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3991 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3992 | if test -z "$INSTALL"; then | |
3993 | if test "${ac_cv_path_install+set}" = set; then | |
3994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3995 | else | |
3996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3997 | for as_dir in $PATH | |
3998 | do | |
3999 | IFS=$as_save_IFS | |
4000 | test -z "$as_dir" && as_dir=. | |
4001 | # Account for people who put trailing slashes in PATH elements. | |
4002 | case $as_dir/ in | |
4003 | ./ | .// | /cC/* | \ | |
4004 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4005 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4006 | /usr/ucb/* ) ;; | |
4007 | *) | |
4008 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4009 | # Don't use installbsd from OSF since it installs stuff as root | |
4010 | # by default. | |
4011 | for ac_prog in ginstall scoinst install; do | |
4012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4013 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4014 | if test $ac_prog = install && | |
4015 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4016 | # AIX install. It has an incompatible calling convention. | |
4017 | : | |
4018 | elif test $ac_prog = install && | |
4019 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4020 | # program-specific install script used by HP pwplus--don't use. | |
4021 | : | |
4022 | else | |
58c85be7 RW |
4023 | rm -rf conftest.one conftest.two conftest.dir |
4024 | echo one > conftest.one | |
4025 | echo two > conftest.two | |
4026 | mkdir conftest.dir | |
4027 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4028 | test -s conftest.one && test -s conftest.two && | |
4029 | test -s conftest.dir/conftest.one && | |
4030 | test -s conftest.dir/conftest.two | |
4031 | then | |
4032 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4033 | break 3 | |
4034 | fi | |
ce2cded5 L |
4035 | fi |
4036 | fi | |
4037 | done | |
4038 | done | |
4039 | ;; | |
4040 | esac | |
4041 | done | |
d7040cdb | 4042 | |
58c85be7 | 4043 | rm -rf conftest.one conftest.two conftest.dir |
d7040cdb | 4044 | |
ce2cded5 L |
4045 | fi |
4046 | if test "${ac_cv_path_install+set}" = set; then | |
4047 | INSTALL=$ac_cv_path_install | |
d7040cdb | 4048 | else |
58c85be7 RW |
4049 | # As a last resort, use the slow shell script. Don't cache a |
4050 | # value for INSTALL within a source directory, because that will | |
ce2cded5 | 4051 | # break other packages using the cache if that directory is |
58c85be7 | 4052 | # removed, or if the value is a relative name. |
ce2cded5 | 4053 | INSTALL=$ac_install_sh |
d7040cdb | 4054 | fi |
ce2cded5 L |
4055 | fi |
4056 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
4057 | echo "${ECHO_T}$INSTALL" >&6 | |
ac48eca1 | 4058 | |
ce2cded5 L |
4059 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4060 | # It thinks the first close brace ends the variable substitution. | |
4061 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ac48eca1 | 4062 | |
ce2cded5 | 4063 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
ac48eca1 | 4064 | |
ce2cded5 | 4065 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
d7040cdb | 4066 | |
d7040cdb | 4067 | |
252b5132 | 4068 | |
d7040cdb | 4069 | |
ce2cded5 L |
4070 | macro_version='2.1a' |
4071 | macro_revision='1.2435' | |
d7040cdb | 4072 | |
d7040cdb | 4073 | |
d7040cdb | 4074 | |
d7040cdb | 4075 | |
d7040cdb | 4076 | |
252b5132 | 4077 | |
d7040cdb SE |
4078 | |
4079 | ||
4080 | ||
4081 | ||
4082 | ||
4083 | ||
ce2cded5 | 4084 | ltmain="$ac_aux_dir/ltmain.sh" |
d7040cdb | 4085 | |
ce2cded5 | 4086 | # Set options |
d7040cdb | 4087 | |
ce2cded5 | 4088 | enable_dlopen=no |
d7040cdb SE |
4089 | |
4090 | ||
ce2cded5 | 4091 | enable_win32_dll=no |
d7040cdb SE |
4092 | |
4093 | ||
ce2cded5 L |
4094 | # Check whether --enable-shared or --disable-shared was given. |
4095 | if test "${enable_shared+set}" = set; then | |
4096 | enableval="$enable_shared" | |
4097 | p=${PACKAGE-default} | |
4098 | case $enableval in | |
4099 | yes) enable_shared=yes ;; | |
4100 | no) enable_shared=no ;; | |
4101 | *) | |
4102 | enable_shared=no | |
4103 | # Look at the argument we got. We use all the common list separators. | |
4104 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4105 | for pkg in $enableval; do | |
4106 | IFS="$lt_save_ifs" | |
4107 | if test "X$pkg" = "X$p"; then | |
4108 | enable_shared=yes | |
4109 | fi | |
4110 | done | |
4111 | IFS="$lt_save_ifs" | |
4112 | ;; | |
4113 | esac | |
ac48eca1 | 4114 | else |
ce2cded5 L |
4115 | enable_shared=yes |
4116 | fi; | |
6bf9431b | 4117 | |
ac48eca1 | 4118 | |
6bf9431b | 4119 | |
ac48eca1 | 4120 | |
ac48eca1 | 4121 | |
d7040cdb SE |
4122 | |
4123 | ||
4124 | ||
ce2cded5 L |
4125 | # Check whether --enable-static or --disable-static was given. |
4126 | if test "${enable_static+set}" = set; then | |
4127 | enableval="$enable_static" | |
4128 | p=${PACKAGE-default} | |
4129 | case $enableval in | |
4130 | yes) enable_static=yes ;; | |
4131 | no) enable_static=no ;; | |
4132 | *) | |
4133 | enable_static=no | |
4134 | # Look at the argument we got. We use all the common list separators. | |
4135 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4136 | for pkg in $enableval; do | |
4137 | IFS="$lt_save_ifs" | |
4138 | if test "X$pkg" = "X$p"; then | |
4139 | enable_static=yes | |
4140 | fi | |
4141 | done | |
4142 | IFS="$lt_save_ifs" | |
4143 | ;; | |
4144 | esac | |
4145 | else | |
4146 | enable_static=yes | |
4147 | fi; | |
d7040cdb SE |
4148 | |
4149 | ||
4150 | ||
4151 | ||
4152 | ||
4153 | ||
4154 | ||
4155 | ||
6bf9431b | 4156 | |
ce2cded5 L |
4157 | # Check whether --with-pic or --without-pic was given. |
4158 | if test "${with_pic+set}" = set; then | |
4159 | withval="$with_pic" | |
4160 | pic_mode="$withval" | |
ac48eca1 | 4161 | else |
ce2cded5 L |
4162 | pic_mode=default |
4163 | fi; | |
ac48eca1 | 4164 | |
ce2cded5 | 4165 | test -z "$pic_mode" && pic_mode=default |
6bf9431b | 4166 | |
ac48eca1 | 4167 | |
ce2cded5 L |
4168 | |
4169 | ||
4170 | ||
4171 | ||
4172 | ||
4173 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
4174 | if test "${enable_fast_install+set}" = set; then | |
4175 | enableval="$enable_fast_install" | |
4176 | p=${PACKAGE-default} | |
4177 | case $enableval in | |
4178 | yes) enable_fast_install=yes ;; | |
4179 | no) enable_fast_install=no ;; | |
4180 | *) | |
4181 | enable_fast_install=no | |
4182 | # Look at the argument we got. We use all the common list separators. | |
4183 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4184 | for pkg in $enableval; do | |
4185 | IFS="$lt_save_ifs" | |
4186 | if test "X$pkg" = "X$p"; then | |
4187 | enable_fast_install=yes | |
4188 | fi | |
4189 | done | |
4190 | IFS="$lt_save_ifs" | |
4191 | ;; | |
4192 | esac | |
ac48eca1 | 4193 | else |
ce2cded5 L |
4194 | enable_fast_install=yes |
4195 | fi; | |
ac48eca1 AO |
4196 | |
4197 | ||
252b5132 | 4198 | |
5af11cab | 4199 | |
5af11cab | 4200 | |
5af11cab | 4201 | |
6bf9431b | 4202 | |
ce2cded5 L |
4203 | |
4204 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4205 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
4206 | if test "${lt_cv_path_SED+set}" = set; then | |
6bf9431b BE |
4207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4208 | else | |
ce2cded5 L |
4209 | # Loop through the user's path and test for sed and gsed. |
4210 | # Then use that list of sed's as ones to test for truncation. | |
6bf9431b BE |
4211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4212 | for as_dir in $PATH | |
4213 | do | |
4214 | IFS=$as_save_IFS | |
4215 | test -z "$as_dir" && as_dir=. | |
ce2cded5 L |
4216 | for lt_ac_prog in sed gsed; do |
4217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4218 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
4219 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
4220 | fi | |
4221 | done | |
4222 | done | |
6bf9431b | 4223 | done |
ce2cded5 L |
4224 | IFS=$as_save_IFS |
4225 | lt_ac_max=0 | |
4226 | lt_ac_count=0 | |
4227 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
4228 | # along with /bin/sed that truncates output. | |
4229 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
4230 | test ! -f $lt_ac_sed && continue | |
4231 | cat /dev/null > conftest.in | |
4232 | lt_ac_count=0 | |
4233 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
4234 | # Check for GNU sed and select it if it is found. | |
4235 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
4236 | lt_cv_path_SED=$lt_ac_sed | |
4237 | break | |
6bf9431b | 4238 | fi |
ce2cded5 L |
4239 | while true; do |
4240 | cat conftest.in conftest.in >conftest.tmp | |
4241 | mv conftest.tmp conftest.in | |
4242 | cp conftest.in conftest.nl | |
4243 | echo >>conftest.nl | |
4244 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
4245 | cmp -s conftest.out conftest.nl || break | |
4246 | # 10000 chars as input seems more than enough | |
4247 | test $lt_ac_count -gt 10 && break | |
4248 | lt_ac_count=`expr $lt_ac_count + 1` | |
4249 | if test $lt_ac_count -gt $lt_ac_max; then | |
4250 | lt_ac_max=$lt_ac_count | |
4251 | lt_cv_path_SED=$lt_ac_sed | |
4252 | fi | |
4253 | done | |
6bf9431b BE |
4254 | done |
4255 | ||
6bf9431b BE |
4256 | fi |
4257 | ||
ce2cded5 | 4258 | SED=$lt_cv_path_SED |
6bf9431b | 4259 | |
ce2cded5 L |
4260 | echo "$as_me:$LINENO: result: $SED" >&5 |
4261 | echo "${ECHO_T}$SED" >&6 | |
6bf9431b | 4262 | |
ce2cded5 L |
4263 | test -z "$SED" && SED=sed |
4264 | Xsed="$SED -e 1s/^X//" | |
6bf9431b | 4265 | |
6bf9431b | 4266 | |
6bf9431b | 4267 | |
252b5132 | 4268 | |
6bf9431b | 4269 | |
252b5132 | 4270 | |
6bf9431b | 4271 | |
252b5132 | 4272 | |
6bf9431b | 4273 | |
252b5132 | 4274 | |
252b5132 | 4275 | |
ce2cded5 L |
4276 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4277 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4278 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4280 | else | |
4281 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4282 | then ac_cv_prog_egrep='grep -E' | |
4283 | else ac_cv_prog_egrep='egrep' | |
4284 | fi | |
4285 | fi | |
4286 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4287 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4288 | EGREP=$ac_cv_prog_egrep | |
4289 | ||
6bf9431b | 4290 | |
ce2cded5 L |
4291 | echo "$as_me:$LINENO: checking for fgrep" >&5 |
4292 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
4293 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
4294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4295 | else | |
4296 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
4297 | then ac_cv_prog_fgrep='grep -F' | |
4298 | else ac_cv_prog_fgrep='fgrep' | |
4299 | fi | |
4300 | fi | |
4301 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
4302 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
4303 | FGREP=$ac_cv_prog_fgrep | |
6bf9431b BE |
4304 | |
4305 | ||
ce2cded5 | 4306 | test -z "$GREP" && GREP=grep |
6bf9431b | 4307 | |
d7040cdb SE |
4308 | |
4309 | ||
4310 | ||
4311 | ||
4312 | ||
4313 | ||
4314 | ||
4315 | ||
4316 | ||
4317 | ||
4318 | ||
4319 | ||
4320 | ||
4321 | ||
4322 | ||
4323 | ||
4324 | ||
4325 | ||
ce2cded5 L |
4326 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
4327 | if test "${with_gnu_ld+set}" = set; then | |
4328 | withval="$with_gnu_ld" | |
4329 | test "$withval" = no || with_gnu_ld=yes | |
4330 | else | |
4331 | with_gnu_ld=no | |
4332 | fi; | |
4333 | ac_prog=ld | |
4334 | if test "$GCC" = yes; then | |
4335 | # Check if gcc -print-prog-name=ld gives a path. | |
4336 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4337 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
4338 | case $host in | |
4339 | *-*-mingw*) | |
4340 | # gcc leaves a trailing carriage return which upsets mingw | |
4341 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4342 | *) | |
4343 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4344 | esac | |
4345 | case $ac_prog in | |
4346 | # Accept absolute paths. | |
4347 | [\\/]* | ?:[\\/]*) | |
4348 | re_direlt='/[^/][^/]*/\.\./' | |
4349 | # Canonicalize the pathname of ld | |
4350 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4351 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4352 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4353 | done | |
4354 | test -z "$LD" && LD="$ac_prog" | |
4355 | ;; | |
4356 | "") | |
4357 | # If it fails, then pretend we aren't using GCC. | |
4358 | ac_prog=ld | |
4359 | ;; | |
4360 | *) | |
4361 | # If it is relative, then search for the first ld in PATH. | |
4362 | with_gnu_ld=unknown | |
4363 | ;; | |
4364 | esac | |
4365 | elif test "$with_gnu_ld" = yes; then | |
4366 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4367 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
4368 | else | |
4369 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4370 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
4371 | fi | |
4372 | if test "${lt_cv_path_LD+set}" = set; then | |
4373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4374 | else | |
4375 | if test -z "$LD"; then | |
4376 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4377 | for ac_dir in $PATH; do | |
4378 | IFS="$lt_save_ifs" | |
4379 | test -z "$ac_dir" && ac_dir=. | |
4380 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4381 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4382 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4383 | # but apparently some variants of GNU ld only accept -v. | |
4384 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4385 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4386 | *GNU* | *'with BFD'*) | |
4387 | test "$with_gnu_ld" != no && break | |
4388 | ;; | |
4389 | *) | |
4390 | test "$with_gnu_ld" != yes && break | |
4391 | ;; | |
4392 | esac | |
4393 | fi | |
4394 | done | |
4395 | IFS="$lt_save_ifs" | |
4396 | else | |
4397 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4398 | fi | |
4399 | fi | |
d7040cdb | 4400 | |
ce2cded5 L |
4401 | LD="$lt_cv_path_LD" |
4402 | if test -n "$LD"; then | |
4403 | echo "$as_me:$LINENO: result: $LD" >&5 | |
4404 | echo "${ECHO_T}$LD" >&6 | |
4405 | else | |
4406 | echo "$as_me:$LINENO: result: no" >&5 | |
4407 | echo "${ECHO_T}no" >&6 | |
4408 | fi | |
4409 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4410 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4411 | { (exit 1); exit 1; }; } | |
4412 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4413 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4414 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4416 | else | |
4417 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4418 | case `$LD -v 2>&1 </dev/null` in | |
4419 | *GNU* | *'with BFD'*) | |
4420 | lt_cv_prog_gnu_ld=yes | |
4421 | ;; | |
4422 | *) | |
4423 | lt_cv_prog_gnu_ld=no | |
4424 | ;; | |
4425 | esac | |
4426 | fi | |
4427 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4428 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
4429 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
d7040cdb SE |
4430 | |
4431 | ||
4432 | ||
4433 | ||
4434 | ||
4435 | ||
d7040cdb | 4436 | |
d7040cdb | 4437 | |
d7040cdb SE |
4438 | |
4439 | ||
ce2cded5 L |
4440 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4441 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
4442 | if test "${lt_cv_path_NM+set}" = set; then | |
d7040cdb SE |
4443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4444 | else | |
ce2cded5 L |
4445 | if test -n "$NM"; then |
4446 | # Let the user override the test. | |
4447 | lt_cv_path_NM="$NM" | |
4448 | else | |
4449 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4450 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4451 | lt_nm_to_check="$lt_nm_to_check nm" | |
d7040cdb | 4452 | fi |
ce2cded5 L |
4453 | for lt_tmp_nm in $lt_nm_to_check; do |
4454 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4455 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4456 | IFS="$lt_save_ifs" | |
4457 | test -z "$ac_dir" && ac_dir=. | |
4458 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4459 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4460 | # Check to see if the nm accepts a BSD-compat flag. | |
4461 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4462 | # nm: unknown option "B" ignored | |
4463 | # Tru64's nm complains that /dev/null is an invalid object file | |
4464 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4465 | */dev/null* | *'Invalid file or object type'*) | |
4466 | lt_cv_path_NM="$tmp_nm -B" | |
4467 | break | |
4468 | ;; | |
4469 | *) | |
4470 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4471 | */dev/null*) | |
4472 | lt_cv_path_NM="$tmp_nm -p" | |
4473 | break | |
4474 | ;; | |
4475 | *) | |
4476 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4477 | continue # so that we can try to find one that supports BSD flags | |
4478 | ;; | |
4479 | esac | |
4480 | ;; | |
4481 | esac | |
4482 | fi | |
4483 | done | |
4484 | IFS="$lt_save_ifs" | |
4485 | done | |
4486 | : ${lt_cv_path_NM=no} | |
4487 | fi | |
4488 | fi | |
4489 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4490 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4491 | if test "$lt_cv_path_NM" != "no"; then | |
4492 | NM="$lt_cv_path_NM" | |
4493 | else | |
4494 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4495 | if test -n "$ac_tool_prefix"; then | |
4496 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4497 | do | |
4498 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4499 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4502 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4504 | else | |
4505 | if test -n "$DUMPBIN"; then | |
4506 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4507 | else | |
4508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4509 | for as_dir in $PATH | |
4510 | do | |
4511 | IFS=$as_save_IFS | |
4512 | test -z "$as_dir" && as_dir=. | |
4513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4515 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4517 | break 2 | |
4518 | fi | |
4519 | done | |
4520 | done | |
d7040cdb | 4521 | |
ce2cded5 L |
4522 | fi |
4523 | fi | |
4524 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4525 | if test -n "$DUMPBIN"; then | |
4526 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4527 | echo "${ECHO_T}$DUMPBIN" >&6 | |
4528 | else | |
4529 | echo "$as_me:$LINENO: result: no" >&5 | |
4530 | echo "${ECHO_T}no" >&6 | |
4531 | fi | |
d7040cdb | 4532 | |
ce2cded5 L |
4533 | test -n "$DUMPBIN" && break |
4534 | done | |
4535 | fi | |
4536 | if test -z "$DUMPBIN"; then | |
4537 | ac_ct_DUMPBIN=$DUMPBIN | |
4538 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4539 | do | |
4540 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4541 | set dummy $ac_prog; ac_word=$2 | |
4542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4544 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4546 | else | |
4547 | if test -n "$ac_ct_DUMPBIN"; then | |
4548 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4549 | else | |
4550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4551 | for as_dir in $PATH | |
4552 | do | |
4553 | IFS=$as_save_IFS | |
4554 | test -z "$as_dir" && as_dir=. | |
4555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4557 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4559 | break 2 | |
4560 | fi | |
4561 | done | |
4562 | done | |
d7040cdb | 4563 | |
ce2cded5 L |
4564 | fi |
4565 | fi | |
4566 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4567 | if test -n "$ac_ct_DUMPBIN"; then | |
4568 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4569 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
4570 | else | |
4571 | echo "$as_me:$LINENO: result: no" >&5 | |
4572 | echo "${ECHO_T}no" >&6 | |
4573 | fi | |
d7040cdb | 4574 | |
ce2cded5 L |
4575 | test -n "$ac_ct_DUMPBIN" && break |
4576 | done | |
4577 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
d7040cdb | 4578 | |
ce2cded5 L |
4579 | DUMPBIN=$ac_ct_DUMPBIN |
4580 | fi | |
d7040cdb | 4581 | |
d7040cdb | 4582 | |
ce2cded5 L |
4583 | if test "$DUMPBIN" != ":"; then |
4584 | NM="$DUMPBIN" | |
d7040cdb | 4585 | fi |
ce2cded5 L |
4586 | fi |
4587 | test -z "$NM" && NM=nm | |
d7040cdb | 4588 | |
d7040cdb | 4589 | |
d7040cdb | 4590 | |
d7040cdb | 4591 | |
d7040cdb | 4592 | |
d7040cdb | 4593 | |
ce2cded5 L |
4594 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4595 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
4596 | if test "${lt_cv_nm_interface+set}" = set; then | |
4597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4598 | else | |
4599 | lt_cv_nm_interface="BSD nm" | |
4600 | echo "int some_variable = 0;" > conftest.$ac_ext | |
58c85be7 | 4601 | (eval echo "\"\$as_me:4601: $ac_compile\"" >&5) |
ce2cded5 L |
4602 | (eval "$ac_compile" 2>conftest.err) |
4603 | cat conftest.err >&5 | |
58c85be7 | 4604 | (eval echo "\"\$as_me:4604: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
ce2cded5 L |
4605 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4606 | cat conftest.err >&5 | |
58c85be7 | 4607 | (eval echo "\"\$as_me:4607: output\"" >&5) |
ce2cded5 L |
4608 | cat conftest.out >&5 |
4609 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4610 | lt_cv_nm_interface="MS dumpbin" | |
4611 | fi | |
4612 | rm -f conftest* | |
4613 | fi | |
4614 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4615 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
d7040cdb | 4616 | |
ce2cded5 L |
4617 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4618 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4619 | LN_S=$as_ln_s | |
4620 | if test "$LN_S" = "ln -s"; then | |
4621 | echo "$as_me:$LINENO: result: yes" >&5 | |
4622 | echo "${ECHO_T}yes" >&6 | |
4623 | else | |
4624 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4625 | echo "${ECHO_T}no, using $LN_S" >&6 | |
4626 | fi | |
d7040cdb | 4627 | |
ce2cded5 L |
4628 | # find the maximum length of command line arguments |
4629 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4630 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4631 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4633 | else | |
4634 | i=0 | |
4635 | teststring="ABCD" | |
4636 | ||
4637 | case $build_os in | |
4638 | msdosdjgpp*) | |
4639 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4640 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4641 | # during glob expansion). Even if it were fixed, the result of this | |
4642 | # check would be larger than it should be. | |
4643 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4644 | ;; | |
4645 | ||
4646 | gnu*) | |
4647 | # Under GNU Hurd, this test is not required because there is | |
4648 | # no limit to the length of command line arguments. | |
4649 | # Libtool will interpret -1 as no limit whatsoever | |
4650 | lt_cv_sys_max_cmd_len=-1; | |
4651 | ;; | |
4652 | ||
4653 | cygwin* | mingw*) | |
4654 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4655 | # about 5 minutes as the teststring grows exponentially. | |
4656 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4657 | # you end up with a "frozen" computer, even though with patience | |
4658 | # the test eventually succeeds (with a max line length of 256k). | |
4659 | # Instead, let's just punt: use the minimum linelength reported by | |
4660 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4661 | lt_cv_sys_max_cmd_len=8192; | |
4662 | ;; | |
4663 | ||
4664 | amigaos*) | |
4665 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4666 | # So we just punt and use a minimum line length of 8192. | |
4667 | lt_cv_sys_max_cmd_len=8192; | |
4668 | ;; | |
4669 | ||
4670 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4671 | # This has been around since 386BSD, at least. Likely further. | |
4672 | if test -x /sbin/sysctl; then | |
4673 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4674 | elif test -x /usr/sbin/sysctl; then | |
4675 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
d7040cdb | 4676 | else |
ce2cded5 | 4677 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
d7040cdb | 4678 | fi |
ce2cded5 L |
4679 | # And add a safety zone |
4680 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4681 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4682 | ;; | |
6bf9431b | 4683 | |
ce2cded5 L |
4684 | interix*) |
4685 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4686 | lt_cv_sys_max_cmd_len=196608 | |
4687 | ;; | |
d7040cdb | 4688 | |
ce2cded5 L |
4689 | osf*) |
4690 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4691 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4692 | # nice to cause kernel panics so lets avoid the loop below. | |
4693 | # First set a reasonable default. | |
4694 | lt_cv_sys_max_cmd_len=16384 | |
4695 | # | |
4696 | if test -x /sbin/sysconfig; then | |
4697 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4698 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4699 | esac | |
4700 | fi | |
4701 | ;; | |
4702 | sco3.2v5*) | |
4703 | lt_cv_sys_max_cmd_len=102400 | |
4704 | ;; | |
4705 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4706 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4707 | if test -n "$kargmax"; then | |
4708 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4709 | else | |
4710 | lt_cv_sys_max_cmd_len=32768 | |
4711 | fi | |
4712 | ;; | |
4713 | *) | |
4714 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` | |
4715 | if test -n $lt_cv_sys_max_cmd_len; then | |
4716 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4717 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4718 | else | |
4719 | # Make teststring a little bigger before we do anything with it. | |
4720 | # a 1K string should be a reasonable start. | |
4721 | for i in 1 2 3 4 5 6 7 8 ; do | |
4722 | teststring=$teststring$teststring | |
4723 | done | |
4724 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4725 | # If test is not a shell built-in, we'll probably end up computing a | |
4726 | # maximum length that is only half of the actual maximum length, but | |
4727 | # we can't tell. | |
4728 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4729 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4730 | test $i != 17 # 1/2 MB should be enough | |
4731 | do | |
4732 | i=`expr $i + 1` | |
4733 | teststring=$teststring$teststring | |
4734 | done | |
4735 | # Only check the string length outside the loop. | |
4736 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4737 | teststring= | |
4738 | # Add a significant safety factor because C++ compilers can tack on | |
4739 | # massive amounts of additional arguments before passing them to the | |
4740 | # linker. It appears as though 1/2 is a usable value. | |
4741 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4742 | fi | |
4743 | ;; | |
4744 | esac | |
d7040cdb | 4745 | |
d7040cdb | 4746 | fi |
ce2cded5 L |
4747 | |
4748 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4749 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4750 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
d7040cdb | 4751 | else |
ce2cded5 L |
4752 | echo "$as_me:$LINENO: result: none" >&5 |
4753 | echo "${ECHO_T}none" >&6 | |
d7040cdb | 4754 | fi |
ce2cded5 | 4755 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d7040cdb SE |
4756 | |
4757 | ||
4758 | ||
4759 | ||
4760 | ||
4761 | ||
4762 | ||
ce2cded5 L |
4763 | : ${CP="cp -f"} |
4764 | : ${MV="mv -f"} | |
4765 | : ${RM="rm -f"} | |
d7040cdb | 4766 | |
ce2cded5 L |
4767 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
4768 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
4769 | # Try some XSI features | |
4770 | xsi_shell=no | |
4771 | ( _lt_dummy="a/b/c" | |
4772 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4773 | = c,a/b,, ) >/dev/null 2>&1 \ | |
4774 | && xsi_shell=yes | |
4775 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4776 | echo "${ECHO_T}$xsi_shell" >&6 | |
d7040cdb SE |
4777 | |
4778 | ||
ce2cded5 L |
4779 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
4780 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
4781 | lt_shell_append=no | |
4782 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4783 | >/dev/null 2>&1 \ | |
4784 | && lt_shell_append=yes | |
4785 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4786 | echo "${ECHO_T}$lt_shell_append" >&6 | |
d7040cdb SE |
4787 | |
4788 | ||
ce2cded5 L |
4789 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4790 | lt_unset=unset | |
4791 | else | |
4792 | lt_unset=false | |
4793 | fi | |
d7040cdb SE |
4794 | |
4795 | ||
4796 | ||
4797 | ||
4798 | ||
ce2cded5 L |
4799 | # test EBCDIC or ASCII |
4800 | case `echo X|tr X '\101'` in | |
4801 | A) # ASCII based system | |
4802 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4803 | lt_SP2NL='tr \040 \012' | |
4804 | lt_NL2SP='tr \015\012 \040\040' | |
4805 | ;; | |
4806 | *) # EBCDIC based system | |
4807 | lt_SP2NL='tr \100 \n' | |
4808 | lt_NL2SP='tr \r\n \100\100' | |
4809 | ;; | |
4810 | esac | |
d7040cdb | 4811 | |
d7040cdb | 4812 | |
d7040cdb | 4813 | |
d7040cdb | 4814 | |
ce2cded5 L |
4815 | |
4816 | ||
4817 | ||
4818 | ||
4819 | ||
4820 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4821 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4822 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
6bf9431b BE |
4823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4824 | else | |
ce2cded5 L |
4825 | lt_cv_ld_reload_flag='-r' |
4826 | fi | |
4827 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4828 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4829 | reload_flag=$lt_cv_ld_reload_flag | |
4830 | case $reload_flag in | |
4831 | "" | " "*) ;; | |
4832 | *) reload_flag=" $reload_flag" ;; | |
4833 | esac | |
4834 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4835 | case $host_os in | |
4836 | darwin*) | |
4837 | if test "$GCC" = yes; then | |
4838 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4839 | else | |
4840 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4841 | fi | |
4842 | ;; | |
4843 | esac | |
d7040cdb | 4844 | |
6bf9431b | 4845 | |
252b5132 | 4846 | |
ce2cded5 L |
4847 | |
4848 | ||
4849 | ||
4850 | ||
4851 | ||
4852 | ||
4853 | ||
4854 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4855 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
4856 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6bf9431b | 4858 | else |
ce2cded5 L |
4859 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4860 | lt_cv_file_magic_test_file= | |
4861 | lt_cv_deplibs_check_method='unknown' | |
4862 | # Need to set the preceding variable on all platforms that support | |
4863 | # interlibrary dependencies. | |
4864 | # 'none' -- dependencies not supported. | |
4865 | # `unknown' -- same as none, but documents that we really don't know. | |
4866 | # 'pass_all' -- all dependencies passed with no checks. | |
4867 | # 'test_compile' -- check by making test program. | |
4868 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4869 | # which responds to the $file_magic_cmd with a given extended regex. | |
4870 | # If you have `file' or equivalent on your system and you're not sure | |
4871 | # whether `pass_all' will *always* work, you probably want this one. | |
6bf9431b | 4872 | |
ce2cded5 | 4873 | case $host_os in |
50e7d84b | 4874 | aix[4-9]*) |
ce2cded5 L |
4875 | lt_cv_deplibs_check_method=pass_all |
4876 | ;; | |
6bf9431b | 4877 | |
ce2cded5 L |
4878 | beos*) |
4879 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 4880 | ;; |
ce2cded5 L |
4881 | |
4882 | bsdi[45]*) | |
4883 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4884 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4885 | lt_cv_file_magic_test_file=/shlib/libc.so | |
d7040cdb | 4886 | ;; |
d7040cdb | 4887 | |
ce2cded5 L |
4888 | cygwin*) |
4889 | # func_win32_libid is a shell function defined in ltmain.sh | |
4890 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4891 | lt_cv_file_magic_cmd='func_win32_libid' | |
4892 | ;; | |
d7040cdb | 4893 | |
ce2cded5 L |
4894 | mingw* | pw32*) |
4895 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4896 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4897 | # unless we find 'file', for example because we are cross-compiling. | |
4898 | if ( file / ) >/dev/null 2>&1; then | |
4899 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4900 | lt_cv_file_magic_cmd='func_win32_libid' | |
0ab6f085 | 4901 | else |
ce2cded5 L |
4902 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4903 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
0ab6f085 | 4904 | fi |
ce2cded5 | 4905 | ;; |
d7040cdb | 4906 | |
ce2cded5 L |
4907 | darwin* | rhapsody*) |
4908 | lt_cv_deplibs_check_method=pass_all | |
4909 | ;; | |
d7040cdb | 4910 | |
ce2cded5 L |
4911 | freebsd* | dragonfly*) |
4912 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4913 | case $host_cpu in | |
4914 | i*86 ) | |
4915 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4916 | # Let's accept both of them until this is cleared up. | |
4917 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4918 | lt_cv_file_magic_cmd=/usr/bin/file | |
4919 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4920 | ;; | |
4921 | esac | |
0ab6f085 | 4922 | else |
ce2cded5 | 4923 | lt_cv_deplibs_check_method=pass_all |
0ab6f085 | 4924 | fi |
ce2cded5 | 4925 | ;; |
6bf9431b | 4926 | |
ce2cded5 L |
4927 | gnu*) |
4928 | lt_cv_deplibs_check_method=pass_all | |
4929 | ;; | |
6bf9431b | 4930 | |
ce2cded5 L |
4931 | hpux10.20* | hpux11*) |
4932 | lt_cv_file_magic_cmd=/usr/bin/file | |
4933 | case $host_cpu in | |
4934 | ia64*) | |
4935 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4936 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4937 | ;; | |
4938 | hppa*64*) | |
4939 | 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]' | |
4940 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4941 | ;; | |
4942 | *) | |
4943 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4944 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4945 | ;; | |
4946 | esac | |
4947 | ;; | |
6bf9431b | 4948 | |
ce2cded5 L |
4949 | interix[3-9]*) |
4950 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4951 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4952 | ;; | |
6bf9431b | 4953 | |
ce2cded5 L |
4954 | irix5* | irix6* | nonstopux*) |
4955 | case $LD in | |
4956 | *-32|*"-32 ") libmagic=32-bit;; | |
4957 | *-n32|*"-n32 ") libmagic=N32;; | |
4958 | *-64|*"-64 ") libmagic=64-bit;; | |
4959 | *) libmagic=never-match;; | |
4960 | esac | |
4961 | lt_cv_deplibs_check_method=pass_all | |
4962 | ;; | |
d7040cdb | 4963 | |
ce2cded5 L |
4964 | # This must be Linux ELF. |
4965 | linux* | k*bsd*-gnu) | |
4966 | lt_cv_deplibs_check_method=pass_all | |
4967 | ;; | |
d7040cdb | 4968 | |
ce2cded5 L |
4969 | netbsd*) |
4970 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4971 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
0ab6f085 | 4972 | else |
ce2cded5 | 4973 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
0ab6f085 | 4974 | fi |
ce2cded5 | 4975 | ;; |
6bf9431b | 4976 | |
ce2cded5 L |
4977 | newos6*) |
4978 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4979 | lt_cv_file_magic_cmd=/usr/bin/file | |
4980 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4981 | ;; | |
d7040cdb | 4982 | |
ce2cded5 L |
4983 | *nto* | *qnx*) |
4984 | lt_cv_deplibs_check_method=pass_all | |
4985 | ;; | |
d7040cdb | 4986 | |
ce2cded5 L |
4987 | openbsd*) |
4988 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4989 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4990 | else | |
4991 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4992 | fi | |
4993 | ;; | |
d7040cdb | 4994 | |
ce2cded5 L |
4995 | osf3* | osf4* | osf5*) |
4996 | lt_cv_deplibs_check_method=pass_all | |
4997 | ;; | |
d7040cdb | 4998 | |
ce2cded5 L |
4999 | rdos*) |
5000 | lt_cv_deplibs_check_method=pass_all | |
5001 | ;; | |
d7040cdb | 5002 | |
ce2cded5 L |
5003 | solaris*) |
5004 | lt_cv_deplibs_check_method=pass_all | |
5005 | ;; | |
d7040cdb | 5006 | |
ce2cded5 L |
5007 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5008 | lt_cv_deplibs_check_method=pass_all | |
5009 | ;; | |
d7040cdb | 5010 | |
ce2cded5 L |
5011 | sysv4 | sysv4.3*) |
5012 | case $host_vendor in | |
5013 | motorola) | |
5014 | 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]' | |
5015 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5016 | ;; | |
5017 | ncr) | |
5018 | lt_cv_deplibs_check_method=pass_all | |
5019 | ;; | |
5020 | sequent) | |
5021 | lt_cv_file_magic_cmd='/bin/file' | |
5022 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5023 | ;; | |
5024 | sni) | |
5025 | lt_cv_file_magic_cmd='/bin/file' | |
5026 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5027 | lt_cv_file_magic_test_file=/lib/libc.so | |
5028 | ;; | |
5029 | siemens) | |
5030 | lt_cv_deplibs_check_method=pass_all | |
5031 | ;; | |
5032 | pc) | |
5033 | lt_cv_deplibs_check_method=pass_all | |
5034 | ;; | |
5035 | esac | |
5036 | ;; | |
d7040cdb | 5037 | |
ce2cded5 L |
5038 | tpf*) |
5039 | lt_cv_deplibs_check_method=pass_all | |
5040 | ;; | |
5041 | esac | |
6bf9431b | 5042 | |
6bf9431b | 5043 | fi |
ce2cded5 L |
5044 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5045 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
5046 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5047 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5048 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 5049 | |
6bf9431b | 5050 | |
252b5132 | 5051 | |
6bf9431b | 5052 | |
252b5132 | 5053 | |
252b5132 | 5054 | |
252b5132 | 5055 | |
252b5132 | 5056 | |
252b5132 RH |
5057 | |
5058 | ||
6bf9431b | 5059 | |
d7040cdb | 5060 | |
ce2cded5 L |
5061 | if test -n "$ac_tool_prefix"; then |
5062 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5063 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5066 | if test "${ac_cv_prog_AR+set}" = set; then | |
6bf9431b BE |
5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5068 | else | |
ce2cded5 L |
5069 | if test -n "$AR"; then |
5070 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d7040cdb | 5071 | else |
ce2cded5 L |
5072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5073 | for as_dir in $PATH | |
5074 | do | |
5075 | IFS=$as_save_IFS | |
5076 | test -z "$as_dir" && as_dir=. | |
5077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5079 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5081 | break 2 | |
5082 | fi | |
5083 | done | |
5084 | done | |
6bf9431b | 5085 | |
d7040cdb | 5086 | fi |
d7040cdb | 5087 | fi |
ce2cded5 L |
5088 | AR=$ac_cv_prog_AR |
5089 | if test -n "$AR"; then | |
5090 | echo "$as_me:$LINENO: result: $AR" >&5 | |
5091 | echo "${ECHO_T}$AR" >&6 | |
5092 | else | |
5093 | echo "$as_me:$LINENO: result: no" >&5 | |
5094 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 5095 | fi |
6bf9431b | 5096 | |
ce2cded5 L |
5097 | fi |
5098 | if test -z "$ac_cv_prog_AR"; then | |
5099 | ac_ct_AR=$AR | |
5100 | # Extract the first word of "ar", so it can be a program name with args. | |
5101 | set dummy ar; ac_word=$2 | |
5102 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5104 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
d7040cdb SE |
5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5106 | else | |
ce2cded5 L |
5107 | if test -n "$ac_ct_AR"; then |
5108 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6bf9431b | 5109 | else |
ce2cded5 L |
5110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5111 | for as_dir in $PATH | |
5112 | do | |
5113 | IFS=$as_save_IFS | |
5114 | test -z "$as_dir" && as_dir=. | |
5115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5116 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5117 | ac_cv_prog_ac_ct_AR="ar" | |
5118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5119 | break 2 | |
5120 | fi | |
5121 | done | |
5122 | done | |
6bf9431b | 5123 | |
ce2cded5 | 5124 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6bf9431b | 5125 | fi |
6bf9431b | 5126 | fi |
ce2cded5 L |
5127 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5128 | if test -n "$ac_ct_AR"; then | |
5129 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5130 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
5131 | else | |
5132 | echo "$as_me:$LINENO: result: no" >&5 | |
5133 | echo "${ECHO_T}no" >&6 | |
6bf9431b | 5134 | fi |
d7040cdb | 5135 | |
ce2cded5 L |
5136 | AR=$ac_ct_AR |
5137 | else | |
5138 | AR="$ac_cv_prog_AR" | |
5139 | fi | |
20e95c23 | 5140 | |
ce2cded5 L |
5141 | test -z "$AR" && AR=ar |
5142 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
20e95c23 DJ |
5143 | |
5144 | ||
5145 | ||
5146 | ||
20e95c23 | 5147 | |
d7040cdb SE |
5148 | |
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | ||
ce2cded5 L |
5154 | if test -n "$ac_tool_prefix"; then |
5155 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5156 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5157 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5159 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5161 | else | |
5162 | if test -n "$STRIP"; then | |
5163 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5164 | else | |
5165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5166 | for as_dir in $PATH | |
5167 | do | |
5168 | IFS=$as_save_IFS | |
5169 | test -z "$as_dir" && as_dir=. | |
5170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5172 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5174 | break 2 | |
5175 | fi | |
5176 | done | |
5177 | done | |
d7040cdb | 5178 | |
ce2cded5 L |
5179 | fi |
5180 | fi | |
5181 | STRIP=$ac_cv_prog_STRIP | |
5182 | if test -n "$STRIP"; then | |
5183 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5184 | echo "${ECHO_T}$STRIP" >&6 | |
5185 | else | |
5186 | echo "$as_me:$LINENO: result: no" >&5 | |
5187 | echo "${ECHO_T}no" >&6 | |
5188 | fi | |
d7040cdb | 5189 | |
ce2cded5 L |
5190 | fi |
5191 | if test -z "$ac_cv_prog_STRIP"; then | |
5192 | ac_ct_STRIP=$STRIP | |
5193 | # Extract the first word of "strip", so it can be a program name with args. | |
5194 | set dummy strip; ac_word=$2 | |
5195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5197 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5199 | else | |
5200 | if test -n "$ac_ct_STRIP"; then | |
5201 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5202 | else | |
5203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5204 | for as_dir in $PATH | |
5205 | do | |
5206 | IFS=$as_save_IFS | |
5207 | test -z "$as_dir" && as_dir=. | |
5208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5210 | ac_cv_prog_ac_ct_STRIP="strip" | |
5211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5212 | break 2 | |
5213 | fi | |
5214 | done | |
5215 | done | |
d7040cdb | 5216 | |
ce2cded5 L |
5217 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
5218 | fi | |
5219 | fi | |
5220 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5221 | if test -n "$ac_ct_STRIP"; then | |
5222 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5223 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5224 | else | |
5225 | echo "$as_me:$LINENO: result: no" >&5 | |
5226 | echo "${ECHO_T}no" >&6 | |
5227 | fi | |
d7040cdb | 5228 | |
ce2cded5 L |
5229 | STRIP=$ac_ct_STRIP |
5230 | else | |
5231 | STRIP="$ac_cv_prog_STRIP" | |
5232 | fi | |
d7040cdb | 5233 | |
ce2cded5 | 5234 | test -z "$STRIP" && STRIP=: |
d7040cdb SE |
5235 | |
5236 | ||
5237 | ||
5238 | ||
5239 | ||
5240 | ||
ce2cded5 L |
5241 | if test -n "$ac_tool_prefix"; then |
5242 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5243 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5244 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5246 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5248 | else | |
5249 | if test -n "$RANLIB"; then | |
5250 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5251 | else | |
5252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5253 | for as_dir in $PATH | |
5254 | do | |
5255 | IFS=$as_save_IFS | |
5256 | test -z "$as_dir" && as_dir=. | |
5257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5258 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5259 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5261 | break 2 | |
5262 | fi | |
5263 | done | |
5264 | done | |
d7040cdb | 5265 | |
ce2cded5 L |
5266 | fi |
5267 | fi | |
5268 | RANLIB=$ac_cv_prog_RANLIB | |
5269 | if test -n "$RANLIB"; then | |
5270 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5271 | echo "${ECHO_T}$RANLIB" >&6 | |
5272 | else | |
5273 | echo "$as_me:$LINENO: result: no" >&5 | |
5274 | echo "${ECHO_T}no" >&6 | |
20e95c23 | 5275 | fi |
20e95c23 | 5276 | |
ce2cded5 L |
5277 | fi |
5278 | if test -z "$ac_cv_prog_RANLIB"; then | |
5279 | ac_ct_RANLIB=$RANLIB | |
5280 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5281 | set dummy ranlib; ac_word=$2 | |
5282 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5284 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6bf9431b BE |
5285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5286 | else | |
ce2cded5 L |
5287 | if test -n "$ac_ct_RANLIB"; then |
5288 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6bf9431b | 5289 | else |
ce2cded5 L |
5290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5291 | for as_dir in $PATH | |
5292 | do | |
5293 | IFS=$as_save_IFS | |
5294 | test -z "$as_dir" && as_dir=. | |
5295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5296 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5297 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5299 | break 2 | |
5300 | fi | |
5301 | done | |
5302 | done | |
5303 | ||
5304 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
d7040cdb | 5305 | fi |
20e95c23 | 5306 | fi |
ce2cded5 L |
5307 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5308 | if test -n "$ac_ct_RANLIB"; then | |
5309 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5310 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5311 | else | |
5312 | echo "$as_me:$LINENO: result: no" >&5 | |
5313 | echo "${ECHO_T}no" >&6 | |
5314 | fi | |
20e95c23 | 5315 | |
ce2cded5 L |
5316 | RANLIB=$ac_ct_RANLIB |
5317 | else | |
5318 | RANLIB="$ac_cv_prog_RANLIB" | |
5319 | fi | |
d7040cdb | 5320 | |
ce2cded5 | 5321 | test -z "$RANLIB" && RANLIB=: |
d7040cdb SE |
5322 | |
5323 | ||
5324 | ||
d7040cdb SE |
5325 | |
5326 | ||
5327 | ||
ce2cded5 L |
5328 | # Determine commands to create old-style static archives. |
5329 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5330 | old_postinstall_cmds='chmod 644 $oldlib' | |
5331 | old_postuninstall_cmds= | |
d7040cdb | 5332 | |
ce2cded5 L |
5333 | if test -n "$RANLIB"; then |
5334 | case $host_os in | |
5335 | openbsd*) | |
5336 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5337 | ;; | |
5338 | *) | |
5339 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5340 | ;; | |
5341 | esac | |
5342 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5343 | fi | |
d7040cdb SE |
5344 | |
5345 | ||
5346 | ||
5347 | ||
5348 | ||
5349 | ||
5350 | ||
5351 | ||
5352 | ||
5353 | ||
5354 | ||
5355 | ||
5356 | ||
d7040cdb | 5357 | |
d7040cdb | 5358 | |
d7040cdb | 5359 | |
d7040cdb | 5360 | |
d7040cdb | 5361 | |
d7040cdb | 5362 | |
d7040cdb | 5363 | |
d7040cdb | 5364 | |
d7040cdb | 5365 | |
d7040cdb | 5366 | |
d7040cdb | 5367 | |
d7040cdb SE |
5368 | |
5369 | ||
5af11cab | 5370 | |
d7040cdb | 5371 | |
20e95c23 | 5372 | |
6bf9431b | 5373 | |
20e95c23 DJ |
5374 | |
5375 | ||
20e95c23 | 5376 | |
20e95c23 | 5377 | |
ce2cded5 L |
5378 | # If no C compiler was specified, use CC. |
5379 | LTCC=${LTCC-"$CC"} | |
5380 | ||
5381 | # If no C compiler flags were specified, use CFLAGS. | |
5382 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5383 | ||
5384 | # Allow CC to be a program name with arguments. | |
5385 | compiler=$CC | |
5386 | ||
5387 | ||
5388 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5389 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5390 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5391 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
6bf9431b BE |
5392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5393 | else | |
d7040cdb | 5394 | |
ce2cded5 L |
5395 | # These are sane defaults that work on at least a few old systems. |
5396 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 5397 | |
ce2cded5 L |
5398 | # Character class describing NM global symbol codes. |
5399 | symcode='[BCDEGRST]' | |
5400 | ||
5401 | # Regexp to match symbols that can be accessed directly from C. | |
5402 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5403 | ||
5404 | # Define system-specific variables. | |
5405 | case $host_os in | |
5406 | aix*) | |
5407 | symcode='[BCDT]' | |
5408 | ;; | |
5409 | cygwin* | mingw* | pw32*) | |
5410 | symcode='[ABCDGISTW]' | |
5411 | ;; | |
5412 | hpux*) | |
5413 | if test "$host_cpu" = ia64; then | |
5414 | symcode='[ABCDEGRST]' | |
5415 | fi | |
5416 | ;; | |
5417 | irix* | nonstopux*) | |
5418 | symcode='[BCDEGRST]' | |
5419 | ;; | |
5420 | osf*) | |
5421 | symcode='[BCDEGQRST]' | |
5422 | ;; | |
5423 | solaris*) | |
5424 | symcode='[BDRT]' | |
5425 | ;; | |
5426 | sco3.2v5*) | |
5427 | symcode='[DT]' | |
5428 | ;; | |
5429 | sysv4.2uw2*) | |
5430 | symcode='[DT]' | |
5431 | ;; | |
5432 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5433 | symcode='[ABDT]' | |
5434 | ;; | |
5435 | sysv4) | |
5436 | symcode='[DFNSTU]' | |
d7040cdb | 5437 | ;; |
20e95c23 | 5438 | esac |
d7040cdb | 5439 | |
ce2cded5 L |
5440 | # If we're using GNU nm, then use its standard symbol codes. |
5441 | case `$NM -V 2>&1` in | |
5442 | *GNU* | *'with BFD'*) | |
5443 | symcode='[ABCDGIRSTW]' ;; | |
5444 | esac | |
20e95c23 | 5445 | |
ce2cded5 L |
5446 | # Transform an extracted symbol line into a proper C declaration. |
5447 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5448 | # so use this general approach. | |
5449 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
20e95c23 | 5450 | |
ce2cded5 L |
5451 | # Transform an extracted symbol line into symbol name and symbol address |
5452 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5af11cab | 5453 | |
ce2cded5 L |
5454 | # Handle CRLF in mingw tool chain |
5455 | opt_cr= | |
5456 | case $build_os in | |
5457 | mingw*) | |
5458 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
d7040cdb SE |
5459 | ;; |
5460 | esac | |
20e95c23 | 5461 | |
ce2cded5 L |
5462 | # Try without a prefix underscore, then with it. |
5463 | for ac_symprfx in "" "_"; do | |
d7040cdb | 5464 | |
ce2cded5 L |
5465 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5466 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 5467 | |
ce2cded5 L |
5468 | # Write the raw and C identifiers. |
5469 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5470 | # Fake it for dumpbin and say T for any non-static function | |
5471 | # and D for any global variable. | |
5472 | # Also find C++ and __fastcall symbols from MSVC++, | |
5473 | # which start with @ or ?. | |
5474 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5475 | " {last_section=section; section=\$ 3};"\ | |
5476 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5477 | " \$ 0!~/External *\|/{next};"\ | |
5478 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5479 | " {if(hide[section]) next};"\ | |
5480 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5481 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5482 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5483 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5484 | " ' prfx=^$ac_symprfx" | |
5485 | else | |
5486 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5487 | fi | |
d7040cdb | 5488 | |
ce2cded5 L |
5489 | # Check to see that the pipe works correctly. |
5490 | pipe_works=no | |
d7040cdb | 5491 | |
ce2cded5 L |
5492 | rm -f conftest* |
5493 | cat > conftest.$ac_ext <<_LT_EOF | |
5494 | #ifdef __cplusplus | |
5495 | extern "C" { | |
5496 | #endif | |
5497 | char nm_test_var; | |
5498 | void nm_test_func(void); | |
5499 | void nm_test_func(void){} | |
5500 | #ifdef __cplusplus | |
5501 | } | |
5502 | #endif | |
5503 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5504 | _LT_EOF | |
d7040cdb | 5505 | |
ce2cded5 L |
5506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5507 | (eval $ac_compile) 2>&5 | |
5508 | ac_status=$? | |
5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5510 | (exit $ac_status); }; then | |
5511 | # Now try to grab the symbols. | |
5512 | nlist=conftest.nm | |
5513 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5514 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5515 | ac_status=$? | |
5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5517 | (exit $ac_status); } && test -s "$nlist"; then | |
5518 | # Try sorting and uniquifying the output. | |
5519 | if sort "$nlist" | uniq > "$nlist"T; then | |
5520 | mv -f "$nlist"T "$nlist" | |
5521 | else | |
5522 | rm -f "$nlist"T | |
5523 | fi | |
d7040cdb | 5524 | |
ce2cded5 L |
5525 | # Make sure that we snagged all the symbols we need. |
5526 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5527 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5528 | cat <<_LT_EOF > conftest.$ac_ext | |
5529 | #ifdef __cplusplus | |
5530 | extern "C" { | |
5531 | #endif | |
d7040cdb | 5532 | |
ce2cded5 L |
5533 | _LT_EOF |
5534 | # Now generate the symbol file. | |
5535 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d7040cdb | 5536 | |
ce2cded5 | 5537 | cat <<_LT_EOF >> conftest.$ac_ext |
d7040cdb | 5538 | |
ce2cded5 L |
5539 | /* The mapping between symbol names and symbols. */ |
5540 | const struct { | |
5541 | const char *name; | |
5542 | void *address; | |
5543 | } | |
5544 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5545 | { | |
5546 | { "@PROGRAM@", (void *) 0 }, | |
5547 | _LT_EOF | |
5548 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5549 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5550 | {0, (void *) 0} | |
5551 | }; | |
d7040cdb | 5552 | |
ce2cded5 L |
5553 | /* This works around a problem in FreeBSD linker */ |
5554 | #ifdef FREEBSD_WORKAROUND | |
5555 | static const void *lt_preloaded_setup() { | |
5556 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5557 | } | |
5558 | #endif | |
d7040cdb | 5559 | |
ce2cded5 L |
5560 | #ifdef __cplusplus |
5561 | } | |
5562 | #endif | |
5563 | _LT_EOF | |
5564 | # Now try linking the two files. | |
5565 | mv conftest.$ac_objext conftstm.$ac_objext | |
5566 | lt_save_LIBS="$LIBS" | |
5567 | lt_save_CFLAGS="$CFLAGS" | |
5568 | LIBS="conftstm.$ac_objext" | |
5569 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5571 | (eval $ac_link) 2>&5 | |
5572 | ac_status=$? | |
5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5574 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5575 | pipe_works=yes | |
5576 | fi | |
5577 | LIBS="$lt_save_LIBS" | |
5578 | CFLAGS="$lt_save_CFLAGS" | |
5579 | else | |
5580 | echo "cannot find nm_test_func in $nlist" >&5 | |
5581 | fi | |
5582 | else | |
5583 | echo "cannot find nm_test_var in $nlist" >&5 | |
5584 | fi | |
5585 | else | |
5586 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5587 | fi | |
5588 | else | |
5589 | echo "$progname: failed program was:" >&5 | |
5590 | cat conftest.$ac_ext >&5 | |
5591 | fi | |
5592 | rm -f conftest* conftst* | |
d7040cdb | 5593 | |
ce2cded5 L |
5594 | # Do not use the global_symbol_pipe unless it works. |
5595 | if test "$pipe_works" = yes; then | |
5596 | break | |
5597 | else | |
5598 | lt_cv_sys_global_symbol_pipe= | |
5599 | fi | |
5600 | done | |
d7040cdb | 5601 | |
ce2cded5 | 5602 | fi |
d7040cdb | 5603 | |
ce2cded5 L |
5604 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5605 | lt_cv_sys_global_symbol_to_cdecl= | |
5606 | fi | |
5607 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5608 | echo "$as_me:$LINENO: result: failed" >&5 | |
5609 | echo "${ECHO_T}failed" >&6 | |
5610 | else | |
5611 | echo "$as_me:$LINENO: result: ok" >&5 | |
5612 | echo "${ECHO_T}ok" >&6 | |
5613 | fi | |
d7040cdb | 5614 | |
d7040cdb | 5615 | |
d7040cdb | 5616 | |
d7040cdb | 5617 | |
5af11cab | 5618 | |
20e95c23 | 5619 | |
20e95c23 | 5620 | |
20e95c23 | 5621 | |
20e95c23 DJ |
5622 | |
5623 | ||
5624 | ||
20e95c23 DJ |
5625 | |
5626 | ||
d7040cdb | 5627 | |
252b5132 | 5628 | |
20e95c23 DJ |
5629 | |
5630 | ||
ce2cded5 L |
5631 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
5632 | if test "${enable_libtool_lock+set}" = set; then | |
5633 | enableval="$enable_libtool_lock" | |
20e95c23 | 5634 | |
ce2cded5 L |
5635 | fi; |
5636 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
20e95c23 | 5637 | |
ce2cded5 L |
5638 | # Some flags need to be propagated to the compiler or linker for good |
5639 | # libtool support. | |
5640 | case $host in | |
5641 | ia64-*-hpux*) | |
5642 | # Find out which ABI we are using. | |
5643 | echo 'int i;' > conftest.$ac_ext | |
5644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5645 | (eval $ac_compile) 2>&5 | |
5646 | ac_status=$? | |
5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5648 | (exit $ac_status); }; then | |
5649 | case `/usr/bin/file conftest.$ac_objext` in | |
5650 | *ELF-32*) | |
5651 | HPUX_IA64_MODE="32" | |
d7040cdb | 5652 | ;; |
ce2cded5 L |
5653 | *ELF-64*) |
5654 | HPUX_IA64_MODE="64" | |
5655 | ;; | |
5656 | esac | |
5657 | fi | |
5658 | rm -rf conftest* | |
5659 | ;; | |
5660 | *-*-irix6*) | |
5661 | # Find out which ABI we are using. | |
58c85be7 | 5662 | echo '#line 5662 "configure"' > conftest.$ac_ext |
ce2cded5 L |
5663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5664 | (eval $ac_compile) 2>&5 | |
5665 | ac_status=$? | |
5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5667 | (exit $ac_status); }; then | |
5668 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5669 | case `/usr/bin/file conftest.$ac_objext` in | |
5670 | *32-bit*) | |
5671 | LD="${LD-ld} -melf32bsmip" | |
5672 | ;; | |
5673 | *N32*) | |
5674 | LD="${LD-ld} -melf32bmipn32" | |
5675 | ;; | |
5676 | *64-bit*) | |
5677 | LD="${LD-ld} -melf64bmip" | |
d7040cdb SE |
5678 | ;; |
5679 | esac | |
ce2cded5 L |
5680 | else |
5681 | case `/usr/bin/file conftest.$ac_objext` in | |
5682 | *32-bit*) | |
5683 | LD="${LD-ld} -32" | |
5684 | ;; | |
5685 | *N32*) | |
5686 | LD="${LD-ld} -n32" | |
5687 | ;; | |
5688 | *64-bit*) | |
5689 | LD="${LD-ld} -64" | |
5690 | ;; | |
5691 | esac | |
5692 | fi | |
5693 | fi | |
5694 | rm -rf conftest* | |
5695 | ;; | |
d5fbea21 | 5696 | |
ce2cded5 L |
5697 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
5698 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5699 | # Find out which ABI we are using. | |
5700 | echo 'int i;' > conftest.$ac_ext | |
5701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5702 | (eval $ac_compile) 2>&5 | |
5703 | ac_status=$? | |
5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5705 | (exit $ac_status); }; then | |
5706 | case `/usr/bin/file conftest.o` in | |
5707 | *32-bit*) | |
5708 | case $host in | |
5709 | x86_64-*kfreebsd*-gnu) | |
5710 | LD="${LD-ld} -m elf_i386_fbsd" | |
5711 | ;; | |
5712 | x86_64-*linux*) | |
5713 | LD="${LD-ld} -m elf_i386" | |
5714 | ;; | |
5715 | ppc64-*linux*|powerpc64-*linux*) | |
5716 | LD="${LD-ld} -m elf32ppclinux" | |
5717 | ;; | |
5718 | s390x-*linux*) | |
5719 | LD="${LD-ld} -m elf_s390" | |
5720 | ;; | |
5721 | sparc64-*linux*) | |
5722 | LD="${LD-ld} -m elf32_sparc" | |
5723 | ;; | |
5724 | esac | |
5725 | ;; | |
5726 | *64-bit*) | |
5727 | case $host in | |
5728 | x86_64-*kfreebsd*-gnu) | |
5729 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5730 | ;; | |
5731 | x86_64-*linux*) | |
5732 | LD="${LD-ld} -m elf_x86_64" | |
5733 | ;; | |
5734 | ppc*-*linux*|powerpc*-*linux*) | |
5735 | LD="${LD-ld} -m elf64ppc" | |
5736 | ;; | |
5737 | s390*-*linux*|s390*-*tpf*) | |
5738 | LD="${LD-ld} -m elf64_s390" | |
5739 | ;; | |
5740 | sparc*-*linux*) | |
5741 | LD="${LD-ld} -m elf64_sparc" | |
5742 | ;; | |
5743 | esac | |
5744 | ;; | |
5745 | esac | |
5746 | fi | |
5747 | rm -rf conftest* | |
5748 | ;; | |
d5fbea21 | 5749 | |
ce2cded5 L |
5750 | *-*-sco3.2v5*) |
5751 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5752 | SAVE_CFLAGS="$CFLAGS" | |
5753 | CFLAGS="$CFLAGS -belf" | |
5754 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5755 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
5756 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5758 | else | |
5759 | ac_ext=c | |
5760 | ac_cpp='$CPP $CPPFLAGS' | |
5761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d5fbea21 | 5764 | |
ce2cded5 L |
5765 | cat >conftest.$ac_ext <<_ACEOF |
5766 | /* confdefs.h. */ | |
5767 | _ACEOF | |
5768 | cat confdefs.h >>conftest.$ac_ext | |
5769 | cat >>conftest.$ac_ext <<_ACEOF | |
5770 | /* end confdefs.h. */ | |
d7040cdb | 5771 | |
ce2cded5 L |
5772 | int |
5773 | main () | |
5774 | { | |
d7040cdb | 5775 | |
ce2cded5 L |
5776 | ; |
5777 | return 0; | |
5778 | } | |
5779 | _ACEOF | |
5780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5782 | (eval $ac_link) 2>conftest.er1 | |
5783 | ac_status=$? | |
5784 | grep -v '^ *+' conftest.er1 >conftest.err | |
5785 | rm -f conftest.er1 | |
5786 | cat conftest.err >&5 | |
5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5788 | (exit $ac_status); } && | |
5789 | { ac_try='test -z "$ac_c_werror_flag" | |
5790 | || test ! -s conftest.err' | |
5791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5792 | (eval $ac_try) 2>&5 | |
5793 | ac_status=$? | |
5794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5795 | (exit $ac_status); }; } && | |
5796 | { ac_try='test -s conftest$ac_exeext' | |
5797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5798 | (eval $ac_try) 2>&5 | |
5799 | ac_status=$? | |
5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5801 | (exit $ac_status); }; }; then | |
5802 | lt_cv_cc_needs_belf=yes | |
5803 | else | |
5804 | echo "$as_me: failed program was:" >&5 | |
5805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 5806 | |
ce2cded5 L |
5807 | lt_cv_cc_needs_belf=no |
5808 | fi | |
5809 | rm -f conftest.err conftest.$ac_objext \ | |
5810 | conftest$ac_exeext conftest.$ac_ext | |
5811 | ac_ext=c | |
5812 | ac_cpp='$CPP $CPPFLAGS' | |
5813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 5816 | |
ce2cded5 L |
5817 | fi |
5818 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5819 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
5820 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5821 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5822 | CFLAGS="$SAVE_CFLAGS" | |
5823 | fi | |
5824 | ;; | |
5825 | sparc*-*solaris*) | |
5826 | # Find out which ABI we are using. | |
5827 | echo 'int i;' > conftest.$ac_ext | |
5828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5829 | (eval $ac_compile) 2>&5 | |
5830 | ac_status=$? | |
5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5832 | (exit $ac_status); }; then | |
5833 | case `/usr/bin/file conftest.o` in | |
5834 | *64-bit*) | |
5835 | case $lt_cv_prog_gnu_ld in | |
5836 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5837 | *) LD="${LD-ld} -64" ;; | |
d7040cdb SE |
5838 | esac |
5839 | ;; | |
d7040cdb | 5840 | esac |
6bf9431b | 5841 | fi |
ce2cded5 L |
5842 | rm -rf conftest* |
5843 | ;; | |
d7040cdb | 5844 | esac |
d7040cdb | 5845 | |
ce2cded5 | 5846 | need_locks="$enable_libtool_lock" |
d7040cdb | 5847 | |
ce2cded5 L |
5848 | ac_ext=c |
5849 | ac_cpp='$CPP $CPPFLAGS' | |
5850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5853 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5854 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5855 | # On Suns, sometimes $CPP names a directory. | |
5856 | if test -n "$CPP" && test -d "$CPP"; then | |
5857 | CPP= | |
6bf9431b | 5858 | fi |
ce2cded5 L |
5859 | if test -z "$CPP"; then |
5860 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5862 | else |
ce2cded5 L |
5863 | # Double quotes because CPP needs to be expanded |
5864 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5865 | do | |
5866 | ac_preproc_ok=false | |
5867 | for ac_c_preproc_warn_flag in '' yes | |
5868 | do | |
5869 | # Use a header file that comes with gcc, so configuring glibc | |
5870 | # with a fresh cross-compiler works. | |
5871 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5872 | # <limits.h> exists even on freestanding compilers. | |
5873 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5874 | # not just through cpp. "Syntax error" is here to catch this case. | |
5875 | cat >conftest.$ac_ext <<_ACEOF | |
5876 | /* confdefs.h. */ | |
5877 | _ACEOF | |
5878 | cat confdefs.h >>conftest.$ac_ext | |
5879 | cat >>conftest.$ac_ext <<_ACEOF | |
5880 | /* end confdefs.h. */ | |
5881 | #ifdef __STDC__ | |
5882 | # include <limits.h> | |
5883 | #else | |
5884 | # include <assert.h> | |
5885 | #endif | |
5886 | Syntax error | |
5887 | _ACEOF | |
5888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5890 | ac_status=$? | |
5891 | grep -v '^ *+' conftest.er1 >conftest.err | |
5892 | rm -f conftest.er1 | |
5893 | cat conftest.err >&5 | |
5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5895 | (exit $ac_status); } >/dev/null; then | |
5896 | if test -s conftest.err; then | |
5897 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5898 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5899 | else | |
5900 | ac_cpp_err= | |
5901 | fi | |
5902 | else | |
5903 | ac_cpp_err=yes | |
252b5132 | 5904 | fi |
ce2cded5 L |
5905 | if test -z "$ac_cpp_err"; then |
5906 | : | |
252b5132 | 5907 | else |
ce2cded5 L |
5908 | echo "$as_me: failed program was:" >&5 |
5909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 5910 | |
ce2cded5 L |
5911 | # Broken: fails on valid input. |
5912 | continue | |
252b5132 | 5913 | fi |
ce2cded5 | 5914 | rm -f conftest.err conftest.$ac_ext |
d7040cdb | 5915 | |
ce2cded5 L |
5916 | # OK, works on sane cases. Now check whether non-existent headers |
5917 | # can be detected and how. | |
5918 | cat >conftest.$ac_ext <<_ACEOF | |
5919 | /* confdefs.h. */ | |
5920 | _ACEOF | |
5921 | cat confdefs.h >>conftest.$ac_ext | |
5922 | cat >>conftest.$ac_ext <<_ACEOF | |
5923 | /* end confdefs.h. */ | |
5924 | #include <ac_nonexistent.h> | |
5925 | _ACEOF | |
5926 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5927 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5928 | ac_status=$? | |
5929 | grep -v '^ *+' conftest.er1 >conftest.err | |
5930 | rm -f conftest.er1 | |
5931 | cat conftest.err >&5 | |
5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5933 | (exit $ac_status); } >/dev/null; then | |
5934 | if test -s conftest.err; then | |
5935 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5936 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5937 | else | |
5938 | ac_cpp_err= | |
5939 | fi | |
ac48eca1 | 5940 | else |
ce2cded5 | 5941 | ac_cpp_err=yes |
6bf9431b | 5942 | fi |
ce2cded5 L |
5943 | if test -z "$ac_cpp_err"; then |
5944 | # Broken: success on invalid input. | |
5945 | continue | |
ac48eca1 | 5946 | else |
ce2cded5 L |
5947 | echo "$as_me: failed program was:" >&5 |
5948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 5949 | |
ce2cded5 L |
5950 | # Passes both tests. |
5951 | ac_preproc_ok=: | |
5952 | break | |
6bf9431b | 5953 | fi |
ce2cded5 | 5954 | rm -f conftest.err conftest.$ac_ext |
6bf9431b | 5955 | |
ce2cded5 L |
5956 | done |
5957 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5958 | rm -f conftest.err conftest.$ac_ext | |
5959 | if $ac_preproc_ok; then | |
5960 | break | |
5961 | fi | |
6bf9431b | 5962 | |
ce2cded5 L |
5963 | done |
5964 | ac_cv_prog_CPP=$CPP | |
6bf9431b | 5965 | |
ce2cded5 L |
5966 | fi |
5967 | CPP=$ac_cv_prog_CPP | |
ac48eca1 | 5968 | else |
ce2cded5 | 5969 | ac_cv_prog_CPP=$CPP |
d7040cdb | 5970 | fi |
ce2cded5 L |
5971 | echo "$as_me:$LINENO: result: $CPP" >&5 |
5972 | echo "${ECHO_T}$CPP" >&6 | |
5973 | ac_preproc_ok=false | |
5974 | for ac_c_preproc_warn_flag in '' yes | |
5975 | do | |
5976 | # Use a header file that comes with gcc, so configuring glibc | |
5977 | # with a fresh cross-compiler works. | |
5978 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5979 | # <limits.h> exists even on freestanding compilers. | |
5980 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5981 | # not just through cpp. "Syntax error" is here to catch this case. | |
5982 | cat >conftest.$ac_ext <<_ACEOF | |
5983 | /* confdefs.h. */ | |
5984 | _ACEOF | |
5985 | cat confdefs.h >>conftest.$ac_ext | |
5986 | cat >>conftest.$ac_ext <<_ACEOF | |
5987 | /* end confdefs.h. */ | |
5988 | #ifdef __STDC__ | |
5989 | # include <limits.h> | |
5990 | #else | |
5991 | # include <assert.h> | |
5992 | #endif | |
5993 | Syntax error | |
5994 | _ACEOF | |
5995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5997 | ac_status=$? | |
5998 | grep -v '^ *+' conftest.er1 >conftest.err | |
5999 | rm -f conftest.er1 | |
6000 | cat conftest.err >&5 | |
6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6002 | (exit $ac_status); } >/dev/null; then | |
6003 | if test -s conftest.err; then | |
6004 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6005 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6006 | else | |
6007 | ac_cpp_err= | |
6008 | fi | |
6009 | else | |
6010 | ac_cpp_err=yes | |
6011 | fi | |
6012 | if test -z "$ac_cpp_err"; then | |
6013 | : | |
6014 | else | |
6015 | echo "$as_me: failed program was:" >&5 | |
6016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6017 | |
ce2cded5 L |
6018 | # Broken: fails on valid input. |
6019 | continue | |
6020 | fi | |
6021 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 6022 | |
ce2cded5 L |
6023 | # OK, works on sane cases. Now check whether non-existent headers |
6024 | # can be detected and how. | |
6025 | cat >conftest.$ac_ext <<_ACEOF | |
6026 | /* confdefs.h. */ | |
6027 | _ACEOF | |
6028 | cat confdefs.h >>conftest.$ac_ext | |
6029 | cat >>conftest.$ac_ext <<_ACEOF | |
6030 | /* end confdefs.h. */ | |
6031 | #include <ac_nonexistent.h> | |
6032 | _ACEOF | |
6033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6035 | ac_status=$? | |
6036 | grep -v '^ *+' conftest.er1 >conftest.err | |
6037 | rm -f conftest.er1 | |
6038 | cat conftest.err >&5 | |
6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6040 | (exit $ac_status); } >/dev/null; then | |
6041 | if test -s conftest.err; then | |
6042 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6044 | else | |
6045 | ac_cpp_err= | |
d7040cdb SE |
6046 | fi |
6047 | else | |
ce2cded5 | 6048 | ac_cpp_err=yes |
d7040cdb | 6049 | fi |
ce2cded5 L |
6050 | if test -z "$ac_cpp_err"; then |
6051 | # Broken: success on invalid input. | |
6052 | continue | |
6053 | else | |
6054 | echo "$as_me: failed program was:" >&5 | |
6055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6056 | |
ce2cded5 L |
6057 | # Passes both tests. |
6058 | ac_preproc_ok=: | |
6059 | break | |
6060 | fi | |
6061 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 6062 | |
ce2cded5 L |
6063 | done |
6064 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6065 | rm -f conftest.err conftest.$ac_ext | |
6066 | if $ac_preproc_ok; then | |
6067 | : | |
6068 | else | |
6069 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6070 | See \`config.log' for more details." >&5 | |
6071 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6072 | See \`config.log' for more details." >&2;} | |
6073 | { (exit 1); exit 1; }; } | |
6074 | fi | |
d7040cdb | 6075 | |
ce2cded5 L |
6076 | ac_ext=c |
6077 | ac_cpp='$CPP $CPPFLAGS' | |
6078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
6081 | |
6082 | ||
ce2cded5 L |
6083 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6084 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6085 | if test "${ac_cv_header_stdc+set}" = set; then | |
6086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6087 | else | |
6088 | cat >conftest.$ac_ext <<_ACEOF | |
6089 | /* confdefs.h. */ | |
6090 | _ACEOF | |
6091 | cat confdefs.h >>conftest.$ac_ext | |
6092 | cat >>conftest.$ac_ext <<_ACEOF | |
6093 | /* end confdefs.h. */ | |
6094 | #include <stdlib.h> | |
6095 | #include <stdarg.h> | |
6096 | #include <string.h> | |
6097 | #include <float.h> | |
d7040cdb | 6098 | |
ce2cded5 L |
6099 | int |
6100 | main () | |
6101 | { | |
d7040cdb | 6102 | |
ce2cded5 L |
6103 | ; |
6104 | return 0; | |
6105 | } | |
6106 | _ACEOF | |
6107 | rm -f conftest.$ac_objext | |
6108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6109 | (eval $ac_compile) 2>conftest.er1 | |
6110 | ac_status=$? | |
6111 | grep -v '^ *+' conftest.er1 >conftest.err | |
6112 | rm -f conftest.er1 | |
6113 | cat conftest.err >&5 | |
6114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6115 | (exit $ac_status); } && | |
6116 | { ac_try='test -z "$ac_c_werror_flag" | |
6117 | || test ! -s conftest.err' | |
6118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6119 | (eval $ac_try) 2>&5 | |
6120 | ac_status=$? | |
6121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6122 | (exit $ac_status); }; } && | |
6123 | { ac_try='test -s conftest.$ac_objext' | |
6124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6125 | (eval $ac_try) 2>&5 | |
6126 | ac_status=$? | |
6127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6128 | (exit $ac_status); }; }; then | |
6129 | ac_cv_header_stdc=yes | |
6130 | else | |
6131 | echo "$as_me: failed program was:" >&5 | |
6132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6133 | |
ce2cded5 L |
6134 | ac_cv_header_stdc=no |
6135 | fi | |
6136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 6137 | |
ce2cded5 L |
6138 | if test $ac_cv_header_stdc = yes; then |
6139 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6140 | cat >conftest.$ac_ext <<_ACEOF | |
6141 | /* confdefs.h. */ | |
6142 | _ACEOF | |
6143 | cat confdefs.h >>conftest.$ac_ext | |
6144 | cat >>conftest.$ac_ext <<_ACEOF | |
6145 | /* end confdefs.h. */ | |
6146 | #include <string.h> | |
d7040cdb | 6147 | |
ce2cded5 L |
6148 | _ACEOF |
6149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6150 | $EGREP "memchr" >/dev/null 2>&1; then | |
6151 | : | |
6152 | else | |
6153 | ac_cv_header_stdc=no | |
6154 | fi | |
6155 | rm -f conftest* | |
6bf9431b | 6156 | |
ce2cded5 | 6157 | fi |
d7040cdb | 6158 | |
ce2cded5 L |
6159 | if test $ac_cv_header_stdc = yes; then |
6160 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6161 | cat >conftest.$ac_ext <<_ACEOF | |
6162 | /* confdefs.h. */ | |
6163 | _ACEOF | |
6164 | cat confdefs.h >>conftest.$ac_ext | |
6165 | cat >>conftest.$ac_ext <<_ACEOF | |
6166 | /* end confdefs.h. */ | |
6167 | #include <stdlib.h> | |
d7040cdb | 6168 | |
ce2cded5 L |
6169 | _ACEOF |
6170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6171 | $EGREP "free" >/dev/null 2>&1; then | |
6172 | : | |
6173 | else | |
6174 | ac_cv_header_stdc=no | |
6175 | fi | |
6176 | rm -f conftest* | |
ac48eca1 | 6177 | |
ce2cded5 | 6178 | fi |
d7040cdb | 6179 | |
ce2cded5 L |
6180 | if test $ac_cv_header_stdc = yes; then |
6181 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6182 | if test "$cross_compiling" = yes; then | |
6183 | : | |
6184 | else | |
6185 | cat >conftest.$ac_ext <<_ACEOF | |
6186 | /* confdefs.h. */ | |
6187 | _ACEOF | |
6188 | cat confdefs.h >>conftest.$ac_ext | |
6189 | cat >>conftest.$ac_ext <<_ACEOF | |
6190 | /* end confdefs.h. */ | |
6191 | #include <ctype.h> | |
6192 | #if ((' ' & 0x0FF) == 0x020) | |
6193 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6194 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6195 | #else | |
6196 | # define ISLOWER(c) \ | |
6197 | (('a' <= (c) && (c) <= 'i') \ | |
6198 | || ('j' <= (c) && (c) <= 'r') \ | |
6199 | || ('s' <= (c) && (c) <= 'z')) | |
6200 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6201 | #endif | |
d7040cdb | 6202 | |
ce2cded5 L |
6203 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6204 | int | |
6205 | main () | |
6206 | { | |
6207 | int i; | |
6208 | for (i = 0; i < 256; i++) | |
6209 | if (XOR (islower (i), ISLOWER (i)) | |
6210 | || toupper (i) != TOUPPER (i)) | |
6211 | exit(2); | |
6212 | exit (0); | |
6213 | } | |
6214 | _ACEOF | |
6215 | rm -f conftest$ac_exeext | |
6216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6217 | (eval $ac_link) 2>&5 | |
6218 | ac_status=$? | |
6219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6220 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6222 | (eval $ac_try) 2>&5 | |
6223 | ac_status=$? | |
6224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6225 | (exit $ac_status); }; }; then | |
6226 | : | |
6227 | else | |
6228 | echo "$as_me: program exited with status $ac_status" >&5 | |
6229 | echo "$as_me: failed program was:" >&5 | |
6230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6231 | |
ce2cded5 L |
6232 | ( exit $ac_status ) |
6233 | ac_cv_header_stdc=no | |
6234 | fi | |
6235 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6236 | fi | |
6237 | fi | |
6238 | fi | |
6239 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6240 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6241 | if test $ac_cv_header_stdc = yes; then | |
d7040cdb | 6242 | |
ce2cded5 L |
6243 | cat >>confdefs.h <<\_ACEOF |
6244 | #define STDC_HEADERS 1 | |
6245 | _ACEOF | |
d7040cdb | 6246 | |
ce2cded5 | 6247 | fi |
d7040cdb | 6248 | |
ce2cded5 | 6249 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d7040cdb | 6250 | |
d7040cdb | 6251 | |
d7040cdb | 6252 | |
d7040cdb | 6253 | |
d7040cdb | 6254 | |
d7040cdb | 6255 | |
d7040cdb | 6256 | |
d7040cdb | 6257 | |
d7040cdb | 6258 | |
ce2cded5 L |
6259 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6260 | inttypes.h stdint.h unistd.h | |
6261 | do | |
6262 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6263 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6267 | else | |
6268 | cat >conftest.$ac_ext <<_ACEOF | |
6bf9431b BE |
6269 | /* confdefs.h. */ |
6270 | _ACEOF | |
6271 | cat confdefs.h >>conftest.$ac_ext | |
6272 | cat >>conftest.$ac_ext <<_ACEOF | |
6273 | /* end confdefs.h. */ | |
ce2cded5 | 6274 | $ac_includes_default |
20e95c23 | 6275 | |
ce2cded5 | 6276 | #include <$ac_header> |
6bf9431b | 6277 | _ACEOF |
ce2cded5 L |
6278 | rm -f conftest.$ac_objext |
6279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6280 | (eval $ac_compile) 2>conftest.er1 | |
6bf9431b BE |
6281 | ac_status=$? |
6282 | grep -v '^ *+' conftest.er1 >conftest.err | |
6283 | rm -f conftest.er1 | |
6284 | cat conftest.err >&5 | |
6285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
6286 | (exit $ac_status); } && |
6287 | { ac_try='test -z "$ac_c_werror_flag" | |
6288 | || test ! -s conftest.err' | |
6289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6290 | (eval $ac_try) 2>&5 | |
6291 | ac_status=$? | |
6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6293 | (exit $ac_status); }; } && | |
ce2cded5 | 6294 | { ac_try='test -s conftest.$ac_objext' |
0ab6f085 AM |
6295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6296 | (eval $ac_try) 2>&5 | |
6297 | ac_status=$? | |
6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6299 | (exit $ac_status); }; }; then | |
ce2cded5 | 6300 | eval "$as_ac_Header=yes" |
6bf9431b | 6301 | else |
d7040cdb SE |
6302 | echo "$as_me: failed program was:" >&5 |
6303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 6304 | |
ce2cded5 | 6305 | eval "$as_ac_Header=no" |
6bf9431b | 6306 | fi |
ce2cded5 L |
6307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6308 | fi | |
6309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6311 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6312 | cat >>confdefs.h <<_ACEOF | |
6313 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20e95c23 | 6314 | _ACEOF |
20e95c23 | 6315 | |
ce2cded5 | 6316 | fi |
d7040cdb | 6317 | |
ce2cded5 L |
6318 | done |
6319 | ||
6320 | ||
6321 | ||
6322 | for ac_header in dlfcn.h | |
6323 | do | |
6324 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6325 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6326 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6329 | else | |
6330 | cat >conftest.$ac_ext <<_ACEOF | |
6331 | /* confdefs.h. */ | |
20e95c23 | 6332 | _ACEOF |
ce2cded5 L |
6333 | cat confdefs.h >>conftest.$ac_ext |
6334 | cat >>conftest.$ac_ext <<_ACEOF | |
6335 | /* end confdefs.h. */ | |
6336 | $ac_includes_default | |
6337 | ||
6338 | #include <$ac_header> | |
6339 | _ACEOF | |
6340 | rm -f conftest.$ac_objext | |
6341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6342 | (eval $ac_compile) 2>conftest.er1 | |
d7040cdb SE |
6343 | ac_status=$? |
6344 | grep -v '^ *+' conftest.er1 >conftest.err | |
6345 | rm -f conftest.er1 | |
6346 | cat conftest.err >&5 | |
6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
6348 | (exit $ac_status); } && |
6349 | { ac_try='test -z "$ac_c_werror_flag" | |
6350 | || test ! -s conftest.err' | |
6351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6352 | (eval $ac_try) 2>&5 | |
6353 | ac_status=$? | |
6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6355 | (exit $ac_status); }; } && | |
ce2cded5 | 6356 | { ac_try='test -s conftest.$ac_objext' |
0ab6f085 AM |
6357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6358 | (eval $ac_try) 2>&5 | |
6359 | ac_status=$? | |
6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6361 | (exit $ac_status); }; }; then | |
ce2cded5 | 6362 | eval "$as_ac_Header=yes" |
20e95c23 | 6363 | else |
d7040cdb | 6364 | echo "$as_me: failed program was:" >&5 |
20e95c23 | 6365 | sed 's/^/| /' conftest.$ac_ext >&5 |
252b5132 | 6366 | |
ce2cded5 | 6367 | eval "$as_ac_Header=no" |
20e95c23 | 6368 | fi |
ce2cded5 L |
6369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6370 | fi | |
6371 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6372 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6373 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6374 | cat >>confdefs.h <<_ACEOF | |
6375 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6376 | _ACEOF | |
d7040cdb | 6377 | |
ce2cded5 | 6378 | fi |
252b5132 | 6379 | |
ce2cded5 | 6380 | done |
6bf9431b | 6381 | |
252b5132 | 6382 | |
6bf9431b | 6383 | |
ce2cded5 L |
6384 | # This can be used to rebuild libtool when needed |
6385 | LIBTOOL_DEPS="$ltmain" | |
6bf9431b | 6386 | |
ce2cded5 L |
6387 | # Always use our own libtool. |
6388 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
252b5132 | 6389 | |
6bf9431b | 6390 | |
252b5132 | 6391 | |
6bf9431b | 6392 | |
252b5132 | 6393 | |
252b5132 | 6394 | |
d7040cdb | 6395 | |
6bf9431b | 6396 | |
252b5132 | 6397 | |
d7040cdb | 6398 | |
d7040cdb | 6399 | |
d7040cdb | 6400 | |
d7040cdb | 6401 | |
d7040cdb | 6402 | |
d7040cdb | 6403 | |
d7040cdb | 6404 | |
d7040cdb | 6405 | |
d7040cdb | 6406 | |
d7040cdb | 6407 | |
d7040cdb | 6408 | |
d7040cdb SE |
6409 | |
6410 | ||
6411 | ||
6412 | ||
6413 | ||
ce2cded5 | 6414 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
6415 | |
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
ce2cded5 L |
6429 | if test -n "${ZSH_VERSION+set}" ; then |
6430 | setopt NO_GLOB_SUBST | |
6431 | fi | |
d7040cdb | 6432 | |
ce2cded5 L |
6433 | echo "$as_me:$LINENO: checking for objdir" >&5 |
6434 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6435 | if test "${lt_cv_objdir+set}" = set; then | |
6436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6437 | else | |
6438 | rm -f .libs 2>/dev/null | |
6439 | mkdir .libs 2>/dev/null | |
6440 | if test -d .libs; then | |
6441 | lt_cv_objdir=.libs | |
6442 | else | |
6443 | # MS-DOS does not allow filenames that begin with a dot. | |
6444 | lt_cv_objdir=_libs | |
6445 | fi | |
6446 | rmdir .libs 2>/dev/null | |
6447 | fi | |
6448 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6449 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6450 | objdir=$lt_cv_objdir | |
d7040cdb SE |
6451 | |
6452 | ||
6453 | ||
6454 | ||
6455 | ||
ce2cded5 L |
6456 | cat >>confdefs.h <<_ACEOF |
6457 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6458 | _ACEOF | |
d7040cdb SE |
6459 | |
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | ||
6465 | ||
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
ce2cded5 L |
6476 | case $host_os in |
6477 | aix3*) | |
6478 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6479 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6480 | # vanish in a puff of smoke. | |
6481 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6482 | COLLECT_NAMES= | |
6483 | export COLLECT_NAMES | |
6484 | fi | |
6485 | ;; | |
6486 | esac | |
d7040cdb | 6487 | |
ce2cded5 L |
6488 | # Sed substitution that helps us do robust quoting. It backslashifies |
6489 | # metacharacters that are still active within double-quoted strings. | |
6490 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 6491 | |
ce2cded5 L |
6492 | # Same as above, but do not quote variable references. |
6493 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 6494 | |
ce2cded5 L |
6495 | # Sed substitution to delay expansion of an escaped shell variable in a |
6496 | # double_quote_subst'ed string. | |
6497 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 6498 | |
ce2cded5 L |
6499 | # Sed substitution to delay expansion of an escaped single quote. |
6500 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 6501 | |
ce2cded5 L |
6502 | # Sed substitution to avoid accidental globbing in evaled expressions |
6503 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 6504 | |
ce2cded5 L |
6505 | # Global variables: |
6506 | ofile=libtool | |
6507 | can_build_shared=yes | |
d7040cdb | 6508 | |
ce2cded5 L |
6509 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6510 | # which needs '.lib'). | |
6511 | libext=a | |
d7040cdb | 6512 | |
ce2cded5 | 6513 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 6514 | |
ce2cded5 L |
6515 | old_CC="$CC" |
6516 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 6517 | |
ce2cded5 L |
6518 | # Set sane defaults for various variables |
6519 | test -z "$CC" && CC=cc | |
6520 | test -z "$LTCC" && LTCC=$CC | |
6521 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6522 | test -z "$LD" && LD=ld | |
6523 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 6524 | |
ce2cded5 L |
6525 | for cc_temp in $compiler""; do |
6526 | case $cc_temp in | |
6527 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6528 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6529 | \-*) ;; | |
6530 | *) break;; | |
6531 | esac | |
6532 | done | |
6533 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d7040cdb SE |
6534 | |
6535 | ||
ce2cded5 L |
6536 | # Only perform the check for file, if the check method requires it |
6537 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6538 | case $deplibs_check_method in | |
6539 | file_magic*) | |
6540 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6541 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6542 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6543 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6545 | else | |
6546 | case $MAGIC_CMD in | |
6547 | [\\/*] | ?:[\\/]*) | |
6548 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6549 | ;; | |
6550 | *) | |
6551 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6552 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6553 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6554 | for ac_dir in $ac_dummy; do | |
6555 | IFS="$lt_save_ifs" | |
6556 | test -z "$ac_dir" && ac_dir=. | |
6557 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6558 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6559 | if test -n "$file_magic_test_file"; then | |
6560 | case $deplibs_check_method in | |
6561 | "file_magic "*) | |
6562 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6563 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6564 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6565 | $EGREP "$file_magic_regex" > /dev/null; then | |
6566 | : | |
6567 | else | |
6568 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 6569 | |
ce2cded5 L |
6570 | *** Warning: the command libtool uses to detect shared libraries, |
6571 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6572 | *** The result is that libtool may fail to recognize shared libraries | |
6573 | *** as such. This will affect the creation of libtool libraries that | |
6574 | *** depend on shared libraries, but programs linked with such libtool | |
6575 | *** libraries will work regardless of this problem. Nevertheless, you | |
6576 | *** may want to report the problem to your system manager and/or to | |
6577 | *** bug-libtool@gnu.org | |
d7040cdb | 6578 | |
ce2cded5 L |
6579 | _LT_EOF |
6580 | fi ;; | |
6581 | esac | |
6582 | fi | |
6583 | break | |
6584 | fi | |
6585 | done | |
6586 | IFS="$lt_save_ifs" | |
6587 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6588 | ;; | |
6589 | esac | |
6590 | fi | |
d7040cdb | 6591 | |
ce2cded5 L |
6592 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6593 | if test -n "$MAGIC_CMD"; then | |
6594 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6595 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6596 | else | |
6597 | echo "$as_me:$LINENO: result: no" >&5 | |
6598 | echo "${ECHO_T}no" >&6 | |
6599 | fi | |
d7040cdb SE |
6600 | |
6601 | ||
6602 | ||
6603 | ||
6604 | ||
ce2cded5 L |
6605 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6606 | if test -n "$ac_tool_prefix"; then | |
6607 | echo "$as_me:$LINENO: checking for file" >&5 | |
6608 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6609 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6611 | else | |
6612 | case $MAGIC_CMD in | |
6613 | [\\/*] | ?:[\\/]*) | |
6614 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6615 | ;; | |
6616 | *) | |
6617 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6619 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6620 | for ac_dir in $ac_dummy; do | |
6621 | IFS="$lt_save_ifs" | |
6622 | test -z "$ac_dir" && ac_dir=. | |
6623 | if test -f $ac_dir/file; then | |
6624 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6625 | if test -n "$file_magic_test_file"; then | |
6626 | case $deplibs_check_method in | |
6627 | "file_magic "*) | |
6628 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6629 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6630 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6631 | $EGREP "$file_magic_regex" > /dev/null; then | |
6632 | : | |
6633 | else | |
6634 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 6635 | |
ce2cded5 L |
6636 | *** Warning: the command libtool uses to detect shared libraries, |
6637 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6638 | *** The result is that libtool may fail to recognize shared libraries | |
6639 | *** as such. This will affect the creation of libtool libraries that | |
6640 | *** depend on shared libraries, but programs linked with such libtool | |
6641 | *** libraries will work regardless of this problem. Nevertheless, you | |
6642 | *** may want to report the problem to your system manager and/or to | |
6643 | *** bug-libtool@gnu.org | |
d7040cdb | 6644 | |
ce2cded5 L |
6645 | _LT_EOF |
6646 | fi ;; | |
6647 | esac | |
6648 | fi | |
6649 | break | |
6650 | fi | |
6651 | done | |
6652 | IFS="$lt_save_ifs" | |
6653 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6654 | ;; | |
6655 | esac | |
6656 | fi | |
d7040cdb | 6657 | |
ce2cded5 L |
6658 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6659 | if test -n "$MAGIC_CMD"; then | |
6660 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6661 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6662 | else | |
6663 | echo "$as_me:$LINENO: result: no" >&5 | |
6664 | echo "${ECHO_T}no" >&6 | |
6665 | fi | |
d7040cdb SE |
6666 | |
6667 | ||
ce2cded5 L |
6668 | else |
6669 | MAGIC_CMD=: | |
6670 | fi | |
6671 | fi | |
d7040cdb | 6672 | |
ce2cded5 L |
6673 | fi |
6674 | ;; | |
6675 | esac | |
d7040cdb | 6676 | |
ce2cded5 | 6677 | # Use C for the default configuration in the libtool script |
d7040cdb | 6678 | |
ce2cded5 L |
6679 | lt_save_CC="$CC" |
6680 | ac_ext=c | |
6681 | ac_cpp='$CPP $CPPFLAGS' | |
6682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
6685 | |
6686 | ||
ce2cded5 L |
6687 | # Source file extension for C test sources. |
6688 | ac_ext=c | |
d7040cdb | 6689 | |
ce2cded5 L |
6690 | # Object file extension for compiled C test sources. |
6691 | objext=o | |
6692 | objext=$objext | |
d7040cdb | 6693 | |
ce2cded5 L |
6694 | # Code to be used in simple compile tests |
6695 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 6696 | |
ce2cded5 L |
6697 | # Code to be used in simple link tests |
6698 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
6699 | |
6700 | ||
6701 | ||
6702 | ||
6703 | ||
6704 | ||
6705 | ||
ce2cded5 L |
6706 | # If no C compiler was specified, use CC. |
6707 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 6708 | |
ce2cded5 L |
6709 | # If no C compiler flags were specified, use CFLAGS. |
6710 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 6711 | |
ce2cded5 L |
6712 | # Allow CC to be a program name with arguments. |
6713 | compiler=$CC | |
d7040cdb | 6714 | |
ce2cded5 L |
6715 | # Save the default compiler, since it gets overwritten when the other |
6716 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6717 | compiler_DEFAULT=$CC | |
d7040cdb | 6718 | |
ce2cded5 L |
6719 | # save warnings/boilerplate of simple test code |
6720 | ac_outfile=conftest.$ac_objext | |
6721 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6722 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6723 | _lt_compiler_boilerplate=`cat conftest.err` | |
6724 | $RM conftest* | |
d7040cdb | 6725 | |
ce2cded5 L |
6726 | ac_outfile=conftest.$ac_objext |
6727 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6728 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6729 | _lt_linker_boilerplate=`cat conftest.err` | |
6730 | $RM conftest* | |
d7040cdb SE |
6731 | |
6732 | ||
ce2cded5 L |
6733 | ## CAVEAT EMPTOR: |
6734 | ## There is no encapsulation within the following macros, do not change | |
6735 | ## the running order or otherwise move them around unless you know exactly | |
6736 | ## what you are doing... | |
6737 | if test -n "$compiler"; then | |
d7040cdb | 6738 | |
ce2cded5 | 6739 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 6740 | |
ce2cded5 L |
6741 | if test "$GCC" = yes; then |
6742 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d7040cdb | 6743 | |
ce2cded5 L |
6744 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6745 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6746 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6748 | else | |
6749 | lt_cv_prog_compiler_rtti_exceptions=no | |
6750 | ac_outfile=conftest.$ac_objext | |
6751 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6752 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6753 | # Insert the option either (1) after the last *FLAGS variable, or | |
6754 | # (2) before a word containing "conftest.", or (3) at the end. | |
6755 | # Note that $ac_compile itself does not contain backslashes and begins | |
6756 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6757 | # The option is referenced via a variable to avoid confusing sed. | |
6758 | lt_compile=`echo "$ac_compile" | $SED \ | |
6759 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6760 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6761 | -e 's:$: $lt_compiler_flag:'` | |
58c85be7 | 6762 | (eval echo "\"\$as_me:6762: $lt_compile\"" >&5) |
ce2cded5 L |
6763 | (eval "$lt_compile" 2>conftest.err) |
6764 | ac_status=$? | |
6765 | cat conftest.err >&5 | |
58c85be7 | 6766 | echo "$as_me:6766: \$? = $ac_status" >&5 |
ce2cded5 L |
6767 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6768 | # The compiler can only warn and ignore the option if not recognized | |
6769 | # So say no if there are warnings other than the usual output. | |
6770 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6771 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6772 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6773 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6774 | fi | |
6775 | fi | |
6776 | $RM conftest* | |
d7040cdb | 6777 | |
ce2cded5 L |
6778 | fi |
6779 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6780 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
d7040cdb | 6781 | |
ce2cded5 L |
6782 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6783 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6784 | else | |
6785 | : | |
6786 | fi | |
d7040cdb | 6787 | |
ce2cded5 | 6788 | fi |
d7040cdb SE |
6789 | |
6790 | ||
6791 | ||
6792 | ||
6793 | ||
6794 | ||
ce2cded5 L |
6795 | lt_prog_compiler_wl= |
6796 | lt_prog_compiler_pic= | |
6797 | lt_prog_compiler_static= | |
d7040cdb | 6798 | |
ce2cded5 L |
6799 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6800 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
d7040cdb | 6801 | |
ce2cded5 L |
6802 | if test "$GCC" = yes; then |
6803 | lt_prog_compiler_wl='-Wl,' | |
6804 | lt_prog_compiler_static='-static' | |
d7040cdb | 6805 | |
ce2cded5 L |
6806 | case $host_os in |
6807 | aix*) | |
6808 | # All AIX code is PIC. | |
6809 | if test "$host_cpu" = ia64; then | |
6810 | # AIX 5 now supports IA64 processor | |
6811 | lt_prog_compiler_static='-Bstatic' | |
6812 | fi | |
6813 | ;; | |
d7040cdb | 6814 | |
ce2cded5 L |
6815 | amigaos*) |
6816 | if test "$host_cpu" = m68k; then | |
6817 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6818 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6819 | # like `-m68040'. | |
6820 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6821 | fi | |
6822 | ;; | |
d7040cdb | 6823 | |
ce2cded5 L |
6824 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6825 | # PIC is the default for these OSes. | |
6826 | ;; | |
d7040cdb | 6827 | |
ce2cded5 L |
6828 | mingw* | cygwin* | pw32* | os2*) |
6829 | # This hack is so that the source file can tell whether it is being | |
6830 | # built for inclusion in a dll (and should export symbols for example). | |
6831 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6832 | # (--disable-auto-import) libraries | |
6833 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6834 | ;; | |
d7040cdb | 6835 | |
ce2cded5 L |
6836 | darwin* | rhapsody*) |
6837 | # PIC is the default on this platform | |
6838 | # Common symbols not allowed in MH_DYLIB files | |
6839 | lt_prog_compiler_pic='-fno-common' | |
6840 | ;; | |
d7040cdb | 6841 | |
ce2cded5 L |
6842 | hpux*) |
6843 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6844 | # not for PA HP-UX. | |
6845 | case $host_cpu in | |
6846 | hppa*64*|ia64*) | |
6847 | # +Z the default | |
6848 | ;; | |
6849 | *) | |
6850 | lt_prog_compiler_pic='-fPIC' | |
6851 | ;; | |
6852 | esac | |
6853 | ;; | |
d7040cdb | 6854 | |
ce2cded5 L |
6855 | interix[3-9]*) |
6856 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6857 | # Instead, we relocate shared libraries at runtime. | |
6858 | ;; | |
d7040cdb | 6859 | |
ce2cded5 L |
6860 | msdosdjgpp*) |
6861 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6862 | # on systems that don't support them. | |
6863 | lt_prog_compiler_can_build_shared=no | |
6864 | enable_shared=no | |
6865 | ;; | |
d7040cdb | 6866 | |
ce2cded5 L |
6867 | *nto* | *qnx*) |
6868 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6869 | # it will coredump. | |
6870 | lt_prog_compiler_pic='-fPIC -shared' | |
6871 | ;; | |
d7040cdb | 6872 | |
ce2cded5 L |
6873 | sysv4*MP*) |
6874 | if test -d /usr/nec; then | |
6875 | lt_prog_compiler_pic=-Kconform_pic | |
6876 | fi | |
6877 | ;; | |
d7040cdb | 6878 | |
ce2cded5 L |
6879 | *) |
6880 | lt_prog_compiler_pic='-fPIC' | |
6881 | ;; | |
6882 | esac | |
6883 | else | |
6884 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6885 | case $host_os in | |
6886 | aix*) | |
6887 | lt_prog_compiler_wl='-Wl,' | |
6888 | if test "$host_cpu" = ia64; then | |
6889 | # AIX 5 now supports IA64 processor | |
6890 | lt_prog_compiler_static='-Bstatic' | |
6891 | else | |
6892 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6893 | fi | |
6894 | ;; | |
6895 | darwin*) | |
6896 | # PIC is the default on this platform | |
6897 | # Common symbols not allowed in MH_DYLIB files | |
6898 | case $cc_basename in | |
6899 | xlc*) | |
6900 | lt_prog_compiler_pic='-qnocommon' | |
6901 | lt_prog_compiler_wl='-Wl,' | |
6902 | ;; | |
6903 | esac | |
6904 | ;; | |
d7040cdb | 6905 | |
ce2cded5 L |
6906 | mingw* | cygwin* | pw32* | os2*) |
6907 | # This hack is so that the source file can tell whether it is being | |
6908 | # built for inclusion in a dll (and should export symbols for example). | |
6909 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6910 | ;; | |
d7040cdb | 6911 | |
ce2cded5 L |
6912 | hpux9* | hpux10* | hpux11*) |
6913 | lt_prog_compiler_wl='-Wl,' | |
6914 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6915 | # not for PA HP-UX. | |
6916 | case $host_cpu in | |
6917 | hppa*64*|ia64*) | |
6918 | # +Z the default | |
6919 | ;; | |
6920 | *) | |
6921 | lt_prog_compiler_pic='+Z' | |
6922 | ;; | |
6923 | esac | |
6924 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6925 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6926 | ;; | |
d7040cdb | 6927 | |
ce2cded5 L |
6928 | irix5* | irix6* | nonstopux*) |
6929 | lt_prog_compiler_wl='-Wl,' | |
6930 | # PIC (with -KPIC) is the default. | |
6931 | lt_prog_compiler_static='-non_shared' | |
6932 | ;; | |
d7040cdb | 6933 | |
ce2cded5 L |
6934 | linux* | k*bsd*-gnu) |
6935 | case $cc_basename in | |
6936 | icc* | ecc*) | |
6937 | lt_prog_compiler_wl='-Wl,' | |
6938 | lt_prog_compiler_pic='-KPIC' | |
6939 | lt_prog_compiler_static='-static' | |
6940 | ;; | |
6941 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6942 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6943 | # which looks to be a dead project) | |
6944 | lt_prog_compiler_wl='-Wl,' | |
6945 | lt_prog_compiler_pic='-fpic' | |
6946 | lt_prog_compiler_static='-Bstatic' | |
6947 | ;; | |
6948 | ccc*) | |
6949 | lt_prog_compiler_wl='-Wl,' | |
6950 | # All Alpha code is PIC. | |
6951 | lt_prog_compiler_static='-non_shared' | |
6952 | ;; | |
6953 | *) | |
6954 | case `$CC -V 2>&1 | sed 5q` in | |
6955 | *Sun\ C*) | |
6956 | # Sun C 5.9 | |
6957 | lt_prog_compiler_pic='-KPIC' | |
6958 | lt_prog_compiler_static='-Bstatic' | |
6959 | lt_prog_compiler_wl='-Wl,' | |
6960 | ;; | |
6961 | *Sun\ F*) | |
6962 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
6963 | lt_prog_compiler_pic='-KPIC' | |
6964 | lt_prog_compiler_static='-Bstatic' | |
6965 | lt_prog_compiler_wl='' | |
6966 | ;; | |
6967 | esac | |
6968 | ;; | |
6969 | esac | |
6970 | ;; | |
d7040cdb | 6971 | |
ce2cded5 L |
6972 | newsos6) |
6973 | lt_prog_compiler_pic='-KPIC' | |
6974 | lt_prog_compiler_static='-Bstatic' | |
6975 | ;; | |
d7040cdb | 6976 | |
ce2cded5 L |
6977 | *nto* | *qnx*) |
6978 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6979 | # it will coredump. | |
6980 | lt_prog_compiler_pic='-fPIC -shared' | |
6981 | ;; | |
d7040cdb | 6982 | |
ce2cded5 L |
6983 | osf3* | osf4* | osf5*) |
6984 | lt_prog_compiler_wl='-Wl,' | |
6985 | # All OSF/1 code is PIC. | |
6986 | lt_prog_compiler_static='-non_shared' | |
6987 | ;; | |
d7040cdb | 6988 | |
ce2cded5 L |
6989 | rdos*) |
6990 | lt_prog_compiler_static='-non_shared' | |
6991 | ;; | |
d7040cdb | 6992 | |
ce2cded5 L |
6993 | solaris*) |
6994 | lt_prog_compiler_pic='-KPIC' | |
6995 | lt_prog_compiler_static='-Bstatic' | |
6996 | case $cc_basename in | |
6997 | f77* | f90* | f95*) | |
6998 | lt_prog_compiler_wl='-Qoption ld ';; | |
6999 | *) | |
7000 | lt_prog_compiler_wl='-Wl,';; | |
7001 | esac | |
7002 | ;; | |
d7040cdb | 7003 | |
ce2cded5 L |
7004 | sunos4*) |
7005 | lt_prog_compiler_wl='-Qoption ld ' | |
7006 | lt_prog_compiler_pic='-PIC' | |
7007 | lt_prog_compiler_static='-Bstatic' | |
7008 | ;; | |
d7040cdb | 7009 | |
ce2cded5 L |
7010 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7011 | lt_prog_compiler_wl='-Wl,' | |
7012 | lt_prog_compiler_pic='-KPIC' | |
7013 | lt_prog_compiler_static='-Bstatic' | |
7014 | ;; | |
d7040cdb | 7015 | |
ce2cded5 L |
7016 | sysv4*MP*) |
7017 | if test -d /usr/nec ;then | |
7018 | lt_prog_compiler_pic='-Kconform_pic' | |
7019 | lt_prog_compiler_static='-Bstatic' | |
7020 | fi | |
7021 | ;; | |
d7040cdb | 7022 | |
ce2cded5 L |
7023 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7024 | lt_prog_compiler_wl='-Wl,' | |
7025 | lt_prog_compiler_pic='-KPIC' | |
7026 | lt_prog_compiler_static='-Bstatic' | |
7027 | ;; | |
d7040cdb | 7028 | |
ce2cded5 L |
7029 | unicos*) |
7030 | lt_prog_compiler_wl='-Wl,' | |
7031 | lt_prog_compiler_can_build_shared=no | |
7032 | ;; | |
d7040cdb | 7033 | |
ce2cded5 L |
7034 | uts4*) |
7035 | lt_prog_compiler_pic='-pic' | |
7036 | lt_prog_compiler_static='-Bstatic' | |
7037 | ;; | |
d7040cdb | 7038 | |
ce2cded5 L |
7039 | *) |
7040 | lt_prog_compiler_can_build_shared=no | |
7041 | ;; | |
7042 | esac | |
7043 | fi | |
d7040cdb | 7044 | |
ce2cded5 L |
7045 | case $host_os in |
7046 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7047 | *djgpp*) | |
7048 | lt_prog_compiler_pic= | |
7049 | ;; | |
7050 | *) | |
7051 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7052 | ;; | |
7053 | esac | |
7054 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7055 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
d7040cdb SE |
7056 | |
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
ce2cded5 L |
7062 | # |
7063 | # Check to make sure the PIC flag actually works. | |
7064 | # | |
7065 | if test -n "$lt_prog_compiler_pic"; then | |
7066 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7067 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
7068 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7070 | else | |
7071 | lt_prog_compiler_pic_works=no | |
7072 | ac_outfile=conftest.$ac_objext | |
7073 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7074 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7075 | # Insert the option either (1) after the last *FLAGS variable, or | |
7076 | # (2) before a word containing "conftest.", or (3) at the end. | |
7077 | # Note that $ac_compile itself does not contain backslashes and begins | |
7078 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7079 | # The option is referenced via a variable to avoid confusing sed. | |
7080 | lt_compile=`echo "$ac_compile" | $SED \ | |
7081 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7082 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7083 | -e 's:$: $lt_compiler_flag:'` | |
58c85be7 | 7084 | (eval echo "\"\$as_me:7084: $lt_compile\"" >&5) |
ce2cded5 L |
7085 | (eval "$lt_compile" 2>conftest.err) |
7086 | ac_status=$? | |
7087 | cat conftest.err >&5 | |
58c85be7 | 7088 | echo "$as_me:7088: \$? = $ac_status" >&5 |
ce2cded5 L |
7089 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7090 | # The compiler can only warn and ignore the option if not recognized | |
7091 | # So say no if there are warnings other than the usual output. | |
7092 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7093 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7094 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7095 | lt_prog_compiler_pic_works=yes | |
7096 | fi | |
7097 | fi | |
7098 | $RM conftest* | |
d7040cdb | 7099 | |
ce2cded5 L |
7100 | fi |
7101 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7102 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
d7040cdb | 7103 | |
ce2cded5 L |
7104 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7105 | case $lt_prog_compiler_pic in | |
7106 | "" | " "*) ;; | |
7107 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7108 | esac | |
7109 | else | |
7110 | lt_prog_compiler_pic= | |
7111 | lt_prog_compiler_can_build_shared=no | |
7112 | fi | |
d7040cdb | 7113 | |
ce2cded5 | 7114 | fi |
d7040cdb SE |
7115 | |
7116 | ||
7117 | ||
7118 | ||
7119 | ||
7120 | ||
ce2cded5 L |
7121 | # |
7122 | # Check to make sure the static flag actually works. | |
7123 | # | |
7124 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7125 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7126 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
7127 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7129 | else | |
7130 | lt_prog_compiler_static_works=no | |
7131 | save_LDFLAGS="$LDFLAGS" | |
7132 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7133 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7134 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7135 | # The linker can only warn and ignore the option if not recognized | |
7136 | # So say no if there are warnings | |
7137 | if test -s conftest.err; then | |
7138 | # Append any errors to the config.log. | |
7139 | cat conftest.err 1>&5 | |
7140 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7141 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7142 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7143 | lt_prog_compiler_static_works=yes | |
7144 | fi | |
7145 | else | |
7146 | lt_prog_compiler_static_works=yes | |
7147 | fi | |
7148 | fi | |
7149 | $RM conftest* | |
7150 | LDFLAGS="$save_LDFLAGS" | |
d7040cdb | 7151 | |
ce2cded5 L |
7152 | fi |
7153 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7154 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
d7040cdb | 7155 | |
ce2cded5 L |
7156 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7157 | : | |
7158 | else | |
7159 | lt_prog_compiler_static= | |
7160 | fi | |
d7040cdb SE |
7161 | |
7162 | ||
7163 | ||
7164 | ||
7165 | ||
7166 | ||
7167 | ||
ce2cded5 L |
7168 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7169 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7170 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7172 | else | |
7173 | lt_cv_prog_compiler_c_o=no | |
7174 | $RM -r conftest 2>/dev/null | |
7175 | mkdir conftest | |
7176 | cd conftest | |
7177 | mkdir out | |
7178 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 7179 | |
ce2cded5 L |
7180 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7181 | # Insert the option either (1) after the last *FLAGS variable, or | |
7182 | # (2) before a word containing "conftest.", or (3) at the end. | |
7183 | # Note that $ac_compile itself does not contain backslashes and begins | |
7184 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7185 | lt_compile=`echo "$ac_compile" | $SED \ | |
7186 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7187 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7188 | -e 's:$: $lt_compiler_flag:'` | |
58c85be7 | 7189 | (eval echo "\"\$as_me:7189: $lt_compile\"" >&5) |
ce2cded5 L |
7190 | (eval "$lt_compile" 2>out/conftest.err) |
7191 | ac_status=$? | |
7192 | cat out/conftest.err >&5 | |
58c85be7 | 7193 | echo "$as_me:7193: \$? = $ac_status" >&5 |
ce2cded5 L |
7194 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7195 | then | |
7196 | # The compiler can only warn and ignore the option if not recognized | |
7197 | # So say no if there are warnings | |
7198 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7199 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7200 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7201 | lt_cv_prog_compiler_c_o=yes | |
7202 | fi | |
7203 | fi | |
7204 | chmod u+w . 2>&5 | |
7205 | $RM conftest* | |
7206 | # SGI C++ compiler will create directory out/ii_files/ for | |
7207 | # template instantiation | |
7208 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7209 | $RM out/* && rmdir out | |
7210 | cd .. | |
7211 | $RM -r conftest | |
7212 | $RM conftest* | |
7213 | ||
7214 | fi | |
7215 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7216 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7217 | ||
7218 | ||
7219 | ||
7220 | ||
7221 | ||
7222 | ||
7223 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7224 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7225 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 7227 | else |
ce2cded5 L |
7228 | lt_cv_prog_compiler_c_o=no |
7229 | $RM -r conftest 2>/dev/null | |
7230 | mkdir conftest | |
7231 | cd conftest | |
7232 | mkdir out | |
7233 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7234 | ||
7235 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7236 | # Insert the option either (1) after the last *FLAGS variable, or | |
7237 | # (2) before a word containing "conftest.", or (3) at the end. | |
7238 | # Note that $ac_compile itself does not contain backslashes and begins | |
7239 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7240 | lt_compile=`echo "$ac_compile" | $SED \ | |
7241 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7242 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7243 | -e 's:$: $lt_compiler_flag:'` | |
58c85be7 | 7244 | (eval echo "\"\$as_me:7244: $lt_compile\"" >&5) |
ce2cded5 L |
7245 | (eval "$lt_compile" 2>out/conftest.err) |
7246 | ac_status=$? | |
7247 | cat out/conftest.err >&5 | |
58c85be7 | 7248 | echo "$as_me:7248: \$? = $ac_status" >&5 |
ce2cded5 L |
7249 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7250 | then | |
7251 | # The compiler can only warn and ignore the option if not recognized | |
7252 | # So say no if there are warnings | |
7253 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7254 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7255 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7256 | lt_cv_prog_compiler_c_o=yes | |
7257 | fi | |
7258 | fi | |
7259 | chmod u+w . 2>&5 | |
7260 | $RM conftest* | |
7261 | # SGI C++ compiler will create directory out/ii_files/ for | |
7262 | # template instantiation | |
7263 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7264 | $RM out/* && rmdir out | |
7265 | cd .. | |
7266 | $RM -r conftest | |
7267 | $RM conftest* | |
7268 | ||
d7040cdb | 7269 | fi |
ce2cded5 L |
7270 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7271 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
d7040cdb | 7272 | |
d7040cdb | 7273 | |
d7040cdb | 7274 | |
d7040cdb | 7275 | |
ce2cded5 L |
7276 | hard_links="nottested" |
7277 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7278 | # do not overwrite the value of need_locks provided by the user | |
7279 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7280 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7281 | hard_links=yes | |
7282 | $RM conftest* | |
7283 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7284 | touch conftest.a | |
7285 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7286 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7287 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7288 | echo "${ECHO_T}$hard_links" >&6 | |
7289 | if test "$hard_links" = no; then | |
7290 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7291 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7292 | need_locks=warn | |
d7040cdb | 7293 | fi |
ce2cded5 L |
7294 | else |
7295 | need_locks=no | |
7296 | fi | |
d7040cdb | 7297 | |
d7040cdb | 7298 | |
d7040cdb | 7299 | |
d7040cdb | 7300 | |
d7040cdb | 7301 | |
d7040cdb | 7302 | |
ce2cded5 L |
7303 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7304 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
d7040cdb | 7305 | |
ce2cded5 L |
7306 | runpath_var= |
7307 | allow_undefined_flag= | |
7308 | always_export_symbols=no | |
7309 | archive_cmds= | |
7310 | archive_expsym_cmds= | |
7311 | compiler_needs_object=no | |
7312 | enable_shared_with_static_runtimes=no | |
7313 | export_dynamic_flag_spec= | |
7314 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7315 | hardcode_automatic=no | |
7316 | hardcode_direct=no | |
7317 | hardcode_direct_absolute=no | |
7318 | hardcode_libdir_flag_spec= | |
7319 | hardcode_libdir_flag_spec_ld= | |
7320 | hardcode_libdir_separator= | |
7321 | hardcode_minus_L=no | |
7322 | hardcode_shlibpath_var=unsupported | |
7323 | inherit_rpath=no | |
7324 | link_all_deplibs=unknown | |
7325 | module_cmds= | |
7326 | module_expsym_cmds= | |
7327 | old_archive_from_new_cmds= | |
7328 | old_archive_from_expsyms_cmds= | |
7329 | thread_safe_flag_spec= | |
7330 | whole_archive_flag_spec= | |
7331 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7332 | # included in the symbol list | |
7333 | include_expsyms= | |
7334 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7335 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7336 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7337 | # as well as any symbol that contains `d'. | |
7338 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7339 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7340 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7341 | # the symbol is explicitly referenced. Since portable code cannot | |
7342 | # rely on this symbol name, it's probably fine to never include it in | |
7343 | # preloaded symbol tables. | |
7344 | extract_expsyms_cmds= | |
d7040cdb | 7345 | |
d7040cdb | 7346 | case $host_os in |
ce2cded5 L |
7347 | cygwin* | mingw* | pw32*) |
7348 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7349 | # When not using gcc, we currently assume that we are using | |
7350 | # Microsoft Visual C++. | |
7351 | if test "$GCC" != yes; then | |
7352 | with_gnu_ld=no | |
7353 | fi | |
d7040cdb | 7354 | ;; |
ce2cded5 L |
7355 | interix*) |
7356 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7357 | with_gnu_ld=yes | |
d7040cdb | 7358 | ;; |
ce2cded5 L |
7359 | openbsd*) |
7360 | with_gnu_ld=no | |
d7040cdb SE |
7361 | ;; |
7362 | esac | |
d7040cdb | 7363 | |
ce2cded5 L |
7364 | ld_shlibs=yes |
7365 | if test "$with_gnu_ld" = yes; then | |
7366 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7367 | wlarc='${wl}' | |
d7040cdb | 7368 | |
ce2cded5 L |
7369 | # Set some defaults for GNU ld with shared library support. These |
7370 | # are reset later if shared libraries are not supported. Putting them | |
7371 | # here allows them to be overridden if necessary. | |
7372 | runpath_var=LD_RUN_PATH | |
7373 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7374 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7375 | # ancient GNU ld didn't support --whole-archive et. al. | |
7376 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7377 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
d7040cdb | 7378 | else |
ce2cded5 | 7379 | whole_archive_flag_spec= |
d7040cdb | 7380 | fi |
ce2cded5 L |
7381 | supports_anon_versioning=no |
7382 | case `$LD -v 2>&1` in | |
7383 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7384 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7385 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7386 | *\ 2.11.*) ;; # other 2.11 versions | |
7387 | *) supports_anon_versioning=yes ;; | |
7388 | esac | |
d7040cdb | 7389 | |
ce2cded5 L |
7390 | # See if GNU ld supports shared libraries. |
7391 | case $host_os in | |
50e7d84b | 7392 | aix[3-9]*) |
ce2cded5 L |
7393 | # On AIX/PPC, the GNU linker is very broken |
7394 | if test "$host_cpu" != ia64; then | |
7395 | ld_shlibs=no | |
7396 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 7397 | |
ce2cded5 L |
7398 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7399 | *** to be unable to reliably create shared libraries on AIX. | |
7400 | *** Therefore, libtool is disabling shared libraries support. If you | |
7401 | *** really care for shared libraries, you may want to modify your PATH | |
7402 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 7403 | |
ce2cded5 L |
7404 | _LT_EOF |
7405 | fi | |
7406 | ;; | |
d7040cdb | 7407 | |
ce2cded5 L |
7408 | amigaos*) |
7409 | if test "$host_cpu" = m68k; then | |
7410 | 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)' | |
7411 | hardcode_libdir_flag_spec='-L$libdir' | |
7412 | hardcode_minus_L=yes | |
7413 | fi | |
d7040cdb | 7414 | |
ce2cded5 L |
7415 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7416 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7417 | # to version 4, is to share data among multiple programs linked | |
7418 | # with the same dynamic library. Since this doesn't match the | |
7419 | # behavior of shared libraries on other platforms, we can't use | |
7420 | # them. | |
7421 | ld_shlibs=no | |
7422 | ;; | |
d7040cdb | 7423 | |
ce2cded5 L |
7424 | beos*) |
7425 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7426 | allow_undefined_flag=unsupported | |
7427 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7428 | # support --undefined. This deserves some investigation. FIXME | |
7429 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7430 | else | |
7431 | ld_shlibs=no | |
7432 | fi | |
7433 | ;; | |
d7040cdb | 7434 | |
ce2cded5 L |
7435 | cygwin* | mingw* | pw32*) |
7436 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7437 | # as there is no search path for DLLs. | |
7438 | hardcode_libdir_flag_spec='-L$libdir' | |
7439 | allow_undefined_flag=unsupported | |
7440 | always_export_symbols=no | |
7441 | enable_shared_with_static_runtimes=yes | |
7442 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 7443 | |
ce2cded5 L |
7444 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
7445 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7446 | # If the export-symbols file already is a .def file (1st line | |
7447 | # is EXPORTS), use it as is; otherwise, prepend... | |
7448 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7449 | cp $export_symbols $output_objdir/$soname.def; | |
7450 | else | |
7451 | echo EXPORTS > $output_objdir/$soname.def; | |
7452 | cat $export_symbols >> $output_objdir/$soname.def; | |
7453 | fi~ | |
7454 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7455 | else | |
7456 | ld_shlibs=no | |
7457 | fi | |
7458 | ;; | |
d7040cdb | 7459 | |
ce2cded5 L |
7460 | interix[3-9]*) |
7461 | hardcode_direct=no | |
7462 | hardcode_shlibpath_var=no | |
7463 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7464 | export_dynamic_flag_spec='${wl}-E' | |
7465 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7466 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7467 | # default) and relocated if they conflict, which is a slow very memory | |
7468 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7469 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7470 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7471 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7472 | 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' | |
7473 | ;; | |
d7040cdb | 7474 | |
ce2cded5 L |
7475 | gnu* | linux* | tpf* | k*bsd*-gnu) |
7476 | tmp_diet=no | |
7477 | if test "$host_os" = linux-dietlibc; then | |
7478 | case $cc_basename in | |
7479 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7480 | esac | |
7481 | fi | |
7482 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7483 | && test "$tmp_diet" = no | |
7484 | then | |
7485 | tmp_addflag= | |
7486 | case $cc_basename,$host_cpu in | |
7487 | pgcc*) # Portland Group C compiler | |
7488 | 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' | |
7489 | tmp_addflag=' $pic_flag' | |
7490 | ;; | |
7491 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7492 | 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' | |
7493 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7494 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7495 | tmp_addflag=' -i_dynamic' ;; | |
7496 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7497 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7498 | ifc* | ifort*) # Intel Fortran compiler | |
7499 | tmp_addflag=' -nofor_main' ;; | |
7500 | esac | |
7501 | case `$CC -V 2>&1 | sed 5q` in | |
7502 | *Sun\ C*) # Sun C 5.9 | |
7503 | 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' | |
7504 | compiler_needs_object=yes | |
7505 | tmp_sharedflag='-G' ;; | |
7506 | *Sun\ F*) # Sun Fortran 8.3 | |
7507 | tmp_sharedflag='-G' ;; | |
7508 | *) | |
7509 | tmp_sharedflag='-shared' ;; | |
7510 | esac | |
7511 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 7512 | |
ce2cded5 L |
7513 | if test "x$supports_anon_versioning" = xyes; then |
7514 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7515 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7516 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7517 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7518 | fi | |
7519 | else | |
7520 | ld_shlibs=no | |
7521 | fi | |
7522 | ;; | |
d7040cdb | 7523 | |
ce2cded5 L |
7524 | netbsd*) |
7525 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7526 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7527 | wlarc= | |
7528 | else | |
7529 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7530 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7531 | fi | |
7532 | ;; | |
d7040cdb | 7533 | |
ce2cded5 L |
7534 | solaris*) |
7535 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7536 | ld_shlibs=no | |
7537 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 7538 | |
ce2cded5 L |
7539 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7540 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7541 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7542 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7543 | *** your PATH or compiler configuration so that the native linker is | |
7544 | *** used, and then restart. | |
d7040cdb | 7545 | |
ce2cded5 L |
7546 | _LT_EOF |
7547 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7548 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7549 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7550 | else | |
7551 | ld_shlibs=no | |
7552 | fi | |
7553 | ;; | |
d7040cdb | 7554 | |
ce2cded5 L |
7555 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7556 | case `$LD -v 2>&1` in | |
7557 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7558 | ld_shlibs=no | |
7559 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 7560 | |
ce2cded5 L |
7561 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7562 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7563 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7564 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7565 | *** your PATH or compiler configuration so that the native linker is | |
7566 | *** used, and then restart. | |
d7040cdb | 7567 | |
ce2cded5 L |
7568 | _LT_EOF |
7569 | ;; | |
7570 | *) | |
7571 | # For security reasons, it is highly recommended that you always | |
7572 | # use absolute paths for naming shared libraries, and exclude the | |
7573 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7574 | # requires that you compile everything twice, which is a pain. | |
7575 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7576 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7577 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7578 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7579 | else | |
7580 | ld_shlibs=no | |
7581 | fi | |
7582 | ;; | |
7583 | esac | |
d7040cdb | 7584 | ;; |
ce2cded5 L |
7585 | |
7586 | sunos4*) | |
7587 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7588 | wlarc= | |
7589 | hardcode_direct=yes | |
7590 | hardcode_shlibpath_var=no | |
d7040cdb | 7591 | ;; |
d7040cdb | 7592 | |
ce2cded5 L |
7593 | *) |
7594 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7595 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7596 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7597 | else | |
7598 | ld_shlibs=no | |
7599 | fi | |
7600 | ;; | |
7601 | esac | |
d7040cdb | 7602 | |
ce2cded5 L |
7603 | if test "$ld_shlibs" = no; then |
7604 | runpath_var= | |
7605 | hardcode_libdir_flag_spec= | |
7606 | export_dynamic_flag_spec= | |
7607 | whole_archive_flag_spec= | |
7608 | fi | |
d7040cdb | 7609 | else |
ce2cded5 | 7610 | # PORTME fill in a description of your system's linker (not GNU ld) |
d7040cdb | 7611 | case $host_os in |
ce2cded5 L |
7612 | aix3*) |
7613 | allow_undefined_flag=unsupported | |
7614 | always_export_symbols=yes | |
7615 | 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' | |
7616 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7617 | # are no directories specified by -L. | |
7618 | hardcode_minus_L=yes | |
7619 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7620 | # Neither direct hardcoding nor static linking is supported with a | |
7621 | # broken collect2. | |
7622 | hardcode_direct=unsupported | |
7623 | fi | |
7624 | ;; | |
d7040cdb | 7625 | |
50e7d84b | 7626 | aix[4-9]*) |
ce2cded5 L |
7627 | if test "$host_cpu" = ia64; then |
7628 | # On IA64, the linker does run time linking by default, so we don't | |
7629 | # have to do anything special. | |
7630 | aix_use_runtimelinking=no | |
7631 | exp_sym_flag='-Bexport' | |
7632 | no_entry_flag="" | |
7633 | else | |
7634 | # If we're using GNU nm, then we don't want the "-C" option. | |
7635 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7636 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7637 | 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' | |
7638 | else | |
7639 | 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' | |
7640 | fi | |
7641 | aix_use_runtimelinking=no | |
d7040cdb | 7642 | |
ce2cded5 L |
7643 | # Test if we are trying to use run time linking or normal |
7644 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7645 | # need to do runtime linking. | |
50e7d84b | 7646 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
7647 | for ld_flag in $LDFLAGS; do |
7648 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7649 | aix_use_runtimelinking=yes | |
7650 | break | |
7651 | fi | |
7652 | done | |
7653 | ;; | |
7654 | esac | |
d7040cdb | 7655 | |
ce2cded5 L |
7656 | exp_sym_flag='-bexport' |
7657 | no_entry_flag='-bnoentry' | |
7658 | fi | |
d7040cdb | 7659 | |
ce2cded5 L |
7660 | # When large executables or shared objects are built, AIX ld can |
7661 | # have problems creating the table of contents. If linking a library | |
7662 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7663 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7664 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 7665 | |
ce2cded5 L |
7666 | archive_cmds='' |
7667 | hardcode_direct=yes | |
7668 | hardcode_direct_absolute=yes | |
7669 | hardcode_libdir_separator=':' | |
7670 | link_all_deplibs=yes | |
7671 | file_list_spec='${wl}-f,' | |
d7040cdb | 7672 | |
ce2cded5 L |
7673 | if test "$GCC" = yes; then |
7674 | case $host_os in aix4.[012]|aix4.[012].*) | |
7675 | # We only want to do this on AIX 4.2 and lower, the check | |
7676 | # below for broken collect2 doesn't work under 4.3+ | |
7677 | collect2name=`${CC} -print-prog-name=collect2` | |
7678 | if test -f "$collect2name" && | |
7679 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7680 | then | |
7681 | # We have reworked collect2 | |
7682 | : | |
7683 | else | |
7684 | # We have old collect2 | |
7685 | hardcode_direct=unsupported | |
7686 | # It fails to find uninstalled libraries when the uninstalled | |
7687 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7688 | # to unsupported forces relinking | |
7689 | hardcode_minus_L=yes | |
7690 | hardcode_libdir_flag_spec='-L$libdir' | |
7691 | hardcode_libdir_separator= | |
7692 | fi | |
7693 | ;; | |
7694 | esac | |
7695 | shared_flag='-shared' | |
7696 | if test "$aix_use_runtimelinking" = yes; then | |
7697 | shared_flag="$shared_flag "'${wl}-G' | |
7698 | fi | |
7699 | else | |
7700 | # not using gcc | |
7701 | if test "$host_cpu" = ia64; then | |
7702 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7703 | # chokes on -Wl,-G. The following line is correct: | |
7704 | shared_flag='-G' | |
7705 | else | |
7706 | if test "$aix_use_runtimelinking" = yes; then | |
7707 | shared_flag='${wl}-G' | |
7708 | else | |
7709 | shared_flag='${wl}-bM:SRE' | |
7710 | fi | |
7711 | fi | |
7712 | fi | |
d7040cdb | 7713 | |
ce2cded5 L |
7714 | # It seems that -bexpall does not export symbols beginning with |
7715 | # underscore (_), so it is better to generate a list of symbols to export. | |
7716 | always_export_symbols=yes | |
7717 | if test "$aix_use_runtimelinking" = yes; then | |
7718 | # Warning - without using the other runtime loading flags (-brtl), | |
7719 | # -berok will link without error, but may produce a broken library. | |
7720 | allow_undefined_flag='-berok' | |
7721 | # Determine the default libpath from the value encoded in an | |
7722 | # empty executable. | |
7723 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
7724 | /* confdefs.h. */ |
7725 | _ACEOF | |
7726 | cat confdefs.h >>conftest.$ac_ext | |
7727 | cat >>conftest.$ac_ext <<_ACEOF | |
7728 | /* end confdefs.h. */ | |
7729 | ||
d7040cdb SE |
7730 | int |
7731 | main () | |
7732 | { | |
ce2cded5 | 7733 | |
d7040cdb SE |
7734 | ; |
7735 | return 0; | |
7736 | } | |
7737 | _ACEOF | |
7738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
7739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7740 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
7741 | ac_status=$? |
7742 | grep -v '^ *+' conftest.er1 >conftest.err | |
7743 | rm -f conftest.er1 | |
7744 | cat conftest.err >&5 | |
7745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
7746 | (exit $ac_status); } && |
7747 | { ac_try='test -z "$ac_c_werror_flag" | |
7748 | || test ! -s conftest.err' | |
7749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7750 | (eval $ac_try) 2>&5 | |
7751 | ac_status=$? | |
7752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7753 | (exit $ac_status); }; } && | |
7754 | { ac_try='test -s conftest$ac_exeext' | |
7755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7756 | (eval $ac_try) 2>&5 | |
7757 | ac_status=$? | |
7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7759 | (exit $ac_status); }; }; then | |
d7040cdb | 7760 | |
ce2cded5 L |
7761 | lt_aix_libpath_sed=' |
7762 | /Import File Strings/,/^$/ { | |
7763 | /^0/ { | |
7764 | s/^0 *\(.*\)$/\1/ | |
7765 | p | |
7766 | } | |
7767 | }' | |
7768 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7769 | # Check for a 64-bit object if we didn't find anything. | |
7770 | if test -z "$aix_libpath"; then | |
7771 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
d7040cdb | 7772 | fi |
d7040cdb SE |
7773 | else |
7774 | echo "$as_me: failed program was:" >&5 | |
7775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7776 | ||
d7040cdb | 7777 | fi |
0ab6f085 | 7778 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb | 7779 | conftest$ac_exeext conftest.$ac_ext |
ce2cded5 L |
7780 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7781 | ||
7782 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7783 | 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" | |
7784 | else | |
7785 | if test "$host_cpu" = ia64; then | |
7786 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7787 | allow_undefined_flag="-z nodefs" | |
7788 | 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" | |
7789 | else | |
7790 | # Determine the default libpath from the value encoded in an | |
7791 | # empty executable. | |
7792 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
7793 | /* confdefs.h. */ |
7794 | _ACEOF | |
7795 | cat confdefs.h >>conftest.$ac_ext | |
7796 | cat >>conftest.$ac_ext <<_ACEOF | |
7797 | /* end confdefs.h. */ | |
7798 | ||
d7040cdb SE |
7799 | int |
7800 | main () | |
7801 | { | |
ce2cded5 | 7802 | |
d7040cdb SE |
7803 | ; |
7804 | return 0; | |
7805 | } | |
7806 | _ACEOF | |
7807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
7808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7809 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
7810 | ac_status=$? |
7811 | grep -v '^ *+' conftest.er1 >conftest.err | |
7812 | rm -f conftest.er1 | |
1b9750d6 | 7813 | cat conftest.err >&5 |
d7040cdb | 7814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0ab6f085 AM |
7815 | (exit $ac_status); } && |
7816 | { ac_try='test -z "$ac_c_werror_flag" | |
7817 | || test ! -s conftest.err' | |
7818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7819 | (eval $ac_try) 2>&5 | |
7820 | ac_status=$? | |
7821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7822 | (exit $ac_status); }; } && | |
7823 | { ac_try='test -s conftest$ac_exeext' | |
7824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7825 | (eval $ac_try) 2>&5 | |
7826 | ac_status=$? | |
7827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7828 | (exit $ac_status); }; }; then | |
ce2cded5 L |
7829 | |
7830 | lt_aix_libpath_sed=' | |
7831 | /Import File Strings/,/^$/ { | |
7832 | /^0/ { | |
7833 | s/^0 *\(.*\)$/\1/ | |
7834 | p | |
7835 | } | |
7836 | }' | |
7837 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7838 | # Check for a 64-bit object if we didn't find anything. | |
7839 | if test -z "$aix_libpath"; then | |
7840 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7841 | fi | |
d7040cdb SE |
7842 | else |
7843 | echo "$as_me: failed program was:" >&5 | |
7844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7845 | ||
d7040cdb | 7846 | fi |
0ab6f085 | 7847 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb | 7848 | conftest$ac_exeext conftest.$ac_ext |
ce2cded5 | 7849 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 7850 | |
ce2cded5 L |
7851 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7852 | # Warning - without using the other run time loading flags, | |
7853 | # -berok will link without error, but may produce a broken library. | |
7854 | no_undefined_flag=' ${wl}-bernotok' | |
7855 | allow_undefined_flag=' ${wl}-berok' | |
7856 | # Exported symbols can be pulled into shared objects from archives | |
7857 | whole_archive_flag_spec='$convenience' | |
7858 | archive_cmds_need_lc=yes | |
7859 | # This is similar to how AIX traditionally builds its shared libraries. | |
7860 | 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' | |
7861 | fi | |
7862 | fi | |
7863 | ;; | |
d7040cdb | 7864 | |
ce2cded5 L |
7865 | amigaos*) |
7866 | if test "$host_cpu" = m68k; then | |
7867 | 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)' | |
7868 | hardcode_libdir_flag_spec='-L$libdir' | |
7869 | hardcode_minus_L=yes | |
7870 | fi | |
7871 | # see comment about different semantics on the GNU ld section | |
7872 | ld_shlibs=no | |
7873 | ;; | |
d7040cdb | 7874 | |
ce2cded5 L |
7875 | bsdi[45]*) |
7876 | export_dynamic_flag_spec=-rdynamic | |
7877 | ;; | |
d7040cdb | 7878 | |
ce2cded5 L |
7879 | cygwin* | mingw* | pw32*) |
7880 | # When not using gcc, we currently assume that we are using | |
7881 | # Microsoft Visual C++. | |
7882 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7883 | # no search path for DLLs. | |
7884 | hardcode_libdir_flag_spec=' ' | |
7885 | allow_undefined_flag=unsupported | |
7886 | # Tell ltmain to make .lib files, not .a files. | |
7887 | libext=lib | |
7888 | # Tell ltmain to make .dll files, not .so files. | |
7889 | shrext_cmds=".dll" | |
7890 | # FIXME: Setting linknames here is a bad hack. | |
7891 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7892 | # The linker will automatically build a .lib file if we build a DLL. | |
7893 | old_archive_from_new_cmds='true' | |
7894 | # FIXME: Should let the user specify the lib program. | |
7895 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7896 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7897 | enable_shared_with_static_runtimes=yes | |
7898 | ;; | |
d7040cdb | 7899 | |
ce2cded5 L |
7900 | darwin* | rhapsody*) |
7901 | case $host_os in | |
7902 | rhapsody* | darwin1.[012]) | |
7903 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
7904 | ;; | |
7905 | *) # Darwin 1.3 on | |
7906 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
7907 | 10.[012]) | |
7908 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7909 | ;; | |
7910 | 10.*) | |
7911 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
7912 | ;; | |
7913 | esac | |
7914 | ;; | |
7915 | esac | |
7916 | archive_cmds_need_lc=no | |
7917 | hardcode_direct=no | |
7918 | hardcode_automatic=yes | |
7919 | hardcode_shlibpath_var=unsupported | |
7920 | whole_archive_flag_spec='' | |
7921 | link_all_deplibs=yes | |
7922 | if test "$GCC" = yes ; then | |
7923 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
7924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7925 | else | |
7926 | lt_cv_apple_cc_single_mod=no | |
7927 | if test -z "${LT_MULTI_MODULE}"; then | |
7928 | # By default we will add the -single_module flag. You can override | |
7929 | # by either setting the environment variable LT_MULTI_MODULE | |
7930 | # non-empty at configure time, or by adding -multi-module to the | |
7931 | # link flags. | |
7932 | echo "int foo(void){return 1;}" > conftest.c | |
7933 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7934 | -dynamiclib ${wl}-single_module conftest.c | |
7935 | if test -f libconftest.dylib; then | |
7936 | lt_cv_apple_cc_single_mod=yes | |
7937 | rm libconftest.dylib | |
7938 | fi | |
7939 | rm conftest.$ac_ext | |
7940 | fi | |
7941 | fi | |
7942 | ||
7943 | output_verbose_link_cmd=echo | |
7944 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
7945 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7946 | 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}' | |
7947 | else | |
7948 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7949 | 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}' | |
7950 | fi | |
7951 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7952 | 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}' | |
7953 | else | |
7954 | case $cc_basename in | |
7955 | xlc*) | |
7956 | output_verbose_link_cmd=echo | |
7957 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
7958 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7959 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
7960 | 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}' | |
7961 | 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}' | |
7962 | ;; | |
7963 | *) | |
7964 | ld_shlibs=no | |
7965 | ;; | |
7966 | esac | |
7967 | fi | |
7968 | ;; | |
7969 | ||
7970 | dgux*) | |
7971 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7972 | hardcode_libdir_flag_spec='-L$libdir' | |
7973 | hardcode_shlibpath_var=no | |
7974 | ;; | |
7975 | ||
7976 | freebsd1*) | |
7977 | ld_shlibs=no | |
7978 | ;; | |
7979 | ||
7980 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7981 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7982 | # does not break anything, and helps significantly (at the cost of a little | |
7983 | # extra space). | |
7984 | freebsd2.2*) | |
7985 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7986 | hardcode_libdir_flag_spec='-R$libdir' | |
7987 | hardcode_direct=yes | |
7988 | hardcode_shlibpath_var=no | |
7989 | ;; | |
7990 | ||
7991 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7992 | freebsd2*) | |
7993 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7994 | hardcode_direct=yes | |
7995 | hardcode_minus_L=yes | |
7996 | hardcode_shlibpath_var=no | |
7997 | ;; | |
7998 | ||
7999 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8000 | freebsd* | dragonfly*) | |
8001 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8002 | hardcode_libdir_flag_spec='-R$libdir' | |
8003 | hardcode_direct=yes | |
8004 | hardcode_shlibpath_var=no | |
8005 | ;; | |
8006 | ||
8007 | hpux9*) | |
8008 | if test "$GCC" = yes; then | |
8009 | 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' | |
8010 | else | |
8011 | 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' | |
8012 | fi | |
8013 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8014 | hardcode_libdir_separator=: | |
8015 | hardcode_direct=yes | |
8016 | ||
8017 | # hardcode_minus_L: Not really in the search PATH, | |
8018 | # but as the default location of the library. | |
8019 | hardcode_minus_L=yes | |
8020 | export_dynamic_flag_spec='${wl}-E' | |
8021 | ;; | |
8022 | ||
8023 | hpux10*) | |
8024 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8025 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8026 | else | |
8027 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8028 | fi | |
8029 | if test "$with_gnu_ld" = no; then | |
8030 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8031 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8032 | hardcode_libdir_separator=: | |
8033 | hardcode_direct=yes | |
8034 | hardcode_direct_absolute=yes | |
8035 | export_dynamic_flag_spec='${wl}-E' | |
8036 | # hardcode_minus_L: Not really in the search PATH, | |
8037 | # but as the default location of the library. | |
8038 | hardcode_minus_L=yes | |
8039 | fi | |
8040 | ;; | |
8041 | ||
8042 | hpux11*) | |
8043 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8044 | case $host_cpu in | |
8045 | hppa*64*) | |
8046 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8047 | ;; | |
8048 | ia64*) | |
8049 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8050 | ;; | |
8051 | *) | |
8052 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8053 | ;; | |
8054 | esac | |
8055 | else | |
8056 | case $host_cpu in | |
8057 | hppa*64*) | |
8058 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8059 | ;; | |
8060 | ia64*) | |
8061 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8062 | ;; | |
8063 | *) | |
8064 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8065 | ;; | |
8066 | esac | |
8067 | fi | |
8068 | if test "$with_gnu_ld" = no; then | |
8069 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8070 | hardcode_libdir_separator=: | |
8071 | ||
8072 | case $host_cpu in | |
8073 | hppa*64*|ia64*) | |
8074 | hardcode_direct=no | |
8075 | hardcode_shlibpath_var=no | |
8076 | ;; | |
8077 | *) | |
8078 | hardcode_direct=yes | |
8079 | hardcode_direct_absolute=yes | |
8080 | export_dynamic_flag_spec='${wl}-E' | |
8081 | ||
8082 | # hardcode_minus_L: Not really in the search PATH, | |
8083 | # but as the default location of the library. | |
8084 | hardcode_minus_L=yes | |
8085 | ;; | |
8086 | esac | |
8087 | fi | |
8088 | ;; | |
8089 | ||
8090 | irix5* | irix6* | nonstopux*) | |
8091 | if test "$GCC" = yes; then | |
8092 | 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' | |
8093 | # Try to use the -exported_symbol ld option, if it does not | |
8094 | # work, assume that -exports_file does not work either and | |
8095 | # implicitly export all symbols. | |
8096 | save_LDFLAGS="$LDFLAGS" | |
8097 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8098 | cat >conftest.$ac_ext <<_ACEOF | |
8099 | int foo(void) {} | |
d7040cdb SE |
8100 | _ACEOF |
8101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
8102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8103 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
8104 | ac_status=$? |
8105 | grep -v '^ *+' conftest.er1 >conftest.err | |
8106 | rm -f conftest.er1 | |
8107 | cat conftest.err >&5 | |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
8109 | (exit $ac_status); } && |
8110 | { ac_try='test -z "$ac_c_werror_flag" | |
8111 | || test ! -s conftest.err' | |
8112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8113 | (eval $ac_try) 2>&5 | |
8114 | ac_status=$? | |
8115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8116 | (exit $ac_status); }; } && | |
8117 | { ac_try='test -s conftest$ac_exeext' | |
8118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8119 | (eval $ac_try) 2>&5 | |
8120 | ac_status=$? | |
8121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8122 | (exit $ac_status); }; }; then | |
ce2cded5 L |
8123 | 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' |
8124 | ||
d7040cdb SE |
8125 | else |
8126 | echo "$as_me: failed program was:" >&5 | |
8127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8128 | ||
d7040cdb | 8129 | fi |
0ab6f085 | 8130 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb | 8131 | conftest$ac_exeext conftest.$ac_ext |
ce2cded5 L |
8132 | LDFLAGS="$save_LDFLAGS" |
8133 | else | |
8134 | 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' | |
8135 | 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' | |
8136 | fi | |
8137 | archive_cmds_need_lc='no' | |
8138 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8139 | hardcode_libdir_separator=: | |
8140 | inherit_rpath=yes | |
8141 | link_all_deplibs=yes | |
8142 | ;; | |
8143 | ||
8144 | netbsd*) | |
8145 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8146 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8147 | else | |
8148 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8149 | fi | |
8150 | hardcode_libdir_flag_spec='-R$libdir' | |
8151 | hardcode_direct=yes | |
8152 | hardcode_shlibpath_var=no | |
8153 | ;; | |
8154 | ||
8155 | newsos6) | |
8156 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8157 | hardcode_direct=yes | |
8158 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8159 | hardcode_libdir_separator=: | |
8160 | hardcode_shlibpath_var=no | |
8161 | ;; | |
8162 | ||
8163 | *nto* | *qnx*) | |
8164 | ;; | |
8165 | ||
8166 | openbsd*) | |
8167 | hardcode_direct=yes | |
8168 | hardcode_shlibpath_var=no | |
8169 | hardcode_direct_absolute=yes | |
8170 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8171 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8172 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8173 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8174 | export_dynamic_flag_spec='${wl}-E' | |
8175 | else | |
8176 | case $host_os in | |
8177 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8178 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8179 | hardcode_libdir_flag_spec='-R$libdir' | |
8180 | ;; | |
8181 | *) | |
8182 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8183 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8184 | ;; | |
8185 | esac | |
8186 | fi | |
8187 | ;; | |
8188 | ||
8189 | os2*) | |
8190 | hardcode_libdir_flag_spec='-L$libdir' | |
8191 | hardcode_minus_L=yes | |
8192 | allow_undefined_flag=unsupported | |
8193 | 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' | |
8194 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8195 | ;; | |
8196 | ||
8197 | osf3*) | |
8198 | if test "$GCC" = yes; then | |
8199 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8200 | 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' | |
8201 | else | |
8202 | allow_undefined_flag=' -expect_unresolved \*' | |
8203 | 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' | |
8204 | fi | |
8205 | archive_cmds_need_lc='no' | |
8206 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8207 | hardcode_libdir_separator=: | |
8208 | ;; | |
8209 | ||
8210 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8211 | if test "$GCC" = yes; then | |
8212 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8213 | 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' | |
8214 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8215 | else | |
8216 | allow_undefined_flag=' -expect_unresolved \*' | |
8217 | 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' | |
8218 | 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~ | |
8219 | $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' | |
8220 | ||
8221 | # Both c and cxx compiler support -rpath directly | |
8222 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8223 | fi | |
8224 | archive_cmds_need_lc='no' | |
8225 | hardcode_libdir_separator=: | |
8226 | ;; | |
8227 | ||
8228 | solaris*) | |
8229 | no_undefined_flag=' -z defs' | |
8230 | if test "$GCC" = yes; then | |
8231 | wlarc='${wl}' | |
8232 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8233 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8234 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8235 | else | |
8236 | case `$CC -V 2>&1` in | |
8237 | *"Compilers 5.0"*) | |
8238 | wlarc='' | |
8239 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8240 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8241 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8242 | ;; | |
8243 | *) | |
8244 | wlarc='${wl}' | |
8245 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8246 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8247 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8248 | ;; | |
8249 | esac | |
8250 | fi | |
8251 | hardcode_libdir_flag_spec='-R$libdir' | |
8252 | hardcode_shlibpath_var=no | |
8253 | case $host_os in | |
8254 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8255 | *) | |
8256 | # The compiler driver will combine and reorder linker options, | |
8257 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8258 | # but is careful enough not to reorder. | |
8259 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8260 | if test "$GCC" = yes; then | |
8261 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8262 | else | |
8263 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8264 | fi | |
8265 | ;; | |
8266 | esac | |
8267 | link_all_deplibs=yes | |
8268 | ;; | |
8269 | ||
8270 | sunos4*) | |
8271 | if test "x$host_vendor" = xsequent; then | |
8272 | # Use $CC to link under sequent, because it throws in some extra .o | |
8273 | # files that make .init and .fini sections work. | |
8274 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8275 | else | |
8276 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8277 | fi | |
8278 | hardcode_libdir_flag_spec='-L$libdir' | |
8279 | hardcode_direct=yes | |
8280 | hardcode_minus_L=yes | |
8281 | hardcode_shlibpath_var=no | |
8282 | ;; | |
8283 | ||
8284 | sysv4) | |
8285 | case $host_vendor in | |
8286 | sni) | |
8287 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8288 | hardcode_direct=yes # is this really true??? | |
8289 | ;; | |
8290 | siemens) | |
8291 | ## LD is ld it makes a PLAMLIB | |
8292 | ## CC just makes a GrossModule. | |
8293 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8294 | reload_cmds='$CC -r -o $output$reload_objs' | |
8295 | hardcode_direct=no | |
8296 | ;; | |
8297 | motorola) | |
8298 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8299 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8300 | ;; | |
8301 | esac | |
8302 | runpath_var='LD_RUN_PATH' | |
8303 | hardcode_shlibpath_var=no | |
8304 | ;; | |
8305 | ||
8306 | sysv4.3*) | |
8307 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8308 | hardcode_shlibpath_var=no | |
8309 | export_dynamic_flag_spec='-Bexport' | |
8310 | ;; | |
8311 | ||
8312 | sysv4*MP*) | |
8313 | if test -d /usr/nec; then | |
8314 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8315 | hardcode_shlibpath_var=no | |
8316 | runpath_var=LD_RUN_PATH | |
8317 | hardcode_runpath_var=yes | |
8318 | ld_shlibs=yes | |
8319 | fi | |
8320 | ;; | |
8321 | ||
8322 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8323 | no_undefined_flag='${wl}-z,text' | |
8324 | archive_cmds_need_lc=no | |
8325 | hardcode_shlibpath_var=no | |
8326 | runpath_var='LD_RUN_PATH' | |
8327 | ||
8328 | if test "$GCC" = yes; then | |
8329 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8330 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8331 | else | |
8332 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8333 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8334 | fi | |
8335 | ;; | |
8336 | ||
8337 | sysv5* | sco3.2v5* | sco5v6*) | |
8338 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8339 | # link with -lc, and that would cause any symbols used from libc to | |
8340 | # always be unresolved, which means just about no library would | |
8341 | # ever link correctly. If we're not using GNU ld we use -z text | |
8342 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8343 | # as -z defs. | |
8344 | no_undefined_flag='${wl}-z,text' | |
8345 | allow_undefined_flag='${wl}-z,nodefs' | |
8346 | archive_cmds_need_lc=no | |
8347 | hardcode_shlibpath_var=no | |
8348 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8349 | hardcode_libdir_separator=':' | |
8350 | link_all_deplibs=yes | |
8351 | export_dynamic_flag_spec='${wl}-Bexport' | |
8352 | runpath_var='LD_RUN_PATH' | |
8353 | ||
8354 | if test "$GCC" = yes; then | |
8355 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8356 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8357 | else | |
8358 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8359 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8360 | fi | |
8361 | ;; | |
8362 | ||
8363 | uts4*) | |
8364 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8365 | hardcode_libdir_flag_spec='-L$libdir' | |
8366 | hardcode_shlibpath_var=no | |
8367 | ;; | |
8368 | ||
8369 | *) | |
8370 | ld_shlibs=no | |
8371 | ;; | |
8372 | esac | |
8373 | ||
8374 | if test x$host_vendor = xsni; then | |
8375 | case $host in | |
8376 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8377 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8378 | ;; | |
8379 | esac | |
8380 | fi | |
8381 | fi | |
8382 | ||
8383 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8384 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8385 | test "$ld_shlibs" = no && can_build_shared=no | |
8386 | ||
8387 | with_gnu_ld=$with_gnu_ld | |
8388 | ||
8389 | ||
8390 | ||
8391 | ||
8392 | ||
8393 | ||
8394 | ||
8395 | ||
8396 | ||
8397 | ||
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | ||
8403 | # | |
8404 | # Do we need to explicitly link libc? | |
8405 | # | |
8406 | case "x$archive_cmds_need_lc" in | |
8407 | x|xyes) | |
8408 | # Assume -lc should be added | |
8409 | archive_cmds_need_lc=yes | |
8410 | ||
8411 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8412 | case $archive_cmds in | |
8413 | *'~'*) | |
8414 | # FIXME: we may have to deal with multi-command sequences. | |
8415 | ;; | |
8416 | '$CC '*) | |
8417 | # Test whether the compiler implicitly links with -lc since on some | |
8418 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8419 | # to ld, don't add -lc before -lgcc. | |
8420 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8421 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8422 | $RM conftest* | |
8423 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8424 | ||
8425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8426 | (eval $ac_compile) 2>&5 | |
8427 | ac_status=$? | |
8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8429 | (exit $ac_status); } 2>conftest.err; then | |
8430 | soname=conftest | |
8431 | lib=conftest | |
8432 | libobjs=conftest.$ac_objext | |
8433 | deplibs= | |
8434 | wl=$lt_prog_compiler_wl | |
8435 | pic_flag=$lt_prog_compiler_pic | |
8436 | compiler_flags=-v | |
8437 | linker_flags=-v | |
8438 | verstring= | |
8439 | output_objdir=. | |
8440 | libname=conftest | |
8441 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8442 | allow_undefined_flag= | |
8443 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8444 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8445 | ac_status=$? | |
8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8447 | (exit $ac_status); } | |
8448 | then | |
8449 | archive_cmds_need_lc=no | |
8450 | else | |
8451 | archive_cmds_need_lc=yes | |
8452 | fi | |
8453 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8454 | else | |
8455 | cat conftest.err 1>&5 | |
8456 | fi | |
8457 | $RM conftest* | |
8458 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8459 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
8460 | ;; | |
8461 | esac | |
8462 | fi | |
8463 | ;; | |
8464 | esac | |
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | ||
8485 | ||
8486 | ||
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | ||
8493 | ||
8494 | ||
8495 | ||
8496 | ||
8497 | ||
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | ||
8539 | ||
8540 | ||
8541 | ||
8542 | ||
8543 | ||
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | ||
8577 | ||
8578 | ||
8579 | ||
8580 | ||
8581 | ||
8582 | ||
8583 | ||
8584 | ||
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | ||
8590 | ||
8591 | ||
8592 | ||
8593 | ||
8594 | ||
8595 | ||
8596 | ||
8597 | ||
8598 | ||
8599 | ||
8600 | ||
8601 | ||
8602 | ||
8603 | ||
8604 | ||
8605 | ||
8606 | ||
8607 | ||
8608 | ||
8609 | ||
8610 | ||
8611 | ||
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | ||
8618 | ||
8619 | ||
8620 | ||
8621 | ||
8622 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8623 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
8624 | withGCC=$GCC | |
8625 | if test "$withGCC" = yes; then | |
8626 | case $host_os in | |
8627 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8628 | *) lt_awk_arg="/^libraries:/" ;; | |
8629 | esac | |
8630 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8631 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8632 | # if the path contains ";" then we assume it to be the separator | |
8633 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8634 | # assumed that no part of a normal pathname contains ";" but that should | |
8635 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8636 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8637 | else | |
8638 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8639 | fi | |
8640 | # Ok, now we have the path, separated by spaces, we can step through it | |
8641 | # and add multilib dir if necessary. | |
8642 | lt_tmp_lt_search_path_spec= | |
8643 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8644 | for lt_sys_path in $lt_search_path_spec; do | |
8645 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8646 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8647 | else | |
8648 | test -d "$lt_sys_path" && \ | |
8649 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8650 | fi | |
8651 | done | |
8652 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8653 | BEGIN {RS=" "; FS="/|\n";} { | |
8654 | lt_foo=""; | |
8655 | lt_count=0; | |
8656 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8657 | if ($lt_i != "" && $lt_i != ".") { | |
8658 | if ($lt_i == "..") { | |
8659 | lt_count++; | |
8660 | } else { | |
8661 | if (lt_count == 0) { | |
8662 | lt_foo="/" $lt_i lt_foo; | |
8663 | } else { | |
8664 | lt_count--; | |
8665 | } | |
8666 | } | |
8667 | } | |
8668 | } | |
8669 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8670 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8671 | }'` | |
8672 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8673 | else | |
8674 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8675 | fi | |
8676 | library_names_spec= | |
8677 | libname_spec='lib$name' | |
8678 | soname_spec= | |
8679 | shrext_cmds=".so" | |
8680 | postinstall_cmds= | |
8681 | postuninstall_cmds= | |
8682 | finish_cmds= | |
8683 | finish_eval= | |
8684 | shlibpath_var= | |
8685 | shlibpath_overrides_runpath=unknown | |
8686 | version_type=none | |
8687 | dynamic_linker="$host_os ld.so" | |
8688 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8689 | need_lib_prefix=unknown | |
8690 | hardcode_into_libs=no | |
8691 | ||
8692 | # when you set need_version to no, make sure it does not cause -set_version | |
8693 | # flags to be left without arguments | |
8694 | need_version=unknown | |
8695 | ||
8696 | case $host_os in | |
8697 | aix3*) | |
8698 | version_type=linux | |
8699 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8700 | shlibpath_var=LIBPATH | |
8701 | ||
8702 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8703 | soname_spec='${libname}${release}${shared_ext}$major' | |
8704 | ;; | |
8705 | ||
50e7d84b | 8706 | aix[4-9]*) |
ce2cded5 L |
8707 | version_type=linux |
8708 | need_lib_prefix=no | |
8709 | need_version=no | |
8710 | hardcode_into_libs=yes | |
8711 | if test "$host_cpu" = ia64; then | |
8712 | # AIX 5 supports IA64 | |
8713 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8714 | shlibpath_var=LD_LIBRARY_PATH | |
8715 | else | |
8716 | # With GCC up to 2.95.x, collect2 would create an import file | |
8717 | # for dependence libraries. The import file would start with | |
8718 | # the line `#! .'. This would cause the generated library to | |
8719 | # depend on `.', always an invalid library. This was fixed in | |
8720 | # development snapshots of GCC prior to 3.0. | |
8721 | case $host_os in | |
8722 | aix4 | aix4.[01] | aix4.[01].*) | |
8723 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8724 | echo ' yes ' | |
8725 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8726 | : | |
8727 | else | |
8728 | can_build_shared=no | |
8729 | fi | |
8730 | ;; | |
8731 | esac | |
8732 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8733 | # soname into executable. Probably we can add versioning support to | |
8734 | # collect2, so additional links can be useful in future. | |
8735 | if test "$aix_use_runtimelinking" = yes; then | |
8736 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8737 | # instead of lib<name>.a to let people know that these are not | |
8738 | # typical AIX shared libraries. | |
8739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8740 | else | |
8741 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8742 | # and later when we are not doing run time linking. | |
8743 | library_names_spec='${libname}${release}.a $libname.a' | |
8744 | soname_spec='${libname}${release}${shared_ext}$major' | |
8745 | fi | |
8746 | shlibpath_var=LIBPATH | |
8747 | fi | |
8748 | ;; | |
8749 | ||
8750 | amigaos*) | |
8751 | if test "$host_cpu" = m68k; then | |
8752 | library_names_spec='$libname.ixlibrary $libname.a' | |
8753 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8754 | 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' | |
8755 | else | |
8756 | dynamic_linker=no | |
8757 | fi | |
8758 | ;; | |
8759 | ||
8760 | beos*) | |
8761 | library_names_spec='${libname}${shared_ext}' | |
8762 | dynamic_linker="$host_os ld.so" | |
8763 | shlibpath_var=LIBRARY_PATH | |
8764 | ;; | |
8765 | ||
8766 | bsdi[45]*) | |
8767 | version_type=linux | |
8768 | need_version=no | |
8769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8770 | soname_spec='${libname}${release}${shared_ext}$major' | |
8771 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8772 | shlibpath_var=LD_LIBRARY_PATH | |
8773 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8774 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8775 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8776 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8777 | # libtool to hard-code these into programs | |
8778 | ;; | |
8779 | ||
8780 | cygwin* | mingw* | pw32*) | |
8781 | version_type=windows | |
8782 | shrext_cmds=".dll" | |
8783 | need_version=no | |
8784 | need_lib_prefix=no | |
8785 | ||
8786 | case $withGCC,$host_os in | |
8787 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8788 | library_names_spec='$libname.dll.a' | |
8789 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8790 | postinstall_cmds='base_file=`basename \${file}`~ | |
8791 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8792 | dldir=$destdir/`dirname \$dlpath`~ | |
8793 | test -d \$dldir || mkdir -p \$dldir~ | |
8794 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8795 | chmod a+x \$dldir/$dlname~ | |
8796 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8797 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8798 | fi' | |
8799 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8800 | dlpath=$dir/\$dldll~ | |
8801 | $RM \$dlpath' | |
8802 | shlibpath_overrides_runpath=yes | |
8803 | ||
8804 | case $host_os in | |
8805 | cygwin*) | |
8806 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8807 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8808 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8809 | ;; | |
8810 | mingw*) | |
8811 | # MinGW DLLs use traditional 'lib' prefix | |
8812 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8813 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8814 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8815 | # It is most probably a Windows format PATH printed by | |
8816 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8817 | # path with ; separators, and with drive letters. We can handle the | |
8818 | # drive letters (cygwin fileutils understands them), so leave them, | |
8819 | # especially as we might pass files found there to a mingw objdump, | |
8820 | # which wouldn't understand a cygwinified path. Ahh. | |
8821 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8822 | else | |
8823 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8824 | fi | |
8825 | ;; | |
8826 | pw32*) | |
8827 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8828 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8829 | ;; | |
8830 | esac | |
8831 | ;; | |
8832 | ||
8833 | *) | |
8834 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8835 | ;; | |
8836 | esac | |
8837 | dynamic_linker='Win32 ld.exe' | |
8838 | # FIXME: first we should search . and the directory the executable is in | |
8839 | shlibpath_var=PATH | |
8840 | ;; | |
8841 | ||
8842 | darwin* | rhapsody*) | |
8843 | dynamic_linker="$host_os dyld" | |
8844 | version_type=darwin | |
8845 | need_lib_prefix=no | |
8846 | need_version=no | |
8847 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8848 | soname_spec='${libname}${release}${major}$shared_ext' | |
8849 | shlibpath_overrides_runpath=yes | |
8850 | shlibpath_var=DYLD_LIBRARY_PATH | |
8851 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8852 | ||
8853 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8854 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8855 | ;; | |
8856 | ||
8857 | dgux*) | |
8858 | version_type=linux | |
8859 | need_lib_prefix=no | |
8860 | need_version=no | |
8861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8862 | soname_spec='${libname}${release}${shared_ext}$major' | |
8863 | shlibpath_var=LD_LIBRARY_PATH | |
8864 | ;; | |
8865 | ||
8866 | freebsd1*) | |
8867 | dynamic_linker=no | |
8868 | ;; | |
8869 | ||
8870 | freebsd* | dragonfly*) | |
8871 | # DragonFly does not have aout. When/if they implement a new | |
8872 | # versioning mechanism, adjust this. | |
8873 | if test -x /usr/bin/objformat; then | |
8874 | objformat=`/usr/bin/objformat` | |
8875 | else | |
8876 | case $host_os in | |
8877 | freebsd[123]*) objformat=aout ;; | |
8878 | *) objformat=elf ;; | |
8879 | esac | |
8880 | fi | |
8881 | version_type=freebsd-$objformat | |
8882 | case $version_type in | |
8883 | freebsd-elf*) | |
8884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8885 | need_version=no | |
8886 | need_lib_prefix=no | |
8887 | ;; | |
8888 | freebsd-*) | |
8889 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8890 | need_version=yes | |
8891 | ;; | |
8892 | esac | |
8893 | shlibpath_var=LD_LIBRARY_PATH | |
8894 | case $host_os in | |
8895 | freebsd2*) | |
8896 | shlibpath_overrides_runpath=yes | |
8897 | ;; | |
8898 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8899 | shlibpath_overrides_runpath=yes | |
8900 | hardcode_into_libs=yes | |
8901 | ;; | |
8902 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8903 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8904 | shlibpath_overrides_runpath=no | |
8905 | hardcode_into_libs=yes | |
8906 | ;; | |
8907 | *) # from 4.6 on, and DragonFly | |
8908 | shlibpath_overrides_runpath=yes | |
8909 | hardcode_into_libs=yes | |
8910 | ;; | |
8911 | esac | |
8912 | ;; | |
8913 | ||
8914 | gnu*) | |
8915 | version_type=linux | |
8916 | need_lib_prefix=no | |
8917 | need_version=no | |
8918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8919 | soname_spec='${libname}${release}${shared_ext}$major' | |
8920 | shlibpath_var=LD_LIBRARY_PATH | |
8921 | hardcode_into_libs=yes | |
8922 | ;; | |
8923 | ||
8924 | hpux9* | hpux10* | hpux11*) | |
8925 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8926 | # link against other versions. | |
8927 | version_type=sunos | |
8928 | need_lib_prefix=no | |
8929 | need_version=no | |
8930 | case $host_cpu in | |
8931 | ia64*) | |
8932 | shrext_cmds='.so' | |
8933 | hardcode_into_libs=yes | |
8934 | dynamic_linker="$host_os dld.so" | |
8935 | shlibpath_var=LD_LIBRARY_PATH | |
8936 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8938 | soname_spec='${libname}${release}${shared_ext}$major' | |
8939 | if test "X$HPUX_IA64_MODE" = X32; then | |
8940 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8941 | else | |
8942 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8943 | fi | |
8944 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8945 | ;; | |
8946 | hppa*64*) | |
8947 | shrext_cmds='.sl' | |
8948 | hardcode_into_libs=yes | |
8949 | dynamic_linker="$host_os dld.sl" | |
8950 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8951 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8953 | soname_spec='${libname}${release}${shared_ext}$major' | |
8954 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8955 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8956 | ;; | |
8957 | *) | |
8958 | shrext_cmds='.sl' | |
8959 | dynamic_linker="$host_os dld.sl" | |
8960 | shlibpath_var=SHLIB_PATH | |
8961 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8963 | soname_spec='${libname}${release}${shared_ext}$major' | |
8964 | ;; | |
8965 | esac | |
8966 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8967 | postinstall_cmds='chmod 555 $lib' | |
8968 | ;; | |
8969 | ||
8970 | interix[3-9]*) | |
8971 | version_type=linux | |
8972 | need_lib_prefix=no | |
8973 | need_version=no | |
8974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8975 | soname_spec='${libname}${release}${shared_ext}$major' | |
8976 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8977 | shlibpath_var=LD_LIBRARY_PATH | |
8978 | shlibpath_overrides_runpath=no | |
8979 | hardcode_into_libs=yes | |
8980 | ;; | |
d7040cdb | 8981 | |
ce2cded5 L |
8982 | irix5* | irix6* | nonstopux*) |
8983 | case $host_os in | |
8984 | nonstopux*) version_type=nonstopux ;; | |
8985 | *) | |
8986 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8987 | version_type=linux | |
8988 | else | |
8989 | version_type=irix | |
8990 | fi ;; | |
8991 | esac | |
8992 | need_lib_prefix=no | |
8993 | need_version=no | |
8994 | soname_spec='${libname}${release}${shared_ext}$major' | |
8995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8996 | case $host_os in | |
8997 | irix5* | nonstopux*) | |
8998 | libsuff= shlibsuff= | |
8999 | ;; | |
9000 | *) | |
9001 | case $LD in # libtool.m4 will add one of these switches to LD | |
9002 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9003 | libsuff= shlibsuff= libmagic=32-bit;; | |
9004 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9005 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9006 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9007 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9008 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9009 | esac | |
9010 | ;; | |
9011 | esac | |
9012 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9013 | shlibpath_overrides_runpath=no | |
9014 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9015 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9016 | hardcode_into_libs=yes | |
9017 | ;; | |
d7040cdb | 9018 | |
ce2cded5 L |
9019 | # No shared lib support for Linux oldld, aout, or coff. |
9020 | linux*oldld* | linux*aout* | linux*coff*) | |
9021 | dynamic_linker=no | |
9022 | ;; | |
9023 | ||
9024 | # This must be Linux ELF. | |
9025 | linux* | k*bsd*-gnu) | |
9026 | version_type=linux | |
9027 | need_lib_prefix=no | |
9028 | need_version=no | |
9029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9030 | soname_spec='${libname}${release}${shared_ext}$major' | |
9031 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9032 | shlibpath_var=LD_LIBRARY_PATH | |
9033 | shlibpath_overrides_runpath=no | |
9034 | # Some binutils ld are patched to set DT_RUNPATH | |
9035 | save_LDFLAGS=$LDFLAGS | |
9036 | save_libdir=$libdir | |
9037 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9038 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9039 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
9040 | /* confdefs.h. */ |
9041 | _ACEOF | |
9042 | cat confdefs.h >>conftest.$ac_ext | |
9043 | cat >>conftest.$ac_ext <<_ACEOF | |
9044 | /* end confdefs.h. */ | |
9045 | ||
d7040cdb SE |
9046 | int |
9047 | main () | |
9048 | { | |
ce2cded5 | 9049 | |
d7040cdb SE |
9050 | ; |
9051 | return 0; | |
9052 | } | |
9053 | _ACEOF | |
9054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
9055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9056 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
9057 | ac_status=$? |
9058 | grep -v '^ *+' conftest.er1 >conftest.err | |
9059 | rm -f conftest.er1 | |
9060 | cat conftest.err >&5 | |
9061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
9062 | (exit $ac_status); } && |
9063 | { ac_try='test -z "$ac_c_werror_flag" | |
9064 | || test ! -s conftest.err' | |
9065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9066 | (eval $ac_try) 2>&5 | |
9067 | ac_status=$? | |
9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9069 | (exit $ac_status); }; } && | |
9070 | { ac_try='test -s conftest$ac_exeext' | |
9071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9072 | (eval $ac_try) 2>&5 | |
9073 | ac_status=$? | |
9074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9075 | (exit $ac_status); }; }; then | |
ce2cded5 L |
9076 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then |
9077 | shlibpath_overrides_runpath=yes | |
d7040cdb | 9078 | fi |
d7040cdb | 9079 | |
d7040cdb SE |
9080 | else |
9081 | echo "$as_me: failed program was:" >&5 | |
9082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9083 | ||
d7040cdb | 9084 | fi |
0ab6f085 | 9085 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb | 9086 | conftest$ac_exeext conftest.$ac_ext |
ce2cded5 L |
9087 | LDFLAGS=$save_LDFLAGS |
9088 | libdir=$save_libdir | |
d7040cdb | 9089 | |
ce2cded5 L |
9090 | # This implies no fast_install, which is unacceptable. |
9091 | # Some rework will be needed to allow for fast_install | |
9092 | # before this can be enabled. | |
9093 | hardcode_into_libs=yes | |
d7040cdb | 9094 | |
ce2cded5 L |
9095 | # Append ld.so.conf contents to the search path |
9096 | if test -f /etc/ld.so.conf; then | |
9097 | 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' ' '` | |
9098 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9099 | fi | |
d7040cdb | 9100 | |
ce2cded5 L |
9101 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9102 | # powerpc, because MkLinux only supported shared libraries with the | |
9103 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9104 | # most powerpc-linux boxes support dynamic linking these days and | |
9105 | # people can always --disable-shared, the test was removed, and we | |
9106 | # assume the GNU/Linux dynamic linker is in use. | |
9107 | dynamic_linker='GNU/Linux ld.so' | |
9108 | ;; | |
d7040cdb | 9109 | |
ce2cded5 L |
9110 | netbsd*) |
9111 | version_type=sunos | |
9112 | need_lib_prefix=no | |
9113 | need_version=no | |
9114 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9116 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9117 | dynamic_linker='NetBSD (a.out) ld.so' | |
9118 | else | |
9119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9120 | soname_spec='${libname}${release}${shared_ext}$major' | |
9121 | dynamic_linker='NetBSD ld.elf_so' | |
9122 | fi | |
9123 | shlibpath_var=LD_LIBRARY_PATH | |
9124 | shlibpath_overrides_runpath=yes | |
9125 | hardcode_into_libs=yes | |
9126 | ;; | |
d7040cdb | 9127 | |
ce2cded5 L |
9128 | newsos6) |
9129 | version_type=linux | |
9130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9131 | shlibpath_var=LD_LIBRARY_PATH | |
9132 | shlibpath_overrides_runpath=yes | |
9133 | ;; | |
d7040cdb | 9134 | |
ce2cded5 L |
9135 | *nto* | *qnx*) |
9136 | version_type=qnx | |
9137 | need_lib_prefix=no | |
9138 | need_version=no | |
9139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9140 | soname_spec='${libname}${release}${shared_ext}$major' | |
9141 | shlibpath_var=LD_LIBRARY_PATH | |
9142 | shlibpath_overrides_runpath=no | |
9143 | hardcode_into_libs=yes | |
9144 | dynamic_linker='ldqnx.so' | |
9145 | ;; | |
d7040cdb | 9146 | |
ce2cded5 L |
9147 | openbsd*) |
9148 | version_type=sunos | |
9149 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9150 | need_lib_prefix=no | |
9151 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9152 | case $host_os in | |
9153 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9154 | *) need_version=no ;; | |
d7040cdb | 9155 | esac |
ce2cded5 L |
9156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9157 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9158 | shlibpath_var=LD_LIBRARY_PATH | |
9159 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9160 | case $host_os in | |
9161 | openbsd2.[89] | openbsd2.[89].*) | |
9162 | shlibpath_overrides_runpath=no | |
9163 | ;; | |
9164 | *) | |
9165 | shlibpath_overrides_runpath=yes | |
9166 | ;; | |
9167 | esac | |
d7040cdb | 9168 | else |
ce2cded5 | 9169 | shlibpath_overrides_runpath=yes |
d7040cdb | 9170 | fi |
ce2cded5 | 9171 | ;; |
d7040cdb | 9172 | |
ce2cded5 L |
9173 | os2*) |
9174 | libname_spec='$name' | |
9175 | shrext_cmds=".dll" | |
9176 | need_lib_prefix=no | |
9177 | library_names_spec='$libname${shared_ext} $libname.a' | |
9178 | dynamic_linker='OS/2 ld.exe' | |
9179 | shlibpath_var=LIBPATH | |
9180 | ;; | |
d7040cdb | 9181 | |
ce2cded5 L |
9182 | osf3* | osf4* | osf5*) |
9183 | version_type=osf | |
9184 | need_lib_prefix=no | |
9185 | need_version=no | |
9186 | soname_spec='${libname}${release}${shared_ext}$major' | |
9187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9188 | shlibpath_var=LD_LIBRARY_PATH | |
9189 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9190 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9191 | ;; | |
d7040cdb | 9192 | |
ce2cded5 L |
9193 | rdos*) |
9194 | dynamic_linker=no | |
9195 | ;; | |
d7040cdb | 9196 | |
ce2cded5 L |
9197 | solaris*) |
9198 | version_type=linux | |
9199 | need_lib_prefix=no | |
9200 | need_version=no | |
9201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9202 | soname_spec='${libname}${release}${shared_ext}$major' | |
9203 | shlibpath_var=LD_LIBRARY_PATH | |
9204 | shlibpath_overrides_runpath=yes | |
9205 | hardcode_into_libs=yes | |
9206 | # ldd complains unless libraries are executable | |
9207 | postinstall_cmds='chmod +x $lib' | |
9208 | ;; | |
d7040cdb | 9209 | |
ce2cded5 L |
9210 | sunos4*) |
9211 | version_type=sunos | |
9212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9213 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9214 | shlibpath_var=LD_LIBRARY_PATH | |
9215 | shlibpath_overrides_runpath=yes | |
9216 | if test "$with_gnu_ld" = yes; then | |
9217 | need_lib_prefix=no | |
9218 | fi | |
9219 | need_version=yes | |
9220 | ;; | |
d7040cdb | 9221 | |
ce2cded5 L |
9222 | sysv4 | sysv4.3*) |
9223 | version_type=linux | |
9224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9225 | soname_spec='${libname}${release}${shared_ext}$major' | |
9226 | shlibpath_var=LD_LIBRARY_PATH | |
9227 | case $host_vendor in | |
9228 | sni) | |
9229 | shlibpath_overrides_runpath=no | |
9230 | need_lib_prefix=no | |
9231 | runpath_var=LD_RUN_PATH | |
9232 | ;; | |
9233 | siemens) | |
9234 | need_lib_prefix=no | |
9235 | ;; | |
9236 | motorola) | |
9237 | need_lib_prefix=no | |
9238 | need_version=no | |
9239 | shlibpath_overrides_runpath=no | |
9240 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9241 | ;; | |
9242 | esac | |
9243 | ;; | |
d7040cdb | 9244 | |
ce2cded5 L |
9245 | sysv4*MP*) |
9246 | if test -d /usr/nec ;then | |
9247 | version_type=linux | |
9248 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9249 | soname_spec='$libname${shared_ext}.$major' | |
9250 | shlibpath_var=LD_LIBRARY_PATH | |
9251 | fi | |
9252 | ;; | |
d7040cdb | 9253 | |
ce2cded5 L |
9254 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9255 | version_type=freebsd-elf | |
9256 | need_lib_prefix=no | |
9257 | need_version=no | |
9258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9259 | soname_spec='${libname}${release}${shared_ext}$major' | |
9260 | shlibpath_var=LD_LIBRARY_PATH | |
9261 | shlibpath_overrides_runpath=yes | |
9262 | hardcode_into_libs=yes | |
9263 | if test "$with_gnu_ld" = yes; then | |
9264 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9265 | else | |
9266 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9267 | case $host_os in | |
9268 | sco3.2v5*) | |
9269 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9270 | ;; | |
9271 | esac | |
9272 | fi | |
9273 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9274 | ;; | |
d7040cdb | 9275 | |
ce2cded5 L |
9276 | tpf*) |
9277 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9278 | version_type=linux | |
9279 | need_lib_prefix=no | |
9280 | need_version=no | |
9281 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9282 | shlibpath_var=LD_LIBRARY_PATH | |
9283 | shlibpath_overrides_runpath=no | |
9284 | hardcode_into_libs=yes | |
9285 | ;; | |
d7040cdb | 9286 | |
ce2cded5 L |
9287 | uts4*) |
9288 | version_type=linux | |
9289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9290 | soname_spec='${libname}${release}${shared_ext}$major' | |
9291 | shlibpath_var=LD_LIBRARY_PATH | |
9292 | ;; | |
d7040cdb | 9293 | |
ce2cded5 L |
9294 | *) |
9295 | dynamic_linker=no | |
9296 | ;; | |
9297 | esac | |
9298 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9299 | echo "${ECHO_T}$dynamic_linker" >&6 | |
9300 | test "$dynamic_linker" = no && can_build_shared=no | |
d7040cdb | 9301 | |
ce2cded5 L |
9302 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9303 | if test "$GCC" = yes; then | |
9304 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 9305 | fi |
d7040cdb SE |
9306 | |
9307 | ||
d7040cdb | 9308 | |
d7040cdb | 9309 | |
d7040cdb | 9310 | |
d7040cdb | 9311 | |
d7040cdb | 9312 | |
d7040cdb | 9313 | |
d7040cdb | 9314 | |
d7040cdb | 9315 | |
d7040cdb | 9316 | |
d7040cdb SE |
9317 | |
9318 | ||
d7040cdb | 9319 | |
d7040cdb | 9320 | |
d7040cdb | 9321 | |
d7040cdb SE |
9322 | |
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
d7040cdb SE |
9339 | |
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | ||
9346 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
d7040cdb | 9351 | |
d7040cdb | 9352 | |
d7040cdb | 9353 | |
d7040cdb | 9354 | |
d7040cdb SE |
9355 | |
9356 | ||
9357 | ||
9358 | ||
d7040cdb | 9359 | |
d7040cdb SE |
9360 | |
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | ||
9370 | ||
9371 | ||
9372 | ||
d7040cdb SE |
9373 | |
9374 | ||
9375 | ||
9376 | ||
d7040cdb SE |
9377 | |
9378 | ||
9379 | ||
d7040cdb SE |
9380 | |
9381 | ||
d7040cdb | 9382 | |
d7040cdb | 9383 | |
d7040cdb | 9384 | |
ce2cded5 L |
9385 | |
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9394 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
9395 | hardcode_action= | |
9396 | if test -n "$hardcode_libdir_flag_spec" || | |
9397 | test -n "$runpath_var" || | |
9398 | test "X$hardcode_automatic" = "Xyes" ; then | |
9399 | ||
9400 | # We can hardcode non-existent directories. | |
9401 | if test "$hardcode_direct" != no && | |
9402 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9403 | # have to relink, otherwise we might link with an installed library | |
9404 | # when we should be linking with a yet-to-be-installed one | |
9405 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9406 | test "$hardcode_minus_L" != no; then | |
9407 | # Linking always hardcodes the temporary library directory. | |
9408 | hardcode_action=relink | |
9409 | else | |
9410 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9411 | hardcode_action=immediate | |
9412 | fi | |
d7040cdb | 9413 | else |
ce2cded5 L |
9414 | # We cannot hardcode anything, or else we can only hardcode existing |
9415 | # directories. | |
9416 | hardcode_action=unsupported | |
d7040cdb | 9417 | fi |
ce2cded5 L |
9418 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9419 | echo "${ECHO_T}$hardcode_action" >&6 | |
d7040cdb | 9420 | |
ce2cded5 L |
9421 | if test "$hardcode_action" = relink || |
9422 | test "$inherit_rpath" = yes; then | |
9423 | # Fast installation is not supported | |
9424 | enable_fast_install=no | |
9425 | elif test "$shlibpath_overrides_runpath" = yes || | |
9426 | test "$enable_shared" = no; then | |
9427 | # Fast installation is not necessary | |
9428 | enable_fast_install=needless | |
d7040cdb SE |
9429 | fi |
9430 | ||
d7040cdb | 9431 | |
d7040cdb | 9432 | |
0ab6f085 | 9433 | |
0ab6f085 | 9434 | |
0ab6f085 | 9435 | |
ce2cded5 L |
9436 | if test "x$enable_dlopen" != xyes; then |
9437 | enable_dlopen=unknown | |
9438 | enable_dlopen_self=unknown | |
9439 | enable_dlopen_self_static=unknown | |
d7040cdb | 9440 | else |
ce2cded5 L |
9441 | lt_cv_dlopen=no |
9442 | lt_cv_dlopen_libs= | |
d7040cdb | 9443 | |
ce2cded5 L |
9444 | case $host_os in |
9445 | beos*) | |
9446 | lt_cv_dlopen="load_add_on" | |
9447 | lt_cv_dlopen_libs= | |
9448 | lt_cv_dlopen_self=yes | |
9449 | ;; | |
d7040cdb | 9450 | |
ce2cded5 L |
9451 | mingw* | pw32*) |
9452 | lt_cv_dlopen="LoadLibrary" | |
9453 | lt_cv_dlopen_libs= | |
9454 | ;; | |
9455 | ||
9456 | cygwin*) | |
9457 | lt_cv_dlopen="dlopen" | |
9458 | lt_cv_dlopen_libs= | |
9459 | ;; | |
9460 | ||
9461 | darwin*) | |
9462 | # if libdl is installed we need to link against it | |
9463 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9464 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9465 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
d7040cdb SE |
9466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9467 | else | |
ce2cded5 L |
9468 | ac_check_lib_save_LIBS=$LIBS |
9469 | LIBS="-ldl $LIBS" | |
9470 | cat >conftest.$ac_ext <<_ACEOF | |
9471 | /* confdefs.h. */ | |
9472 | _ACEOF | |
9473 | cat confdefs.h >>conftest.$ac_ext | |
9474 | cat >>conftest.$ac_ext <<_ACEOF | |
9475 | /* end confdefs.h. */ | |
9476 | ||
9477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9478 | #ifdef __cplusplus | |
9479 | extern "C" | |
9480 | #endif | |
9481 | /* We use char because int might match the return type of a gcc2 | |
9482 | builtin and then its argument prototype would still apply. */ | |
9483 | char dlopen (); | |
9484 | int | |
9485 | main () | |
9486 | { | |
9487 | dlopen (); | |
9488 | ; | |
9489 | return 0; | |
9490 | } | |
9491 | _ACEOF | |
9492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9494 | (eval $ac_link) 2>conftest.er1 | |
9495 | ac_status=$? | |
9496 | grep -v '^ *+' conftest.er1 >conftest.err | |
9497 | rm -f conftest.er1 | |
9498 | cat conftest.err >&5 | |
9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9500 | (exit $ac_status); } && | |
9501 | { ac_try='test -z "$ac_c_werror_flag" | |
9502 | || test ! -s conftest.err' | |
9503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9504 | (eval $ac_try) 2>&5 | |
9505 | ac_status=$? | |
9506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9507 | (exit $ac_status); }; } && | |
9508 | { ac_try='test -s conftest$ac_exeext' | |
9509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9510 | (eval $ac_try) 2>&5 | |
9511 | ac_status=$? | |
9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9513 | (exit $ac_status); }; }; then | |
9514 | ac_cv_lib_dl_dlopen=yes | |
9515 | else | |
9516 | echo "$as_me: failed program was:" >&5 | |
9517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 9518 | |
ce2cded5 | 9519 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 9520 | fi |
ce2cded5 L |
9521 | rm -f conftest.err conftest.$ac_objext \ |
9522 | conftest$ac_exeext conftest.$ac_ext | |
9523 | LIBS=$ac_check_lib_save_LIBS | |
d7040cdb | 9524 | fi |
ce2cded5 L |
9525 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9526 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9527 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9528 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
d7040cdb | 9529 | else |
d7040cdb | 9530 | |
ce2cded5 L |
9531 | lt_cv_dlopen="dyld" |
9532 | lt_cv_dlopen_libs= | |
9533 | lt_cv_dlopen_self=yes | |
9534 | ||
d7040cdb | 9535 | fi |
ce2cded5 L |
9536 | |
9537 | ;; | |
9538 | ||
9539 | *) | |
9540 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9541 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
9542 | if test "${ac_cv_func_shl_load+set}" = set; then | |
d7040cdb SE |
9543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9544 | else | |
ce2cded5 L |
9545 | cat >conftest.$ac_ext <<_ACEOF |
9546 | /* confdefs.h. */ | |
9547 | _ACEOF | |
9548 | cat confdefs.h >>conftest.$ac_ext | |
9549 | cat >>conftest.$ac_ext <<_ACEOF | |
9550 | /* end confdefs.h. */ | |
9551 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9552 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9553 | #define shl_load innocuous_shl_load | |
d7040cdb | 9554 | |
ce2cded5 L |
9555 | /* System header to define __stub macros and hopefully few prototypes, |
9556 | which can conflict with char shl_load (); below. | |
9557 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9558 | <limits.h> exists even on freestanding compilers. */ | |
d7040cdb | 9559 | |
ce2cded5 L |
9560 | #ifdef __STDC__ |
9561 | # include <limits.h> | |
9562 | #else | |
9563 | # include <assert.h> | |
9564 | #endif | |
d7040cdb | 9565 | |
ce2cded5 | 9566 | #undef shl_load |
d7040cdb | 9567 | |
ce2cded5 L |
9568 | /* Override any gcc2 internal prototype to avoid an error. */ |
9569 | #ifdef __cplusplus | |
9570 | extern "C" | |
9571 | { | |
9572 | #endif | |
9573 | /* We use char because int might match the return type of a gcc2 | |
9574 | builtin and then its argument prototype would still apply. */ | |
9575 | char shl_load (); | |
9576 | /* The GNU C library defines this for functions which it implements | |
9577 | to always fail with ENOSYS. Some functions are actually named | |
9578 | something starting with __ and the normal name is an alias. */ | |
9579 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
9580 | choke me | |
9581 | #else | |
9582 | char (*f) () = shl_load; | |
9583 | #endif | |
9584 | #ifdef __cplusplus | |
9585 | } | |
9586 | #endif | |
d7040cdb | 9587 | |
ce2cded5 L |
9588 | int |
9589 | main () | |
9590 | { | |
9591 | return f != shl_load; | |
9592 | ; | |
9593 | return 0; | |
9594 | } | |
9595 | _ACEOF | |
9596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9598 | (eval $ac_link) 2>conftest.er1 | |
9599 | ac_status=$? | |
9600 | grep -v '^ *+' conftest.er1 >conftest.err | |
9601 | rm -f conftest.er1 | |
9602 | cat conftest.err >&5 | |
9603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9604 | (exit $ac_status); } && | |
9605 | { ac_try='test -z "$ac_c_werror_flag" | |
9606 | || test ! -s conftest.err' | |
9607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9608 | (eval $ac_try) 2>&5 | |
9609 | ac_status=$? | |
9610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9611 | (exit $ac_status); }; } && | |
9612 | { ac_try='test -s conftest$ac_exeext' | |
9613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9614 | (eval $ac_try) 2>&5 | |
9615 | ac_status=$? | |
9616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9617 | (exit $ac_status); }; }; then | |
9618 | ac_cv_func_shl_load=yes | |
9619 | else | |
9620 | echo "$as_me: failed program was:" >&5 | |
9621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 9622 | |
ce2cded5 L |
9623 | ac_cv_func_shl_load=no |
9624 | fi | |
9625 | rm -f conftest.err conftest.$ac_objext \ | |
9626 | conftest$ac_exeext conftest.$ac_ext | |
9627 | fi | |
9628 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
9629 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
9630 | if test $ac_cv_func_shl_load = yes; then | |
9631 | lt_cv_dlopen="shl_load" | |
9632 | else | |
9633 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
9634 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
9635 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
9636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9637 | else | |
9638 | ac_check_lib_save_LIBS=$LIBS | |
9639 | LIBS="-ldld $LIBS" | |
9640 | cat >conftest.$ac_ext <<_ACEOF | |
9641 | /* confdefs.h. */ | |
9642 | _ACEOF | |
9643 | cat confdefs.h >>conftest.$ac_ext | |
9644 | cat >>conftest.$ac_ext <<_ACEOF | |
9645 | /* end confdefs.h. */ | |
d7040cdb | 9646 | |
ce2cded5 L |
9647 | /* Override any gcc2 internal prototype to avoid an error. */ |
9648 | #ifdef __cplusplus | |
9649 | extern "C" | |
9650 | #endif | |
9651 | /* We use char because int might match the return type of a gcc2 | |
9652 | builtin and then its argument prototype would still apply. */ | |
9653 | char shl_load (); | |
9654 | int | |
9655 | main () | |
9656 | { | |
9657 | shl_load (); | |
9658 | ; | |
9659 | return 0; | |
9660 | } | |
9661 | _ACEOF | |
9662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9664 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb | 9665 | ac_status=$? |
ce2cded5 L |
9666 | grep -v '^ *+' conftest.er1 >conftest.err |
9667 | rm -f conftest.er1 | |
9668 | cat conftest.err >&5 | |
d7040cdb | 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9670 | (exit $ac_status); } && |
9671 | { ac_try='test -z "$ac_c_werror_flag" | |
9672 | || test ! -s conftest.err' | |
9673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9674 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
9675 | ac_status=$? |
9676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
9677 | (exit $ac_status); }; } && |
9678 | { ac_try='test -s conftest$ac_exeext' | |
9679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9680 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
9681 | ac_status=$? |
9682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
9683 | (exit $ac_status); }; }; then |
9684 | ac_cv_lib_dld_shl_load=yes | |
9685 | else | |
9686 | echo "$as_me: failed program was:" >&5 | |
9687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 9688 | |
ce2cded5 L |
9689 | ac_cv_lib_dld_shl_load=no |
9690 | fi | |
9691 | rm -f conftest.err conftest.$ac_objext \ | |
9692 | conftest$ac_exeext conftest.$ac_ext | |
9693 | LIBS=$ac_check_lib_save_LIBS | |
9694 | fi | |
9695 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9696 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
9697 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9698 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9699 | else | |
9700 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9701 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
9702 | if test "${ac_cv_func_dlopen+set}" = set; then | |
d7040cdb SE |
9703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9704 | else | |
9705 | cat >conftest.$ac_ext <<_ACEOF | |
9706 | /* confdefs.h. */ | |
9707 | _ACEOF | |
9708 | cat confdefs.h >>conftest.$ac_ext | |
9709 | cat >>conftest.$ac_ext <<_ACEOF | |
9710 | /* end confdefs.h. */ | |
ce2cded5 L |
9711 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9713 | #define dlopen innocuous_dlopen | |
9714 | ||
9715 | /* System header to define __stub macros and hopefully few prototypes, | |
9716 | which can conflict with char dlopen (); below. | |
9717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9718 | <limits.h> exists even on freestanding compilers. */ | |
9719 | ||
9720 | #ifdef __STDC__ | |
9721 | # include <limits.h> | |
9722 | #else | |
9723 | # include <assert.h> | |
9724 | #endif | |
d7040cdb | 9725 | |
ce2cded5 L |
9726 | #undef dlopen |
9727 | ||
9728 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9729 | #ifdef __cplusplus | |
9730 | extern "C" | |
d7040cdb | 9731 | { |
ce2cded5 L |
9732 | #endif |
9733 | /* We use char because int might match the return type of a gcc2 | |
9734 | builtin and then its argument prototype would still apply. */ | |
9735 | char dlopen (); | |
9736 | /* The GNU C library defines this for functions which it implements | |
9737 | to always fail with ENOSYS. Some functions are actually named | |
9738 | something starting with __ and the normal name is an alias. */ | |
9739 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
9740 | choke me | |
9741 | #else | |
9742 | char (*f) () = dlopen; | |
9743 | #endif | |
9744 | #ifdef __cplusplus | |
9745 | } | |
d7040cdb SE |
9746 | #endif |
9747 | ||
ce2cded5 L |
9748 | int |
9749 | main () | |
9750 | { | |
9751 | return f != dlopen; | |
d7040cdb SE |
9752 | ; |
9753 | return 0; | |
9754 | } | |
9755 | _ACEOF | |
ce2cded5 L |
9756 | rm -f conftest.$ac_objext conftest$ac_exeext |
9757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9758 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
9759 | ac_status=$? |
9760 | grep -v '^ *+' conftest.er1 >conftest.err | |
9761 | rm -f conftest.er1 | |
9762 | cat conftest.err >&5 | |
9763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
9764 | (exit $ac_status); } && |
9765 | { ac_try='test -z "$ac_c_werror_flag" | |
9766 | || test ! -s conftest.err' | |
9767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9768 | (eval $ac_try) 2>&5 | |
9769 | ac_status=$? | |
9770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9771 | (exit $ac_status); }; } && | |
ce2cded5 | 9772 | { ac_try='test -s conftest$ac_exeext' |
0ab6f085 AM |
9773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9774 | (eval $ac_try) 2>&5 | |
9775 | ac_status=$? | |
9776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9777 | (exit $ac_status); }; }; then | |
ce2cded5 | 9778 | ac_cv_func_dlopen=yes |
d7040cdb SE |
9779 | else |
9780 | echo "$as_me: failed program was:" >&5 | |
9781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9782 | ||
ce2cded5 | 9783 | ac_cv_func_dlopen=no |
d7040cdb | 9784 | fi |
ce2cded5 L |
9785 | rm -f conftest.err conftest.$ac_objext \ |
9786 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 9787 | fi |
ce2cded5 L |
9788 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9789 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
9790 | if test $ac_cv_func_dlopen = yes; then | |
9791 | lt_cv_dlopen="dlopen" | |
9792 | else | |
9793 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9794 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9795 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
d7040cdb SE |
9796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9797 | else | |
ce2cded5 L |
9798 | ac_check_lib_save_LIBS=$LIBS |
9799 | LIBS="-ldl $LIBS" | |
9800 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
9801 | /* confdefs.h. */ |
9802 | _ACEOF | |
9803 | cat confdefs.h >>conftest.$ac_ext | |
9804 | cat >>conftest.$ac_ext <<_ACEOF | |
9805 | /* end confdefs.h. */ | |
9806 | ||
ce2cded5 L |
9807 | /* Override any gcc2 internal prototype to avoid an error. */ |
9808 | #ifdef __cplusplus | |
9809 | extern "C" | |
9810 | #endif | |
9811 | /* We use char because int might match the return type of a gcc2 | |
9812 | builtin and then its argument prototype would still apply. */ | |
9813 | char dlopen (); | |
d7040cdb SE |
9814 | int |
9815 | main () | |
9816 | { | |
ce2cded5 | 9817 | dlopen (); |
d7040cdb SE |
9818 | ; |
9819 | return 0; | |
9820 | } | |
9821 | _ACEOF | |
ce2cded5 L |
9822 | rm -f conftest.$ac_objext conftest$ac_exeext |
9823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9824 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
9825 | ac_status=$? |
9826 | grep -v '^ *+' conftest.er1 >conftest.err | |
9827 | rm -f conftest.er1 | |
9828 | cat conftest.err >&5 | |
9829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
9830 | (exit $ac_status); } && |
9831 | { ac_try='test -z "$ac_c_werror_flag" | |
9832 | || test ! -s conftest.err' | |
9833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9834 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
9835 | ac_status=$? |
9836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 | 9837 | (exit $ac_status); }; } && |
ce2cded5 | 9838 | { ac_try='test -s conftest$ac_exeext' |
0ab6f085 AM |
9839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9840 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
9841 | ac_status=$? |
9842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 | 9843 | (exit $ac_status); }; }; then |
ce2cded5 | 9844 | ac_cv_lib_dl_dlopen=yes |
d7040cdb SE |
9845 | else |
9846 | echo "$as_me: failed program was:" >&5 | |
9847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9848 | ||
ce2cded5 | 9849 | ac_cv_lib_dl_dlopen=no |
1b9750d6 | 9850 | fi |
ce2cded5 L |
9851 | rm -f conftest.err conftest.$ac_objext \ |
9852 | conftest$ac_exeext conftest.$ac_ext | |
9853 | LIBS=$ac_check_lib_save_LIBS | |
d7040cdb | 9854 | fi |
ce2cded5 L |
9855 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9856 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9857 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9858 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
d7040cdb | 9859 | else |
ce2cded5 L |
9860 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9861 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
9862 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
d7040cdb SE |
9863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9864 | else | |
ce2cded5 L |
9865 | ac_check_lib_save_LIBS=$LIBS |
9866 | LIBS="-lsvld $LIBS" | |
d7040cdb SE |
9867 | cat >conftest.$ac_ext <<_ACEOF |
9868 | /* confdefs.h. */ | |
9869 | _ACEOF | |
9870 | cat confdefs.h >>conftest.$ac_ext | |
9871 | cat >>conftest.$ac_ext <<_ACEOF | |
9872 | /* end confdefs.h. */ | |
d7040cdb | 9873 | |
ce2cded5 L |
9874 | /* Override any gcc2 internal prototype to avoid an error. */ |
9875 | #ifdef __cplusplus | |
9876 | extern "C" | |
9877 | #endif | |
9878 | /* We use char because int might match the return type of a gcc2 | |
9879 | builtin and then its argument prototype would still apply. */ | |
9880 | char dlopen (); | |
d7040cdb SE |
9881 | int |
9882 | main () | |
9883 | { | |
ce2cded5 | 9884 | dlopen (); |
d7040cdb SE |
9885 | ; |
9886 | return 0; | |
9887 | } | |
9888 | _ACEOF | |
ce2cded5 L |
9889 | rm -f conftest.$ac_objext conftest$ac_exeext |
9890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9891 | (eval $ac_link) 2>conftest.er1 | |
0ab6f085 AM |
9892 | ac_status=$? |
9893 | grep -v '^ *+' conftest.er1 >conftest.err | |
9894 | rm -f conftest.er1 | |
9895 | cat conftest.err >&5 | |
9896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9897 | (exit $ac_status); } && | |
9898 | { ac_try='test -z "$ac_c_werror_flag" | |
9899 | || test ! -s conftest.err' | |
9900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9901 | (eval $ac_try) 2>&5 | |
9902 | ac_status=$? | |
9903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9904 | (exit $ac_status); }; } && | |
ce2cded5 | 9905 | { ac_try='test -s conftest$ac_exeext' |
0ab6f085 AM |
9906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9907 | (eval $ac_try) 2>&5 | |
9908 | ac_status=$? | |
9909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9910 | (exit $ac_status); }; }; then | |
ce2cded5 | 9911 | ac_cv_lib_svld_dlopen=yes |
0ab6f085 AM |
9912 | else |
9913 | echo "$as_me: failed program was:" >&5 | |
9914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9915 | ||
ce2cded5 | 9916 | ac_cv_lib_svld_dlopen=no |
0ab6f085 | 9917 | fi |
ce2cded5 L |
9918 | rm -f conftest.err conftest.$ac_objext \ |
9919 | conftest$ac_exeext conftest.$ac_ext | |
9920 | LIBS=$ac_check_lib_save_LIBS | |
0ab6f085 | 9921 | fi |
ce2cded5 L |
9922 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9923 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
9924 | if test $ac_cv_lib_svld_dlopen = yes; then | |
9925 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9926 | else | |
9927 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
9928 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
9929 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
9930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9931 | else | |
9932 | ac_check_lib_save_LIBS=$LIBS | |
9933 | LIBS="-ldld $LIBS" | |
9934 | cat >conftest.$ac_ext <<_ACEOF | |
0ab6f085 AM |
9935 | /* confdefs.h. */ |
9936 | _ACEOF | |
9937 | cat confdefs.h >>conftest.$ac_ext | |
9938 | cat >>conftest.$ac_ext <<_ACEOF | |
9939 | /* end confdefs.h. */ | |
ce2cded5 L |
9940 | |
9941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9942 | #ifdef __cplusplus | |
9943 | extern "C" | |
9944 | #endif | |
9945 | /* We use char because int might match the return type of a gcc2 | |
9946 | builtin and then its argument prototype would still apply. */ | |
9947 | char dld_link (); | |
0ab6f085 AM |
9948 | int |
9949 | main () | |
9950 | { | |
ce2cded5 | 9951 | dld_link (); |
0ab6f085 AM |
9952 | ; |
9953 | return 0; | |
9954 | } | |
9955 | _ACEOF | |
ce2cded5 L |
9956 | rm -f conftest.$ac_objext conftest$ac_exeext |
9957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9958 | (eval $ac_link) 2>conftest.er1 | |
0ab6f085 AM |
9959 | ac_status=$? |
9960 | grep -v '^ *+' conftest.er1 >conftest.err | |
9961 | rm -f conftest.er1 | |
9962 | cat conftest.err >&5 | |
9963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9964 | (exit $ac_status); } && | |
9965 | { ac_try='test -z "$ac_c_werror_flag" | |
9966 | || test ! -s conftest.err' | |
9967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9968 | (eval $ac_try) 2>&5 | |
9969 | ac_status=$? | |
9970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9971 | (exit $ac_status); }; } && | |
ce2cded5 | 9972 | { ac_try='test -s conftest$ac_exeext' |
0ab6f085 AM |
9973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9974 | (eval $ac_try) 2>&5 | |
9975 | ac_status=$? | |
9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9977 | (exit $ac_status); }; }; then | |
ce2cded5 | 9978 | ac_cv_lib_dld_dld_link=yes |
0ab6f085 AM |
9979 | else |
9980 | echo "$as_me: failed program was:" >&5 | |
9981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9982 | ||
ce2cded5 | 9983 | ac_cv_lib_dld_dld_link=no |
0ab6f085 | 9984 | fi |
ce2cded5 L |
9985 | rm -f conftest.err conftest.$ac_objext \ |
9986 | conftest$ac_exeext conftest.$ac_ext | |
9987 | LIBS=$ac_check_lib_save_LIBS | |
9988 | fi | |
9989 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
9990 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
9991 | if test $ac_cv_lib_dld_dld_link = yes; then | |
9992 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
9993 | fi | |
9994 | ||
9995 | ||
9996 | fi | |
9997 | ||
9998 | ||
9999 | fi | |
10000 | ||
10001 | ||
10002 | fi | |
10003 | ||
10004 | ||
10005 | fi | |
10006 | ||
10007 | ||
10008 | fi | |
10009 | ||
10010 | ;; | |
10011 | esac | |
10012 | ||
10013 | if test "x$lt_cv_dlopen" != xno; then | |
10014 | enable_dlopen=yes | |
10015 | else | |
10016 | enable_dlopen=no | |
10017 | fi | |
10018 | ||
10019 | case $lt_cv_dlopen in | |
10020 | dlopen) | |
10021 | save_CPPFLAGS="$CPPFLAGS" | |
10022 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10023 | ||
10024 | save_LDFLAGS="$LDFLAGS" | |
10025 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10026 | ||
10027 | save_LIBS="$LIBS" | |
10028 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10029 | ||
10030 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10031 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
10032 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10034 | else | |
10035 | if test "$cross_compiling" = yes; then : | |
10036 | lt_cv_dlopen_self=cross | |
10037 | else | |
10038 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10039 | lt_status=$lt_dlunknown | |
10040 | cat > conftest.$ac_ext <<_LT_EOF | |
58c85be7 | 10041 | #line 10041 "configure" |
ce2cded5 L |
10042 | #include "confdefs.h" |
10043 | ||
10044 | #if HAVE_DLFCN_H | |
10045 | #include <dlfcn.h> | |
10046 | #endif | |
10047 | ||
10048 | #include <stdio.h> | |
10049 | ||
10050 | #ifdef RTLD_GLOBAL | |
10051 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10052 | #else | |
10053 | # ifdef DL_GLOBAL | |
10054 | # define LT_DLGLOBAL DL_GLOBAL | |
10055 | # else | |
10056 | # define LT_DLGLOBAL 0 | |
10057 | # endif | |
10058 | #endif | |
10059 | ||
10060 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10061 | find out it does not work in some platform. */ | |
10062 | #ifndef LT_DLLAZY_OR_NOW | |
10063 | # ifdef RTLD_LAZY | |
10064 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10065 | # else | |
10066 | # ifdef DL_LAZY | |
10067 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10068 | # else | |
10069 | # ifdef RTLD_NOW | |
10070 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10071 | # else | |
10072 | # ifdef DL_NOW | |
10073 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10074 | # else | |
10075 | # define LT_DLLAZY_OR_NOW 0 | |
10076 | # endif | |
10077 | # endif | |
10078 | # endif | |
10079 | # endif | |
10080 | #endif | |
10081 | ||
10082 | #ifdef __cplusplus | |
10083 | extern "C" void exit (int); | |
10084 | #endif | |
10085 | ||
10086 | void fnord() { int i=42;} | |
10087 | int main () | |
0ab6f085 | 10088 | { |
ce2cded5 L |
10089 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10090 | int status = $lt_dlunknown; | |
10091 | ||
10092 | if (self) | |
10093 | { | |
10094 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10095 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10096 | /* dlclose (self); */ | |
10097 | } | |
10098 | else | |
10099 | puts (dlerror ()); | |
10100 | ||
10101 | exit (status); | |
10102 | } | |
10103 | _LT_EOF | |
10104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10105 | (eval $ac_link) 2>&5 | |
10106 | ac_status=$? | |
10107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10108 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10109 | (./conftest; exit; ) >&5 2>/dev/null | |
10110 | lt_status=$? | |
10111 | case x$lt_status in | |
10112 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10113 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10114 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10115 | esac | |
10116 | else : | |
10117 | # compilation failed | |
10118 | lt_cv_dlopen_self=no | |
10119 | fi | |
10120 | fi | |
10121 | rm -fr conftest* | |
10122 | ||
10123 | ||
10124 | fi | |
10125 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10126 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
10127 | ||
10128 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10129 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10130 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10131 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
10132 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10134 | else | |
10135 | if test "$cross_compiling" = yes; then : | |
10136 | lt_cv_dlopen_self_static=cross | |
10137 | else | |
10138 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10139 | lt_status=$lt_dlunknown | |
10140 | cat > conftest.$ac_ext <<_LT_EOF | |
58c85be7 | 10141 | #line 10141 "configure" |
ce2cded5 L |
10142 | #include "confdefs.h" |
10143 | ||
10144 | #if HAVE_DLFCN_H | |
10145 | #include <dlfcn.h> | |
10146 | #endif | |
10147 | ||
10148 | #include <stdio.h> | |
10149 | ||
10150 | #ifdef RTLD_GLOBAL | |
10151 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10152 | #else | |
10153 | # ifdef DL_GLOBAL | |
10154 | # define LT_DLGLOBAL DL_GLOBAL | |
10155 | # else | |
10156 | # define LT_DLGLOBAL 0 | |
10157 | # endif | |
10158 | #endif | |
10159 | ||
10160 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10161 | find out it does not work in some platform. */ | |
10162 | #ifndef LT_DLLAZY_OR_NOW | |
10163 | # ifdef RTLD_LAZY | |
10164 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10165 | # else | |
10166 | # ifdef DL_LAZY | |
10167 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10168 | # else | |
10169 | # ifdef RTLD_NOW | |
10170 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10171 | # else | |
10172 | # ifdef DL_NOW | |
10173 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10174 | # else | |
10175 | # define LT_DLLAZY_OR_NOW 0 | |
10176 | # endif | |
10177 | # endif | |
10178 | # endif | |
10179 | # endif | |
10180 | #endif | |
10181 | ||
10182 | #ifdef __cplusplus | |
10183 | extern "C" void exit (int); | |
10184 | #endif | |
10185 | ||
10186 | void fnord() { int i=42;} | |
10187 | int main () | |
10188 | { | |
10189 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10190 | int status = $lt_dlunknown; | |
10191 | ||
10192 | if (self) | |
10193 | { | |
10194 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10195 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10196 | /* dlclose (self); */ | |
10197 | } | |
10198 | else | |
10199 | puts (dlerror ()); | |
10200 | ||
10201 | exit (status); | |
0ab6f085 | 10202 | } |
ce2cded5 L |
10203 | _LT_EOF |
10204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10205 | (eval $ac_link) 2>&5 | |
0ab6f085 AM |
10206 | ac_status=$? |
10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
10208 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10209 | (./conftest; exit; ) >&5 2>/dev/null | |
10210 | lt_status=$? | |
10211 | case x$lt_status in | |
10212 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10213 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10214 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10215 | esac | |
10216 | else : | |
10217 | # compilation failed | |
10218 | lt_cv_dlopen_self_static=no | |
10219 | fi | |
10220 | fi | |
10221 | rm -fr conftest* | |
10222 | ||
d7040cdb SE |
10223 | |
10224 | fi | |
ce2cded5 L |
10225 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10226 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
10227 | fi | |
10228 | ||
10229 | CPPFLAGS="$save_CPPFLAGS" | |
10230 | LDFLAGS="$save_LDFLAGS" | |
10231 | LIBS="$save_LIBS" | |
10232 | ;; | |
10233 | esac | |
10234 | ||
10235 | case $lt_cv_dlopen_self in | |
10236 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10237 | *) enable_dlopen_self=unknown ;; | |
10238 | esac | |
10239 | ||
10240 | case $lt_cv_dlopen_self_static in | |
10241 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10242 | *) enable_dlopen_self_static=unknown ;; | |
10243 | esac | |
d7040cdb SE |
10244 | fi |
10245 | ||
ce2cded5 L |
10246 | |
10247 | ||
10248 | ||
10249 | ||
10250 | ||
10251 | ||
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | ||
10259 | ||
10260 | ||
10261 | ||
10262 | striplib= | |
10263 | old_striplib= | |
10264 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10265 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10266 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10267 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10268 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10269 | echo "$as_me:$LINENO: result: yes" >&5 | |
10270 | echo "${ECHO_T}yes" >&6 | |
0ab6f085 | 10271 | else |
ce2cded5 L |
10272 | # FIXME - insert some real tests, host_os isn't really good enough |
10273 | case $host_os in | |
10274 | darwin*) | |
10275 | if test -n "$STRIP" ; then | |
10276 | striplib="$STRIP -x" | |
10277 | old_striplib="$STRIP -S" | |
10278 | echo "$as_me:$LINENO: result: yes" >&5 | |
10279 | echo "${ECHO_T}yes" >&6 | |
10280 | else | |
10281 | echo "$as_me:$LINENO: result: no" >&5 | |
10282 | echo "${ECHO_T}no" >&6 | |
10283 | fi | |
10284 | ;; | |
10285 | *) | |
10286 | echo "$as_me:$LINENO: result: no" >&5 | |
10287 | echo "${ECHO_T}no" >&6 | |
10288 | ;; | |
10289 | esac | |
10290 | fi | |
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | # Report which library types will actually be built | |
10304 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10305 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10306 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10307 | echo "${ECHO_T}$can_build_shared" >&6 | |
10308 | ||
10309 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10310 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10311 | test "$can_build_shared" = "no" && enable_shared=no | |
10312 | ||
10313 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10314 | # are all built from PIC. | |
10315 | case $host_os in | |
10316 | aix3*) | |
10317 | test "$enable_shared" = yes && enable_static=no | |
10318 | if test -n "$RANLIB"; then | |
10319 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10320 | postinstall_cmds='$RANLIB $lib' | |
10321 | fi | |
10322 | ;; | |
10323 | ||
50e7d84b | 10324 | aix[4-9]*) |
ce2cded5 L |
10325 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10326 | test "$enable_shared" = yes && enable_static=no | |
10327 | fi | |
10328 | ;; | |
10329 | esac | |
10330 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10331 | echo "${ECHO_T}$enable_shared" >&6 | |
10332 | ||
10333 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10334 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10335 | # Make sure either enable_shared or enable_static is yes. | |
10336 | test "$enable_shared" = yes || enable_static=yes | |
10337 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10338 | echo "${ECHO_T}$enable_static" >&6 | |
10339 | ||
10340 | ||
10341 | ||
d7040cdb | 10342 | |
0ab6f085 | 10343 | fi |
d7040cdb SE |
10344 | ac_ext=c |
10345 | ac_cpp='$CPP $CPPFLAGS' | |
10346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10349 | ||
ce2cded5 | 10350 | CC="$lt_save_CC" |
0ab6f085 | 10351 | |
0ab6f085 AM |
10352 | |
10353 | ||
d7040cdb SE |
10354 | |
10355 | ||
d7040cdb | 10356 | |
d7040cdb | 10357 | |
d7040cdb | 10358 | |
ce2cded5 L |
10359 | |
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ac_config_commands="$ac_config_commands libtool" | |
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | # Only expand once: | |
10370 | ||
d7040cdb SE |
10371 | |
10372 | ||
10373 | ||
10374 | for ac_func in setmode | |
10375 | do | |
10376 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
0ab6f085 AM |
10377 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10378 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10379 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d7040cdb SE |
10380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10381 | else | |
10382 | cat >conftest.$ac_ext <<_ACEOF | |
10383 | /* confdefs.h. */ | |
10384 | _ACEOF | |
10385 | cat confdefs.h >>conftest.$ac_ext | |
10386 | cat >>conftest.$ac_ext <<_ACEOF | |
10387 | /* end confdefs.h. */ | |
10388 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10389 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10390 | #define $ac_func innocuous_$ac_func | |
10391 | ||
10392 | /* System header to define __stub macros and hopefully few prototypes, | |
10393 | which can conflict with char $ac_func (); below. | |
10394 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10395 | <limits.h> exists even on freestanding compilers. */ | |
10396 | ||
10397 | #ifdef __STDC__ | |
10398 | # include <limits.h> | |
10399 | #else | |
10400 | # include <assert.h> | |
10401 | #endif | |
10402 | ||
10403 | #undef $ac_func | |
10404 | ||
0ab6f085 | 10405 | /* Override any gcc2 internal prototype to avoid an error. */ |
d7040cdb SE |
10406 | #ifdef __cplusplus |
10407 | extern "C" | |
0ab6f085 | 10408 | { |
d7040cdb | 10409 | #endif |
0ab6f085 AM |
10410 | /* We use char because int might match the return type of a gcc2 |
10411 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10412 | char $ac_func (); |
10413 | /* The GNU C library defines this for functions which it implements | |
10414 | to always fail with ENOSYS. Some functions are actually named | |
10415 | something starting with __ and the normal name is an alias. */ | |
0ab6f085 | 10416 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d7040cdb | 10417 | choke me |
0ab6f085 AM |
10418 | #else |
10419 | char (*f) () = $ac_func; | |
10420 | #endif | |
10421 | #ifdef __cplusplus | |
10422 | } | |
d7040cdb SE |
10423 | #endif |
10424 | ||
10425 | int | |
10426 | main () | |
10427 | { | |
0ab6f085 | 10428 | return f != $ac_func; |
d7040cdb SE |
10429 | ; |
10430 | return 0; | |
10431 | } | |
10432 | _ACEOF | |
10433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ab6f085 AM |
10434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10435 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
10436 | ac_status=$? |
10437 | grep -v '^ *+' conftest.er1 >conftest.err | |
10438 | rm -f conftest.er1 | |
10439 | cat conftest.err >&5 | |
10440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
10441 | (exit $ac_status); } && |
10442 | { ac_try='test -z "$ac_c_werror_flag" | |
10443 | || test ! -s conftest.err' | |
10444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10445 | (eval $ac_try) 2>&5 | |
10446 | ac_status=$? | |
10447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10448 | (exit $ac_status); }; } && | |
10449 | { ac_try='test -s conftest$ac_exeext' | |
10450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10451 | (eval $ac_try) 2>&5 | |
10452 | ac_status=$? | |
10453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10454 | (exit $ac_status); }; }; then | |
d7040cdb SE |
10455 | eval "$as_ac_var=yes" |
10456 | else | |
10457 | echo "$as_me: failed program was:" >&5 | |
10458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10459 | ||
0ab6f085 | 10460 | eval "$as_ac_var=no" |
d7040cdb | 10461 | fi |
0ab6f085 | 10462 | rm -f conftest.err conftest.$ac_objext \ |
d7040cdb SE |
10463 | conftest$ac_exeext conftest.$ac_ext |
10464 | fi | |
0ab6f085 AM |
10465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10466 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d7040cdb SE |
10467 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10468 | cat >>confdefs.h <<_ACEOF | |
10469 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10470 | _ACEOF | |
10471 | ||
10472 | fi | |
10473 | done | |
10474 | ||
10475 | ||
19aec961 | 10476 | ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi" |
d7040cdb SE |
10477 | # If we haven't got the data from the intl directory, |
10478 | # assume NLS is disabled. | |
10479 | USE_NLS=no | |
10480 | LIBINTL= | |
10481 | LIBINTL_DEP= | |
10482 | INCINTL= | |
10483 | XGETTEXT= | |
10484 | GMSGFMT= | |
10485 | POSUB= | |
10486 | ||
10487 | if test -f ../intl/config.intl; then | |
10488 | . ../intl/config.intl | |
10489 | fi | |
0ab6f085 AM |
10490 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
10491 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
d7040cdb | 10492 | if test x"$USE_NLS" != xyes; then |
0ab6f085 AM |
10493 | echo "$as_me:$LINENO: result: no" >&5 |
10494 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 10495 | else |
0ab6f085 AM |
10496 | echo "$as_me:$LINENO: result: yes" >&5 |
10497 | echo "${ECHO_T}yes" >&6 | |
d7040cdb SE |
10498 | |
10499 | cat >>confdefs.h <<\_ACEOF | |
10500 | #define ENABLE_NLS 1 | |
10501 | _ACEOF | |
10502 | ||
10503 | ||
0ab6f085 AM |
10504 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
10505 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
d7040cdb SE |
10506 | # Look for .po and .gmo files in the source directory. |
10507 | CATALOGS= | |
10508 | XLINGUAS= | |
10509 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
10510 | # If there aren't any .gmo files the shell will give us the | |
10511 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
10512 | # weeded out. | |
10513 | case "$cat" in *\**) | |
10514 | continue;; | |
10515 | esac | |
10516 | # The quadruple backslash is collapsed to a double backslash | |
10517 | # by the backticks, then collapsed again by the double quotes, | |
10518 | # leaving us with one backslash in the sed expression (right | |
10519 | # before the dot that mustn't act as a wildcard). | |
10520 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
10521 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
10522 | # The user is allowed to set LINGUAS to a list of languages to | |
10523 | # install catalogs for. If it's empty that means "all of them." | |
10524 | if test "x$LINGUAS" = x; then | |
10525 | CATALOGS="$CATALOGS $cat" | |
10526 | XLINGUAS="$XLINGUAS $lang" | |
10527 | else | |
10528 | case "$LINGUAS" in *$lang*) | |
10529 | CATALOGS="$CATALOGS $cat" | |
10530 | XLINGUAS="$XLINGUAS $lang" | |
10531 | ;; | |
10532 | esac | |
10533 | fi | |
10534 | done | |
10535 | LINGUAS="$XLINGUAS" | |
0ab6f085 AM |
10536 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
10537 | echo "${ECHO_T}$LINGUAS" >&6 | |
d7040cdb SE |
10538 | |
10539 | ||
10540 | DATADIRNAME=share | |
10541 | ||
10542 | INSTOBJEXT=.mo | |
10543 | ||
10544 | GENCAT=gencat | |
10545 | ||
10546 | CATOBJEXT=.gmo | |
10547 | ||
10548 | fi | |
10549 | ||
10550 | MKINSTALLDIRS= | |
10551 | if test -n "$ac_aux_dir"; then | |
10552 | case "$ac_aux_dir" in | |
10553 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
10554 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
10555 | esac | |
10556 | fi | |
10557 | if test -z "$MKINSTALLDIRS"; then | |
10558 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
10559 | fi | |
10560 | ||
10561 | ||
10562 | ||
0ab6f085 AM |
10563 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
10564 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
10565 | # Check whether --enable-nls or --disable-nls was given. | |
d7040cdb | 10566 | if test "${enable_nls+set}" = set; then |
0ab6f085 AM |
10567 | enableval="$enable_nls" |
10568 | USE_NLS=$enableval | |
d7040cdb SE |
10569 | else |
10570 | USE_NLS=yes | |
0ab6f085 AM |
10571 | fi; |
10572 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10573 | echo "${ECHO_T}$USE_NLS" >&6 | |
d7040cdb SE |
10574 | |
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | # Prepare PATH_SEPARATOR. | |
10581 | # The user is always right. | |
10582 | if test "${PATH_SEPARATOR+set}" != set; then | |
10583 | echo "#! /bin/sh" >conf$$.sh | |
10584 | echo "exit 0" >>conf$$.sh | |
10585 | chmod +x conf$$.sh | |
10586 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10587 | PATH_SEPARATOR=';' | |
10588 | else | |
10589 | PATH_SEPARATOR=: | |
10590 | fi | |
10591 | rm -f conf$$.sh | |
10592 | fi | |
10593 | ||
10594 | # Find out how to test for executable files. Don't use a zero-byte file, | |
10595 | # as systems may use methods other than mode bits to determine executability. | |
10596 | cat >conf$$.file <<_ASEOF | |
10597 | #! /bin/sh | |
10598 | exit 0 | |
10599 | _ASEOF | |
10600 | chmod +x conf$$.file | |
10601 | if test -x conf$$.file >/dev/null 2>&1; then | |
10602 | ac_executable_p="test -x" | |
10603 | else | |
10604 | ac_executable_p="test -f" | |
10605 | fi | |
10606 | rm -f conf$$.file | |
10607 | ||
10608 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10609 | set dummy msgfmt; ac_word=$2 | |
0ab6f085 AM |
10610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb SE |
10612 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
10613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10614 | else | |
10615 | case "$MSGFMT" in | |
10616 | [\\/]* | ?:[\\/]*) | |
10617 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10618 | ;; | |
10619 | *) | |
10620 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10621 | for ac_dir in $PATH; do | |
10622 | IFS="$ac_save_IFS" | |
10623 | test -z "$ac_dir" && ac_dir=. | |
10624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10625 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10626 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
10627 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10628 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
10629 | break 2 | |
10630 | fi | |
10631 | fi | |
10632 | done | |
10633 | done | |
10634 | IFS="$ac_save_IFS" | |
10635 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
10636 | ;; | |
10637 | esac | |
10638 | fi | |
10639 | MSGFMT="$ac_cv_path_MSGFMT" | |
10640 | if test "$MSGFMT" != ":"; then | |
0ab6f085 AM |
10641 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10642 | echo "${ECHO_T}$MSGFMT" >&6 | |
d7040cdb | 10643 | else |
0ab6f085 AM |
10644 | echo "$as_me:$LINENO: result: no" >&5 |
10645 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
10646 | fi |
10647 | ||
10648 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
10649 | set dummy gmsgfmt; ac_word=$2 | |
0ab6f085 AM |
10650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb SE |
10652 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
10653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10654 | else | |
10655 | case $GMSGFMT in | |
10656 | [\\/]* | ?:[\\/]*) | |
10657 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
10658 | ;; | |
10659 | *) | |
10660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10661 | for as_dir in $PATH | |
10662 | do | |
10663 | IFS=$as_save_IFS | |
10664 | test -z "$as_dir" && as_dir=. | |
10665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0ab6f085 | 10666 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb SE |
10667 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
10668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10669 | break 2 | |
10670 | fi | |
10671 | done | |
10672 | done | |
10673 | ||
10674 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
10675 | ;; | |
10676 | esac | |
10677 | fi | |
10678 | GMSGFMT=$ac_cv_path_GMSGFMT | |
0ab6f085 | 10679 | |
d7040cdb | 10680 | if test -n "$GMSGFMT"; then |
0ab6f085 AM |
10681 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
10682 | echo "${ECHO_T}$GMSGFMT" >&6 | |
d7040cdb | 10683 | else |
0ab6f085 AM |
10684 | echo "$as_me:$LINENO: result: no" >&5 |
10685 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
10686 | fi |
10687 | ||
10688 | ||
10689 | ||
10690 | # Prepare PATH_SEPARATOR. | |
10691 | # The user is always right. | |
10692 | if test "${PATH_SEPARATOR+set}" != set; then | |
10693 | echo "#! /bin/sh" >conf$$.sh | |
10694 | echo "exit 0" >>conf$$.sh | |
10695 | chmod +x conf$$.sh | |
10696 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10697 | PATH_SEPARATOR=';' | |
10698 | else | |
10699 | PATH_SEPARATOR=: | |
10700 | fi | |
10701 | rm -f conf$$.sh | |
10702 | fi | |
10703 | ||
10704 | # Find out how to test for executable files. Don't use a zero-byte file, | |
10705 | # as systems may use methods other than mode bits to determine executability. | |
10706 | cat >conf$$.file <<_ASEOF | |
10707 | #! /bin/sh | |
10708 | exit 0 | |
10709 | _ASEOF | |
10710 | chmod +x conf$$.file | |
10711 | if test -x conf$$.file >/dev/null 2>&1; then | |
10712 | ac_executable_p="test -x" | |
10713 | else | |
10714 | ac_executable_p="test -f" | |
10715 | fi | |
10716 | rm -f conf$$.file | |
10717 | ||
10718 | # Extract the first word of "xgettext", so it can be a program name with args. | |
10719 | set dummy xgettext; ac_word=$2 | |
0ab6f085 AM |
10720 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10721 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb SE |
10722 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
10723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10724 | else | |
10725 | case "$XGETTEXT" in | |
10726 | [\\/]* | ?:[\\/]*) | |
10727 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
10728 | ;; | |
10729 | *) | |
10730 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10731 | for ac_dir in $PATH; do | |
10732 | IFS="$ac_save_IFS" | |
10733 | test -z "$ac_dir" && ac_dir=. | |
10734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10735 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10736 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
10737 | (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 | |
10738 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
10739 | break 2 | |
10740 | fi | |
10741 | fi | |
10742 | done | |
10743 | done | |
10744 | IFS="$ac_save_IFS" | |
10745 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
10746 | ;; | |
10747 | esac | |
10748 | fi | |
10749 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
10750 | if test "$XGETTEXT" != ":"; then | |
0ab6f085 AM |
10751 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
10752 | echo "${ECHO_T}$XGETTEXT" >&6 | |
d7040cdb | 10753 | else |
0ab6f085 AM |
10754 | echo "$as_me:$LINENO: result: no" >&5 |
10755 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
10756 | fi |
10757 | ||
10758 | rm -f messages.po | |
10759 | ||
10760 | ||
10761 | # Prepare PATH_SEPARATOR. | |
10762 | # The user is always right. | |
10763 | if test "${PATH_SEPARATOR+set}" != set; then | |
10764 | echo "#! /bin/sh" >conf$$.sh | |
10765 | echo "exit 0" >>conf$$.sh | |
10766 | chmod +x conf$$.sh | |
10767 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10768 | PATH_SEPARATOR=';' | |
10769 | else | |
10770 | PATH_SEPARATOR=: | |
10771 | fi | |
10772 | rm -f conf$$.sh | |
10773 | fi | |
10774 | ||
10775 | # Find out how to test for executable files. Don't use a zero-byte file, | |
10776 | # as systems may use methods other than mode bits to determine executability. | |
10777 | cat >conf$$.file <<_ASEOF | |
10778 | #! /bin/sh | |
10779 | exit 0 | |
10780 | _ASEOF | |
10781 | chmod +x conf$$.file | |
10782 | if test -x conf$$.file >/dev/null 2>&1; then | |
10783 | ac_executable_p="test -x" | |
10784 | else | |
10785 | ac_executable_p="test -f" | |
10786 | fi | |
10787 | rm -f conf$$.file | |
10788 | ||
10789 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
10790 | set dummy msgmerge; ac_word=$2 | |
0ab6f085 AM |
10791 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb SE |
10793 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
10794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10795 | else | |
10796 | case "$MSGMERGE" in | |
10797 | [\\/]* | ?:[\\/]*) | |
10798 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
10799 | ;; | |
10800 | *) | |
10801 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10802 | for ac_dir in $PATH; do | |
10803 | IFS="$ac_save_IFS" | |
10804 | test -z "$ac_dir" && ac_dir=. | |
10805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10806 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10807 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
10808 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
10809 | break 2 | |
10810 | fi | |
10811 | fi | |
10812 | done | |
10813 | done | |
10814 | IFS="$ac_save_IFS" | |
10815 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
10816 | ;; | |
10817 | esac | |
10818 | fi | |
10819 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
10820 | if test "$MSGMERGE" != ":"; then | |
0ab6f085 AM |
10821 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
10822 | echo "${ECHO_T}$MSGMERGE" >&6 | |
d7040cdb | 10823 | else |
0ab6f085 AM |
10824 | echo "$as_me:$LINENO: result: no" >&5 |
10825 | echo "${ECHO_T}no" >&6 | |
d7040cdb SE |
10826 | fi |
10827 | ||
10828 | ||
10829 | if test "$GMSGFMT" != ":"; then | |
10830 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
10831 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10832 | : ; | |
10833 | else | |
10834 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
0ab6f085 AM |
10835 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
10836 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
d7040cdb SE |
10837 | GMSGFMT=":" |
10838 | fi | |
10839 | fi | |
10840 | ||
10841 | if test "$XGETTEXT" != ":"; then | |
10842 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
10843 | (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 | |
10844 | : ; | |
10845 | else | |
0ab6f085 AM |
10846 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
10847 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
d7040cdb SE |
10848 | XGETTEXT=":" |
10849 | fi | |
10850 | rm -f messages.po | |
10851 | fi | |
10852 | ||
0ab6f085 | 10853 | ac_config_commands="$ac_config_commands default-1" |
d7040cdb SE |
10854 | |
10855 | ||
10856 | ||
0ab6f085 AM |
10857 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
10858 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
10859 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
d7040cdb | 10860 | if test "${enable_maintainer_mode+set}" = set; then |
0ab6f085 AM |
10861 | enableval="$enable_maintainer_mode" |
10862 | USE_MAINTAINER_MODE=$enableval | |
252b5132 | 10863 | else |
d7040cdb | 10864 | USE_MAINTAINER_MODE=no |
0ab6f085 AM |
10865 | fi; |
10866 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
10867 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
6bf9431b | 10868 | |
d7040cdb SE |
10869 | |
10870 | if test $USE_MAINTAINER_MODE = yes; then | |
10871 | MAINTAINER_MODE_TRUE= | |
10872 | MAINTAINER_MODE_FALSE='#' | |
10873 | else | |
10874 | MAINTAINER_MODE_TRUE='#' | |
10875 | MAINTAINER_MODE_FALSE= | |
20e95c23 | 10876 | fi |
6bf9431b | 10877 | |
d7040cdb SE |
10878 | MAINT=$MAINTAINER_MODE_TRUE |
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | if false; then | |
10884 | GENINSRC_NEVER_TRUE= | |
10885 | GENINSRC_NEVER_FALSE='#' | |
10886 | else | |
10887 | GENINSRC_NEVER_TRUE='#' | |
10888 | GENINSRC_NEVER_FALSE= | |
20e95c23 | 10889 | fi |
6bf9431b BE |
10890 | |
10891 | ||
10892 | ||
10893 | ||
10894 | for ac_header in sys/gmon_out.h | |
10895 | do | |
10896 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
0ab6f085 AM |
10897 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10898 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6bf9431b BE |
10901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10902 | fi | |
0ab6f085 AM |
10903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6bf9431b BE |
10905 | else |
10906 | # Is the header compilable? | |
0ab6f085 AM |
10907 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10908 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6bf9431b BE |
10909 | cat >conftest.$ac_ext <<_ACEOF |
10910 | /* confdefs.h. */ | |
10911 | _ACEOF | |
10912 | cat confdefs.h >>conftest.$ac_ext | |
10913 | cat >>conftest.$ac_ext <<_ACEOF | |
10914 | /* end confdefs.h. */ | |
10915 | $ac_includes_default | |
10916 | #include <$ac_header> | |
10917 | _ACEOF | |
10918 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
10919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10920 | (eval $ac_compile) 2>conftest.er1 | |
6bf9431b BE |
10921 | ac_status=$? |
10922 | grep -v '^ *+' conftest.er1 >conftest.err | |
10923 | rm -f conftest.er1 | |
10924 | cat conftest.err >&5 | |
10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
10926 | (exit $ac_status); } && |
10927 | { ac_try='test -z "$ac_c_werror_flag" | |
10928 | || test ! -s conftest.err' | |
10929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10930 | (eval $ac_try) 2>&5 | |
10931 | ac_status=$? | |
10932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10933 | (exit $ac_status); }; } && | |
10934 | { ac_try='test -s conftest.$ac_objext' | |
10935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10936 | (eval $ac_try) 2>&5 | |
10937 | ac_status=$? | |
10938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10939 | (exit $ac_status); }; }; then | |
6bf9431b BE |
10940 | ac_header_compiler=yes |
10941 | else | |
10942 | echo "$as_me: failed program was:" >&5 | |
10943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10944 | ||
0ab6f085 | 10945 | ac_header_compiler=no |
6bf9431b | 10946 | fi |
0ab6f085 AM |
10947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10948 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10949 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6bf9431b BE |
10950 | |
10951 | # Is the header present? | |
0ab6f085 AM |
10952 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6bf9431b BE |
10954 | cat >conftest.$ac_ext <<_ACEOF |
10955 | /* confdefs.h. */ | |
10956 | _ACEOF | |
10957 | cat confdefs.h >>conftest.$ac_ext | |
10958 | cat >>conftest.$ac_ext <<_ACEOF | |
10959 | /* end confdefs.h. */ | |
10960 | #include <$ac_header> | |
10961 | _ACEOF | |
0ab6f085 AM |
10962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
10963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6bf9431b BE |
10964 | ac_status=$? |
10965 | grep -v '^ *+' conftest.er1 >conftest.err | |
10966 | rm -f conftest.er1 | |
10967 | cat conftest.err >&5 | |
10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
10969 | (exit $ac_status); } >/dev/null; then |
10970 | if test -s conftest.err; then | |
10971 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10973 | else | |
10974 | ac_cpp_err= | |
10975 | fi | |
10976 | else | |
10977 | ac_cpp_err=yes | |
10978 | fi | |
10979 | if test -z "$ac_cpp_err"; then | |
6bf9431b BE |
10980 | ac_header_preproc=yes |
10981 | else | |
10982 | echo "$as_me: failed program was:" >&5 | |
10983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10984 | ||
10985 | ac_header_preproc=no | |
10986 | fi | |
10987 | rm -f conftest.err conftest.$ac_ext | |
0ab6f085 AM |
10988 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10989 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6bf9431b BE |
10990 | |
10991 | # So? What about this header? | |
10992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10993 | yes:no: ) | |
10994 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10995 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10997 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10998 | ac_header_preproc=yes | |
10999 | ;; | |
11000 | no:yes:* ) | |
11001 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11002 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11003 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11004 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11005 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11006 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11007 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11008 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11010 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11011 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11012 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
0ab6f085 AM |
11013 | ( |
11014 | cat <<\_ASBOX | |
11015 | ## ------------------------------------------ ## | |
11016 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11017 | ## ------------------------------------------ ## | |
11018 | _ASBOX | |
11019 | ) | | |
11020 | sed "s/^/$as_me: WARNING: /" >&2 | |
6bf9431b BE |
11021 | ;; |
11022 | esac | |
0ab6f085 AM |
11023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6bf9431b BE |
11026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11027 | else | |
11028 | eval "$as_ac_Header=\$ac_header_preproc" | |
11029 | fi | |
0ab6f085 AM |
11030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6bf9431b BE |
11032 | |
11033 | fi | |
11034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11035 | cat >>confdefs.h <<_ACEOF | |
11036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11037 | _ACEOF | |
11038 | ||
11039 | fi | |
11040 | ||
11041 | done | |
11042 | ||
11043 | ||
0ab6f085 AM |
11044 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
11045 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
34875e64 NC |
11046 | if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then |
11047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11048 | else | |
11049 | cat >conftest.$ac_ext <<_ACEOF | |
11050 | /* confdefs.h. */ | |
11051 | _ACEOF | |
11052 | cat confdefs.h >>conftest.$ac_ext | |
11053 | cat >>conftest.$ac_ext <<_ACEOF | |
11054 | /* end confdefs.h. */ | |
11055 | #include <unistd.h> | |
11056 | int | |
11057 | main () | |
11058 | { | |
11059 | extern int getopt (int, char *const*, const char *); | |
11060 | ; | |
11061 | return 0; | |
11062 | } | |
11063 | _ACEOF | |
11064 | rm -f conftest.$ac_objext | |
0ab6f085 AM |
11065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11066 | (eval $ac_compile) 2>conftest.er1 | |
34875e64 NC |
11067 | ac_status=$? |
11068 | grep -v '^ *+' conftest.er1 >conftest.err | |
11069 | rm -f conftest.er1 | |
11070 | cat conftest.err >&5 | |
11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
11072 | (exit $ac_status); } && |
11073 | { ac_try='test -z "$ac_c_werror_flag" | |
11074 | || test ! -s conftest.err' | |
11075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11076 | (eval $ac_try) 2>&5 | |
11077 | ac_status=$? | |
11078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11079 | (exit $ac_status); }; } && | |
11080 | { ac_try='test -s conftest.$ac_objext' | |
11081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11082 | (eval $ac_try) 2>&5 | |
11083 | ac_status=$? | |
11084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11085 | (exit $ac_status); }; }; then | |
34875e64 NC |
11086 | gprof_cv_decl_getopt_unistd_h=yes |
11087 | else | |
11088 | echo "$as_me: failed program was:" >&5 | |
11089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11090 | ||
0ab6f085 | 11091 | gprof_cv_decl_getopt_unistd_h=no |
34875e64 | 11092 | fi |
0ab6f085 | 11093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
11094 | fi |
11095 | ||
0ab6f085 AM |
11096 | echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5 |
11097 | echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6 | |
34875e64 NC |
11098 | if test $gprof_cv_decl_getopt_unistd_h = yes; then |
11099 | ||
11100 | cat >>confdefs.h <<\_ACEOF | |
11101 | #define HAVE_DECL_GETOPT 1 | |
11102 | _ACEOF | |
11103 | ||
11104 | fi | |
11105 | ||
1b9750d6 | 11106 | # Some systems have fabs only in -lm, not in -lc. |
0ab6f085 AM |
11107 | echo "$as_me:$LINENO: checking for library containing fabs" >&5 |
11108 | echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6 | |
1b9750d6 NC |
11109 | if test "${ac_cv_search_fabs+set}" = set; then |
11110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11111 | else | |
11112 | ac_func_search_save_LIBS=$LIBS | |
0ab6f085 | 11113 | ac_cv_search_fabs=no |
1b9750d6 NC |
11114 | cat >conftest.$ac_ext <<_ACEOF |
11115 | /* confdefs.h. */ | |
11116 | _ACEOF | |
11117 | cat confdefs.h >>conftest.$ac_ext | |
11118 | cat >>conftest.$ac_ext <<_ACEOF | |
11119 | /* end confdefs.h. */ | |
11120 | ||
0ab6f085 | 11121 | /* Override any gcc2 internal prototype to avoid an error. */ |
1b9750d6 NC |
11122 | #ifdef __cplusplus |
11123 | extern "C" | |
11124 | #endif | |
0ab6f085 AM |
11125 | /* We use char because int might match the return type of a gcc2 |
11126 | builtin and then its argument prototype would still apply. */ | |
1b9750d6 NC |
11127 | char fabs (); |
11128 | int | |
11129 | main () | |
11130 | { | |
0ab6f085 | 11131 | fabs (); |
1b9750d6 NC |
11132 | ; |
11133 | return 0; | |
11134 | } | |
11135 | _ACEOF | |
0ab6f085 AM |
11136 | rm -f conftest.$ac_objext conftest$ac_exeext |
11137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11138 | (eval $ac_link) 2>conftest.er1 | |
1b9750d6 NC |
11139 | ac_status=$? |
11140 | grep -v '^ *+' conftest.er1 >conftest.err | |
11141 | rm -f conftest.er1 | |
11142 | cat conftest.err >&5 | |
11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0ab6f085 AM |
11144 | (exit $ac_status); } && |
11145 | { ac_try='test -z "$ac_c_werror_flag" | |
11146 | || test ! -s conftest.err' | |
11147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11148 | (eval $ac_try) 2>&5 | |
11149 | ac_status=$? | |
11150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11151 | (exit $ac_status); }; } && | |
11152 | { ac_try='test -s conftest$ac_exeext' | |
11153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11154 | (eval $ac_try) 2>&5 | |
11155 | ac_status=$? | |
11156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11157 | (exit $ac_status); }; }; then | |
11158 | ac_cv_search_fabs="none required" | |
1b9750d6 NC |
11159 | else |
11160 | echo "$as_me: failed program was:" >&5 | |
11161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11162 | ||
1b9750d6 | 11163 | fi |
0ab6f085 AM |
11164 | rm -f conftest.err conftest.$ac_objext \ |
11165 | conftest$ac_exeext conftest.$ac_ext | |
11166 | if test "$ac_cv_search_fabs" = no; then | |
11167 | for ac_lib in m; do | |
11168 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11169 | cat >conftest.$ac_ext <<_ACEOF | |
11170 | /* confdefs.h. */ | |
11171 | _ACEOF | |
11172 | cat confdefs.h >>conftest.$ac_ext | |
11173 | cat >>conftest.$ac_ext <<_ACEOF | |
11174 | /* end confdefs.h. */ | |
1b9750d6 | 11175 | |
0ab6f085 AM |
11176 | /* Override any gcc2 internal prototype to avoid an error. */ |
11177 | #ifdef __cplusplus | |
11178 | extern "C" | |
11179 | #endif | |
11180 | /* We use char because int might match the return type of a gcc2 | |
11181 | builtin and then its argument prototype would still apply. */ | |
11182 | char fabs (); | |
11183 | int | |
11184 | main () | |
11185 | { | |
11186 | fabs (); | |
11187 | ; | |
11188 | return 0; | |
11189 | } | |
11190 | _ACEOF | |
11191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11193 | (eval $ac_link) 2>conftest.er1 | |
11194 | ac_status=$? | |
11195 | grep -v '^ *+' conftest.er1 >conftest.err | |
11196 | rm -f conftest.er1 | |
11197 | cat conftest.err >&5 | |
11198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11199 | (exit $ac_status); } && | |
11200 | { ac_try='test -z "$ac_c_werror_flag" | |
11201 | || test ! -s conftest.err' | |
11202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11203 | (eval $ac_try) 2>&5 | |
11204 | ac_status=$? | |
11205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11206 | (exit $ac_status); }; } && | |
11207 | { ac_try='test -s conftest$ac_exeext' | |
11208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11209 | (eval $ac_try) 2>&5 | |
11210 | ac_status=$? | |
11211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11212 | (exit $ac_status); }; }; then | |
11213 | ac_cv_search_fabs="-l$ac_lib" | |
11214 | break | |
1b9750d6 | 11215 | else |
0ab6f085 AM |
11216 | echo "$as_me: failed program was:" >&5 |
11217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11218 | ||
11219 | fi | |
11220 | rm -f conftest.err conftest.$ac_objext \ | |
11221 | conftest$ac_exeext conftest.$ac_ext | |
11222 | done | |
1b9750d6 | 11223 | fi |
1b9750d6 NC |
11224 | LIBS=$ac_func_search_save_LIBS |
11225 | fi | |
0ab6f085 AM |
11226 | echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5 |
11227 | echo "${ECHO_T}$ac_cv_search_fabs" >&6 | |
11228 | if test "$ac_cv_search_fabs" != no; then | |
11229 | test "$ac_cv_search_fabs" = "none required" || LIBS="$ac_cv_search_fabs $LIBS" | |
1b9750d6 NC |
11230 | |
11231 | fi | |
11232 | ||
11233 | ||
9e9b66a9 | 11234 | |
a541e3ce | 11235 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
1ad12f97 | 11236 | |
0ab6f085 | 11237 | # Check whether --enable-werror or --disable-werror was given. |
569acd2c | 11238 | if test "${enable_werror+set}" = set; then |
0ab6f085 AM |
11239 | enableval="$enable_werror" |
11240 | case "${enableval}" in | |
1ad12f97 NC |
11241 | yes | y) ERROR_ON_WARNING="yes" ;; |
11242 | no | n) ERROR_ON_WARNING="no" ;; | |
569acd2c NC |
11243 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
11244 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
1ad12f97 NC |
11245 | { (exit 1); exit 1; }; } ;; |
11246 | esac | |
0ab6f085 | 11247 | fi; |
1ad12f97 | 11248 | |
32b1cf22 L |
11249 | # Enable -Wno-format by default when using gcc on mingw |
11250 | case "${host}" in | |
11251 | *-*-mingw32*) | |
11252 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11253 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11254 | fi | |
11255 | ;; | |
11256 | *) ;; | |
11257 | esac | |
11258 | ||
9e9b66a9 AM |
11259 | # Enable -Werror by default when using gcc |
11260 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11261 | ERROR_ON_WARNING=yes | |
11262 | fi | |
11263 | ||
11264 | NO_WERROR= | |
11265 | if test "${ERROR_ON_WARNING}" = yes ; then | |
a541e3ce | 11266 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
9e9b66a9 | 11267 | NO_WERROR="-Wno-error" |
1ad12f97 NC |
11268 | fi |
11269 | ||
a541e3ce SE |
11270 | if test "${GCC}" = yes ; then |
11271 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11272 | fi | |
11273 | ||
0ab6f085 | 11274 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
6bf9431b | 11275 | if test "${enable_build_warnings+set}" = set; then |
0ab6f085 AM |
11276 | enableval="$enable_build_warnings" |
11277 | case "${enableval}" in | |
a541e3ce SE |
11278 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
11279 | no) if test "${GCC}" = yes ; then | |
11280 | WARN_CFLAGS="-w" | |
11281 | fi;; | |
6bf9431b | 11282 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 11283 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; |
6bf9431b | 11284 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 11285 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; |
9e9b66a9 | 11286 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
6bf9431b | 11287 | esac |
0ab6f085 | 11288 | fi; |
9e9b66a9 AM |
11289 | |
11290 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
11291 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
6bf9431b BE |
11292 | fi |
11293 | ||
11294 | ||
9e9b66a9 AM |
11295 | |
11296 | ||
11297 | ||
108a6f8e CD |
11298 | |
11299 | ||
11300 | ||
11301 | ||
0ab6f085 | 11302 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
6bf9431b | 11303 | |
6bf9431b BE |
11304 | cat >confcache <<\_ACEOF |
11305 | # This file is a shell script that caches the results of configure | |
11306 | # tests run on this system so they can be shared between configure | |
11307 | # scripts and configure runs, see configure's option --config-cache. | |
11308 | # It is not useful on other systems. If it contains results you don't | |
11309 | # want to keep, you may remove or edit it. | |
11310 | # | |
11311 | # config.status only pays attention to the cache file if you give it | |
11312 | # the --recheck option to rerun configure. | |
11313 | # | |
11314 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11315 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11316 | # following values. | |
11317 | ||
11318 | _ACEOF | |
11319 | ||
11320 | # The following way of writing the cache mishandles newlines in values, | |
11321 | # but we know of no workaround that is simple, portable, and efficient. | |
0ab6f085 | 11322 | # So, don't put newlines in cache variables' values. |
6bf9431b BE |
11323 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11324 | # and sets the high bit in the cache file unless we assign to the vars. | |
0ab6f085 | 11325 | { |
6bf9431b | 11326 | (set) 2>&1 | |
0ab6f085 AM |
11327 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
11328 | *ac_space=\ *) | |
6bf9431b BE |
11329 | # `set' does not quote correctly, so add quotes (double-quote |
11330 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11331 | sed -n \ | |
11332 | "s/'/'\\\\''/g; | |
11333 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
0ab6f085 | 11334 | ;; |
6bf9431b BE |
11335 | *) |
11336 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
0ab6f085 AM |
11337 | sed -n \ |
11338 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6bf9431b | 11339 | ;; |
0ab6f085 AM |
11340 | esac; |
11341 | } | | |
6bf9431b BE |
11342 | sed ' |
11343 | t clear | |
0ab6f085 | 11344 | : clear |
6bf9431b BE |
11345 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11346 | t end | |
0ab6f085 AM |
11347 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11348 | : end' >>confcache | |
11349 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11350 | if test -w $cache_file; then | |
11351 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
6bf9431b BE |
11352 | cat confcache >$cache_file |
11353 | else | |
0ab6f085 | 11354 | echo "not updating unwritable cache $cache_file" |
6bf9431b BE |
11355 | fi |
11356 | fi | |
11357 | rm -f confcache | |
11358 | ||
11359 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11360 | # Let make expand exec_prefix. | |
11361 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11362 | ||
0ab6f085 AM |
11363 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
11364 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11365 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11366 | # (actually we leave an empty line to preserve line numbers). | |
11367 | if test "x$srcdir" = x.; then | |
11368 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
11369 | s/:*\$(srcdir):*/:/; | |
11370 | s/:*\${srcdir}:*/:/; | |
11371 | s/:*@srcdir@:*/:/; | |
11372 | s/^\([^=]*=[ ]*\):*/\1/; | |
11373 | s/:*$//; | |
11374 | s/^[^=]*=[ ]*$//; | |
11375 | }' | |
11376 | fi | |
11377 | ||
6bf9431b BE |
11378 | DEFS=-DHAVE_CONFIG_H |
11379 | ||
11380 | ac_libobjs= | |
11381 | ac_ltlibobjs= | |
11382 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11383 | # 1. Remove the extension, and $U if already installed. | |
0ab6f085 AM |
11384 | ac_i=`echo "$ac_i" | |
11385 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
11386 | # 2. Add them. | |
11387 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
11388 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
6bf9431b BE |
11389 | done |
11390 | LIBOBJS=$ac_libobjs | |
11391 | ||
11392 | LTLIBOBJS=$ac_ltlibobjs | |
11393 | ||
11394 | ||
11395 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
11396 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
11397 | Usually this means the macro was only invoked conditionally." >&5 | |
11398 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
11399 | Usually this means the macro was only invoked conditionally." >&2;} | |
11400 | { (exit 1); exit 1; }; } | |
11401 | fi | |
11402 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11403 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
11404 | Usually this means the macro was only invoked conditionally." >&5 | |
11405 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
11406 | Usually this means the macro was only invoked conditionally." >&2;} | |
11407 | { (exit 1); exit 1; }; } | |
11408 | fi | |
11409 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
11410 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11411 | Usually this means the macro was only invoked conditionally." >&5 | |
11412 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11413 | Usually this means the macro was only invoked conditionally." >&2;} | |
11414 | { (exit 1); exit 1; }; } | |
11415 | fi | |
d5fbea21 DJ |
11416 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
11417 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
11418 | Usually this means the macro was only invoked conditionally." >&5 | |
11419 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
11420 | Usually this means the macro was only invoked conditionally." >&2;} | |
11421 | { (exit 1); exit 1; }; } | |
11422 | fi | |
6bf9431b BE |
11423 | |
11424 | : ${CONFIG_STATUS=./config.status} | |
11425 | ac_clean_files_save=$ac_clean_files | |
11426 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11427 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11428 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11429 | cat >$CONFIG_STATUS <<_ACEOF | |
11430 | #! $SHELL | |
11431 | # Generated by $as_me. | |
11432 | # Run this file to recreate the current configuration. | |
11433 | # Compiler output produced by configure, useful for debugging | |
11434 | # configure, is in config.log if it exists. | |
11435 | ||
11436 | debug=false | |
11437 | ac_cs_recheck=false | |
11438 | ac_cs_silent=false | |
11439 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11440 | _ACEOF | |
11441 | ||
11442 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11443 | ## --------------------- ## | |
11444 | ## M4sh Initialization. ## | |
11445 | ## --------------------- ## | |
11446 | ||
0ab6f085 | 11447 | # Be Bourne compatible |
6bf9431b BE |
11448 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11449 | emulate sh | |
11450 | NULLCMD=: | |
11451 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11452 | # is contrary to our usage. Disable this feature. | |
11453 | alias -g '${1+"$@"}'='"$@"' | |
0ab6f085 AM |
11454 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
11455 | set -o posix | |
6bf9431b | 11456 | fi |
0ab6f085 | 11457 | DUALCASE=1; export DUALCASE # for MKS sh |
6bf9431b BE |
11458 | |
11459 | # Support unset when possible. | |
11460 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
11461 | as_unset=unset | |
11462 | else | |
11463 | as_unset=false | |
11464 | fi | |
11465 | ||
11466 | ||
11467 | # Work around bugs in pre-3.0 UWIN ksh. | |
0ab6f085 | 11468 | $as_unset ENV MAIL MAILPATH |
6bf9431b BE |
11469 | PS1='$ ' |
11470 | PS2='> ' | |
11471 | PS4='+ ' | |
11472 | ||
11473 | # NLS nuisances. | |
11474 | for as_var in \ | |
11475 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11476 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11477 | LC_TELEPHONE LC_TIME | |
11478 | do | |
11479 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
11480 | eval $as_var=C; export $as_var | |
11481 | else | |
0ab6f085 | 11482 | $as_unset $as_var |
6bf9431b BE |
11483 | fi |
11484 | done | |
11485 | ||
11486 | # Required to use basename. | |
0ab6f085 | 11487 | if expr a : '\(a\)' >/dev/null 2>&1; then |
6bf9431b BE |
11488 | as_expr=expr |
11489 | else | |
11490 | as_expr=false | |
11491 | fi | |
11492 | ||
0ab6f085 | 11493 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
6bf9431b BE |
11494 | as_basename=basename |
11495 | else | |
11496 | as_basename=false | |
252b5132 | 11497 | fi |
252b5132 | 11498 | |
252b5132 | 11499 | |
6bf9431b | 11500 | # Name of the executable. |
0ab6f085 | 11501 | as_me=`$as_basename "$0" || |
6bf9431b BE |
11502 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11503 | X"$0" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
11504 | X"$0" : 'X\(/\)$' \| \ |
11505 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 11506 | echo X/"$0" | |
0ab6f085 AM |
11507 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
11508 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11509 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11510 | s/.*/./; q'` | |
6bf9431b | 11511 | |
0ab6f085 AM |
11512 | |
11513 | # PATH needs CR, and LINENO needs CR and PATH. | |
11514 | # Avoid depending upon Character Ranges. | |
11515 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11516 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11517 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11518 | as_cr_digits='0123456789' | |
11519 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11520 | ||
11521 | # The user is always right. | |
11522 | if test "${PATH_SEPARATOR+set}" != set; then | |
11523 | echo "#! /bin/sh" >conf$$.sh | |
11524 | echo "exit 0" >>conf$$.sh | |
11525 | chmod +x conf$$.sh | |
11526 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11527 | PATH_SEPARATOR=';' | |
11528 | else | |
11529 | PATH_SEPARATOR=: | |
11530 | fi | |
11531 | rm -f conf$$.sh | |
11532 | fi | |
252b5132 | 11533 | |
252b5132 | 11534 | |
0ab6f085 AM |
11535 | as_lineno_1=$LINENO |
11536 | as_lineno_2=$LINENO | |
11537 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11538 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11539 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11540 | # Find who we are. Look in the path if we contain no path at all | |
11541 | # relative or not. | |
11542 | case $0 in | |
11543 | *[\\/]* ) as_myself=$0 ;; | |
11544 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11545 | for as_dir in $PATH | |
11546 | do | |
11547 | IFS=$as_save_IFS | |
11548 | test -z "$as_dir" && as_dir=. | |
11549 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11550 | done | |
252b5132 | 11551 | |
0ab6f085 AM |
11552 | ;; |
11553 | esac | |
11554 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11555 | # in which case we are not to be found in the path. | |
11556 | if test "x$as_myself" = x; then | |
11557 | as_myself=$0 | |
11558 | fi | |
11559 | if test ! -f "$as_myself"; then | |
11560 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11561 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11562 | { (exit 1); exit 1; }; } | |
11563 | fi | |
11564 | case $CONFIG_SHELL in | |
11565 | '') | |
11566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11567 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11568 | do | |
11569 | IFS=$as_save_IFS | |
11570 | test -z "$as_dir" && as_dir=. | |
11571 | for as_base in sh bash ksh sh5; do | |
11572 | case $as_dir in | |
11573 | /*) | |
11574 | if ("$as_dir/$as_base" -c ' | |
6bf9431b BE |
11575 | as_lineno_1=$LINENO |
11576 | as_lineno_2=$LINENO | |
0ab6f085 | 11577 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
6bf9431b | 11578 | test "x$as_lineno_1" != "x$as_lineno_2" && |
0ab6f085 AM |
11579 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
11580 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11581 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11582 | CONFIG_SHELL=$as_dir/$as_base | |
11583 | export CONFIG_SHELL | |
11584 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11585 | fi;; | |
11586 | esac | |
11587 | done | |
11588 | done | |
11589 | ;; | |
11590 | esac | |
6bf9431b BE |
11591 | |
11592 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
11593 | # uniformly replaced by the line number. The first 'sed' inserts a | |
0ab6f085 AM |
11594 | # line-number line before each line; the second 'sed' does the real |
11595 | # work. The second script uses 'N' to pair each line-number line | |
11596 | # with the numbered line, and appends trailing '-' during | |
11597 | # substitution so that $LINENO is not a special case at line end. | |
6bf9431b | 11598 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
0ab6f085 AM |
11599 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
11600 | sed '=' <$as_myself | | |
6bf9431b BE |
11601 | sed ' |
11602 | N | |
0ab6f085 AM |
11603 | s,$,-, |
11604 | : loop | |
11605 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
6bf9431b | 11606 | t loop |
0ab6f085 AM |
11607 | s,-$,, |
11608 | s,^['$as_cr_digits']*\n,, | |
6bf9431b | 11609 | ' >$as_me.lineno && |
0ab6f085 AM |
11610 | chmod +x $as_me.lineno || |
11611 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11612 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
6bf9431b BE |
11613 | { (exit 1); exit 1; }; } |
11614 | ||
11615 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11616 | # (the dirname of $[0] is not the place where we might find the | |
0ab6f085 AM |
11617 | # original and so on. Autoconf is especially sensible to this). |
11618 | . ./$as_me.lineno | |
6bf9431b BE |
11619 | # Exit status is that of the last command. |
11620 | exit | |
11621 | } | |
11622 | ||
11623 | ||
0ab6f085 AM |
11624 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
11625 | *c*,-n*) ECHO_N= ECHO_C=' | |
11626 | ' ECHO_T=' ' ;; | |
11627 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11628 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
6bf9431b BE |
11629 | esac |
11630 | ||
0ab6f085 | 11631 | if expr a : '\(a\)' >/dev/null 2>&1; then |
6bf9431b | 11632 | as_expr=expr |
0eee5820 | 11633 | else |
6bf9431b | 11634 | as_expr=false |
0eee5820 | 11635 | fi |
6bf9431b BE |
11636 | |
11637 | rm -f conf$$ conf$$.exe conf$$.file | |
11638 | echo >conf$$.file | |
11639 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
0ab6f085 AM |
11640 | # We could just check for DJGPP; but this test a) works b) is more generic |
11641 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11642 | if test -f conf$$.exe; then | |
11643 | # Don't use ln at all; we don't have any links | |
6bf9431b | 11644 | as_ln_s='cp -p' |
0ab6f085 AM |
11645 | else |
11646 | as_ln_s='ln -s' | |
11647 | fi | |
6bf9431b BE |
11648 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11649 | as_ln_s=ln | |
11650 | else | |
11651 | as_ln_s='cp -p' | |
0eee5820 | 11652 | fi |
0ab6f085 | 11653 | rm -f conf$$ conf$$.exe conf$$.file |
6bf9431b BE |
11654 | |
11655 | if mkdir -p . 2>/dev/null; then | |
11656 | as_mkdir_p=: | |
0ab6f085 AM |
11657 | else |
11658 | test -d ./-p && rmdir ./-p | |
11659 | as_mkdir_p=false | |
1b9750d6 | 11660 | fi |
0ab6f085 AM |
11661 | |
11662 | as_executable_p="test -f" | |
0eee5820 | 11663 | |
6bf9431b BE |
11664 | # Sed expression to map a string onto a valid CPP name. |
11665 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
11666 | ||
11667 | # Sed expression to map a string onto a valid variable name. | |
11668 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
11669 | ||
1b9750d6 | 11670 | |
0ab6f085 AM |
11671 | # IFS |
11672 | # We need space, tab and new line, in precisely that order. | |
11673 | as_nl=' | |
11674 | ' | |
11675 | IFS=" $as_nl" | |
11676 | ||
11677 | # CDPATH. | |
11678 | $as_unset CDPATH | |
11679 | ||
6bf9431b BE |
11680 | exec 6>&1 |
11681 | ||
0ab6f085 | 11682 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
6bf9431b | 11683 | # report actual input values of CONFIG_FILES etc. instead of their |
0ab6f085 AM |
11684 | # values after options handling. Logging --version etc. is OK. |
11685 | exec 5>>config.log | |
11686 | { | |
11687 | echo | |
11688 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11689 | ## Running $as_me. ## | |
11690 | _ASBOX | |
11691 | } >&5 | |
11692 | cat >&5 <<_CSEOF | |
11693 | ||
6bf9431b | 11694 | This file was extended by $as_me, which was |
0ab6f085 | 11695 | generated by GNU Autoconf 2.59. Invocation command line was |
6bf9431b BE |
11696 | |
11697 | CONFIG_FILES = $CONFIG_FILES | |
11698 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11699 | CONFIG_LINKS = $CONFIG_LINKS | |
11700 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11701 | $ $0 $@ | |
11702 | ||
0ab6f085 AM |
11703 | _CSEOF |
11704 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11705 | echo >&5 | |
6bf9431b BE |
11706 | _ACEOF |
11707 | ||
11708 | # Files that config.status was made for. | |
0ab6f085 AM |
11709 | if test -n "$ac_config_files"; then |
11710 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
11711 | fi | |
a2d91340 | 11712 | |
0ab6f085 AM |
11713 | if test -n "$ac_config_headers"; then |
11714 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
11715 | fi | |
11716 | ||
11717 | if test -n "$ac_config_links"; then | |
11718 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
11719 | fi | |
11720 | ||
11721 | if test -n "$ac_config_commands"; then | |
11722 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11723 | fi | |
a2d91340 | 11724 | |
6bf9431b | 11725 | cat >>$CONFIG_STATUS <<\_ACEOF |
0ab6f085 | 11726 | |
6bf9431b BE |
11727 | ac_cs_usage="\ |
11728 | \`$as_me' instantiates files from templates according to the | |
11729 | current configuration. | |
11730 | ||
11731 | Usage: $0 [OPTIONS] [FILE]... | |
11732 | ||
11733 | -h, --help print this help, then exit | |
0ab6f085 | 11734 | -V, --version print version number, then exit |
6bf9431b BE |
11735 | -q, --quiet do not print progress messages |
11736 | -d, --debug don't remove temporary files | |
11737 | --recheck update $as_me by reconfiguring in the same conditions | |
11738 | --file=FILE[:TEMPLATE] | |
11739 | instantiate the configuration file FILE | |
11740 | --header=FILE[:TEMPLATE] | |
11741 | instantiate the configuration header FILE | |
11742 | ||
11743 | Configuration files: | |
11744 | $config_files | |
11745 | ||
11746 | Configuration headers: | |
11747 | $config_headers | |
11748 | ||
11749 | Configuration commands: | |
11750 | $config_commands | |
11751 | ||
11752 | Report bugs to <bug-autoconf@gnu.org>." | |
1b9750d6 | 11753 | _ACEOF |
0ab6f085 | 11754 | |
6bf9431b BE |
11755 | cat >>$CONFIG_STATUS <<_ACEOF |
11756 | ac_cs_version="\\ | |
11757 | config.status | |
0ab6f085 AM |
11758 | configured by $0, generated by GNU Autoconf 2.59, |
11759 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
6bf9431b | 11760 | |
0ab6f085 | 11761 | Copyright (C) 2003 Free Software Foundation, Inc. |
6bf9431b BE |
11762 | This config.status script is free software; the Free Software Foundation |
11763 | gives unlimited permission to copy, distribute and modify it." | |
0ab6f085 AM |
11764 | srcdir=$srcdir |
11765 | INSTALL="$INSTALL" | |
6bf9431b BE |
11766 | _ACEOF |
11767 | ||
11768 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11769 | # If no file are specified by the user, then we need to provide default | |
11770 | # value. By we need to know if files were specified by the user. | |
11771 | ac_need_defaults=: | |
11772 | while test $# != 0 | |
11773 | do | |
11774 | case $1 in | |
11775 | --*=*) | |
0ab6f085 AM |
11776 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
11777 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6bf9431b | 11778 | ac_shift=: |
252b5132 | 11779 | ;; |
0ab6f085 | 11780 | -*) |
6bf9431b BE |
11781 | ac_option=$1 |
11782 | ac_optarg=$2 | |
11783 | ac_shift=shift | |
252b5132 | 11784 | ;; |
0ab6f085 AM |
11785 | *) # This is not an option, so the user has probably given explicit |
11786 | # arguments. | |
11787 | ac_option=$1 | |
11788 | ac_need_defaults=false;; | |
6bf9431b | 11789 | esac |
252b5132 | 11790 | |
6bf9431b BE |
11791 | case $ac_option in |
11792 | # Handling of the options. | |
0ab6f085 AM |
11793 | _ACEOF |
11794 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6bf9431b BE |
11795 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11796 | ac_cs_recheck=: ;; | |
0ab6f085 AM |
11797 | --version | --vers* | -V ) |
11798 | echo "$ac_cs_version"; exit 0 ;; | |
11799 | --he | --h) | |
11800 | # Conflict between --help and --header | |
11801 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11802 | Try \`$0 --help' for more information." >&5 | |
11803 | echo "$as_me: error: ambiguous option: $1 | |
11804 | Try \`$0 --help' for more information." >&2;} | |
11805 | { (exit 1); exit 1; }; };; | |
11806 | --help | --hel | -h ) | |
11807 | echo "$ac_cs_usage"; exit 0 ;; | |
11808 | --debug | --d* | -d ) | |
6bf9431b BE |
11809 | debug=: ;; |
11810 | --file | --fil | --fi | --f ) | |
11811 | $ac_shift | |
11812 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11813 | ac_need_defaults=false;; | |
11814 | --header | --heade | --head | --hea ) | |
11815 | $ac_shift | |
11816 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11817 | ac_need_defaults=false;; | |
11818 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11819 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11820 | ac_cs_silent=: ;; | |
252b5132 | 11821 | |
6bf9431b | 11822 | # This is an error. |
0ab6f085 AM |
11823 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
11824 | Try \`$0 --help' for more information." >&5 | |
11825 | echo "$as_me: error: unrecognized option: $1 | |
11826 | Try \`$0 --help' for more information." >&2;} | |
6bf9431b | 11827 | { (exit 1); exit 1; }; } ;; |
252b5132 | 11828 | |
0ab6f085 | 11829 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 11830 | |
6bf9431b BE |
11831 | esac |
11832 | shift | |
11833 | done | |
252b5132 | 11834 | |
6bf9431b | 11835 | ac_configure_extra_args= |
252b5132 | 11836 | |
6bf9431b BE |
11837 | if $ac_cs_silent; then |
11838 | exec 6>/dev/null | |
11839 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11840 | fi | |
252b5132 | 11841 | |
6bf9431b BE |
11842 | _ACEOF |
11843 | cat >>$CONFIG_STATUS <<_ACEOF | |
11844 | if \$ac_cs_recheck; then | |
0ab6f085 AM |
11845 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
11846 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6bf9431b BE |
11847 | fi |
11848 | ||
11849 | _ACEOF | |
11850 | ||
11851 | cat >>$CONFIG_STATUS <<_ACEOF | |
252b5132 | 11852 | # |
0ab6f085 | 11853 | # INIT-COMMANDS section. |
252b5132 | 11854 | # |
0ab6f085 | 11855 | |
6bf9431b | 11856 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
11857 | |
11858 | ||
11859 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
11860 | # if CDPATH is set. | |
11861 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11862 | ||
11863 | sed_quote_subst='$sed_quote_subst' | |
11864 | double_quote_subst='$double_quote_subst' | |
11865 | delay_variable_subst='$delay_variable_subst' | |
11866 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
11867 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
11868 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
11869 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
11870 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
11871 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
11872 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
11873 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
11874 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
11875 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
11876 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
11877 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
11878 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
11879 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
11880 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
11881 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
11882 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
11883 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
11884 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
11885 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
11886 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
11887 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
11888 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
11889 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
11890 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
11891 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
11892 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11893 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11894 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
11895 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
11896 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
11897 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
11898 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
11899 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
11900 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11901 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11902 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11903 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
11904 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
11905 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
11906 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
11907 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
11908 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
11909 | 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"`' | |
11910 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
11911 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
11912 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
11913 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
11914 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11915 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
11916 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
11917 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
11918 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
11919 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
11920 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
11921 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11922 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11923 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
11924 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
11925 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11926 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11927 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
11928 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11929 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11930 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11931 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11932 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11933 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11934 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
11935 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11936 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11937 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11938 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
11939 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
11940 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
11941 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
11942 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
11943 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
11944 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
11945 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
11946 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
11947 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
11948 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
11949 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11950 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
11951 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
11952 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11953 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11954 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
11955 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
11956 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
11957 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
11958 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
11959 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
11960 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
11961 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11962 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11963 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11964 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11965 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11966 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11967 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
11968 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
11969 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11970 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11971 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
11972 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
11973 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
11974 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
11975 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
11976 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
11977 | ||
11978 | LTCC='$LTCC' | |
11979 | LTCFLAGS='$LTCFLAGS' | |
11980 | compiler='$compiler_DEFAULT' | |
11981 | ||
11982 | # Quote evaled strings. | |
11983 | for var in SED \ | |
11984 | GREP \ | |
11985 | EGREP \ | |
11986 | FGREP \ | |
11987 | LD \ | |
11988 | NM \ | |
11989 | LN_S \ | |
11990 | lt_SP2NL \ | |
11991 | lt_NL2SP \ | |
11992 | reload_flag \ | |
11993 | deplibs_check_method \ | |
11994 | file_magic_cmd \ | |
11995 | AR \ | |
11996 | AR_FLAGS \ | |
11997 | STRIP \ | |
11998 | RANLIB \ | |
11999 | CC \ | |
12000 | CFLAGS \ | |
12001 | compiler \ | |
12002 | lt_cv_sys_global_symbol_pipe \ | |
12003 | lt_cv_sys_global_symbol_to_cdecl \ | |
12004 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12005 | SHELL \ | |
12006 | ECHO \ | |
12007 | lt_prog_compiler_no_builtin_flag \ | |
12008 | lt_prog_compiler_wl \ | |
12009 | lt_prog_compiler_pic \ | |
12010 | lt_prog_compiler_static \ | |
12011 | lt_cv_prog_compiler_c_o \ | |
12012 | need_locks \ | |
12013 | shrext_cmds \ | |
12014 | export_dynamic_flag_spec \ | |
12015 | whole_archive_flag_spec \ | |
12016 | compiler_needs_object \ | |
12017 | with_gnu_ld \ | |
12018 | allow_undefined_flag \ | |
12019 | no_undefined_flag \ | |
12020 | hardcode_libdir_flag_spec \ | |
12021 | hardcode_libdir_flag_spec_ld \ | |
12022 | hardcode_libdir_separator \ | |
12023 | fix_srcfile_path \ | |
12024 | exclude_expsyms \ | |
12025 | include_expsyms \ | |
12026 | file_list_spec \ | |
12027 | variables_saved_for_relink \ | |
12028 | libname_spec \ | |
12029 | library_names_spec \ | |
12030 | soname_spec \ | |
12031 | finish_eval \ | |
12032 | old_striplib \ | |
12033 | striplib; do | |
12034 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12035 | *[\\\\\\\`\\"\\\$]*) | |
12036 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12037 | ;; | |
12038 | *) | |
12039 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12040 | ;; | |
12041 | esac | |
12042 | done | |
12043 | ||
12044 | # Double-quote double-evaled strings. | |
12045 | for var in reload_cmds \ | |
12046 | old_postinstall_cmds \ | |
12047 | old_postuninstall_cmds \ | |
12048 | old_archive_cmds \ | |
12049 | extract_expsyms_cmds \ | |
12050 | old_archive_from_new_cmds \ | |
12051 | old_archive_from_expsyms_cmds \ | |
12052 | archive_cmds \ | |
12053 | archive_expsym_cmds \ | |
12054 | module_cmds \ | |
12055 | module_expsym_cmds \ | |
12056 | export_symbols_cmds \ | |
12057 | prelink_cmds \ | |
12058 | postinstall_cmds \ | |
12059 | postuninstall_cmds \ | |
12060 | finish_cmds \ | |
12061 | sys_lib_search_path_spec \ | |
12062 | sys_lib_dlsearch_path_spec; do | |
12063 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12064 | *[\\\\\\\`\\"\\\$]*) | |
12065 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
12066 | ;; | |
12067 | *) | |
12068 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12069 | ;; | |
12070 | esac | |
12071 | done | |
12072 | ||
12073 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
12074 | case \$lt_ECHO in | |
12075 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
12076 | ;; | |
12077 | esac | |
12078 | ||
12079 | ac_aux_dir='$ac_aux_dir' | |
12080 | xsi_shell='$xsi_shell' | |
12081 | lt_shell_append='$lt_shell_append' | |
12082 | ||
12083 | # See if we are running on zsh, and set the options which allow our | |
12084 | # commands through without removal of \ escapes INIT. | |
12085 | if test -n "\${ZSH_VERSION+set}" ; then | |
12086 | setopt NO_GLOB_SUBST | |
12087 | fi | |
12088 | ||
12089 | ||
12090 | PACKAGE='$PACKAGE' | |
12091 | VERSION='$VERSION' | |
12092 | TIMESTAMP='$TIMESTAMP' | |
12093 | RM='$RM' | |
12094 | ofile='$ofile' | |
12095 | ||
12096 | ||
12097 | ||
20e95c23 DJ |
12098 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
12099 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
12100 | # from automake. | |
12101 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
12102 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
12103 | LINGUAS="${LINGUAS-%UNSET%}" | |
6bf9431b BE |
12104 | |
12105 | ||
12106 | _ACEOF | |
12107 | ||
1b9750d6 | 12108 | |
0ab6f085 AM |
12109 | |
12110 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6bf9431b | 12111 | for ac_config_target in $ac_config_targets |
252b5132 | 12112 | do |
0ab6f085 AM |
12113 | case "$ac_config_target" in |
12114 | # Handling of arguments. | |
12115 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12116 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
12117 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12118 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12119 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
12120 | "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;; | |
6bf9431b BE |
12121 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12122 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
12123 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
12124 | esac |
12125 | done | |
12126 | ||
6bf9431b BE |
12127 | # If the user did not use the arguments to specify the items to instantiate, |
12128 | # then the envvar interface is used. Set only those that are not. | |
12129 | # We use the long form for the default assignment because of an extremely | |
12130 | # bizarre bug on SunOS 4.1.3. | |
12131 | if $ac_need_defaults; then | |
12132 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12133 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12134 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12135 | fi | |
12136 | ||
12137 | # Have a temporary directory for convenience. Make it in the build tree | |
0ab6f085 | 12138 | # simply because there is no reason to put it here, and in addition, |
6bf9431b | 12139 | # creating and moving files from /tmp can sometimes cause problems. |
0ab6f085 | 12140 | # Create a temporary directory, and hook for its removal unless debugging. |
6bf9431b BE |
12141 | $debug || |
12142 | { | |
0ab6f085 | 12143 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
6bf9431b BE |
12144 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12145 | } | |
0ab6f085 | 12146 | |
6bf9431b | 12147 | # Create a (secure) tmp directory for tmp files. |
252b5132 | 12148 | |
6bf9431b | 12149 | { |
0ab6f085 | 12150 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
6bf9431b BE |
12151 | test -n "$tmp" && test -d "$tmp" |
12152 | } || | |
12153 | { | |
0ab6f085 AM |
12154 | tmp=./confstat$$-$RANDOM |
12155 | (umask 077 && mkdir $tmp) | |
6bf9431b BE |
12156 | } || |
12157 | { | |
12158 | echo "$me: cannot create a temporary directory in ." >&2 | |
12159 | { (exit 1); exit 1; } | |
12160 | } | |
252b5132 | 12161 | |
0ab6f085 AM |
12162 | _ACEOF |
12163 | ||
12164 | cat >>$CONFIG_STATUS <<_ACEOF | |
12165 | ||
6bf9431b | 12166 | # |
0ab6f085 | 12167 | # CONFIG_FILES section. |
6bf9431b BE |
12168 | # |
12169 | ||
12170 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12171 | # This happens for instance when ./config.status config.h | |
0ab6f085 AM |
12172 | if test -n "\$CONFIG_FILES"; then |
12173 | # Protect against being on the right side of a sed subst in config.status. | |
12174 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
12175 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
12176 | s,@SHELL@,$SHELL,;t t | |
12177 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
12178 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
12179 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
12180 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
12181 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
12182 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
12183 | s,@exec_prefix@,$exec_prefix,;t t | |
12184 | s,@prefix@,$prefix,;t t | |
12185 | s,@program_transform_name@,$program_transform_name,;t t | |
12186 | s,@bindir@,$bindir,;t t | |
12187 | s,@sbindir@,$sbindir,;t t | |
12188 | s,@libexecdir@,$libexecdir,;t t | |
12189 | s,@datadir@,$datadir,;t t | |
12190 | s,@sysconfdir@,$sysconfdir,;t t | |
12191 | s,@sharedstatedir@,$sharedstatedir,;t t | |
12192 | s,@localstatedir@,$localstatedir,;t t | |
12193 | s,@libdir@,$libdir,;t t | |
12194 | s,@includedir@,$includedir,;t t | |
12195 | s,@oldincludedir@,$oldincludedir,;t t | |
12196 | s,@infodir@,$infodir,;t t | |
12197 | s,@mandir@,$mandir,;t t | |
12198 | s,@build_alias@,$build_alias,;t t | |
12199 | s,@host_alias@,$host_alias,;t t | |
12200 | s,@target_alias@,$target_alias,;t t | |
12201 | s,@DEFS@,$DEFS,;t t | |
12202 | s,@ECHO_C@,$ECHO_C,;t t | |
12203 | s,@ECHO_N@,$ECHO_N,;t t | |
12204 | s,@ECHO_T@,$ECHO_T,;t t | |
12205 | s,@LIBS@,$LIBS,;t t | |
12206 | s,@build@,$build,;t t | |
12207 | s,@build_cpu@,$build_cpu,;t t | |
12208 | s,@build_vendor@,$build_vendor,;t t | |
12209 | s,@build_os@,$build_os,;t t | |
12210 | s,@host@,$host,;t t | |
12211 | s,@host_cpu@,$host_cpu,;t t | |
12212 | s,@host_vendor@,$host_vendor,;t t | |
12213 | s,@host_os@,$host_os,;t t | |
12214 | s,@target@,$target,;t t | |
12215 | s,@target_cpu@,$target_cpu,;t t | |
12216 | s,@target_vendor@,$target_vendor,;t t | |
12217 | s,@target_os@,$target_os,;t t | |
12218 | s,@CC@,$CC,;t t | |
12219 | s,@CFLAGS@,$CFLAGS,;t t | |
12220 | s,@LDFLAGS@,$LDFLAGS,;t t | |
12221 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
12222 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
12223 | s,@EXEEXT@,$EXEEXT,;t t | |
12224 | s,@OBJEXT@,$OBJEXT,;t t | |
12225 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
12226 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
12227 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
12228 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
12229 | s,@PACKAGE@,$PACKAGE,;t t | |
12230 | s,@VERSION@,$VERSION,;t t | |
12231 | s,@ACLOCAL@,$ACLOCAL,;t t | |
12232 | s,@AUTOCONF@,$AUTOCONF,;t t | |
12233 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
12234 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
12235 | s,@MAKEINFO@,$MAKEINFO,;t t | |
12236 | s,@install_sh@,$install_sh,;t t | |
12237 | s,@STRIP@,$STRIP,;t t | |
12238 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
12239 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
12240 | s,@mkdir_p@,$mkdir_p,;t t | |
12241 | s,@AWK@,$AWK,;t t | |
12242 | s,@SET_MAKE@,$SET_MAKE,;t t | |
12243 | s,@am__leading_dot@,$am__leading_dot,;t t | |
12244 | s,@AMTAR@,$AMTAR,;t t | |
12245 | s,@am__tar@,$am__tar,;t t | |
12246 | s,@am__untar@,$am__untar,;t t | |
12247 | s,@DEPDIR@,$DEPDIR,;t t | |
12248 | s,@am__include@,$am__include,;t t | |
12249 | s,@am__quote@,$am__quote,;t t | |
12250 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
12251 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
12252 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
12253 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
12254 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
12255 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
12256 | s,@LIBTOOL@,$LIBTOOL,;t t | |
12257 | s,@SED@,$SED,;t t | |
12258 | s,@EGREP@,$EGREP,;t t | |
12259 | s,@FGREP@,$FGREP,;t t | |
12260 | s,@GREP@,$GREP,;t t | |
12261 | s,@LD@,$LD,;t t | |
12262 | s,@DUMPBIN@,$DUMPBIN,;t t | |
12263 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
12264 | s,@NM@,$NM,;t t | |
12265 | s,@LN_S@,$LN_S,;t t | |
12266 | s,@AR@,$AR,;t t | |
12267 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
12268 | s,@RANLIB@,$RANLIB,;t t | |
12269 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
12270 | s,@lt_ECHO@,$lt_ECHO,;t t | |
12271 | s,@CPP@,$CPP,;t t | |
12272 | s,@USE_NLS@,$USE_NLS,;t t | |
12273 | s,@LIBINTL@,$LIBINTL,;t t | |
12274 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
12275 | s,@INCINTL@,$INCINTL,;t t | |
12276 | s,@XGETTEXT@,$XGETTEXT,;t t | |
12277 | s,@GMSGFMT@,$GMSGFMT,;t t | |
12278 | s,@POSUB@,$POSUB,;t t | |
12279 | s,@CATALOGS@,$CATALOGS,;t t | |
12280 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
12281 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
12282 | s,@GENCAT@,$GENCAT,;t t | |
12283 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
12284 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
12285 | s,@MSGFMT@,$MSGFMT,;t t | |
12286 | s,@MSGMERGE@,$MSGMERGE,;t t | |
12287 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
12288 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
12289 | s,@MAINT@,$MAINT,;t t | |
12290 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t | |
12291 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
12292 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
12293 | s,@NO_WERROR@,$NO_WERROR,;t t | |
12294 | s,@datarootdir@,$datarootdir,;t t | |
12295 | s,@docdir@,$docdir,;t t | |
12296 | s,@htmldir@,$htmldir,;t t | |
12297 | s,@LIBOBJS@,$LIBOBJS,;t t | |
12298 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
12299 | CEOF | |
1b9750d6 | 12300 | |
1b9750d6 | 12301 | _ACEOF |
1b9750d6 | 12302 | |
0ab6f085 AM |
12303 | cat >>$CONFIG_STATUS <<\_ACEOF |
12304 | # Split the substitutions into bite-sized pieces for seds with | |
12305 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
12306 | ac_max_sed_lines=48 | |
12307 | ac_sed_frag=1 # Number of current file. | |
12308 | ac_beg=1 # First line for current file. | |
12309 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
12310 | ac_more_lines=: | |
12311 | ac_sed_cmds= | |
12312 | while $ac_more_lines; do | |
12313 | if test $ac_beg -gt 1; then | |
12314 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
12315 | else | |
12316 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
12317 | fi | |
12318 | if test ! -s $tmp/subs.frag; then | |
12319 | ac_more_lines=false | |
12320 | else | |
12321 | # The purpose of the label and of the branching condition is to | |
12322 | # speed up the sed processing (if there are no `@' at all, there | |
12323 | # is no need to browse any of the substitutions). | |
12324 | # These are the two extra sed commands mentioned above. | |
12325 | (echo ':t | |
12326 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
12327 | if test -z "$ac_sed_cmds"; then | |
12328 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
12329 | else | |
12330 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
12331 | fi | |
12332 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
12333 | ac_beg=$ac_end | |
12334 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
12335 | fi | |
12336 | done | |
12337 | if test -z "$ac_sed_cmds"; then | |
12338 | ac_sed_cmds=cat | |
12339 | fi | |
12340 | fi # test -n "$CONFIG_FILES" | |
1b9750d6 | 12341 | |
1b9750d6 | 12342 | _ACEOF |
6bf9431b | 12343 | cat >>$CONFIG_STATUS <<\_ACEOF |
0ab6f085 AM |
12344 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
12345 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12346 | case $ac_file in | |
12347 | - | *:- | *:-:* ) # input from stdin | |
12348 | cat >$tmp/stdin | |
12349 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12350 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12351 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12352 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12353 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
12354 | esac |
12355 | ||
0ab6f085 AM |
12356 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
12357 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
6bf9431b BE |
12358 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12359 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12360 | X"$ac_file" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
12361 | X"$ac_file" : 'X\(/\)' \| \ |
12362 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 12363 | echo X"$ac_file" | |
0ab6f085 AM |
12364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12365 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12366 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12367 | /^X\(\/\).*/{ s//\1/; q; } | |
12368 | s/.*/./; q'` | |
12369 | { if $as_mkdir_p; then | |
12370 | mkdir -p "$ac_dir" | |
12371 | else | |
12372 | as_dir="$ac_dir" | |
6bf9431b | 12373 | as_dirs= |
0ab6f085 AM |
12374 | while test ! -d "$as_dir"; do |
12375 | as_dirs="$as_dir $as_dirs" | |
12376 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6bf9431b BE |
12377 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12378 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12379 | X"$as_dir" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
12380 | X"$as_dir" : 'X\(/\)' \| \ |
12381 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 12382 | echo X"$as_dir" | |
0ab6f085 AM |
12383 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12384 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12385 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12386 | /^X\(\/\).*/{ s//\1/; q; } | |
12387 | s/.*/./; q'` | |
6bf9431b | 12388 | done |
0ab6f085 AM |
12389 | test ! -n "$as_dirs" || mkdir $as_dirs |
12390 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12391 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6bf9431b | 12392 | { (exit 1); exit 1; }; }; } |
0ab6f085 | 12393 | |
6bf9431b BE |
12394 | ac_builddir=. |
12395 | ||
0ab6f085 | 12396 | if test "$ac_dir" != .; then |
6bf9431b | 12397 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
0ab6f085 AM |
12398 | # A "../" for each directory in $ac_dir_suffix. |
12399 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12400 | else | |
12401 | ac_dir_suffix= ac_top_builddir= | |
12402 | fi | |
252b5132 | 12403 | |
6bf9431b | 12404 | case $srcdir in |
0ab6f085 | 12405 | .) # No --srcdir option. We are building in place. |
6bf9431b | 12406 | ac_srcdir=. |
0ab6f085 AM |
12407 | if test -z "$ac_top_builddir"; then |
12408 | ac_top_srcdir=. | |
12409 | else | |
12410 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12411 | fi ;; | |
12412 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6bf9431b | 12413 | ac_srcdir=$srcdir$ac_dir_suffix; |
0ab6f085 AM |
12414 | ac_top_srcdir=$srcdir ;; |
12415 | *) # Relative path. | |
12416 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12417 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6bf9431b | 12418 | esac |
252b5132 | 12419 | |
0ab6f085 AM |
12420 | # Do not use `cd foo && pwd` to compute absolute paths, because |
12421 | # the directories may not exist. | |
12422 | case `pwd` in | |
12423 | .) ac_abs_builddir="$ac_dir";; | |
12424 | *) | |
12425 | case "$ac_dir" in | |
12426 | .) ac_abs_builddir=`pwd`;; | |
12427 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12428 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12429 | esac;; | |
12430 | esac | |
12431 | case $ac_abs_builddir in | |
12432 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12433 | *) | |
12434 | case ${ac_top_builddir}. in | |
12435 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12436 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12437 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12438 | esac;; | |
12439 | esac | |
12440 | case $ac_abs_builddir in | |
12441 | .) ac_abs_srcdir=$ac_srcdir;; | |
12442 | *) | |
12443 | case $ac_srcdir in | |
12444 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12445 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12446 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12447 | esac;; | |
12448 | esac | |
12449 | case $ac_abs_builddir in | |
12450 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12451 | *) | |
12452 | case $ac_top_srcdir in | |
12453 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12454 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12455 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12456 | esac;; | |
12457 | esac | |
252b5132 | 12458 | |
6bf9431b BE |
12459 | |
12460 | case $INSTALL in | |
12461 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
0ab6f085 | 12462 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
252b5132 | 12463 | esac |
1b9750d6 | 12464 | |
0ab6f085 AM |
12465 | if test x"$ac_file" != x-; then |
12466 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12467 | echo "$as_me: creating $ac_file" >&6;} | |
12468 | rm -f "$ac_file" | |
12469 | fi | |
12470 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12471 | # use $as_me), people would be surprised to read: | |
12472 | # /* config.h. Generated by config.status. */ | |
12473 | if test x"$ac_file" = x-; then | |
12474 | configure_input= | |
12475 | else | |
12476 | configure_input="$ac_file. " | |
12477 | fi | |
12478 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
12479 | sed 's,.*/,,'` by configure." | |
12480 | ||
12481 | # First look for the input files in the build tree, otherwise in the | |
12482 | # src tree. | |
12483 | ac_file_inputs=`IFS=: | |
12484 | for f in $ac_file_in; do | |
12485 | case $f in | |
12486 | -) echo $tmp/stdin ;; | |
12487 | [\\/$]*) | |
12488 | # Absolute (can't be DOS-style, as IFS=:) | |
12489 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12490 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12491 | { (exit 1); exit 1; }; } | |
12492 | echo "$f";; | |
12493 | *) # Relative | |
12494 | if test -f "$f"; then | |
12495 | # Build tree | |
12496 | echo "$f" | |
12497 | elif test -f "$srcdir/$f"; then | |
12498 | # Source tree | |
12499 | echo "$srcdir/$f" | |
12500 | else | |
12501 | # /dev/null tree | |
12502 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12503 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12504 | { (exit 1); exit 1; }; } | |
12505 | fi;; | |
12506 | esac | |
12507 | done` || { (exit 1); exit 1; } | |
6bf9431b BE |
12508 | _ACEOF |
12509 | cat >>$CONFIG_STATUS <<_ACEOF | |
12510 | sed "$ac_vpsub | |
12511 | $extrasub | |
12512 | _ACEOF | |
12513 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12514 | :t | |
12515 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
0ab6f085 AM |
12516 | s,@configure_input@,$configure_input,;t t |
12517 | s,@srcdir@,$ac_srcdir,;t t | |
12518 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
12519 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
12520 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
12521 | s,@builddir@,$ac_builddir,;t t | |
12522 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
12523 | s,@top_builddir@,$ac_top_builddir,;t t | |
12524 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
12525 | s,@INSTALL@,$ac_INSTALL,;t t | |
12526 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
12527 | rm -f $tmp/stdin | |
12528 | if test x"$ac_file" != x-; then | |
12529 | mv $tmp/out $ac_file | |
12530 | else | |
12531 | cat $tmp/out | |
12532 | rm -f $tmp/out | |
12533 | fi | |
12534 | ||
12535 | done | |
12536 | _ACEOF | |
12537 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12538 | ||
12539 | # | |
12540 | # CONFIG_HEADER section. | |
12541 | # | |
12542 | ||
12543 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12544 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12545 | # | |
12546 | # ac_d sets the value in "#define NAME VALUE" lines. | |
12547 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
12548 | ac_dB='[ ].*$,\1#\2' | |
12549 | ac_dC=' ' | |
12550 | ac_dD=',;t' | |
12551 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12552 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12553 | ac_uB='$,\1#\2define\3' | |
12554 | ac_uC=' ' | |
12555 | ac_uD=',;t' | |
12556 | ||
12557 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
12558 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6bf9431b | 12559 | case $ac_file in |
0ab6f085 AM |
12560 | - | *:- | *:-:* ) # input from stdin |
12561 | cat >$tmp/stdin | |
12562 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12563 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12564 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12565 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12566 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 | 12567 | esac |
0ab6f085 AM |
12568 | |
12569 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12570 | echo "$as_me: creating $ac_file" >&6;} | |
12571 | ||
12572 | # First look for the input files in the build tree, otherwise in the | |
12573 | # src tree. | |
12574 | ac_file_inputs=`IFS=: | |
12575 | for f in $ac_file_in; do | |
12576 | case $f in | |
12577 | -) echo $tmp/stdin ;; | |
12578 | [\\/$]*) | |
12579 | # Absolute (can't be DOS-style, as IFS=:) | |
12580 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12581 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12582 | { (exit 1); exit 1; }; } | |
12583 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
12584 | echo "$f";; | |
12585 | *) # Relative | |
12586 | if test -f "$f"; then | |
12587 | # Build tree | |
12588 | echo "$f" | |
12589 | elif test -f "$srcdir/$f"; then | |
12590 | # Source tree | |
12591 | echo "$srcdir/$f" | |
12592 | else | |
12593 | # /dev/null tree | |
12594 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12595 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12596 | { (exit 1); exit 1; }; } | |
12597 | fi;; | |
12598 | esac | |
12599 | done` || { (exit 1); exit 1; } | |
12600 | # Remove the trailing spaces. | |
12601 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
12602 | ||
12603 | _ACEOF | |
12604 | ||
12605 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
12606 | # `conftest.undefs', that substitutes the proper values into | |
12607 | # config.h.in to produce config.h. The first handles `#define' | |
12608 | # templates, and the second `#undef' templates. | |
12609 | # And first: Protect against being on the right side of a sed subst in | |
12610 | # config.status. Protect against being in an unquoted here document | |
12611 | # in config.status. | |
12612 | rm -f conftest.defines conftest.undefs | |
12613 | # Using a here document instead of a string reduces the quoting nightmare. | |
12614 | # Putting comments in sed scripts is not portable. | |
12615 | # | |
12616 | # `end' is used to avoid that the second main sed command (meant for | |
12617 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
12618 | # See the Autoconf documentation for `clear'. | |
12619 | cat >confdef2sed.sed <<\_ACEOF | |
12620 | s/[\\&,]/\\&/g | |
12621 | s,[\\$`],\\&,g | |
12622 | t clear | |
12623 | : clear | |
12624 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
12625 | t end | |
12626 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
12627 | : end | |
12628 | _ACEOF | |
12629 | # If some macros were called several times there might be several times | |
12630 | # the same #defines, which is useless. Nevertheless, we may not want to | |
12631 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
12632 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
12633 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
12634 | rm -f confdef2sed.sed | |
12635 | ||
12636 | # This sed command replaces #undef with comments. This is necessary, for | |
252b5132 RH |
12637 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
12638 | # on some systems where configure will not decide to define it. | |
0ab6f085 AM |
12639 | cat >>conftest.undefs <<\_ACEOF |
12640 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
12641 | _ACEOF | |
12642 | ||
12643 | # Break up conftest.defines because some shells have a limit on the size | |
12644 | # of here documents, and old seds have small limits too (100 cmds). | |
12645 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
12646 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
12647 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
12648 | echo ' :' >>$CONFIG_STATUS | |
12649 | rm -f conftest.tail | |
12650 | while grep . conftest.defines >/dev/null | |
6bf9431b | 12651 | do |
0ab6f085 AM |
12652 | # Write a limited-size here document to $tmp/defines.sed. |
12653 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
12654 | # Speed up: don't consider the non `#define' lines. | |
12655 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
12656 | # Work around the forget-to-reset-the-flag bug. | |
12657 | echo 't clr' >>$CONFIG_STATUS | |
12658 | echo ': clr' >>$CONFIG_STATUS | |
12659 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
6bf9431b | 12660 | echo 'CEOF |
0ab6f085 AM |
12661 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
12662 | rm -f $tmp/in | |
12663 | mv $tmp/out $tmp/in | |
12664 | ' >>$CONFIG_STATUS | |
12665 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
6bf9431b BE |
12666 | rm -f conftest.defines |
12667 | mv conftest.tail conftest.defines | |
12668 | done | |
0ab6f085 AM |
12669 | rm -f conftest.defines |
12670 | echo ' fi # grep' >>$CONFIG_STATUS | |
12671 | echo >>$CONFIG_STATUS | |
12672 | ||
12673 | # Break up conftest.undefs because some shells have a limit on the size | |
12674 | # of here documents, and old seds have small limits too (100 cmds). | |
12675 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
12676 | rm -f conftest.tail | |
12677 | while grep . conftest.undefs >/dev/null | |
12678 | do | |
12679 | # Write a limited-size here document to $tmp/undefs.sed. | |
12680 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
12681 | # Speed up: don't consider the non `#undef' | |
12682 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
12683 | # Work around the forget-to-reset-the-flag bug. | |
12684 | echo 't clr' >>$CONFIG_STATUS | |
12685 | echo ': clr' >>$CONFIG_STATUS | |
12686 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
12687 | echo 'CEOF | |
12688 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
12689 | rm -f $tmp/in | |
12690 | mv $tmp/out $tmp/in | |
12691 | ' >>$CONFIG_STATUS | |
12692 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
12693 | rm -f conftest.undefs | |
12694 | mv conftest.tail conftest.undefs | |
12695 | done | |
12696 | rm -f conftest.undefs | |
6bf9431b BE |
12697 | |
12698 | cat >>$CONFIG_STATUS <<\_ACEOF | |
0ab6f085 AM |
12699 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
12700 | # use $as_me), people would be surprised to read: | |
12701 | # /* config.h. Generated by config.status. */ | |
12702 | if test x"$ac_file" = x-; then | |
12703 | echo "/* Generated by configure. */" >$tmp/config.h | |
12704 | else | |
12705 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
12706 | fi | |
12707 | cat $tmp/in >>$tmp/config.h | |
12708 | rm -f $tmp/in | |
6bf9431b | 12709 | if test x"$ac_file" != x-; then |
0ab6f085 | 12710 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
6bf9431b BE |
12711 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
12712 | echo "$as_me: $ac_file is unchanged" >&6;} | |
12713 | else | |
0ab6f085 AM |
12714 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
12715 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12716 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12717 | X"$ac_file" : 'X\(//\)$' \| \ | |
12718 | X"$ac_file" : 'X\(/\)' \| \ | |
12719 | . : '\(.\)' 2>/dev/null || | |
12720 | echo X"$ac_file" | | |
12721 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12722 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12723 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12724 | /^X\(\/\).*/{ s//\1/; q; } | |
12725 | s/.*/./; q'` | |
12726 | { if $as_mkdir_p; then | |
12727 | mkdir -p "$ac_dir" | |
12728 | else | |
12729 | as_dir="$ac_dir" | |
12730 | as_dirs= | |
12731 | while test ! -d "$as_dir"; do | |
12732 | as_dirs="$as_dir $as_dirs" | |
12733 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12734 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12735 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12736 | X"$as_dir" : 'X\(//\)$' \| \ | |
12737 | X"$as_dir" : 'X\(/\)' \| \ | |
12738 | . : '\(.\)' 2>/dev/null || | |
12739 | echo X"$as_dir" | | |
12740 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12741 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12742 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12743 | /^X\(\/\).*/{ s//\1/; q; } | |
12744 | s/.*/./; q'` | |
12745 | done | |
12746 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12747 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12748 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12749 | { (exit 1); exit 1; }; }; } | |
12750 | ||
6bf9431b | 12751 | rm -f $ac_file |
0ab6f085 | 12752 | mv $tmp/config.h $ac_file |
252b5132 | 12753 | fi |
6bf9431b | 12754 | else |
0ab6f085 AM |
12755 | cat $tmp/config.h |
12756 | rm -f $tmp/config.h | |
252b5132 | 12757 | fi |
6bf9431b BE |
12758 | # Compute $ac_file's index in $config_headers. |
12759 | _am_stamp_count=1 | |
12760 | for _am_header in $config_headers :; do | |
12761 | case $_am_header in | |
12762 | $ac_file | $ac_file:* ) | |
12763 | break ;; | |
12764 | * ) | |
12765 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
12766 | esac | |
12767 | done | |
0ab6f085 | 12768 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
6bf9431b BE |
12769 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12770 | X$ac_file : 'X\(//\)[^/]' \| \ | |
12771 | X$ac_file : 'X\(//\)$' \| \ | |
0ab6f085 AM |
12772 | X$ac_file : 'X\(/\)' \| \ |
12773 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 12774 | echo X$ac_file | |
0ab6f085 AM |
12775 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12776 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12777 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12778 | /^X\(\/\).*/{ s//\1/; q; } | |
12779 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
12780 | done | |
12781 | _ACEOF | |
12782 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6bf9431b | 12783 | |
0ab6f085 AM |
12784 | # |
12785 | # CONFIG_COMMANDS section. | |
12786 | # | |
12787 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
12788 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
12789 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12790 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
12791 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12792 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
12793 | X"$ac_dest" : 'X\(//\)$' \| \ | |
12794 | X"$ac_dest" : 'X\(/\)' \| \ | |
12795 | . : '\(.\)' 2>/dev/null || | |
12796 | echo X"$ac_dest" | | |
12797 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12798 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12799 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12800 | /^X\(\/\).*/{ s//\1/; q; } | |
12801 | s/.*/./; q'` | |
12802 | { if $as_mkdir_p; then | |
12803 | mkdir -p "$ac_dir" | |
12804 | else | |
12805 | as_dir="$ac_dir" | |
12806 | as_dirs= | |
12807 | while test ! -d "$as_dir"; do | |
12808 | as_dirs="$as_dir $as_dirs" | |
12809 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12810 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12811 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12812 | X"$as_dir" : 'X\(//\)$' \| \ | |
12813 | X"$as_dir" : 'X\(/\)' \| \ | |
12814 | . : '\(.\)' 2>/dev/null || | |
12815 | echo X"$as_dir" | | |
12816 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12817 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12818 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12819 | /^X\(\/\).*/{ s//\1/; q; } | |
12820 | s/.*/./; q'` | |
12821 | done | |
12822 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12823 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12824 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12825 | { (exit 1); exit 1; }; }; } | |
12826 | ||
12827 | ac_builddir=. | |
12828 | ||
12829 | if test "$ac_dir" != .; then | |
12830 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
12831 | # A "../" for each directory in $ac_dir_suffix. | |
12832 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12833 | else | |
12834 | ac_dir_suffix= ac_top_builddir= | |
12835 | fi | |
12836 | ||
12837 | case $srcdir in | |
12838 | .) # No --srcdir option. We are building in place. | |
12839 | ac_srcdir=. | |
12840 | if test -z "$ac_top_builddir"; then | |
12841 | ac_top_srcdir=. | |
12842 | else | |
12843 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12844 | fi ;; | |
12845 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
12846 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12847 | ac_top_srcdir=$srcdir ;; | |
12848 | *) # Relative path. | |
12849 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12850 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
12851 | esac | |
12852 | ||
12853 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
12854 | # the directories may not exist. | |
12855 | case `pwd` in | |
12856 | .) ac_abs_builddir="$ac_dir";; | |
12857 | *) | |
12858 | case "$ac_dir" in | |
12859 | .) ac_abs_builddir=`pwd`;; | |
12860 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12861 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12862 | esac;; | |
12863 | esac | |
12864 | case $ac_abs_builddir in | |
12865 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12866 | *) | |
12867 | case ${ac_top_builddir}. in | |
12868 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12869 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12870 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12871 | esac;; | |
12872 | esac | |
12873 | case $ac_abs_builddir in | |
12874 | .) ac_abs_srcdir=$ac_srcdir;; | |
12875 | *) | |
12876 | case $ac_srcdir in | |
12877 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12878 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12879 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12880 | esac;; | |
12881 | esac | |
12882 | case $ac_abs_builddir in | |
12883 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12884 | *) | |
12885 | case $ac_top_srcdir in | |
12886 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12887 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12888 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12889 | esac;; | |
12890 | esac | |
6bf9431b BE |
12891 | |
12892 | ||
0ab6f085 AM |
12893 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
12894 | echo "$as_me: executing $ac_dest commands" >&6;} | |
12895 | case $ac_dest in | |
12896 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
6bf9431b BE |
12897 | # Strip MF so we end up with the name of the file. |
12898 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
12899 | # Check whether this is an Automake generated Makefile or not. | |
12900 | # We used to match only the files named `Makefile.in', but | |
12901 | # some people rename them; so instead we look at the file content. | |
12902 | # Grep'ing the first line is not enough: some people post-process | |
12903 | # each Makefile.in and add a new line on top of each file to say so. | |
12904 | # So let's grep whole file. | |
12905 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
0ab6f085 | 12906 | dirpart=`(dirname "$mf") 2>/dev/null || |
6bf9431b BE |
12907 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12908 | X"$mf" : 'X\(//\)[^/]' \| \ | |
12909 | X"$mf" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
12910 | X"$mf" : 'X\(/\)' \| \ |
12911 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 12912 | echo X"$mf" | |
0ab6f085 AM |
12913 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12914 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12915 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12916 | /^X\(\/\).*/{ s//\1/; q; } | |
12917 | s/.*/./; q'` | |
6bf9431b BE |
12918 | else |
12919 | continue | |
12920 | fi | |
df76639a AM |
12921 | # Extract the definition of DEPDIR, am__include, and am__quote |
12922 | # from the Makefile without running `make'. | |
6bf9431b BE |
12923 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
12924 | test -z "$DEPDIR" && continue | |
df76639a AM |
12925 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
12926 | test -z "am__include" && continue | |
12927 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
6bf9431b BE |
12928 | # When using ansi2knr, U may be empty or an underscore; expand it |
12929 | U=`sed -n 's/^U = //p' < "$mf"` | |
df76639a AM |
12930 | # Find all dependency output files, they are included files with |
12931 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
12932 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
12933 | # expansion. | |
12934 | for file in `sed -n " | |
12935 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
6bf9431b BE |
12936 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
12937 | # Make sure the directory exists. | |
12938 | test -f "$dirpart/$file" && continue | |
0ab6f085 | 12939 | fdir=`(dirname "$file") 2>/dev/null || |
6bf9431b BE |
12940 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12941 | X"$file" : 'X\(//\)[^/]' \| \ | |
12942 | X"$file" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
12943 | X"$file" : 'X\(/\)' \| \ |
12944 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 12945 | echo X"$file" | |
0ab6f085 AM |
12946 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12947 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12948 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12949 | /^X\(\/\).*/{ s//\1/; q; } | |
12950 | s/.*/./; q'` | |
12951 | { if $as_mkdir_p; then | |
12952 | mkdir -p $dirpart/$fdir | |
12953 | else | |
12954 | as_dir=$dirpart/$fdir | |
6bf9431b | 12955 | as_dirs= |
0ab6f085 AM |
12956 | while test ! -d "$as_dir"; do |
12957 | as_dirs="$as_dir $as_dirs" | |
12958 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6bf9431b BE |
12959 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12960 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12961 | X"$as_dir" : 'X\(//\)$' \| \ | |
0ab6f085 AM |
12962 | X"$as_dir" : 'X\(/\)' \| \ |
12963 | . : '\(.\)' 2>/dev/null || | |
6bf9431b | 12964 | echo X"$as_dir" | |
0ab6f085 AM |
12965 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
12966 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12967 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12968 | /^X\(\/\).*/{ s//\1/; q; } | |
12969 | s/.*/./; q'` | |
6bf9431b | 12970 | done |
0ab6f085 AM |
12971 | test ! -n "$as_dirs" || mkdir $as_dirs |
12972 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
12973 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
6bf9431b | 12974 | { (exit 1); exit 1; }; }; } |
0ab6f085 | 12975 | |
6bf9431b BE |
12976 | # echo "creating $dirpart/$file" |
12977 | echo '# dummy' > "$dirpart/$file" | |
12978 | done | |
12979 | done | |
d7040cdb | 12980 | ;; |
0ab6f085 | 12981 | libtool ) |
d7040cdb SE |
12982 | |
12983 | # See if we are running on zsh, and set the options which allow our | |
12984 | # commands through without removal of \ escapes. | |
12985 | if test -n "${ZSH_VERSION+set}" ; then | |
12986 | setopt NO_GLOB_SUBST | |
12987 | fi | |
12988 | ||
12989 | cfgfile="${ofile}T" | |
12990 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
12991 | $RM "$cfgfile" | |
12992 | ||
12993 | cat <<_LT_EOF >> "$cfgfile" | |
12994 | #! $SHELL | |
12995 | ||
12996 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
12997 | # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION | |
12998 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12999 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
13000 | # | |
13001 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
13002 | # 2006, 2007 Free Software Foundation, Inc. | |
13003 | # | |
13004 | # This file is part of GNU Libtool: | |
13005 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
13006 | # | |
13007 | # This program is free software; you can redistribute it and/or modify | |
13008 | # it under the terms of the GNU General Public License as published by | |
13009 | # the Free Software Foundation; either version 2 of the License, or | |
13010 | # (at your option) any later version. | |
13011 | # | |
13012 | # This program is distributed in the hope that it will be useful, but | |
13013 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
13014 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13015 | # General Public License for more details. | |
13016 | # | |
13017 | # You should have received a copy of the GNU General Public License | |
13018 | # along with this program; if not, a copy can be downloaded from | |
13019 | # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free | |
13020 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
13021 | # MA 02110-1301, USA. | |
13022 | # | |
13023 | # As a special exception to the GNU General Public License, if you | |
13024 | # distribute this file as part of a program that contains a | |
13025 | # configuration script generated by Autoconf, you may include it under | |
13026 | # the same distribution terms that you use for the rest of that program. | |
13027 | ||
13028 | ||
13029 | # The names of the tagged configurations supported by this script. | |
13030 | available_tags="" | |
13031 | ||
13032 | # ### BEGIN LIBTOOL CONFIG | |
13033 | ||
13034 | # Which release of libtool.m4 was used? | |
13035 | macro_version=$macro_version | |
13036 | macro_revision=$macro_revision | |
13037 | ||
13038 | # Whether or not to build shared libraries. | |
13039 | build_libtool_libs=$enable_shared | |
13040 | ||
13041 | # Whether or not to build static libraries. | |
13042 | build_old_libs=$enable_static | |
13043 | ||
13044 | # What type of objects to build. | |
13045 | pic_mode=$pic_mode | |
13046 | ||
13047 | # Whether or not to optimize for fast installation. | |
13048 | fast_install=$enable_fast_install | |
13049 | ||
13050 | # The host system. | |
13051 | host_alias=$host_alias | |
13052 | host=$host | |
13053 | host_os=$host_os | |
13054 | ||
13055 | # The build system. | |
13056 | build_alias=$build_alias | |
13057 | build=$build | |
13058 | build_os=$build_os | |
13059 | ||
13060 | # A sed program that does not truncate output. | |
13061 | SED=$lt_SED | |
13062 | ||
13063 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
13064 | Xsed="\$SED -e 1s/^X//" | |
13065 | ||
13066 | # A grep program that handles long lines. | |
13067 | GREP=$lt_GREP | |
13068 | ||
13069 | # An ERE matcher. | |
13070 | EGREP=$lt_EGREP | |
13071 | ||
13072 | # A literal string matcher. | |
13073 | FGREP=$lt_FGREP | |
13074 | ||
13075 | # A BSD- or MS-compatible name lister. | |
13076 | NM=$lt_NM | |
13077 | ||
13078 | # Whether we need soft or hard links. | |
13079 | LN_S=$lt_LN_S | |
13080 | ||
13081 | # What is the maximum length of a command? | |
13082 | max_cmd_len=$max_cmd_len | |
13083 | ||
13084 | # Object file suffix (normally "o"). | |
13085 | objext=$ac_objext | |
13086 | ||
13087 | # Executable file suffix (normally ""). | |
13088 | exeext=$exeext | |
13089 | ||
13090 | # whether the shell understands "unset". | |
13091 | lt_unset=$lt_unset | |
13092 | ||
13093 | # turn spaces into newlines. | |
13094 | SP2NL=$lt_lt_SP2NL | |
13095 | ||
13096 | # turn newlines into spaces. | |
13097 | NL2SP=$lt_lt_NL2SP | |
13098 | ||
13099 | # How to create reloadable object files. | |
13100 | reload_flag=$lt_reload_flag | |
13101 | reload_cmds=$lt_reload_cmds | |
13102 | ||
13103 | # Method to check whether dependent libraries are shared objects. | |
13104 | deplibs_check_method=$lt_deplibs_check_method | |
13105 | ||
13106 | # Command to use when deplibs_check_method == "file_magic". | |
13107 | file_magic_cmd=$lt_file_magic_cmd | |
13108 | ||
13109 | # The archiver. | |
13110 | AR=$lt_AR | |
13111 | AR_FLAGS=$lt_AR_FLAGS | |
13112 | ||
13113 | # A symbol stripping program. | |
13114 | STRIP=$lt_STRIP | |
13115 | ||
13116 | # Commands used to install an old-style archive. | |
13117 | RANLIB=$lt_RANLIB | |
13118 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13119 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13120 | ||
13121 | # A C compiler. | |
13122 | LTCC=$lt_CC | |
13123 | ||
13124 | # LTCC compiler flags. | |
13125 | LTCFLAGS=$lt_CFLAGS | |
13126 | ||
13127 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13128 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13129 | ||
13130 | # Transform the output of nm in a proper C declaration. | |
13131 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13132 | ||
13133 | # Transform the output of nm in a C name address pair. | |
13134 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13135 | ||
13136 | # The name of the directory that contains temporary libtool files. | |
13137 | objdir=$objdir | |
13138 | ||
13139 | # Shell to use when invoking shell scripts. | |
13140 | SHELL=$lt_SHELL | |
13141 | ||
13142 | # An echo program that does not interpret backslashes. | |
13143 | ECHO=$lt_ECHO | |
13144 | ||
13145 | # Used to examine libraries when file_magic_cmd begins with "file". | |
13146 | MAGIC_CMD=$MAGIC_CMD | |
13147 | ||
13148 | # Must we lock files when doing compilation? | |
13149 | need_locks=$lt_need_locks | |
13150 | ||
13151 | # Old archive suffix (normally "a"). | |
13152 | libext=$libext | |
13153 | ||
13154 | # Shared library suffix (normally ".so"). | |
13155 | shrext_cmds=$lt_shrext_cmds | |
13156 | ||
13157 | # The commands to extract the exported symbol list from a shared archive. | |
13158 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13159 | ||
13160 | # Variables whose values should be saved in libtool wrapper scripts and | |
13161 | # restored at link time. | |
13162 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
13163 | ||
13164 | # Do we need the "lib" prefix for modules? | |
13165 | need_lib_prefix=$need_lib_prefix | |
13166 | ||
13167 | # Do we need a version for libraries? | |
13168 | need_version=$need_version | |
13169 | ||
13170 | # Library versioning type. | |
13171 | version_type=$version_type | |
13172 | ||
13173 | # Shared library runtime path variable. | |
13174 | runpath_var=$runpath_var | |
13175 | ||
13176 | # Shared library path variable. | |
13177 | shlibpath_var=$shlibpath_var | |
13178 | ||
13179 | # Is shlibpath searched before the hard-coded library search path? | |
13180 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13181 | ||
13182 | # Format of library name prefix. | |
13183 | libname_spec=$lt_libname_spec | |
13184 | ||
13185 | # List of archive names. First name is the real one, the rest are links. | |
13186 | # The last name is the one that the linker finds with -lNAME | |
13187 | library_names_spec=$lt_library_names_spec | |
13188 | ||
13189 | # The coded name of the library, if different from the real name. | |
13190 | soname_spec=$lt_soname_spec | |
13191 | ||
13192 | # Command to use after installation of a shared archive. | |
13193 | postinstall_cmds=$lt_postinstall_cmds | |
13194 | ||
13195 | # Command to use after uninstallation of a shared archive. | |
13196 | postuninstall_cmds=$lt_postuninstall_cmds | |
13197 | ||
13198 | # Commands used to finish a libtool library installation in a directory. | |
13199 | finish_cmds=$lt_finish_cmds | |
13200 | ||
13201 | # As "finish_cmds", except a single script fragment to be evaled but | |
13202 | # not shown. | |
13203 | finish_eval=$lt_finish_eval | |
13204 | ||
13205 | # Whether we should hardcode library paths into libraries. | |
13206 | hardcode_into_libs=$hardcode_into_libs | |
13207 | ||
13208 | # Compile-time system search path for libraries. | |
13209 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13210 | ||
13211 | # Run-time system search path for libraries. | |
13212 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13213 | ||
13214 | # Whether dlopen is supported. | |
13215 | dlopen_support=$enable_dlopen | |
13216 | ||
13217 | # Whether dlopen of programs is supported. | |
13218 | dlopen_self=$enable_dlopen_self | |
13219 | ||
13220 | # Whether dlopen of statically linked programs is supported. | |
13221 | dlopen_self_static=$enable_dlopen_self_static | |
13222 | ||
13223 | # Commands to strip libraries. | |
13224 | old_striplib=$lt_old_striplib | |
13225 | striplib=$lt_striplib | |
13226 | ||
13227 | ||
13228 | # The linker used to build libraries. | |
13229 | LD=$lt_LD | |
13230 | ||
13231 | # Commands used to build an old-style archive. | |
13232 | old_archive_cmds=$lt_old_archive_cmds | |
13233 | ||
13234 | # A language specific compiler. | |
13235 | CC=$lt_compiler | |
13236 | ||
13237 | # Is the compiler the GNU compiler? | |
13238 | with_gcc=$GCC | |
13239 | ||
13240 | # Compiler flag to turn off builtin functions. | |
13241 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
13242 | ||
13243 | # How to pass a linker flag through the compiler. | |
13244 | wl=$lt_lt_prog_compiler_wl | |
13245 | ||
13246 | # Additional compiler flags for building library objects. | |
13247 | pic_flag=$lt_lt_prog_compiler_pic | |
13248 | ||
13249 | # Compiler flag to prevent dynamic linking. | |
13250 | link_static_flag=$lt_lt_prog_compiler_static | |
13251 | ||
13252 | # Does compiler simultaneously support -c and -o options? | |
13253 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13254 | ||
13255 | # Whether or not to add -lc for building shared libraries. | |
13256 | build_libtool_need_lc=$archive_cmds_need_lc | |
13257 | ||
13258 | # Whether or not to disallow shared libs when runtime libs are static. | |
13259 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13260 | ||
13261 | # Compiler flag to allow reflexive dlopens. | |
13262 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
13263 | ||
13264 | # Compiler flag to generate shared objects directly from archives. | |
13265 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
13266 | ||
13267 | # Whether the compiler copes with passing no objects directly. | |
13268 | compiler_needs_object=$lt_compiler_needs_object | |
13269 | ||
13270 | # Create an old-style archive from a shared archive. | |
13271 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
13272 | ||
13273 | # Create a temporary old-style archive to link instead of a shared archive. | |
13274 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
13275 | ||
13276 | # Commands used to build a shared archive. | |
13277 | archive_cmds=$lt_archive_cmds | |
13278 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
13279 | ||
13280 | # Commands used to build a loadable module if different from building | |
13281 | # a shared archive. | |
13282 | module_cmds=$lt_module_cmds | |
13283 | module_expsym_cmds=$lt_module_expsym_cmds | |
13284 | ||
13285 | # Whether we are building with GNU ld or not. | |
13286 | with_gnu_ld=$lt_with_gnu_ld | |
13287 | ||
13288 | # Flag that allows shared libraries with undefined symbols to be built. | |
13289 | allow_undefined_flag=$lt_allow_undefined_flag | |
13290 | ||
13291 | # Flag that enforces no undefined symbols. | |
13292 | no_undefined_flag=$lt_no_undefined_flag | |
13293 | ||
13294 | # Flag to hardcode \$libdir into a binary during linking. | |
13295 | # This must work even if \$libdir does not exist | |
13296 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
13297 | ||
13298 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
13299 | # during linking. This must work even if \$libdir does not exist. | |
13300 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
13301 | ||
13302 | # Whether we need a single "-rpath" flag with a separated argument. | |
13303 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
13304 | ||
13305 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13306 | # DIR into the resulting binary. | |
13307 | hardcode_direct=$hardcode_direct | |
13308 | ||
13309 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13310 | # DIR into the resulting binary and the resulting library dependency is | |
13311 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13312 | # library is relocated. | |
13313 | hardcode_direct_absolute=$hardcode_direct_absolute | |
13314 | ||
13315 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
13316 | # into the resulting binary. | |
13317 | hardcode_minus_L=$hardcode_minus_L | |
13318 | ||
13319 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
13320 | # into the resulting binary. | |
13321 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
13322 | ||
13323 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
13324 | # into the library and all subsequent libraries and executables linked | |
13325 | # against it. | |
13326 | hardcode_automatic=$hardcode_automatic | |
13327 | ||
13328 | # Set to yes if linker adds runtime paths of dependent libraries | |
13329 | # to runtime path list. | |
13330 | inherit_rpath=$inherit_rpath | |
13331 | ||
13332 | # Whether libtool must link a program against all its dependency libraries. | |
13333 | link_all_deplibs=$link_all_deplibs | |
13334 | ||
13335 | # Fix the shell variable \$srcfile for the compiler. | |
13336 | fix_srcfile_path=$lt_fix_srcfile_path | |
13337 | ||
13338 | # Set to "yes" if exported symbols are required. | |
13339 | always_export_symbols=$always_export_symbols | |
13340 | ||
13341 | # The commands to list exported symbols. | |
13342 | export_symbols_cmds=$lt_export_symbols_cmds | |
13343 | ||
13344 | # Symbols that should not be listed in the preloaded symbols. | |
13345 | exclude_expsyms=$lt_exclude_expsyms | |
13346 | ||
13347 | # Symbols that must always be exported. | |
13348 | include_expsyms=$lt_include_expsyms | |
13349 | ||
13350 | # Commands necessary for linking programs (against libraries) with templates. | |
13351 | prelink_cmds=$lt_prelink_cmds | |
13352 | ||
13353 | # Specify filename containing input files. | |
13354 | file_list_spec=$lt_file_list_spec | |
13355 | ||
13356 | # How to hardcode a shared library path into an executable. | |
13357 | hardcode_action=$hardcode_action | |
13358 | ||
13359 | # ### END LIBTOOL CONFIG | |
13360 | ||
13361 | _LT_EOF | |
13362 | ||
13363 | case $host_os in | |
13364 | aix3*) | |
13365 | cat <<\_LT_EOF >> "$cfgfile" | |
13366 | # AIX sometimes has problems with the GCC collect2 program. For some | |
13367 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13368 | # vanish in a puff of smoke. | |
13369 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
13370 | COLLECT_NAMES= | |
13371 | export COLLECT_NAMES | |
13372 | fi | |
13373 | _LT_EOF | |
13374 | ;; | |
13375 | esac | |
13376 | ||
13377 | ||
13378 | ltmain="$ac_aux_dir/ltmain.sh" | |
13379 | ||
13380 | ||
13381 | # We use sed instead of cat because bash on DJGPP gets confused if | |
13382 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13383 | # text mode, it properly converts lines to CR/LF. This bash problem | |
13384 | # is reportedly fixed, but why not run on old versions too? | |
13385 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
13386 | || (rm -f "$cfgfile"; exit 1) | |
13387 | ||
13388 | case $xsi_shell in | |
13389 | yes) | |
13390 | cat << \_LT_EOF >> "$cfgfile" | |
13391 | # func_dirname file append nondir_replacement | |
13392 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13393 | # otherwise set result to NONDIR_REPLACEMENT. | |
13394 | func_dirname () | |
13395 | { | |
13396 | case ${1} in | |
13397 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13398 | * ) func_dirname_result="${3}" ;; | |
13399 | esac | |
13400 | } | |
13401 | ||
13402 | # func_basename file | |
13403 | func_basename () | |
13404 | { | |
13405 | func_basename_result="${1##*/}" | |
13406 | } | |
13407 | ||
13408 | # func_stripname prefix suffix name | |
13409 | # strip PREFIX and SUFFIX off of NAME. | |
13410 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13411 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13412 | # dot (in which case that matches only a dot). | |
13413 | func_stripname () | |
13414 | { | |
13415 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
13416 | # positional parameters, so assign one to ordinary parameter first. | |
13417 | func_stripname_result=${3} | |
13418 | func_stripname_result=${func_stripname_result#"${1}"} | |
13419 | func_stripname_result=${func_stripname_result%"${2}"} | |
13420 | } | |
13421 | ||
13422 | # func_opt_split | |
13423 | func_opt_split () | |
13424 | { | |
13425 | func_opt_split_opt=${1%%=*} | |
13426 | func_opt_split_arg=${1#*=} | |
13427 | } | |
13428 | ||
13429 | # func_lo2o object | |
13430 | func_lo2o () | |
13431 | { | |
13432 | case ${1} in | |
13433 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
13434 | *) func_lo2o_result=${1} ;; | |
13435 | esac | |
13436 | } | |
13437 | _LT_EOF | |
13438 | ;; | |
13439 | *) # Bourne compatible functions. | |
13440 | cat << \_LT_EOF >> "$cfgfile" | |
13441 | # func_dirname file append nondir_replacement | |
13442 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13443 | # otherwise set result to NONDIR_REPLACEMENT. | |
13444 | func_dirname () | |
13445 | { | |
13446 | # Extract subdirectory from the argument. | |
13447 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
13448 | if test "X$func_dirname_result" = "X${1}"; then | |
13449 | func_dirname_result="${3}" | |
13450 | else | |
13451 | func_dirname_result="$func_dirname_result${2}" | |
13452 | fi | |
13453 | } | |
13454 | ||
13455 | # func_basename file | |
13456 | func_basename () | |
13457 | { | |
13458 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
13459 | } | |
13460 | ||
13461 | # func_stripname prefix suffix name | |
13462 | # strip PREFIX and SUFFIX off of NAME. | |
13463 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13464 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13465 | # dot (in which case that matches only a dot). | |
13466 | # func_strip_suffix prefix name | |
13467 | func_stripname () | |
13468 | { | |
13469 | case ${2} in | |
13470 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
13471 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
13472 | *) func_stripname_result=`$ECHO "X${3}" \ | |
13473 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
13474 | esac | |
13475 | } | |
13476 | ||
13477 | # sed scripts: | |
13478 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
13479 | my_sed_long_arg='1s/^-[^=]*=//' | |
13480 | ||
13481 | # func_opt_split | |
13482 | func_opt_split () | |
13483 | { | |
13484 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
13485 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
13486 | } | |
13487 | ||
13488 | # func_lo2o object | |
13489 | func_lo2o () | |
13490 | { | |
13491 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
13492 | } | |
13493 | _LT_EOF | |
13494 | esac | |
13495 | ||
13496 | case $lt_shell_append in | |
13497 | yes) | |
13498 | cat << \_LT_EOF >> "$cfgfile" | |
13499 | ||
13500 | # func_append var value | |
13501 | # Append VALUE to the end of shell variable VAR. | |
13502 | func_append () | |
13503 | { | |
13504 | eval "$1+=\$2" | |
13505 | } | |
13506 | _LT_EOF | |
13507 | ;; | |
13508 | *) | |
13509 | cat << \_LT_EOF >> "$cfgfile" | |
13510 | ||
13511 | # func_append var value | |
13512 | # Append VALUE to the end of shell variable VAR. | |
13513 | func_append () | |
13514 | { | |
13515 | eval "$1=\$$1\$2" | |
13516 | } | |
13517 | _LT_EOF | |
13518 | ;; | |
13519 | esac | |
13520 | ||
13521 | ||
13522 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
13523 | || (rm -f "$cfgfile"; exit 1) | |
13524 | ||
13525 | mv -f "$cfgfile" "$ofile" || | |
13526 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
13527 | chmod +x "$ofile" | |
13528 | ||
6bf9431b | 13529 | ;; |
0ab6f085 | 13530 | default-1 ) |
20e95c23 DJ |
13531 | for ac_file in $CONFIG_FILES; do |
13532 | # Support "outfile[:infile[:infile...]]" | |
13533 | case "$ac_file" in | |
13534 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13535 | esac | |
13536 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
13537 | case "$ac_file" in */Makefile.in) | |
13538 | # Adjust a relative srcdir. | |
13539 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
13540 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
13541 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
13542 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
13543 | # In autoconf-2.50 it is called $srcdir. | |
13544 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
13545 | case "$ac_given_srcdir" in | |
13546 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
13547 | /*) top_srcdir="$ac_given_srcdir" ;; | |
13548 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
13549 | esac | |
13550 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
13551 | rm -f "$ac_dir/POTFILES" | |
13552 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
13553 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
13554 | POMAKEFILEDEPS="POTFILES.in" | |
13555 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
13556 | # on $ac_dir but don't depend on user-specified configuration | |
13557 | # parameters. | |
13558 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
13559 | # The LINGUAS file contains the set of available languages. | |
13560 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
13561 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
13562 | fi | |
13563 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
13564 | # Hide the ALL_LINGUAS assigment from automake. | |
13565 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
13566 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
13567 | else | |
13568 | # The set of available languages was given in configure.in. | |
13569 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
13570 | fi | |
13571 | case "$ac_given_srcdir" in | |
13572 | .) srcdirpre= ;; | |
13573 | *) srcdirpre='$(srcdir)/' ;; | |
13574 | esac | |
13575 | POFILES= | |
13576 | GMOFILES= | |
13577 | UPDATEPOFILES= | |
13578 | DUMMYPOFILES= | |
13579 | for lang in $ALL_LINGUAS; do | |
13580 | POFILES="$POFILES $srcdirpre$lang.po" | |
13581 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
13582 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
13583 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
13584 | done | |
13585 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
13586 | # environment variable. | |
13587 | INST_LINGUAS= | |
13588 | if test -n "$ALL_LINGUAS"; then | |
13589 | for presentlang in $ALL_LINGUAS; do | |
13590 | useit=no | |
13591 | if test "%UNSET%" != "$LINGUAS"; then | |
13592 | desiredlanguages="$LINGUAS" | |
13593 | else | |
13594 | desiredlanguages="$ALL_LINGUAS" | |
13595 | fi | |
13596 | for desiredlang in $desiredlanguages; do | |
13597 | # Use the presentlang catalog if desiredlang is | |
13598 | # a. equal to presentlang, or | |
13599 | # b. a variant of presentlang (because in this case, | |
13600 | # presentlang can be used as a fallback for messages | |
13601 | # which are not translated in the desiredlang catalog). | |
13602 | case "$desiredlang" in | |
13603 | "$presentlang"*) useit=yes;; | |
13604 | esac | |
13605 | done | |
13606 | if test $useit = yes; then | |
13607 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
13608 | fi | |
13609 | done | |
13610 | fi | |
13611 | CATALOGS= | |
13612 | if test -n "$INST_LINGUAS"; then | |
13613 | for lang in $INST_LINGUAS; do | |
13614 | CATALOGS="$CATALOGS $lang.gmo" | |
13615 | done | |
13616 | fi | |
13617 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
13618 | 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" | |
13619 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
13620 | if test -f "$f"; then | |
13621 | case "$f" in | |
13622 | *.orig | *.bak | *~) ;; | |
13623 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
13624 | esac | |
13625 | fi | |
13626 | done | |
13627 | fi | |
13628 | ;; | |
13629 | esac | |
13630 | done ;; | |
6bf9431b | 13631 | esac |
0ab6f085 AM |
13632 | done |
13633 | _ACEOF | |
6bf9431b | 13634 | |
0ab6f085 | 13635 | cat >>$CONFIG_STATUS <<\_ACEOF |
6bf9431b BE |
13636 | |
13637 | { (exit 0); exit 0; } | |
13638 | _ACEOF | |
252b5132 | 13639 | chmod +x $CONFIG_STATUS |
6bf9431b BE |
13640 | ac_clean_files=$ac_clean_files_save |
13641 | ||
13642 | ||
13643 | # configure is writing to config.log, and then calls config.status. | |
13644 | # config.status does its own redirection, appending to config.log. | |
13645 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13646 | # by configure, so config.status won't be able to write to it; its | |
13647 | # output is simply discarded. So we exec the FD to /dev/null, | |
13648 | # effectively closing config.log, so it can be properly (re)opened and | |
13649 | # appended to by config.status. When coming back to configure, we | |
13650 | # need to make the FD available again. | |
13651 | if test "$no_create" != yes; then | |
13652 | ac_cs_success=: | |
13653 | ac_config_status_args= | |
13654 | test "$silent" = yes && | |
13655 | ac_config_status_args="$ac_config_status_args --quiet" | |
13656 | exec 5>/dev/null | |
13657 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13658 | exec 5>>config.log | |
13659 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13660 | # would make configure fail if this is the last instruction. | |
13661 | $ac_cs_success || { (exit 1); exit 1; } | |
13662 | fi | |
252b5132 | 13663 |